/* Variables CSS */
:root {
    /* EXACT Specified Color Palette */
    --color-primary-dark: #391C0B;    /* Darkest coffee/espresso */
    --color-primary-medium: #6D3B07;  /* Rich coffee/bronze */
    --color-primary-light: #D69456;   /* Golden caramel */
    --color-primary-cream: #FFCA99;   /* Light cream/peach */
    
    /* Extended palette based on specified colors */
    --color-coffee-darkest: #391C0B;  /* Your specified dark */
    --color-coffee-dark: #4A2410;     /* Slightly lighter */
    --color-coffee-medium: #6D3B07;   /* Your specified medium */
    --color-coffee-light: #8B4D1A;    /* Lighter coffee */
    --color-caramel-dark: #B8672D;    /* Darker caramel */
    --color-caramel: #D69456;         /* Your specified caramel */
    --color-caramel-light: #E5A66B;   /* Lighter caramel */
    --color-cream-dark: #F5B885;      /* Darker cream */
    --color-cream: #FFCA99;           /* Your specified cream */
    --color-cream-light: #FFD6AD;     /* Lighter cream */
    --color-cream-lightest: #FFF2E6;  /* Lightest cream */
    
    /* Light theme amber scale */
    --color-amber-light-900: #391C0B;       /* Primary dark text */
    --color-amber-light-800: #4A2410;       /* Secondary dark text */
    --color-amber-light-700: #6D3B07;       /* Medium text */
    --color-amber-light-600: #D69456;       /* Primary accent */
    --color-amber-light-500: #E5A66B;       /* Light accent */
    --color-amber-light-400: #F5B885;       /* Lighter accent */
    --color-amber-light-300: #FFCA99;       /* Cream accent */
    --color-amber-light-200: #FFD6AD;       /* Light cream */
    --color-amber-light-100: #FFF2E6;       /* Lightest background */
    --color-amber-light-50: #FFFBF7;        /* Ultra light background */
    
    /* Functional amber mapping for light theme */
    --color-amber-900: var(--color-amber-light-900);
    --color-amber-800: var(--color-amber-light-800);
    --color-amber-700: var(--color-amber-light-700);
    --color-amber-600: var(--color-amber-light-600);
    --color-amber-500: var(--color-amber-light-500);
    --color-amber-400: var(--color-amber-light-400);
    --color-amber-300: var(--color-amber-light-300);
    --color-amber-200: var(--color-amber-light-200);
    --color-amber-100: var(--color-amber-light-100);
    --color-amber-50: var(--color-amber-light-50);
    
    --color-orange-900: #391C0B;
    --color-orange-800: #4A2410;
    --color-orange-700: #6D3B07;
    --color-orange-600: #D69456;
    --color-orange-500: #E5A66B;
    --color-orange-400: #F5B885;
    --color-orange-300: #FFCA99;
    --color-orange-200: #FFD6AD;
    --color-orange-100: #FFF2E6;
    --color-orange-50: #FFFBF7;
    
    /* Background colors - use consistent naming */
    --color-white: #FEFEFE;
    
    /* Extended Mocha Palette */
    --color-mocha-50: #FDF7F0;       /* Lightest cream */
    --color-mocha-100: #F4E6D7;      /* Light cream */
    --color-mocha-200: #E8C8A0;      /* Soft beige */
    --color-mocha-300: #DDAA73;      /* Light caramel */
    --color-mocha-400: #D69456;      /* Main caramel */
    --color-mocha-500: #B8743A;      /* Medium coffee */
    --color-mocha-600: #9A5A2A;      /* Dark coffee */
    --color-mocha-700: #7C441A;      /* Darker coffee */
    --color-mocha-800: #6D3B07;      /* Rich coffee */
    --color-mocha-900: #391C0B;      /* Deep espresso */
    
    /* Functional Colors */
    --color-gold: #D69456;           /* Using caramel as gold */
    --color-bronze: #B8743A;         /* Medium coffee as bronze */
    
    /* Neutral Grays with Mocha Tint */
    --color-gray-50: #FDFCFA;
    --color-gray-100: #F7F4F0;
    --color-gray-200: #EDE6DC;
    --color-gray-300: #D4C4B0;
    --color-gray-400: #A89075;
    --color-gray-500: #8B7355;
    --color-gray-600: #6F5940;
    --color-gray-700: #5A462E;
    --color-gray-800: #453520;
    --color-gray-900: #2F2415;
    
    /* Background Options - Alternative arrière-plans moins frappants */
    --bg-warm-cream: #FFFBF7;        /* Crème chaude (précédent) */
    --bg-awards-cream: #FFF2E6;      /* Crème Prix & Distinctions (actuel) */
    --bg-soft-pearl: #FDF9F4;        /* Perle douce */
    --bg-whisper-beige: #FAF6F1;     /* Beige murmure */
    --bg-ivory-mist: #F8F4EF;        /* Brume d'ivoire */
    --bg-sand-silk: #F6F2ED;         /* Soie de sable */
    --bg-linen-dream: #F9F5F0;       /* Rêve de lin */
    --bg-paper-moon: #FBF7F2;        /* Lune de papier */
    
    /* React-style utility colors */
    /* Pour changer l'arrière-plan : remplacer --bg-awards-cream par une autre option ci-dessus */
    --color-background: var(--bg-awards-cream);
    --color-foreground: var(--color-amber-900);
    --color-primary: var(--color-amber-600);
    --color-primary-foreground: #FFFFFF;
    --color-secondary: var(--color-amber-100);
    --color-secondary-foreground: var(--color-amber-900);
    --color-muted: var(--color-amber-700);
    --color-muted-foreground: var(--color-amber-700);
    --color-accent: var(--color-amber-50);
    --color-accent-foreground: var(--color-amber-900);
    --color-border: var(--color-amber-200);
    --color-input: var(--color-amber-200);
    --color-ring: var(--color-amber-600);

    /* Light Theme Text Variables */
    --dark-text-primary: var(--color-amber-900);     /* Dark text for light theme */
    --dark-text-secondary: var(--color-gray-600);    /* Secondary dark text */
}

/* Dark Theme Variables */
[data-theme="dark"] {
    /* Dark Primary Colors */
    --color-primary-dark: #1A0F07;    /* Very dark coffee */
    --color-primary-medium: #2B1A0F;  /* Dark coffee */
    --color-primary-light: #4A2F1A;   /* Medium coffee */
    --color-primary-cream: #6B4526;   /* Dark caramel */

    /* Dark theme amber scale - override the functional mapping */
    --color-amber-900: #F5B885;       /* Light text on dark */
    --color-amber-800: #E5A66B;       /* Secondary light text */
    --color-amber-700: #D69456;       /* Medium text */
    --color-amber-600: #FFCA99;       /* Primary accent (lighter) */
    --color-amber-500: #FFD6AD;       /* Light accent */
    --color-amber-400: #FFF2E6;       /* Lighter accent */
    --color-amber-300: #FFFBF7;       /* Very light accent */
    --color-amber-200: #2B1A0F;       /* Dark border */
    --color-amber-100: #1A0F07;       /* Dark background */
    --color-amber-50: #0F0805;        /* Darkest background */

    /* Dark Orange Scale */
    --color-orange-900: #F5B885;
    --color-orange-800: #E5A66B;
    --color-orange-700: #D69456;
    --color-orange-600: #FFCA99;
    --color-orange-500: #FFD6AD;
    --color-orange-400: #FFF2E6;
    --color-orange-300: #FFFBF7;
    --color-orange-200: #2B1A0F;
    --color-orange-100: #1A0F07;
    --color-orange-50: #0F0805;

    /* Dark Cream Colors */
    --color-cream: #2B1A0F;
    --color-cream-light: #1A0F07;
    --color-cream-lightest: #0F0805;
    --color-white: #1A0F07;

    /* Dark Functional Colors */
    --color-background: #0F0805;
    --color-foreground: #F5B885;
    --color-primary: #FFCA99;
    --color-primary-foreground: #1A0F07;
    --color-secondary: #2B1A0F;
    --color-secondary-foreground: #F5B885;
    --color-muted: #6B4526;
    --color-muted-foreground: #D69456;
    --color-accent: #2B1A0F;
    --color-accent-foreground: #F5B885;
    --color-border: #4A2F1A;
    --color-input: #4A2F1A;
    --color-ring: #FFCA99;

    /* Dark Grays */
    --color-gray-50: #2F2415;
    --color-gray-100: #453520;
    --color-gray-200: #5A462E;
    --color-gray-300: #6F5940;
    --color-gray-400: #8B7355;
    --color-gray-500: #A89075;
    --color-gray-600: #D4C4B0;
    --color-gray-700: #EDE6DC;
    --color-gray-800: #F7F4F0;
    --color-gray-900: #FDFCFA;

    /* Dark Theme Text Variables */
    --dark-text-primary: #F5B885;        /* Light warm text */
    --dark-text-secondary: #D69456;      /* Secondary warm text */
}

/* Dark theme specific improvements for NON-HERO sections */
[data-theme="dark"] body {
    background-color: var(--color-background);
    color: var(--color-foreground);
}

[data-theme="dark"] .intro {
    background: linear-gradient(135deg, var(--color-primary-medium) 0%, var(--color-amber-100) 30%, var(--color-background) 70%, var(--color-primary-dark) 100%);
}

[data-theme="dark"] .expertise {
    background: linear-gradient(135deg, var(--color-amber-100) 0%, var(--color-primary-dark) 30%, var(--color-background) 70%, var(--color-amber-50) 100%);
}

:root {
    /* Typography - Plus élégante */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing System - 8px base unit (0.5rem) */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Legacy spacing (will be phased out) */
    --space-xs: var(--space-2);
    --space-sm: var(--space-4);
    --space-md: var(--space-6);
    --space-lg: var(--space-8);
    --space-xl: var(--space-12);
    --space-2xl: var(--space-16);
    --space-3xl: var(--space-24);
    
    /* Responsive spacing modifiers */
    --space-section-sm: var(--space-16);   /* 64px */
    --space-section-md: var(--space-20);   /* 80px */
    --space-section-lg: var(--space-24);   /* 96px */
    --space-section-xl: var(--space-32);   /* 128px */
    
    /* Component-specific spacing */
    --space-card-padding: var(--space-8);      /* 32px */
    --space-card-gap: var(--space-10);         /* 40px */
    --space-button-padding-x: var(--space-8);  /* 32px */
    --space-button-padding-y: var(--space-4);  /* 16px */
    --space-grid-gap: var(--space-10);         /* 40px */
    
    /* Layout */
    --container-max: 1400px;
    --container-padding: var(--space-8);      /* 32px */
    --container-padding-mobile: var(--space-6); /* 24px */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 32px;
    
    /* Transitions & Animations */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive Spacing Overrides */
@media (max-width: 768px) {
    :root {
        /* Scale down spacing for mobile */
        --space-section-sm: var(--space-12);   /* 48px */
        --space-section-md: var(--space-16);   /* 64px */
        --space-section-lg: var(--space-20);   /* 80px */
        --space-section-xl: var(--space-24);   /* 96px */
        
        --space-card-padding: var(--space-6);      /* 24px */
        --space-card-gap: var(--space-8);          /* 32px */
        --space-grid-gap: var(--space-8);          /* 32px */
    }
}

@media (max-width: 480px) {
    :root {
        /* Further scale down for very small screens */
        --space-section-sm: var(--space-10);   /* 40px */
        --space-section-md: var(--space-12);   /* 48px */
        --space-section-lg: var(--space-16);   /* 64px */
        --space-section-xl: var(--space-20);   /* 80px */
        
        --space-card-padding: var(--space-4);      /* 16px */
        --space-card-gap: var(--space-6);          /* 24px */
        --space-grid-gap: var(--space-6);          /* 24px */
    }
}

/* Focus Indicators */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Custom focus for buttons and interactive elements */
button:focus,
a:focus,
.nav-link:focus,
.theme-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: auto;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-foreground);
    /* Arrière-plan dégradé subtil harmonisé avec la section Prix & Distinctions */
    background: linear-gradient(135deg, 
        var(--color-background) 0%, 
        var(--bg-warm-cream) 40%, 
        var(--bg-soft-pearl) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Force UTF-8 rendering */
    padding-top: 80px; /* Espace global pour navbar fixe */
    unicode-bidi: embed;
    font-feature-settings: "liga" 1, "kern" 1;
    /* Ultra-smooth performance optimizations */
    will-change: scroll-position;
}

/* Exceptions pour les pages avec hero full-screen */
.portfolio-page body,
.project-page body {
    padding-top: 0; /* Pas d'espace car hero gère l'espacement */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Espacement pour le footer */
main {
    margin-bottom: 4rem; /* Espace avant le footer */
}

/* Exceptions pour pages avec sections déjà espacées */
.portfolio-page main,
.project-page main {
    margin-bottom: 2rem; /* Moins d'espace car sections déjà bien espacées */
}

/* Typography Améliorée */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 600;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
}

p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-gray-700);
}

.lead {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-gray-600);
    font-weight: 400;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.375rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

/* Container Amélioré */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section spacing */
section {
    padding: 5rem 0;
    scroll-margin-top: 2rem;
}

section:first-of-type {
    padding-top: 0;
}

/* Instant scroll behavior */
html {
    scroll-behavior: auto;
}

/* Focus indicators for accessibility */
.btn:focus,
.filter-btn:focus,
button:focus {
    outline: 2px solid var(--color-amber-600);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--container-padding-mobile);
    }
    
    /* Mobile section spacing */
    section {
        padding: var(--space-section-lg) 0;
        scroll-margin-top: 1rem;
    }
    
    /* Mobile typography adjustments */
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile filter buttons */
    .projects-filter {
        gap: 1rem;
        margin-bottom: 3rem;
        padding: 1rem 0;
    }
    
    .filter-btn {
        padding: var(--space-3) var(--space-6);
        font-size: 0.85rem;
    }
    
    /* Mobile animations - reduce motion on small screens */
    .project-card,
    .stat-item,
    .expertise-item {
        will-change: auto;
    }
    
    /* Disable complex animations on mobile for performance */
    @media (max-width: 480px) {
        .intro::after,
        .expertise::before {
            animation: none;
        }
        
        .floating-shape {
            display: none;
        }
        
        .stat-item:hover,
        .expertise-item:hover {
            transform: none;
        }
    }
}

/* Buttons Modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: all var(--transition-smooth);
    cursor: pointer;
    letter-spacing: 0.025em;
    font-size: var(--text-sm);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    border-color: var(--color-secondary);
    box-shadow: 
        0 8px 25px rgba(109, 59, 7, 0.3),
        0 3px 10px rgba(57, 28, 11, 0.2);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    /* Performance optimizations */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 202, 153, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-mocha-900) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(109, 59, 7, 0.4),
        0 5px 15px rgba(57, 28, 11, 0.3);
    border-color: var(--color-primary);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    backdrop-filter: blur(8px);
    font-weight: 600;
    /* Performance optimizations */
    will-change: transform, background;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(109, 59, 7, 0.3),
        0 4px 12px rgba(57, 28, 11, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-bronze) 100%);
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: 
        0 8px 25px rgba(214, 148, 86, 0.3),
        0 3px 10px rgba(184, 116, 58, 0.2);
    font-weight: 600;
    /* Performance optimizations */
    will-change: transform, box-shadow;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-bronze) 0%, var(--color-accent) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(214, 148, 86, 0.4),
        0 5px 15px rgba(184, 116, 58, 0.3);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

.main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-gray-700);
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Gallery Section */
.hero-gallery-container {
    position: relative;
    height: 300vh; /* Reduced for better performance */
    background: linear-gradient(135deg, var(--color-amber-50) 0%, var(--color-amber-100) 25%, var(--color-orange-50) 75%, var(--color-orange-100) 100%);
    overflow: hidden;
    /* Performance optimizations */
    will-change: transform;
    contain: layout style paint;
    --overlay-opacity: 0;
}

.hero-gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(57, 28, 11, var(--overlay-opacity)) 100%);
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.1s ease;
    /* TEMPORARY: Disable overlay to test */
    display: none !important;
}

.hero-gallery-scroll {
    position: relative;
    height: 100%;
    transform: translateZ(0); /* Force GPU acceleration */
}

.gallery-grid {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr 0.5fr 0.5fr 1fr;
    gap: 1rem;
    padding: 1rem;
    z-index: 10; /* Au-dessus du texte */
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.gallery-cell {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 
        0 25px 50px rgba(217, 119, 6, 0.15),
        0 8px 16px rgba(234, 88, 12, 0.1);
    border: 2px solid var(--color-amber-200);
    transform: scale(1) translate(0%, 0);
    opacity: 1;
    z-index: 20; /* Images au-dessus du texte */
    /* Performance optimizations */
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* BentoGrid Component - Exact React Implementation */
.bento-grid {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 0;
    height: 120vh;
    width: 100%;
    padding: 1rem;
    display: grid;
    gap: 1rem;
    /* Default variant styles - Simplified layout */
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 2fr 1fr 1fr;
}

/* BentoGrid Variants - Exact React CVA Match */
.bento-grid.variant-default {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr 0.5fr 0.5fr 1fr;
}

/* BentoGrid transform origins - React exact replication */
.bento-grid > *:first-child {
    transform-origin: top right;
}

.bento-grid > *:nth-child(3) {
    transform-origin: bottom right;
}

.bento-grid > *:nth-child(4) {
    transform-origin: top right;
}

/* BentoGrid layout - Exact React class system */
.bento-grid.variant-default > *:first-child {
    grid-column: span 8;
    grid-row: span 3;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:first-child {
        grid-column: span 6;
    }
}

.bento-grid.variant-default > *:nth-child(2) {
    grid-column: span 4;
    grid-row: span 1;
    display: block;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(2) {
        grid-column: span 2;
        grid-row: span 2;
        display: block;
    }
}

.bento-grid.variant-default > *:nth-child(3) {
    grid-column: span 2;
    display: block;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(3) {
        grid-row: span 2;
        display: block;
    }
}

.bento-grid.variant-default > *:nth-child(4) {
    grid-column: span 4;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(4) {
        grid-column: span 3;
    }
}

.bento-grid.variant-default > *:nth-child(5) {
    grid-column: span 4;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(5) {
        grid-column: span 3;
    }
}

.bento-grid.variant-three-cells {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.bento-grid.variant-four-cells {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* BentoCell - React Transform Origins */
.bento-cell {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 
        0 25px 50px rgba(217, 119, 6, 0.15),
        0 8px 16px rgba(234, 88, 12, 0.1);
    border: 2px solid var(--color-amber-200);
    transform: scale(1) translate(0%, 0);
    opacity: 1;
    /* Performance */
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Default Variant Cell Positioning - Exact React Match */
.bento-grid.variant-default .bento-cell:nth-child(1) {
    grid-column: span 6;
    grid-row: span 3;
    transform-origin: top right;
}

.bento-grid.variant-default .bento-cell:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
    transform-origin: top right;
}

.bento-grid.variant-default .bento-cell:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
    transform-origin: bottom right;
}

.bento-grid.variant-default .bento-cell:nth-child(4) {
    grid-column: span 3;
    grid-row: span 1;
    transform-origin: top right;
}

.bento-grid.variant-default .bento-cell:nth-child(5) {
    grid-column: span 3;
    grid-row: span 1;
    transform-origin: top right;
}

/* Three Cells Variant */
.bento-grid.variant-three-cells .bento-cell:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    transform-origin: top right;
}

.bento-grid.variant-three-cells .bento-cell:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
    transform-origin: top right;
}

.bento-grid.variant-three-cells .bento-cell:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
    transform-origin: bottom right;
}

/* Four Cells Variant */
.bento-grid.variant-four-cells .bento-cell:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
    transform-origin: top right;
}

.bento-grid.variant-four-cells .bento-cell:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
    transform-origin: top right;
}

.bento-grid.variant-four-cells .bento-cell:nth-child(3) {
    grid-column: span 2;
    grid-row: span 1;
    transform-origin: bottom right;
}

.bento-grid.variant-four-cells .bento-cell:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
    transform-origin: top right;
}

/* Legacy support for existing classes */
.gallery-cell,
.bento-cell-1,
.bento-cell-2,
.bento-cell-3,
.bento-cell-4,
.bento-cell-5 {
    /* Inherit bento-cell styles */
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 
        0 25px 50px rgba(217, 119, 6, 0.15),
        0 8px 16px rgba(234, 88, 12, 0.1);
    border: 2px solid var(--color-amber-200);
    transform: scale(1) translate(0%, 0);
    opacity: 1;
    /* Performance */
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-cell-1 {
    grid-column: 1 / span 6;
    grid-row: 1 / span 3;
    transform-origin: top right;
}

.bento-cell-2 {
    grid-column: 7 / span 2;
    grid-row: 1 / span 2;
    transform-origin: top right;
}

.bento-cell-3 {
    grid-column: 7 / span 2;
    grid-row: 3 / span 2;
    transform-origin: bottom right;
    display: block !important;
    visibility: visible !important;
}

.bento-cell-4 {
    grid-column: 1 / span 3;
    grid-row: 4 / span 1;
    transform-origin: top right;
    display: block !important;
    visibility: visible !important;
}

.bento-cell-5 {
    grid-column: 4 / span 3;
    grid-row: 4 / span 1;
    transform-origin: top right;
    display: block !important;
    visibility: visible !important;
}

/* Responsive BentoGrid - React Breakpoints */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: var(--space-3);
        padding: var(--space-3);
    }
    
    .bento-cell-1 {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-cell-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bento-cell-3 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bento-cell-4 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bento-cell-5 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .container-scroll-wrapper {
        height: 300vh; /* Reduced height for mobile */
    }
    
    .bento-grid {
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

/* BentoCell Image Styles - Enhanced for Vue Principale */
.bento-image,
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Performance */
    will-change: transform, filter;
    backface-visibility: hidden;
    /* Enhanced image quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Hover effects for gallery images */
.bento-cell:hover .bento-image,
.gallery-cell:hover .gallery-image {
    transform: scale(1.04) rotate(1deg);
    filter: brightness(1.02) contrast(1.01) saturate(1.03);
}

/* Responsive image loading states */
.bento-image[loading="lazy"],
.gallery-image[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.bento-image.loaded,
.gallery-image.loaded {
    opacity: 1;
}

.gallery-cell:hover {
    border-color: var(--color-accent);
    box-shadow: 
        0 35px 70px rgba(57, 28, 11, 0.25),
        0 12px 24px rgba(214, 148, 86, 0.2);
}



/* Proof Section - React Template */
.proof-section {
    padding: var(--space-section-lg) 0;
    background: 
        linear-gradient(135deg, rgba(255, 202, 153, 0.15) 0%, rgba(214, 148, 86, 0.1) 50%, rgba(255, 202, 153, 0.15) 100%),
        linear-gradient(90deg, var(--color-amber-100) 0%, var(--color-orange-100) 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.proof-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(109, 59, 7, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214, 148, 86, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-10);
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.proof-item {
    text-align: center;
    padding: var(--space-12) var(--space-10);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 202, 153, 0.15) 50%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(109, 59, 7, 0.15),
        0 4px 16px rgba(214, 148, 86, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.proof-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(109, 59, 7, 0.2),
        0 8px 24px rgba(214, 148, 86, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 202, 153, 0.2) 50%, rgba(255, 255, 255, 0.95) 100%);
}

.proof-item:hover::before {
    left: 100%;
}

.proof-icon {
    color: var(--color-amber-600);
    margin: 0 auto 1.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(109, 59, 7, 0.1) 0%, rgba(214, 148, 86, 0.1) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.proof-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(109, 59, 7, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.proof-item:hover .proof-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(109, 59, 7, 0.15) 0%, rgba(214, 148, 86, 0.15) 100%);
    box-shadow: 0 8px 16px rgba(109, 59, 7, 0.2);
}

.proof-item:hover .proof-icon::before {
    width: 100%;
    height: 100%;
}

.proof-icon svg {
    width: 2rem;
    height: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.proof-item:hover .proof-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(109, 59, 7, 0.3));
}

.proof-item h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-amber-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-item:hover h3 {
    color: var(--color-amber-800);
    transform: translateY(-2px);
}

.proof-item p {
    color: var(--color-amber-700);
    font-size: 0.9375rem;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-item:hover p {
    color: var(--color-amber-600);
}

/* Dark theme proof section */
[data-theme="dark"] .proof-section {
    background: 
        linear-gradient(135deg, rgba(57, 28, 11, 0.15) 0%, rgba(109, 59, 7, 0.1) 50%, rgba(57, 28, 11, 0.15) 100%),
        linear-gradient(90deg, var(--dark-background-secondary) 0%, var(--dark-background-tertiary) 100%);
}

[data-theme="dark"] .proof-section::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 202, 153, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214, 148, 86, 0.05) 0%, transparent 50%);
}

[data-theme="dark"] .proof-item {
    background: linear-gradient(135deg, rgba(57, 28, 11, 0.95) 0%, rgba(109, 59, 7, 0.15) 50%, rgba(57, 28, 11, 0.9) 100%);
    border-color: rgba(255, 202, 153, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 202, 153, 0.1);
}

[data-theme="dark"] .proof-item:hover {
    background: linear-gradient(135deg, rgba(57, 28, 11, 1) 0%, rgba(109, 59, 7, 0.2) 50%, rgba(57, 28, 11, 0.95) 100%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 202, 153, 0.2);
}

[data-theme="dark"] .proof-item h3 {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .proof-item:hover h3 {
    color: var(--color-amber-300);
}

[data-theme="dark"] .proof-item p {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .proof-item:hover p {
    color: var(--color-amber-400);
}

/* Features Section - Enhanced React Template */
.features-section {
    padding: var(--space-section-lg) 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 202, 153, 0.08) 50%, rgba(255, 255, 255, 1) 100%),
        radial-gradient(ellipse at center, rgba(214, 148, 86, 0.05) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(109, 59, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(214, 148, 86, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-10);
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    padding: var(--space-10) var(--space-8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 202, 153, 0.12) 50%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 1.25rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(109, 59, 7, 0.1);
    box-shadow: 
        0 8px 24px rgba(109, 59, 7, 0.12),
        0 4px 12px rgba(214, 148, 86, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-amber-600) 0%, var(--color-orange-500) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 16px 32px rgba(109, 59, 7, 0.18),
        0 8px 16px rgba(214, 148, 86, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 202, 153, 0.15) 50%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(109, 59, 7, 0.2);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    color: var(--color-amber-600);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(109, 59, 7, 0.08) 0%, rgba(214, 148, 86, 0.08) 100%);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(109, 59, 7, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-2deg);
    background: linear-gradient(135deg, rgba(109, 59, 7, 0.12) 0%, rgba(214, 148, 86, 0.12) 100%);
    box-shadow: 0 6px 12px rgba(109, 59, 7, 0.15);
}

.feature-card:hover .feature-icon::before {
    width: 120%;
    height: 120%;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(109, 59, 7, 0.2));
}

.feature-card h3 {
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--color-amber-900);
    margin-bottom: 0.875rem;
    line-height: 1.3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover h3 {
    color: var(--color-amber-800);
    transform: translateY(-1px);
}

.feature-card p {
    color: var(--color-amber-700);
    line-height: 1.65;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

.feature-card:hover p {
    color: var(--color-amber-600);
}

/* Animation delays for staggered entrance */
.feature-card:nth-child(1) { animation-delay: 0ms; }
.feature-card:nth-child(2) { animation-delay: 100ms; }
.feature-card:nth-child(3) { animation-delay: 200ms; }
.feature-card:nth-child(4) { animation-delay: 300ms; }

/* Dark theme features section */
[data-theme="dark"] .features-section {
    background: 
        linear-gradient(135deg, var(--color-background) 0%, rgba(109, 59, 7, 0.08) 50%, var(--color-background) 100%),
        radial-gradient(ellipse at center, rgba(255, 202, 153, 0.03) 0%, transparent 70%);
}

[data-theme="dark"] .features-section::before {
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 202, 153, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(214, 148, 86, 0.03) 0%, transparent 50%);
}

[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, rgba(57, 28, 11, 0.98) 0%, rgba(109, 59, 7, 0.12) 50%, rgba(57, 28, 11, 0.95) 100%);
    border-color: rgba(255, 202, 153, 0.08);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 202, 153, 0.1);
}

[data-theme="dark"] .feature-card:hover {
    background: linear-gradient(135deg, rgba(57, 28, 11, 1) 0%, rgba(109, 59, 7, 0.15) 50%, rgba(57, 28, 11, 0.98) 100%);
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.35),
        0 8px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 202, 153, 0.15);
    border-color: rgba(255, 202, 153, 0.15);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .feature-card:hover h3 {
    color: var(--color-amber-300);
}

[data-theme="dark"] .feature-card p {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .feature-card:hover p {
    color: var(--color-amber-400);
}

/* Section Headers - React Style */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-amber-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-amber-700);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive ContainerScale */
@media (max-width: 768px) {
    .container-scale {
        width: 95vw;
        max-width: 500px;
    }
    
    .hero-content-inner {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}






@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .gallery-cell-1 {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-cell-2,
    .gallery-cell-3,
    .gallery-cell-4,
    .gallery-cell-5 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
}

/* Legacy hero styles removed - using new gallery system */

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-section-lg) 0;
    background: linear-gradient(135deg, var(--color-light) 0%, #F5E6D3 30%, var(--color-cream) 70%, var(--color-mocha-200) 100%);
    position: relative;
    /* Performance optimizations */
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
}

.testimonials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    margin-top: 4rem;
    transform: translateZ(0);
    will-change: transform;
}

.testimonials-gallery {
    position: relative;
    height: 400px;
    width: 100%;
}

.testimonial-image {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    transform: scale(0.95) rotate(0deg) translateZ(0);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(57, 28, 11, 0.12);
    border: 2px solid var(--color-mocha-200);
    z-index: 1;
    will-change: transform, opacity, box-shadow;
    backface-visibility: hidden;
}

.testimonial-image.active {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateZ(0);
    z-index: 10;
    box-shadow: 0 20px 45px rgba(57, 28, 11, 0.18);
    border-color: var(--color-accent);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.testimonials-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
    padding: 2rem 0;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.testimonial-item {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    position: absolute;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    position: relative;
}

.testimonial-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.testimonial-designation {
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-primary);
    font-style: italic;
    margin: 0;
    position: relative;
}

.testimonial-quote .word {
    display: inline-block;
    will-change: filter, opacity, transform;
    backface-visibility: hidden;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: -2rem;
    top: -1rem;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.25;
    font-family: var(--font-display);
}

.testimonials-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-light) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid var(--color-mocha-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1.25rem;
    color: var(--color-secondary);
    will-change: transform, background, border-color;
    backface-visibility: hidden;
    transform: translateZ(0);
    box-shadow: 0 4px 12px rgba(57, 28, 11, 0.08);
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-color: var(--color-secondary);
    color: var(--color-light);
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 8px 20px rgba(109, 59, 7, 0.2);
}

.nav-btn:active {
    transform: scale(0.95) translateZ(0);
}

@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .testimonials-gallery {
        height: 300px;
        order: -1;
    }
    
    .testimonials-content {
        height: auto;
        padding: 0;
    }
    
    .testimonial-quote::before {
        display: none;
    }
    
    .testimonials-nav {
        justify-content: center;
    }
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-accent);
}

.project-image {
    position: relative;
    padding-bottom: 60%; /* 5:3 Aspect Ratio - plus moderne */
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.project-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.04) rotate(1deg);
    filter: brightness(1.02) contrast(1.01);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
    opacity: 1;
    background: linear-gradient(
        135deg,
        var(--color-mocha-300) 0%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.project-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-info {
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-cream) 100%);
}

.project-info h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
}

.project-meta {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Projects Grid Améliorée */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-10);
    margin-bottom: 4rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Sections */
section {
    padding: var(--space-section-lg) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 2px;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Enhanced Introduction Section with Geometric Elements */
.intro {
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-amber-50) 30%, var(--color-white) 70%, var(--color-cream-lightest) 100%);
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-amber-600) 30%, var(--color-orange-600) 70%, transparent 100%);
    box-shadow: 0 2px 10px rgba(214, 148, 86, 0.3);
}

/* Floating geometric shapes */
.intro::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--color-amber-200) 0%, var(--color-orange-200) 50%, var(--color-amber-300) 100%);
    border-radius: 60% 40% 60% 40%;
    opacity: 0.3;
    animation: floatShape 18s ease-in-out infinite;
    will-change: transform;
    filter: blur(1px);
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro-content h2 {
    position: relative;
    margin-bottom: 2rem;
}

.intro-content h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-amber-600) 0%, var(--color-orange-600) 100%);
    border-radius: 2px;
}

.intro-content .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    position: relative;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: var(--space-10) var(--space-8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 202, 153, 0.15) 50%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(214, 148, 86, 0.12),
        0 4px 15px rgba(57, 28, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(214, 148, 86, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    backdrop-filter: blur(4px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(214, 148, 86, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(214, 148, 86, 0.25),
        0 10px 30px rgba(57, 28, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: var(--color-amber-400);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 202, 153, 0.2) 50%, rgba(255, 255, 255, 0.95) 100%);
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-amber-600);
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(214, 148, 86, 0.3);
    opacity: 1;
    visibility: visible;
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Enhanced Expertise Section with Morphing Elements */
.expertise {
    padding: 12rem 0;
    background: linear-gradient(135deg, var(--color-amber-50) 0%, var(--color-cream-lightest) 30%, #fff 70%, var(--color-amber-50) 100%);
    position: relative;
    overflow: hidden;
}

.expertise::after {
    content: '';
    position: absolute;
    top: 70%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-orange-100) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatSlow 25s ease-in-out infinite;
    filter: blur(2px);
}

/* Floating architectural elements */
.expertise::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--color-amber-100) 0%, var(--color-orange-100) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.3;
    animation: morphFloat 20s ease-in-out infinite;
    will-change: transform, border-radius;
}

@keyframes morphFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    50% { 
        transform: translateY(20px) rotate(180deg);
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    }
    75% { 
        transform: translateY(-10px) rotate(270deg);
        border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    }
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.expertise-text .section-title {
    margin-bottom: 2rem;
    position: relative;
}

.expertise-text .section-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--color-amber-200) 0%, var(--color-orange-200) 100%);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -30px) rotate(120deg); }
    66% { transform: translate(30px, -15px) rotate(240deg); }
}

.expertise-list {
    display: grid;
    gap: var(--space-10);
    margin-top: 3rem;
}

.expertise-item {
    display: flex;
    gap: var(--space-10);
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 202, 153, 0.05) 50%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 1.5rem;
    border: 2px solid rgba(214, 148, 86, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 
        0 8px 25px rgba(214, 148, 86, 0.08),
        0 3px 10px rgba(57, 28, 11, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(214, 148, 86, 0.05), transparent);
    transition: left 0.8s ease;
}

.expertise-item:hover::before {
    left: 100%;
}

.expertise-item:hover {
    transform: translateX(15px) translateY(-5px);
    box-shadow: 
        0 20px 45px rgba(214, 148, 86, 0.2),
        0 8px 25px rgba(57, 28, 11, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: var(--color-amber-400);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 202, 153, 0.1) 50%, rgba(255, 255, 255, 0.9) 100%);
}

.expertise-icon {
    font-size: 2.25rem;
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--color-amber-600) 0%, var(--color-orange-600) 50%, var(--color-amber-500) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(214, 148, 86, 0.35),
        0 4px 15px rgba(57, 28, 11, 0.15);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-orange-600) 0%, var(--color-amber-600) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expertise-item:hover .expertise-icon::before {
    opacity: 1;
}

.expertise-icon svg {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.expertise-item:hover .expertise-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 15px 40px rgba(214, 148, 86, 0.4),
        0 6px 20px rgba(57, 28, 11, 0.2);
}

.expertise-details h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--color-amber-800);
    position: relative;
}

.expertise-details p {
    color: var(--color-gray-700);
    line-height: 1.7;
    font-size: 1rem;
}

.expertise-visual {
    position: relative;
}

.expertise-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(214, 148, 86, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 15px 35px rgba(214, 148, 86, 0.15);
}

.expertise-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.expertise-image:hover img {
    transform: scale(1.05);
}

.expertise-stats {
    position: absolute;
    bottom: -3rem;
    right: -3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    z-index: 10;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(214, 148, 86, 0.1);
    border: 1px solid rgba(214, 148, 86, 0.2);
    transition: all 0.4s ease;
    min-width: 120px;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(214, 148, 86, 0.2);
}

.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-amber-600);
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-amber-600) 0%, var(--color-orange-600) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--color-gray-700);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .expertise-stats {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 2rem;
        justify-content: center;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.filter-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(214, 148, 86, 0.3);
    color: var(--color-amber-700);
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 
        0 4px 15px rgba(214, 148, 86, 0.1),
        0 2px 8px rgba(57, 28, 11, 0.05);
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-amber-500) 0%, var(--color-orange-500) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--color-amber-500);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(214, 148, 86, 0.3),
        0 4px 15px rgba(57, 28, 11, 0.1);
}

.filter-btn.active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(214, 148, 86, 0.4),
        0 5px 20px rgba(57, 28, 11, 0.15);
}

.filter-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Featured Projects Section */
.featured-projects {
    background: var(--color-white);
    position: relative;
}

/* Enhanced Projects Grid with Staggered Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-10);
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.project-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(214, 148, 86, 0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(214, 148, 86, 0.1);
    position: relative;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
}

/* Staggered hover effect */
.project-card:nth-child(even) {
    transform: translateY(20px);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02) rotateY(2deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(214, 148, 86, 0.1);
    border-color: var(--color-amber-300);
}

.project-card:nth-child(even):hover {
    transform: translateY(-5px) scale(1.02) rotateY(-2deg);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(45deg, var(--color-amber-50) 0%, var(--color-orange-50) 100%);
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(214, 148, 86, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1) saturate(1);
}

.project-card:hover .project-image img {
    transform: scale(1.04) rotate(1deg);
    filter: brightness(1.02) contrast(1.01) saturate(1.03);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(57, 28, 11, 0.85) 0%, 
        rgba(214, 148, 86, 0.9) 50%,
        rgba(255, 202, 153, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.project-category,
.project-status {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-amber-800);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.project-status {
    background: linear-gradient(135deg, var(--color-amber-500) 0%, var(--color-orange-500) 100%);
    color: white;
    border-color: transparent;
}

.project-category:hover,
.project-status:hover {
    transform: scale(1.05);
}

.project-hover {
    align-self: flex-end;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.project-card:hover .project-hover {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.view-project {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3rem;
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.view-project::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.view-project:hover::before {
    transform: translateX(100%);
}

.project-info {
    padding: 2rem;
    background: linear-gradient(135deg, white 0%, rgba(255, 202, 153, 0.05) 100%);
    position: relative;
}

.project-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, var(--color-amber-600) 0%, var(--color-orange-600) 100%);
    transition: height 0.4s ease;
}

.project-card:hover .project-info::before {
    height: 100%;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-amber-800);
    line-height: 1.3;
    position: relative;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--color-amber-700);
}

.project-meta {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.separator {
    width: 4px;
    height: 4px;
    background: var(--color-amber-400);
    border-radius: 50%;
    opacity: 0.7;
}

/* Enhanced grid responsiveness */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .project-card:nth-child(even) {
        transform: translateY(0);
    }
    
    .project-card:hover,
    .project-card:nth-child(even):hover {
        transform: translateY(-10px) scale(1.01);
    }
    
    .project-image {
        height: 250px;
    }
}

/* CTA Section */
.cta-section {
    background: 
        linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%),
        url('../images/General/Image 11.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: var(--space-section-lg) 0;
    text-align: center;
    position: relative;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-gray-900) 50%, var(--color-primary-dark) 100%);
    color: var(--color-gray-200);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-amber-400) 30%, var(--color-orange-400) 70%, transparent 100%);
    box-shadow: 0 1px 8px rgba(214, 148, 86, 0.3);
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .footer-brand {
        align-items: center;
        text-align: center;
    }
}

.footer-logo {
    width: 105px !important;
    height: 105px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    padding: 3px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    flex-shrink: 0;
}

footer .footer-logo {
    width: 105px !important;
    height: 105px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.footer-brand-text h3 {
    color: var(--color-amber-200);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    font-family: var(--font-display);
}

.footer-brand-text p {
    color: var(--color-gray-300);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-amber-200);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--color-gray-300);
    transition: color var(--transition-base);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    padding-left: 1rem;
    position: relative;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-amber-400);
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(214, 148, 86, 0.2);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-amber-300);
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(214, 148, 86, 0.1);
    border: 1px solid rgba(214, 148, 86, 0.2);
    border-radius: 50%;
    color: var(--color-amber-300);
    text-decoration: none;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.social-link:hover {
    background: var(--color-amber-400);
    color: var(--color-gray-900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 148, 86, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer Contact Info Styling */
.footer-section p:hover {
    color: var(--color-amber-300);
}

/* Dark Mode Styles */
[data-theme="dark"] footer {
    background: linear-gradient(135deg, var(--color-background) 0%, rgba(22, 20, 18, 0.95) 50%, var(--color-background) 100%);
    color: var(--color-gray-100);
}

[data-theme="dark"] footer::before {
    background: linear-gradient(90deg, transparent 0%, var(--color-amber-300) 30%, var(--color-orange-300) 70%, transparent 100%);
    box-shadow: 0 1px 8px rgba(255, 202, 153, 0.4);
}

[data-theme="dark"] .footer-brand-text h3 {
    color: var(--color-amber-100);
}

[data-theme="dark"] .footer-brand-text p {
    color: var(--color-gray-200);
}

[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4 {
    color: var(--color-amber-100);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section ul li {
    color: var(--color-gray-200);
}

[data-theme="dark"] .footer-section ul li::before {
    color: var(--color-amber-300);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 202, 153, 0.15);
}

[data-theme="dark"] .footer-links a {
    color: var(--color-gray-300);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--color-amber-200);
}

[data-theme="dark"] .social-link {
    background: rgba(255, 202, 153, 0.08);
    border-color: rgba(255, 202, 153, 0.15);
    color: var(--color-amber-200);
}

[data-theme="dark"] .social-link:hover {
    background: var(--color-amber-300);
    color: var(--color-gray-900);
}

/* Loader */
.site-loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.loader-progress {
    width: 200px;
    height: 2px;
    background-color: var(--color-gray-200);
    position: relative;
    overflow: hidden;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-secondary);
    width: 0;
    transition: width var(--transition-base);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Icon Styles */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all var(--transition-base);
}

.footer-section p svg {
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer-section p:hover svg {
    opacity: 1;
}

.mobile-contact p svg {
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.9;
}

/* React-Style Utility Classes */

/* Tailwind-like spacing utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-20 { gap: 5rem; }

/* Layout utilities */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-[350vh] { min-height: 350vh; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-sm { max-width: 24rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-left: left; }
.overflow-hidden { overflow: hidden; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }
.size-full { width: 100%; height: 100%; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Z-index utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Background utilities */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-amber-50 { --tw-gradient-from: var(--color-amber-50); --tw-gradient-to: rgba(255, 251, 235, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-orange-50 { --tw-gradient-to: rgba(255, 247, 237, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--color-orange-50), var(--tw-gradient-to); }
.to-yellow-50 { --tw-gradient-to: #fefce8; }
.from-amber-100 { --tw-gradient-from: var(--color-amber-100); --tw-gradient-to: rgba(254, 243, 199, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-orange-100 { --tw-gradient-to: var(--color-orange-100); }
.from-amber-600 { --tw-gradient-from: var(--color-amber-600); --tw-gradient-to: rgba(217, 119, 6, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-orange-600 { --tw-gradient-to: var(--color-orange-600); }
.from-amber-700 { --tw-gradient-from: var(--color-amber-700); --tw-gradient-to: rgba(180, 83, 9, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-orange-700 { --tw-gradient-to: var(--color-orange-700); }
.bg-white { background-color: #ffffff; }
.bg-background\/95 { background-color: rgba(254, 254, 254, 0.95); }

/* Text utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.tracking-tighter { letter-spacing: -0.05em; }
.text-amber-600 { color: var(--color-amber-600); }
.text-amber-700 { color: var(--color-amber-700); }
.text-amber-800 { color: var(--color-amber-800); }
.text-amber-900 { color: var(--color-amber-900); }
.text-white { color: #ffffff; }

/* Background clip utilities */
.bg-clip-text { 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-transparent { color: transparent; }

/* Border utilities */
.border { border-width: 1px; }
.border-amber-600 { border-color: var(--color-amber-600); }

/* Shadow utilities */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Backdrop utilities */
.backdrop-blur { backdrop-filter: blur(8px); }

/* Transition utilities */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Transform utilities */
.scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* Animation utilities */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }

/* Responsive utilities */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:max-w-4xl { max-width: 56rem; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
}

/* Hero Section Specific Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-amber-50) 0%, var(--color-orange-50) 50%, var(--color-amber-50) 100%);
}

.container-scroll {
    position: relative;
    width: 100%;
}

.container-scroll-wrapper {
    position: relative;
    width: 100%;
    /* React: min-h-[350vh] - Critical for scroll-driven animations */
    min-height: 350vh;
}



/* Hero Content Overlay - Viewport-centered with parallax movement */
.container-scale {
    position: fixed;
    left: 50%;
    top: 50vh;
    /* transform removed - JavaScript handles all transforms for counter-scroll */
    z-index: 300;
    width: 1000px;
    max-width: 90vw;
    text-align: center;
    pointer-events: auto;
    will-change: transform, opacity;
    backface-visibility: hidden;
    /* Flex properties to control JavaScript-set display: flex */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(57, 28, 11, 0.3);
    border: 1px solid rgba(214, 148, 86, 0.2);
    transition: backdrop-filter 0.1s ease-out;
}

/* Ensure complete disappearance when hidden */
.hero-content-inner[style*="visibility: hidden"] {
    backdrop-filter: none !important;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(214, 148, 86, 0.1);
    color: #D97706;
    border: 1px solid #D97706;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #92400E;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .title-line {
    display: block;
}

.hero-title .bg-gradient-to-r {
    background: linear-gradient(to right, #D97706, #EA580C);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #A45A08;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.hero-cta .btn-primary {
    background: linear-gradient(to right, #D97706, #EA580C);
    color: white;
    border: none;
}

.hero-cta .btn-primary:hover {
    background: linear-gradient(to right, #B45309, #C2410C);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.hero-cta .btn-outline {
    background: transparent;
    color: #D97706;
    border: 2px solid #D97706;
}

.hero-cta .btn-outline:hover {
    background: #D97706;
    color: white;
    transform: translateY(-2px);
}

.btn-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* React BentoGrid Implementation - Exact Template Replication */
.bento-grid {
    /* React: sticky left-0 top-0 z-0 h-screen w-full p-4 */
    position: sticky;
    left: 0;
    top: 0;
    z-index: 0;
    height: 100vh;
    width: 100%;
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

/* Exact React bentoGridVariants - variant: "default" */
.bento-grid.variant-default {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr 0.5fr 0.5fr 1fr;
}

/* React: [&>*:first-child]:origin-top-right */
.bento-grid > *:first-child {
    transform-origin: top right;
}

/* React: [&>*:nth-child(3)]:origin-bottom-right */
.bento-grid > *:nth-child(3) {
    transform-origin: bottom right;
}

/* React: [&>*:nth-child(4)]:origin-top-right */
.bento-grid > *:nth-child(4) {
    transform-origin: top right;
}

/* React: [&>*:first-child]:col-span-8 md:[&>*:first-child]:col-span-6 [&>*:first-child]:row-span-3 */
.bento-grid.variant-default > *:first-child {
    grid-column: span 8;
    grid-row: span 3;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:first-child {
        grid-column: span 6;
    }
}

/* React: [&>*:nth-child(2)]:col-span-2 md:[&>*:nth-child(2)]:row-span-2 */
/* FIXED: Cell 2 now visible on mobile */
.bento-grid.variant-default > *:nth-child(2) {
    grid-column: span 4;
    grid-row: span 1;
    display: block;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(2) {
        grid-column: span 2;
        grid-row: span 2;
        display: block;
    }
}

/* React: [&>*:nth-child(3)]:col-span-2 md:[&>*:nth-child(3)]:row-span-2 [&>*:nth-child(3)]:block */
.bento-grid.variant-default > *:nth-child(3) {
    grid-column: span 2;
    display: block;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(3) {
        grid-row: span 2;
        display: block;
    }
}

/* React: [&>*:nth-child(4)]:col-span-4 md:[&>*:nth-child(4)]:col-span-3 */
.bento-grid.variant-default > *:nth-child(4) {
    grid-column: span 4;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(4) {
        grid-column: span 3;
    }
}

/* React: [&>*:nth-child(5)]:col-span-4 md:[&>*:nth-child(5)]:col-span-3 */
.bento-grid.variant-default > *:nth-child(5) {
    grid-column: span 4;
}

@media (min-width: 768px) {
    .bento-grid.variant-default > *:nth-child(5) {
        grid-column: span 3;
    }
}

/* React BentoGrid Alternative Variants */
.bento-grid.variant-threeCells {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.bento-grid.variant-threeCells > *:first-child {
    grid-column: span 2;
}

.bento-grid.variant-fourCells {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.bento-grid.variant-fourCells > *:first-child {
    grid-column: span 1;
}

.bento-grid.variant-fourCells > *:nth-child(2) {
    grid-column: span 2;
}

.bento-grid.variant-fourCells > *:nth-child(3) {
    grid-column: span 2;
}

.bento-cell {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 
        0 25px 50px rgba(217, 119, 6, 0.15),
        0 8px 16px rgba(234, 88, 12, 0.1);
    border: 2px solid var(--color-amber-200);
    will-change: transform, opacity, box-shadow;
    backface-visibility: hidden;
    contain: layout style paint;
    transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.bento-image.loaded {
    filter: blur(0px);
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.btn-primary:hover {
    background-color: var(--color-amber-700);
}

.btn-outline {
    border-color: var(--color-input);
    background-color: var(--color-background);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-accent-foreground);
}

.btn-lg {
    height: 2.75rem;
    border-radius: 0.375rem;
    padding-left: 2rem;
    padding-right: 2rem;
}


/* FAQ Section Enhanced Styles */
.faq-section {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 202, 153, 0.3) 50%, rgba(255, 255, 255, 0.95) 100%),
        url('../images/General/Image 11.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(109, 59, 7, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(214, 148, 86, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.faq-container {
    position: relative;
    z-index: 2;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 202, 153, 0.12) 50%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 1.25rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(109, 59, 7, 0.08);
    box-shadow: 
        0 6px 20px rgba(109, 59, 7, 0.1),
        0 3px 8px rgba(214, 148, 86, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 28px rgba(109, 59, 7, 0.15),
        0 6px 12px rgba(214, 148, 86, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 202, 153, 0.15) 50%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(109, 59, 7, 0.12);
}

.faq-item:hover::before {
    left: 100%;
}

.faq-question {
    padding: 2rem 2.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-question:focus {
    outline: 2px solid var(--color-amber-400);
    outline-offset: 2px;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--color-amber-900);
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-question h3 {
    color: var(--color-amber-800);
}

.faq-icon {
    color: var(--color-amber-600);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item:hover .faq-icon {
    color: var(--color-amber-700);
    transform: scale(1.05);
}

.faq-item.expanded .faq-icon {
    transform: rotate(45deg);
    color: var(--color-amber-800);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer > div {
    padding: 0 2.5rem 2rem 2.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--color-amber-700);
    line-height: 1.65;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-answer p {
    color: var(--color-amber-600);
}

/* Dark theme FAQ styles */
[data-theme="dark"] .faq-section {
    background: 
        linear-gradient(135deg, var(--color-background) 0%, rgba(109, 59, 7, 0.08) 50%, var(--color-background) 100%),
        radial-gradient(ellipse at center, rgba(255, 202, 153, 0.03) 0%, transparent 70%);
}

[data-theme="dark"] .faq-section::before {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 202, 153, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(214, 148, 86, 0.02) 0%, transparent 50%);
}

[data-theme="dark"] .faq-item {
    background: linear-gradient(135deg, rgba(57, 28, 11, 0.98) 0%, rgba(109, 59, 7, 0.12) 50%, rgba(57, 28, 11, 0.95) 100%);
    border-color: rgba(255, 202, 153, 0.08);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 3px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 202, 153, 0.1);
}

[data-theme="dark"] .faq-item:hover {
    background: linear-gradient(135deg, rgba(57, 28, 11, 1) 0%, rgba(109, 59, 7, 0.15) 50%, rgba(57, 28, 11, 0.98) 100%);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 202, 153, 0.15);
    border-color: rgba(255, 202, 153, 0.12);
}

[data-theme="dark"] .faq-question h3 {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .faq-item:hover .faq-question h3 {
    color: var(--color-amber-300);
}

[data-theme="dark"] .faq-answer p {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .faq-item:hover .faq-answer p {
    color: var(--color-amber-400);
}

/* Testimonials Animation Styles */
.testimonial-image {
    opacity: 0.7;
    scale: 0.95;
    z-index: 1;
    transform: rotate(0deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-image.active {
    opacity: 1;
    scale: 1;
    z-index: 999;
    transform: rotate(0deg);
}

.testimonial-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing Card Styles */
.pricing-card.popular {
    background: linear-gradient(135deg, var(--color-amber-600) 0%, var(--color-orange-600) 100%);
    color: white;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: var(--color-amber-600);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Spacing Utility Classes */

/* Margin utilities */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-10 { margin: var(--space-10); }
.m-12 { margin: var(--space-12); }
.m-16 { margin: var(--space-16); }
.m-20 { margin: var(--space-20); }
.m-24 { margin: var(--space-24); }

/* Margin top utilities */
.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }
.mt-24 { margin-top: var(--space-24); }

/* Margin bottom utilities */
.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-20 { margin-bottom: var(--space-20); }
.mb-24 { margin-bottom: var(--space-24); }

/* Margin left utilities */
.ml-0 { margin-left: var(--space-0); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-5 { margin-left: var(--space-5); }
.ml-6 { margin-left: var(--space-6); }
.ml-8 { margin-left: var(--space-8); }
.ml-10 { margin-left: var(--space-10); }
.ml-12 { margin-left: var(--space-12); }

/* Margin right utilities */
.mr-0 { margin-right: var(--space-0); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-5 { margin-right: var(--space-5); }
.mr-6 { margin-right: var(--space-6); }
.mr-8 { margin-right: var(--space-8); }
.mr-10 { margin-right: var(--space-10); }
.mr-12 { margin-right: var(--space-12); }

/* Padding utilities */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }
.p-20 { padding: var(--space-20); }
.p-24 { padding: var(--space-24); }

/* Padding top utilities */
.pt-0 { padding-top: var(--space-0); }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-10 { padding-top: var(--space-10); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }
.pt-24 { padding-top: var(--space-24); }

/* Padding bottom utilities */
.pb-0 { padding-bottom: var(--space-0); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-10 { padding-bottom: var(--space-10); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }
.pb-24 { padding-bottom: var(--space-24); }

/* Padding left utilities */
.pl-0 { padding-left: var(--space-0); }
.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }
.pl-5 { padding-left: var(--space-5); }
.pl-6 { padding-left: var(--space-6); }
.pl-8 { padding-left: var(--space-8); }
.pl-10 { padding-left: var(--space-10); }
.pl-12 { padding-left: var(--space-12); }

/* Padding right utilities */
.pr-0 { padding-right: var(--space-0); }
.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }
.pr-5 { padding-right: var(--space-5); }
.pr-6 { padding-right: var(--space-6); }
.pr-8 { padding-right: var(--space-8); }
.pr-10 { padding-right: var(--space-10); }
.pr-12 { padding-right: var(--space-12); }

/* Gap utilities for flex and grid layouts */
.gap-0 { gap: var(--space-0); }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-20 { gap: var(--space-20); }
.gap-24 { gap: var(--space-24); }

/* Section spacing utilities */
.section-padding-sm { padding: var(--space-section-sm) 0; }
.section-padding-md { padding: var(--space-section-md) 0; }
.section-padding-lg { padding: var(--space-section-lg) 0; }
.section-padding-xl { padding: var(--space-section-xl) 0; }

/* Component spacing utilities */
.card-padding { padding: var(--space-card-padding); }
.card-gap { gap: var(--space-card-gap); }
.button-padding { padding: var(--space-button-padding-y) var(--space-button-padding-x); }
.grid-gap { gap: var(--space-grid-gap); }

/* Legacy Utility Classes for backwards compatibility */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Ancien toggle supprimé - maintenant intégré dans la navbar */

/* Icon Classes for Project Page - SVG Background Images */
.icon-location { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-calendar { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-flag { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-ruler { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-dollar { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-search { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-zap { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M13 0L8.5 8H4l9 16 4.5-8H22L13 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-target { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-14c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-message { 
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v6l4-2 4 2v-6h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Icon containers */
.meta-icon, .detail-icon, .category-icon, .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
}

/* SVG icon styling */
.meta-icon svg,
.detail-icon svg,
.category-icon svg,
.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* VIDEO GALLERY STYLES */

/* Video thumbnail in portfolio grid */
.project-video-container {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(57, 28, 11, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button svg {
    margin-left: 2px; /* Visually center the play icon */
}

.video-label {
    background: rgba(57, 28, 11, 0.9);
    color: var(--color-cream);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card:hover .play-button {
    background: var(--color-caramel);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(214, 148, 86, 0.4);
}

/* Gallery tabs */
.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 0;
    border-bottom: 2px solid var(--color-gray-100);
}

.gallery-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-600);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-caramel);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.gallery-tab:hover {
    color: var(--color-caramel);
    background: var(--color-cream-lightest);
}

.gallery-tab.active {
    color: var(--color-coffee-dark);
    background: var(--color-cream-lightest);
}

.gallery-tab.active::after {
    transform: scaleX(1);
}

.tab-icon svg {
    width: 18px;
    height: 18px;
}

/* Gallery content */
.gallery-content {
    display: none;
    margin-top: 40px;
}

.gallery-content.active {
    display: block;
}

/* Videos grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-item {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-container {
    position: relative;
    width: 100%;
}

.project-video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--color-gray-900);
    border-radius: 16px 16px 0 0;
}

.video-caption {
    padding: 20px;
    background: var(--color-white);
}

.video-caption p {
    margin: 0;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.video-info {
    padding: 16px 20px;
    background: var(--color-gray-50);
    display: flex;
    gap: 16px;
    border-radius: 0 0 16px 16px;
}

.video-duration,
.video-size {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-gray-600);
    font-size: 13px;
    font-weight: 500;
}

.video-duration::before {
    content: '⏱';
    font-size: 14px;
}

.video-size::before {
    content: '📁';
    font-size: 14px;
}

/* Video loading states */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-gray-200);
    border-top: 3px solid var(--color-caramel);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.video-loading p {
    margin: 0;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 500;
}

/* Video error states */
.video-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 10;
}

.error-icon {
    font-size: 32px;
    color: var(--color-red-500, #ef4444);
}

.video-error-message p {
    margin: 0;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 500;
}

.retry-video-btn {
    background: var(--color-caramel);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-video-btn:hover {
    background: var(--color-coffee-medium);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive video styles */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-item {
        border-radius: 12px;
    }
    
    .project-video {
        border-radius: 12px 12px 0 0;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .gallery-tabs {
        gap: 8px;
        margin-top: 16px;
    }
    
    .gallery-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tab-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Video Lightbox Styles */
.video-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.video-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 675px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Video Control Buttons */
.video-control {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.video-control:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.fullscreen-btn {
    bottom: 15px;
    right: 15px;
}

/* Enhanced Video Play Overlay - Fixed to not hide video thumbnail */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none; /* Removed dark gradient that was hiding video thumbnail */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Always visible for better UX */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: none; /* Removed blur that was interfering */
}

.project-video-container:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.play-button svg {
    color: var(--color-primary-dark);
    margin-left: 2px; /* Center the triangle visually */
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.video-info {
    text-align: center;
    color: white;
}

.video-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-duration {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* Video Thumbnail Enhancement */
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-video-container:hover .video-thumbnail {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Responsive Video Lightbox */
@media (max-width: 768px) {
    .video-lightbox-close {
        top: -40px;
        right: 10px;
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .video-lightbox-container {
        border-radius: 8px;
        max-height: 70vh;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-info {
        padding: 0 10px;
    }
}
}