:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --accent-primary: #c5a059; /* Bronze/Tarnish */
    --accent-secondary: #ff6b35;
    --accent-warning: #ffaa00;
    --accent-tertiary: #7c3aed;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover { 
    color: var(--text-primary); 
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle i {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100% !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 !important;
}

#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#fluid_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1 !important;
    background-color: #0a0a0f; /* Match site dark theme */
}

#fluid_container canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #000000 !important;
}

.hero-vignette {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    padding: 10px 24px;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    text-shadow: none;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 100px);
    margin-bottom: 24px;
    text-shadow: 0 0 60px rgba(197, 160, 89, 0.4), 0 4px 30px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-primary) 50%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textWave 10s linear infinite;
}

@keyframes textWave {
    0% { background-position: 0% 0; }
    100% { background-position: -200% 0; }
}

.hero .subheadline {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: auto;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.certifications {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: auto;
}

.service-areas {
    margin-top: 35px;
    pointer-events: auto;
}

.service-areas-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 30px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-areas-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-areas i {
    color: var(--accent-primary);
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cert-badge {
    padding: 10px 20px;
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 900;
    color: var(--accent-primary);
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--accent-primary);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(197, 160, 89, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sections */
section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Company Intro Section */
.company-intro-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    scroll-margin-top: 120px;
}

.company-intro-section h2 {
    margin-bottom: 24px;
}

.company-intro-section .company-tagline {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.company-intro-section p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.company-intro-section p:last-child {
    margin-bottom: 0;
}

.company-intro-section {
    opacity: 0;
    transform: translateY(40px);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 26, 0.4) 50%, transparent 100%);
    padding: 80px 40px 60px 40px; /* Reduced bottom padding to compensate for slider padding */
}

.testimonials-slider {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px 20px; /* Space for hover effects and side borders */
    margin-top: -20px; /* Compensate for top padding to maintain 40px visual gap */
    min-height: 300px; /* Ensure slider has height even if cards fail to load */
}

/* Fallback: ensure cards are visible if slider JS fails */
.testimonials-slider:not(.slider-ready) .testimonials-track {
    transform: none !important;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonials-slider:not(.slider-ready) .testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 20px;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    opacity: 1 !important; /* Ensure track is always visible */
    visibility: visible !important;
    transform: translateX(0); /* Default position */
    /* Transition handled by JS */
}

.testimonial-card {
    flex: 0 0 100%; /* Mobile default */
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 20px;
    padding: 85px 35px 35px 35px; /* Reduced top padding while keeping quote from overlapping */
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; /* Removed 'all' to avoid conflict with drag */
    height: auto; /* Flex stretch ensures equal height */
    user-select: none; /* Prevent text selection during drag */
    cursor: grab;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-card:active {
    cursor: grabbing;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(197, 160, 89, 0.15);
    line-height: 1;
}

.testimonial-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(197, 160, 89, 0.15);
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    flex-grow: 1; /* Pushes footer to bottom */
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    margin-top: auto; /* Aligns to bottom */
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

@media (min-width: 1025px) {
    .testimonial-card {
        flex: 0 0 calc((100% - 60px) / 3);
    }
}

@media (max-width: 768px) {
    .company-intro-section { padding: 60px 20px; }
    .testimonials-section { padding: 60px 20px 40px 20px; }
    .stats-grid { padding: 0 20px; }
    .services-container { padding: 60px 20px; }
    section { padding: 60px 20px; }
    .team-section { padding: 60px 20px; }
    
    /* Fix certifications on mobile - display in 2x2 grid */
    .certifications {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cert-badge {
        font-size: 11px;
        padding: 8px 12px;
        text-align: center;
        min-width: 120px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(40px);
}

.section-header h2 {
    margin-bottom: 24px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Tabs System */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    scroll-margin-top: 120px;
}

.services-tabs {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    margin-top: 0;
    min-height: 500px;
}

/* Navigation Column */
.services-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-tab {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    background: rgba(18, 18, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-tab:hover {
    background: rgba(197, 160, 89, 0.05);
    border-color: rgba(197, 160, 89, 0.2);
    color: var(--text-primary);
    transform: translateX(10px);
}

.service-tab.active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
    border-color: rgba(197, 160, 89, 0.4);
    color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.05);
}

.service-tab i {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.service-tab.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.4));
}

/* Content Display Column */
.services-display {
    position: relative;
}

.service-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.panel-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
}

.panel-header h3 {
    font-size: 36px;
    color: var(--text-primary);
    margin: 0;
}

.panel-body p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 18px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .services-tabs {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .services-nav {
        display: none; /* Hide desktop nav */
    }

    /* Convert panels to accordion items */
    .service-panel {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(18, 18, 26, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .panel-header {
        padding: 24px;
        margin: 0;
        border-bottom: none;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .panel-header:hover {
        background: rgba(255, 255, 255, 0.02);
    }

    .panel-header h3 {
        font-size: 20px;
        flex: 1;
    }

    .panel-icon {
        width: 24px;
        height: 24px;
    }

    /* Add chevron for accordion */
    .panel-header::after {
        content: '';
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        transition: transform 0.3s ease;
    }

    /* Active State for Accordion */
    .service-panel.active {
        border-color: rgba(197, 160, 89, 0.3);
        background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(18, 18, 26, 0.6));
    }

    .service-panel.active .panel-header {
        border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    }

    .service-panel.active .panel-header::after {
        transform: rotate(180deg);
    }

    .panel-body {
        height: 0;
        overflow: hidden;
        padding: 0 24px;
        opacity: 0;
        transition: all 0.4s ease;
    }

    .service-panel.active .panel-body {
        height: auto;
        padding: 0 24px 30px;
        opacity: 1;
    }

    .panel-body p {
        font-size: 16px;
        margin-top: 20px;
    }
}

@keyframes breathe {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.feature-icon-wrapper {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), rgba(197, 160, 89, 0.05));
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(197, 160, 89, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.feature-icon-wrapper svg {
    width: 50px;
    height: 50px;
    color: var(--accent-primary);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Lungs 3D Section */
.lungs-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
    max-width: none;
    min-height: 1000px;
    padding: 80px 0;
}

/* Canvas Fog System */
.fog-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    filter: blur(30px);
}

.lungs-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lungs-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Hide lungs 3D model on mobile */
@media (max-width: 768px) {
    .lungs-canvas-container {
        display: none;
    }
}

.lungs-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-top: -400px;
    padding: 0 20px;
    pointer-events: none;
}

.lungs-content h2 {
    margin-bottom: 24px;
    line-height: 1.1;
}

.lungs-content p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 auto 40px;
    max-width: 600px;
}

.lungs-content .highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.lungs-stat {
    margin-top: 0px;
    padding: 15px 40px;
    background: rgba(19, 19, 25, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 16px;
    display: inline-block;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: auto; /* Re-enable clicks for links */
}

.lungs-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.lungs-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.source-link {
    font-size: 10px;
    color: var(--accent-primary);
    text-decoration: none;
    vertical-align: super;
    margin-left: 2px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.source-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .lungs-section {
        grid-template-columns: 1fr;
        min-height: 600px;
        padding: 60px 0;
    }
    .lungs-content {
        text-align: center;
        padding: 40px 20px;
        max-width: 100%;
        margin-top: -150px;
    }
}

/* Value Prop Section */
.value-prop-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    border-radius: 40px;
}

.value-prop-section p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.value-prop-section p:last-child {
    margin-bottom: 0;
}

/* Stats adjustments */
.stats-section-hero {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 1) 0%, rgba(18, 18, 26, 0.4) 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-width: none; /* Override default section width */
    width: 100%;
}

/* Stats */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(0.95); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.05); }
}

.stats-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 20px;
}

.stats-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

/* Separator line between numbers and labels */
.stats-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.5) 20%, rgba(197, 160, 89, 0.5) 80%, transparent);
    margin: 0 auto;
    width: 0;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.stats-separator.visible {
    width: 70%;
    opacity: 1;
}

/* Mobile stats - hidden on desktop */
.stats-mobile {
    display: none;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.15) 0%, transparent 50%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #f0d89e 50%, var(--accent-primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
    filter: drop-shadow(0 4px 20px rgba(197, 160, 89, 0.4));
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: all 0.6s ease;
}

.stat-item:hover .stat-number::after {
    opacity: 1;
    width: 100px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    position: relative;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-label {
    color: var(--accent-primary);
    transform: translateY(-5px);
}

/* Separator line between numbers and labels */
.stats-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.5) 20%, rgba(197, 160, 89, 0.5) 80%, transparent);
    margin: 0 auto;
    width: 0;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.stats-separator.visible {
    width: 70%;
    opacity: 1;
}

/* Animated Wave Divider */
.section-divider {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: 80%;
    height: 10px; /* Reduced height/thickness */
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    display: block;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

/* Wave Animation */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 3s; /* Fastest */
    fill: rgba(197, 160, 89, 0.1);
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 5s; /* Fastest */
    fill: rgba(197, 160, 89, 0.25);
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s; /* Fastest */
    fill: rgba(197, 160, 89, 0.4);
}

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Contact Section */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.contact-item svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-map {
    width: 100%;
    height: 290px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(92%) contrast(90%);
}

/* Contact Form */
.contact-form {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    opacity: 0;
    transform: translateY(40px);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map {
        height: 200px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

#service {
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(197, 160, 89, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(197, 160, 89, 0.15),
        inset 0 0 20px rgba(197, 160, 89, 0.05);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 40px rgba(197, 160, 89, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(197, 160, 89, 0.1);
    color: var(--accent-primary);
}

.hero-cta.btn {
    padding: 18px 52px;
    font-size: 14px;
    letter-spacing: 0.15em;
    border-color: var(--accent-primary);
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 0 30px rgba(197, 160, 89, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(197, 160, 89, 0.1);
    position: relative;
    overflow: hidden;
    /* Override base btn transition to prevent GSAP conflict on opacity and transform */
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.hero-cta.btn {
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ctaPulse {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(197, 160, 89, 0.4),
            0 4px 20px rgba(0, 0, 0, 0.3),
            inset 0 0 20px rgba(197, 160, 89, 0.1),
            0 0 0 0 rgba(197, 160, 89, 0.4);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(197, 160, 89, 0.6),
            0 4px 25px rgba(0, 0, 0, 0.4),
            inset 0 0 25px rgba(197, 160, 89, 0.15),
            0 0 0 10px rgba(197, 160, 89, 0.1);
    }
}

.hero-cta.btn:hover {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.3), rgba(197, 160, 89, 0.15));
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 50px rgba(197, 160, 89, 0.6),
        0 8px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(197, 160, 89, 0.2);
    transform: translateY(-3px) scale(1.02);
    color: #fff;
}

.contact-form .btn {
    width: 100%;
    padding: 18px 40px;
    font-size: 16px;
}

/* Footer */
footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    background: rgba(10, 10, 15, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.footer-links a:hover { 
    color: var(--text-primary); 
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-social a:hover {
    color: var(--accent-primary);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-certs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-cert {
    padding: 8px 16px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-primary);
}

/* Gallery Section */
.gallery-section {
    padding-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: rgba(18, 18, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0; /* Animated in via JS */
    transform: translateY(20px);
}

.gallery-item:hover {
    border-color: rgba(197, 160, 89, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 48px;
    height: 48px;
    background: rgba(197, 160, 89, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-controls {
    text-align: center;
    margin-top: 40px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2010;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-primary);
    color: black;
}

.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* Mobile Lightbox - chevrons and close at bottom */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 30px;
        transform: none;
        width: 60px;
        height: 60px;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .lightbox-prev {
        left: calc(50% - 105px);
    }
    
    .lightbox-close {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .lightbox-next {
        right: calc(50% - 105px);
    }
}

/* FAQ Section */
.faq-section {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(18, 18, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(197, 160, 89, 0.2);
    background: rgba(18, 18, 26, 0.6);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question i {
    color: var(--accent-primary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-question {
    color: var(--accent-primary);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(10, 10, 15, 0.3);
}

.faq-answer p {
    padding: 20px;
    padding-bottom: 8px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.faq-answer p:first-child {
    padding-top: 20px;
}

.faq-answer p:last-child {
    padding-bottom: 20px;
}

.faq-answer ul {
    padding: 0 20px 20px 40px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.faq-answer ul li {
    margin-bottom: 8px;
    list-style-type: disc;
    color: var(--accent-primary);
}

.faq-answer ul li:last-child {
    margin-bottom: 0;
}

.faq-answer ul li span {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-numbers { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    .stats-labels { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    .stat-number { font-size: clamp(36px, 5vw, 56px); }
}

@media (max-width: 768px) {
    nav { 
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 9999;
        /* Handle notch/status bar spacing */
        padding-top: max(15px, env(safe-area-inset-top));
        padding-bottom: 15px;
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: nowrap;
        justify-content: center;
        min-height: 80px;
        /* Use solid background on mobile to prevent transparency issues */
        background: #0a0a0f;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        /* Prevent any movement during scroll */
        will-change: transform;
        transform: translate3d(0,0,0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
    }
    .nav-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
        width: 100%;
        position: relative;
    }
    .nav-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-links { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
    }
    .logo {
        margin: 0 auto;
    }
    .logo img {
        height: 60px;
    }
    section, .services-container { padding: 50px 20px; }
    .hero { 
        min-height: 100svh;
        height: 100vh;
        max-height: 900px;
    }
    .hero-content { 
        padding: 100px 15px 0;
        transform: translateY(-50px);
    }
    .hero h1 { 
        font-size: clamp(36px, 10vw, 56px);
        margin-bottom: 20px;
    }
    .hero .subheadline { 
        font-size: clamp(14px, 4vw, 18px); 
        margin-bottom: 30px;
        line-height: 1.5;
    }
    .certifications { 
        gap: 10px;
        margin-bottom: 30px;
    }
    .cert-badge { 
        padding: 8px 14px; 
        font-size: 10px;
    }
    .scroll-indicator { 
        bottom: 25px;
    }
    .feature-row { flex-direction: column !important; gap: 40px; margin-bottom: 80px; }
    .feature-visual { height: 250px; width: 100%; }
    /* Hide desktop stats on mobile and show mobile stats */
    .stats-grid {
        display: none;
    }
    .stats-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-section-hero {
        padding: 40px 0;
    }
    .stat-item {
        padding: 20px;
        border-radius: 12px;
        background: rgba(18, 18, 26, 0.3);
        border: 1px solid rgba(197, 160, 89, 0.1);
    }
    .stat-number { 
        font-size: clamp(40px, 10vw, 56px);
        margin-bottom: 5px;
    }
    .stat-label { 
        font-size: 14px;
        line-height: 1.4;
    }
    .contact-form { padding: 30px; }
}

@media (max-width: 480px) {
    .hero { 
        min-height: 100svh;
        height: 100vh;
        max-height: 800px;
    }
    .hero-content { 
        padding: 80px 15px 0;
        transform: translateY(-30px);
    }
    .hero h1 { 
        font-size: clamp(28px, 9vw, 42px);
        margin-bottom: 15px;
    }
    .hero .subheadline { 
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    .certifications { 
        flex-direction: column; 
        gap: 8px; 
        align-items: center;
        margin-bottom: 25px;
    }
    .cert-badge { 
        width: fit-content;
    }
}

/* WebGL Fallback */
.webgl-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #12121a 0%, #0a0a0f 100%);
    z-index: 1;
}

.no-webgl .webgl-fallback {
    display: block;
}

/* Team Section Styles */
.team-section {
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 120px;
    padding: 80px 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out;
    display: flex;
    flex-direction: column;
    will-change: transform, border-color, box-shadow;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #0a0a0f;
    position: relative;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease-out, filter 0.15s ease-out;
    filter: grayscale(20%);
    will-change: transform, filter;
}

.team-card:hover .team-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-info h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.team-role {
    font-size: 14px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0 15px 0;
    width: 100%;
}

.team-contact-reveal {
    width: 100%;
    padding: 10px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--accent-primary);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.team-contact-reveal:hover {
    background: rgba(197, 160, 89, 0.2);
    transform: translateY(-2px);
}

.team-contact-info {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.team-contact-info.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.team-contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.team-contact-info a:hover {
    color: var(--accent-primary);
}

.team-contact-info i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    opacity: 0.8;
}

.team-badge {
    margin-top: auto;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.team-badge i {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.team-badge span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Captcha Modal */
.captcha-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.captcha-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.captcha-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.captcha-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.captcha-close:hover {
    background: var(--accent-primary);
    color: black;
}

.captcha-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.captcha-content > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.captcha-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px dashed rgba(197, 160, 89, 0.4);
    border-radius: 12px;
    padding: 20px 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--accent-primary);
    margin-bottom: 15px;
    user-select: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.captcha-refresh:hover {
    color: var(--accent-primary);
    background: rgba(197, 160, 89, 0.1);
}

.captcha-refresh i {
    width: 14px;
    height: 14px;
}

.captcha-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    text-align: center;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.captcha-input::placeholder {
    letter-spacing: normal;
    text-transform: none;
    font-size: 16px;
}

.captcha-error {
    color: #ff6b6b;
    font-size: 14px;
    min-height: 20px;
    margin-bottom: 15px;
}

.captcha-submit {
    width: 100%;
}

.captcha-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toastr Customization */
.toast {
    min-width: 350px !important;
}

#toast-container > div {
    width: 350px !important;
    max-width: 400px !important;
}
