/* ============================================
   Website-Specific Styles
   Modern, Clean, Production-Ready
   ============================================ */

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 50%, var(--accent-purple) 100%);
    overflow: hidden;
    padding: var(--space-12) var(--space-4);
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    /* Performance: Animation paused by default, only runs when in viewport */
    animation: gridMove 20s linear infinite;
    animation-play-state: paused;
}

/* Animation runs only when hero is visible in viewport (controlled by JS) */
.hero-section.in-viewport::before {
    animation-play-state: running;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-inverse);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.8s var(--ease-out);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    opacity: 0.95;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Statistics Section
   ======================================== */
.statistics-section {
    position: relative;
    z-index: 1;
    margin-top: var(--space-16);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: var(--transition-base);
    color: var(--text-inverse);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--text-inverse);
    margin-bottom: var(--space-3);
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: 1;
    margin: var(--space-2) 0;
    color: var(--text-inverse);
}

.stat-card .stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-top: var(--space-2);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-value.animated {
    animation: countUp 0.6s var(--ease-bounce);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    background: var(--bg-secondary);
    padding: var(--space-12) var(--space-4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: var(--transition-base);
    border: var(--border-width) solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--border-radius-full);
    font-size: 2.5rem;
    color: var(--primary-600);
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--primary-500);
    color: var(--text-inverse);
    transform: scale(1.1) rotate(5deg);
}

.feature-card .feature-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.feature-card .feature-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ========================================
   Equipment Section
   ======================================== */
.equipment-section {
    padding: var(--space-12) var(--space-4);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
    border-radius: var(--border-radius-full);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-top: var(--space-4);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.fade-up {
    transform: translateY(40px);
}

.scroll-reveal.fade-left {
    transform: translateX(-40px);
}

.scroll-reveal.fade-right {
    transform: translateX(40px);
}

[dir="rtl"] .scroll-reveal.fade-left {
    transform: translateX(40px);
}

[dir="rtl"] .scroll-reveal.fade-right {
    transform: translateX(-40px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .statistics-section {
        margin-top: var(--space-12);
    }
    
    .stat-card {
        padding: var(--space-4);
    }
    
    .stat-card .stat-value {
        font-size: var(--text-2xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 70vh;
        padding: var(--space-12) var(--space-4);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Loading States
   ======================================== */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    min-height: 200px;
}

/* ========================================
   Smooth Scrolling
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Section Spacing
   ======================================== */
.section-padding {
    padding: var(--space-20) var(--space-4);
}

