﻿/* ========================================
   PORTFOLIO 2026 - Awwwards Creative Design
   Direction Artistique: Bold, Creative, Immersive
   Version 3.0 - Full Redesign
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties
   ---------------------------------------- */
:root {
    /* Colors - High Contrast Palette */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-white: #ffffff;
    --color-white-soft: rgba(255, 255, 255, 0.7);
    --color-white-muted: rgba(255, 255, 255, 0.4);
    --color-accent: #ff4d00;
    --color-accent-hover: #ff6b2b;
    --color-accent-glow: rgba(255, 77, 0, 0.3);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Fluid Type Scale - Improved contrast for mobile */
    --text-xs: clamp(0.625rem, 0.5rem + 0.25vw, 0.75rem);      /* 10-12px */
    --text-sm: clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);   /* 13-14px */
    --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1rem);     /* 15-16px */
    --text-lg: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);     /* 17-20px */
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);        /* 20-24px */
    --text-2xl: clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem);      /* 26-40px */
    --text-3xl: clamp(2.125rem, 1.5rem + 2.5vw, 3.5rem);       /* 34-56px */
    --text-4xl: clamp(2.75rem, 1.75rem + 4vw, 5rem);           /* 44-80px */
    --text-5xl: clamp(3.25rem, 2rem + 5vw, 7rem);              /* 52-112px */
    --text-hero: clamp(3.75rem, 2.5rem + 7vw, 12rem);          /* 60-192px */
    
    /* Spacing */
    --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.75rem);
    --space-lg: clamp(1.5rem, 1rem + 2vw, 3rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 4vw, 6rem);
    --space-3xl: clamp(5rem, 3rem + 5vw, 10rem);
    
    /* Layout */
    --container-padding: clamp(1rem, 3vw, 4rem);
    --header-height: 80px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --duration-fast: 0.3s;
    --duration-base: 0.6s;
    --duration-slow: 1s;
    --duration-slower: 1.5s;
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ----------------------------------------
   Custom Cursor
   ---------------------------------------- */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    will-change: transform, width, height;
    transition: width 0.3s var(--ease-out-expo), 
                height 0.3s var(--ease-out-expo);
}

.cursor.active {
    width: 60px;
    height: 60px;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    will-change: transform, width, height;
    transition: width 0.4s var(--ease-out-expo), 
                height 0.4s var(--ease-out-expo),
                border-color 0.3s ease;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    border-color: var(--color-accent);
}

@media (hover: none), (pointer: coarse) {
    .cursor, .cursor-follower {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}

/* Desktop: hide native cursor globally, enable pointer only on explicitly clickable elements */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    a,
    button,
    [role="button"],
    input[type="button"],
    input[type="submit"],
    .bento-item,
    .nav__menu-btn,
    .nav__link--cta,
    .project-modal__close,
    .project-modal__nav-btn {
        cursor: pointer;
    }
}

/* Desktop: hide native cursor globally, enable pointer only on explicitly clickable elements */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    /* Elements that should show the native pointer (clickable) */
    a,
    button,
    [role="button"],
    input[type="button"],
    input[type="submit"],
    .bento-item,
    .nav__menu-btn,
    .nav__link--cta,
    .project-modal__close,
    .project-modal__nav-btn {
        cursor: none;
    }
} 

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.mono-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

em {
    font-style: italic;
    font-family: var(--font-display);
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--container-padding);
    pointer-events: none;
}

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

.nav__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    transition: transform 0.3s var(--ease-out-expo);
    z-index: 2;
}

.nav__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav__name {
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
}

/* Hero Spacer to push content down */
.hero__spacer {
    height: 80px;
}

/* Desktop Nav Links - Pill Container */
.nav__links {
    display: none;
    align-items: stretch;
    gap: 2px;
    padding: 4px;
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    list-style: none;
    margin: 0;
}

.nav__links li {
    display: flex;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .nav__links {
        display: flex;
    }
}

.nav__link {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav__link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Active state */
.nav__link.active {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.08);
}

/* CTA Button - Plus subtil */
.nav__link--cta {
    color: var(--color-bg) !important;
    background-color: var(--color-white) !important;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav__link--cta:hover {
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 77, 0, 0.3);
}

.nav__link--cta.active::after {
    display: none;
}

/* Menu Button */
.nav__menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 12px;
    z-index: 1001;
    position: relative;
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-out-expo);
}

.nav__menu-btn:hover {
    background-color: rgba(10, 10, 10, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 1024px) {
    .nav__menu-btn {
        display: none;
    }
}

.nav__menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.4s var(--ease-out-expo),
                opacity 0.4s ease;
    transform-origin: center;
    border-radius: 1px;
}

.nav__menu-btn.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__menu-btn.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) var(--container-padding);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--ease-in-out-circ);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.fullscreen-menu.active {
    clip-path: inset(0 0 0 0);
}

.fullscreen-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.fullscreen-menu__link {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.fullscreen-menu.active .fullscreen-menu__link {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-menu__link:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu__link:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu__link:nth-child(3) { transition-delay: 0.2s; }
.fullscreen-menu__link:nth-child(4) { transition-delay: 0.25s; }

.fullscreen-menu__link-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-accent);
}

.fullscreen-menu__link-text {
    position: relative;
}

.fullscreen-menu__link-text::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.4s var(--ease-out-expo);
}

.fullscreen-menu__link:hover .fullscreen-menu__link-text::after {
    width: 100%;
}

.fullscreen-menu__footer {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--container-padding);
    right: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s var(--ease-out-expo) 0.3s;
}

@media (max-width: 768px) {
    .fullscreen-menu {
        padding-top: 90px;
    }
    
    .fullscreen-menu__link {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 640px) {
    .fullscreen-menu__footer {
        flex-direction: column;
        align-items: flex-start;
        bottom: var(--space-lg);
    }
}

.fullscreen-menu.active .fullscreen-menu__footer {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-menu__socials {
    display: flex;
    gap: var(--space-md);
}

.fullscreen-menu__social {
    font-size: var(--text-sm);
    color: var(--color-white-muted);
    transition: color 0.3s ease;
}

.fullscreen-menu__social:hover {
    color: var(--color-accent);
}

.fullscreen-menu__location {
    color: var(--color-white-muted);
}

@media (max-width: 480px) {
    .fullscreen-menu {
        padding: var(--space-lg) var(--container-padding);
        padding-top: 80px;
        padding-bottom: var(--space-xl);
        justify-content: flex-start;
        overflow: hidden;
    }
    
    .fullscreen-menu__nav {
        gap: var(--space-xs);
        margin-top: auto;
        margin-bottom: auto;
    }
    
    .fullscreen-menu__link {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        gap: var(--space-sm);
        padding: var(--space-xs) 0;
    }
    
    .fullscreen-menu__link-number {
        font-size: 9px;
    }
    
    .fullscreen-menu__footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: auto;
        padding-top: var(--space-md);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .fullscreen-menu__socials {
        gap: var(--space-sm);
    }
    
    .fullscreen-menu__social {
        font-size: var(--text-xs);
    }
}

@media (max-width: 360px) {
    .fullscreen-menu__link {
        font-size: var(--text-xl);
    }
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero{
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-3xl) var(--container-padding) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero__location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white-muted);
    font-size: 10px;
}

.hero__location svg {
    color: var(--color-accent);
}

.hero__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(15rem, 30vw, 40rem);
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.hero__decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero__decoration {
    position: absolute;
    background-color: var(--color-accent);
    opacity: 0.1;
    filter: blur(100px);
    border-radius: 50%;
}

.hero__decoration--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero__decoration--2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
    opacity: 0.05;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero__content {
        grid-template-columns: 1.5fr 1fr;
        align-items: end;
    }
}

.hero__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white-muted);
}

.hero__label-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.hero__title {
    font-size: var(--text-hero);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.hero__title em {
    display: inline-block;
    color: var(--color-accent);
    transform-origin: left bottom;
}

.hero__title-line {
    display: block;
    overflow: hidden;
}

.hero__title-line span {
    display: inline-block;
}

.hero__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 1024px) {
    .hero__aside {
        padding-bottom: var(--space-xl);
    }
}

.hero__description {
    font-size: var(--text-lg);
    color: var(--color-white-soft);
    max-width: 400px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    position: relative;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--color-accent);
    animation: scrollIndicator 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero {
        padding: calc(var(--space-2xl) + 60px) var(--container-padding) var(--space-lg);
        min-height: auto;
        justify-content: flex-start;
        gap: var(--space-xl);
    }
    
    .hero__scroll {
        display: none;
    }
    
    .hero__content {
        gap: var(--space-xl);
    }
    
    .hero__title {
        font-size: clamp(3rem, 14vw, 5.5rem);
        line-height: 0.92;
    }
    
    .hero__bg-text {
        font-size: clamp(6rem, 20vw, 12rem);
        opacity: 0.5;
    }
    
    .hero__description {
        font-size: var(--text-sm);
        max-width: 100%;
        line-height: 1.7;
    }
    
    .hero__cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__cta .btn-wrapper {
        width: 100%;
    }
    
    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide parallax bg text on mobile */
    .btn-wrapper::before {
        display: none;
    }
    
    .hero__stats {
        gap: var(--space-lg);
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .stat__number {
        font-size: var(--text-2xl);
    }
    
    .hero__decoration--1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }
    
    .hero__decoration--2 {
        width: 150px;
        height: 150px;
        bottom: 20%;
        left: -30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--space-xl) + 80px);
    }
    
    .hero__title {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }
    
    .hero__label {
        font-size: 9px;
    }
    
    .hero__label-line {
        width: 40px;
    }
}

@keyframes scrollIndicator {
    0%, 100% { transform: translateY(0); opacity: 1; }
    90% { transform: translateY(30px); opacity: 0; }
}

/* Hero Stats */
.hero__stats {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.stat__number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--color-white);
}

.stat__label {
    color: var(--color-white-muted);
}

/* ----------------------------------------
   Buttons - Awwwards Multi-Font Effect
   ---------------------------------------- */

/* Button Wrapper with Background Text Parallax */
.btn-wrapper {
    --translate-x: 0px;
    --translate-y: 0px;
    position: relative;
    display: inline-block;
}

/* Background text - parallax inverse */
.btn-wrapper::before {
    content: attr(data-bg-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(
        calc(-50% + var(--translate-x)),
        calc(-50% + var(--translate-y))
    );
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    z-index: 0;
}

.btn-wrapper:hover::before {
    opacity: 1;
}

.btn {
    --btn-padding-x: var(--space-xl);
    --btn-padding-y: var(--space-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Scale on hover - DA recommends scale(1.02) */
.btn:hover {
    transform: scale(1.02);
}

/* Text */
.btn span {
    position: relative;
    z-index: 2;
}

/* Arrow icon */
.btn svg {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover svg {
    transform: translate(3px, -3px);
}

/* Primary Button - White bg → Accent on hover */
.btn--primary {
    background-color: var(--color-white);
    color: var(--color-bg);
    border: 1px solid transparent;
}

.btn--primary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 
        0 4px 20px rgba(255, 77, 0, 0.3),
        0 8px 40px rgba(255, 77, 0, 0.2);
}

/* Secondary Button - Outline, fills on hover */
.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    background-color: var(--color-white);
    color: var(--color-bg);
    border-color: var(--color-white);
}

/* Large Button */
.btn--large {
    --btn-padding-x: var(--space-2xl);
    --btn-padding-y: var(--space-lg);
    font-size: var(--text-lg);
}

/* Button Mobile Adjustments */
@media (max-width: 640px) {
    .btn {
        --btn-padding-x: var(--space-lg);
        --btn-padding-y: var(--space-sm);
        font-size: var(--text-sm);
        min-height: 48px; /* Touch-friendly */
    }
    
    .btn--large {
        --btn-padding-x: var(--space-xl);
        --btn-padding-y: var(--space-md);
    }
    
    /* Active state for touch */
    .btn:active {
        transform: scale(0.98);
    }
}

/* ----------------------------------------
   Marquee
   ---------------------------------------- */
.marquee {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background-color: var(--color-bg);
}

.marquee__track {
    display: flex;
    gap: var(--space-xl);
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee__item {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-style: italic;
    color: var(--color-white-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.marquee__item:hover {
    color: var(--color-accent);
}

.marquee__separator {
    color: var(--color-accent);
    font-size: var(--text-sm);
    align-self: center;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Marquee Mobile */
@media (max-width: 768px) {
    .marquee {
        padding: var(--space-md) 0;
    }
    
    .marquee__track {
        gap: var(--space-lg);
        animation-duration: 20s;
    }
    
    .marquee__item {
        font-size: var(--text-xl);
    }
    
    .marquee__separator {
        font-size: 8px;
    }
}

/* ----------------------------------------
   Section Headers
   ---------------------------------------- */
.section-header {
    margin-bottom: var(--space-2xl);
    padding: 0 var(--container-padding);
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header--center {
    text-align: center;
}

.section-header--left {
    text-align: left;
}

.section-header__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--color-white-muted);
}

.section-header__label .mono-text:first-child {
    color: var(--color-accent);
}

.section-header__title {
    font-size: var(--text-4xl);
    max-width: 15ch;
}

.section-header--center .section-header__title {
    margin: 0 auto;
}

.section-header__title em {
    color: var(--color-accent);
}

/* Section Header Mobile */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-header__label {
        gap: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .section-header__title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .section-header__title {
        font-size: clamp(1.875rem, 9vw, 2.5rem);
    }
    
    .section-header__label .mono-text {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
}

/* ----------------------------------------
   Work Section - Bento Grid
   ---------------------------------------- */
.work {
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg);
    position: relative;
}

@media (max-width: 768px) {
    .work {
        padding: var(--space-2xl) 0;
    }
}

.work__container {
    position: relative;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
    padding: var(--space-xl) var(--container-padding);
    max-width: 1800px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-bg-secondary), var(--color-bg));
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.6s var(--ease-out-expo);
    cursor: pointer;
}

/* Glow effect */
.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 77, 0, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

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

/* Animated border */
.bento-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 77, 0, 0.6),
        transparent 40%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 3;
}

.bento-item:hover::after {
    opacity: 1;
}

.bento-item:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: transparent;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 77, 0, 0.1);
}

.bento-item--large {
    grid-column: span 7;
    grid-row: span 2;
}

.bento-item--medium {
    grid-column: span 5;
}

.bento-item--small {
    grid-column: span 3;
}

.bento-item--wide {
    grid-column: span 6;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .bento-item--large,
    .bento-item--medium,
    .bento-item--wide {
        grid-column: span 6;
    }
    
    .bento-item--small {
        grid-column: span 3;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(140px, auto);
        gap: var(--space-sm);
        padding: 0;
    }
    
    /* Mobile Bento - Creative staggered layout */
    .bento-item--large {
        grid-column: span 4;
        grid-row: span 2;
    }
    
    .bento-item--medium {
        grid-column: span 4;
        grid-row: span 1;
    }
    
    /* Alternate layout for small items - side by side */
    .bento-item--small {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-item--wide {
        grid-column: span 4;
        grid-row: span 1;
    }
    
    /* Creative offset for visual interest */
    .bento-item--small:nth-of-type(odd) {
        justify-self: start;
    }
    
    .bento-item--small:nth-of-type(even) {
        justify-self: end;
    }
    
    .bento-item {
        border-radius: 16px;
    }
    
    .bento-item__content {
        padding: var(--space-md);
    }
    
    .bento-item__title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .bento-item__desc {
        font-size: var(--text-xs);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.5;
    }
    
    /* Show arrow on mobile for touch feedback */
    .bento-item__arrow {
        opacity: 0.8;
        transform: scale(0.8);
        width: 40px;
        height: 40px;
    }
}

.bento-item__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .bento-item__link {
        min-height: auto;
    }
}

.bento-item__image {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    .bento-item__image {
        aspect-ratio: 16 / 9;
        flex: none;
    }
}

.bento-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

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

.bento-item__placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(145deg, 
        var(--color-bg-secondary) 0%, 
        var(--color-bg-tertiary) 50%, 
        rgba(255, 77, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white-muted);
    transition: transform 0.8s var(--ease-out-expo);
}

.bento-item:hover .bento-item__placeholder {
    transform: scale(1.05);
}

.bento-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-item:hover .bento-item__overlay {
    opacity: 1;
}

.bento-item__content {
    padding: var(--space-lg);
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
}

.bento-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.tag {
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-white-muted);
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.bento-item:hover .tag {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.bento-item:hover .tag:nth-child(1) { transition-delay: 0s; }
.bento-item:hover .tag:nth-child(2) { transition-delay: 0.05s; }
.bento-item:hover .tag:nth-child(3) { transition-delay: 0.1s; }

.bento-item__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.bento-item__desc {
    font-size: var(--text-base);
    color: var(--color-white-soft);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.bento-item__year {
    color: var(--color-white-muted);
}

.bento-item__arrow {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), #ff6b2b);
    border-radius: 50%;
    color: var(--color-white);
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
    transition: all 0.5s var(--ease-out-expo);
    z-index: 3;
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.4);
}

.bento-item:hover .bento-item__arrow {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.bento-item__arrow svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.bento-item:hover .bento-item__arrow:hover svg {
    transform: translate(3px, -3px);
}

/* ----------------------------------------
   About Section
   ---------------------------------------- */
.about {
    padding: var(--space-3xl) var(--container-padding);
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 1800px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }
}

.about__image-col {
    position: relative;
}

@media (min-width: 1024px) {
    .about__image-col {
        position: sticky;
        top: 100px;
    }
}

.about__image-wrapper {
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.about__image-wrapper:hover .about__img {
    transform: scale(1.05);
}

.about__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        var(--color-bg-tertiary) 0%, 
        var(--color-bg) 50%, 
        rgba(255, 77, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white-muted);
}

.about__badge {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 20px;
    background-color: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.about__badge-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.about__content-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.about__text p {
    font-size: var(--text-lg);
    color: var(--color-white-soft);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about__text p:first-child {
    font-size: var(--text-xl);
    color: var(--color-white);
}

.about__skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .about {
        padding: var(--space-2xl) var(--container-padding);
    }
    
    .about__grid {
        gap: var(--space-xl);
    }
    
    .about__image-wrapper {
        aspect-ratio: 4/5;
        max-height: 60vh;
    }
    
    .about__badge {
        padding: 10px 16px;
        bottom: var(--space-md);
        left: var(--space-md);
    }
    
    .about__badge .mono-text {
        font-size: 10px;
    }
    
    .about__content-col {
        gap: var(--space-xl);
    }
    
    .about__text p {
        font-size: var(--text-sm);
        line-height: 1.7;
    }
    
    .about__text p:first-child {
        font-size: var(--text-base);
        line-height: 1.6;
    }
    
    /* Skills en grille 2 colonnes sur mobile */
    .about__skills {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .skill-group__title {
        font-size: 10px;
        margin-bottom: var(--space-sm);
    }
    
    .skill-group__list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Increased specificity to override desktop styles */
    .about__skills .skill-group__list li {
        font-size: var(--text-sm);
        padding: 6px 12px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 4px;
        /* Reset any conflicting styles */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Disable hover animation on mobile */
    .about__skills .skill-group__list li:hover {
        padding-left: 12px;
        background: rgba(255,255,255,0.08);
    }
}

@media (max-width: 480px) {
    .about__skills {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about__image-wrapper {
        aspect-ratio: 1/1;
        max-height: 50vh;
    }
}

.skill-group__title {
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.skill-group__list li {
    font-size: var(--text-base);
    color: var(--color-white-soft);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-group__list li:hover {
    color: var(--color-white);
    padding-left: var(--space-sm);
    border-color: var(--color-accent);
}

/* ----------------------------------------
   Services Section
   ---------------------------------------- */
.services {
    padding: var(--space-3xl) var(--container-padding);
    background-color: var(--color-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .services {
        padding: var(--space-2xl) 0;
    }
    
    .services .section-header {
        padding: 0 var(--container-padding);
        margin-bottom: var(--space-xl);
    }
    
    /* Horizontal scrollable cards on mobile */
    .services__grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding: 0 var(--container-padding);
        padding-bottom: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .services__grid::-webkit-scrollbar {
        display: none;
    }
    
    .service-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        min-height: auto;
        scroll-snap-align: center;
        padding: var(--space-xl) var(--space-lg);
        overflow: hidden;
    }
    
    .service-card__number {
        font-size: clamp(6rem, 15vw, 10rem);
        top: -30px;
    }
    
    .service-card__title {
        font-size: clamp(1.375rem, 5vw, 1.75rem);
    }
    
    .service-card__desc {
        font-size: var(--text-xs);
        margin-bottom: var(--space-lg);
        line-height: 1.6;
    }
    
    .service-card__list li {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .service-card {
        flex: 0 0 90vw;
        max-width: 90vw;
        padding: var(--space-lg);
    }
}

/* Services carousel navigation - Mobile only */
.services__carousel-nav {
    display: none;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--container-padding);
}

@media (max-width: 768px) {
    .services__carousel-nav {
        display: flex;
    }
}

/* Navigation arrows */
.services__nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.services__nav-btn:active {
    transform: scale(0.95);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.services__nav-btn svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.services__nav-btn--prev:active svg {
    transform: translateX(-2px);
}

.services__nav-btn--next:active svg {
    transform: translateX(2px);
}

/* Pagination dots */
.services__dots {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.services__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
}

.services__dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(255, 77, 0, 0.5);
}

.services__dot:not(.active):active {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.service-card {
    padding: var(--space-2xl) var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background: linear-gradient(145deg, var(--color-bg-secondary), var(--color-bg));
    transition: all 0.6s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

/* Glow effect on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 77, 0, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Animated border gradient */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 77, 0, 0.6),
        transparent 40%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: transparent;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 77, 0, 0.1);
}

/* Background number */
.service-card__number {
    position: absolute;
    top: -40px;
    right: var(--space-md);
    font-family: var(--font-display);
    font-size: clamp(8rem, 18vw, 14rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    letter-spacing: -0.05em;
    line-height: 0.8;
    pointer-events: none;
    transition: all 0.6s var(--ease-out-expo);
    z-index: 0;
}

.service-card:hover .service-card__number {
    -webkit-text-stroke-color: rgba(255, 77, 0, 0.2);
    transform: translateY(-15px) scale(1.05);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
    color: var(--color-white);
}

.service-card__desc {
    color: var(--color-white-soft);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover .service-card__desc {
    color: var(--color-white);
}

.service-card__list {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.service-card__list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--color-white-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.service-card__list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease-out-expo);
}

.service-card__list li:last-child {
    border-bottom: none;
}

.service-card:hover .service-card__list li {
    color: var(--color-white-soft);
    padding-left: var(--space-md);
}

.service-card:hover .service-card__list li::before {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover .service-card__list li:nth-child(1) { transition-delay: 0.05s; }
.service-card:hover .service-card__list li:nth-child(2) { transition-delay: 0.1s; }
.service-card:hover .service-card__list li:nth-child(3) { transition-delay: 0.15s; }
.service-card:hover .service-card__list li:nth-child(4) { transition-delay: 0.2s; }

/* ----------------------------------------
   Testimonials - Editorial Style
   ---------------------------------------- */
.testimonials {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) var(--container-padding);
    background-color: var(--color-accent);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Giant Background Quote */
.testimonials__bg-quote {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: var(--font-display);
    font-size: clamp(25rem, 50vw, 70rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    line-height: 0.8;
    user-select: none;
}

/* Content Layout */
.testimonials__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .testimonials__content {
        grid-template-columns: minmax(200px, 1fr) 3fr;
        grid-template-rows: auto 1fr auto;
        gap: var(--space-xl) var(--space-3xl);
    }
    
    .testimonials__header {
        grid-column: 1;
        grid-row: 1;
    }
    
    .testimonials__main {
        grid-column: 2;
        grid-row: 1 / 3;
    }
    
    .testimonials__footer {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* Header */
.testimonials__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
}

.testimonials__label-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-white);
}

/* Main Quote */
.testimonials__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.testimonials__quote {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 4.5vw, var(--text-5xl));
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.testimonials__quote-line {
    display: block;
}

.testimonials__quote em {
    font-style: italic;
    position: relative;
}

.testimonials__quote em::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineReveal 0.8s var(--ease-out-expo) forwards;
    animation-delay: 0.5s;
}

@keyframes underlineReveal {
    to { transform: scaleX(1); }
}

.testimonials__subquote {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.6;
}

/* Footer */
.testimonials__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: var(--space-xl);
}

.testimonials__author {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.testimonials__name {
    font-weight: 500;
    font-size: var(--text-lg);
}

.testimonials__role {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.testimonials__decoration {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
}

.testimonials__decoration::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--text-lg);
    color: var(--color-white);
}

/* Testimonials Mobile Responsive */
@media (max-width: 768px) {
    .testimonials {
        min-height: auto;
        padding: var(--space-2xl) var(--container-padding);
    }
    
    .testimonials__bg-quote {
        font-size: clamp(10rem, 35vw, 20rem);
        top: 30%;
    }
    
    .testimonials__content {
        gap: var(--space-xl);
    }
    
    .testimonials__quote {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
        line-height: 1.25;
    }
    
    .testimonials__quote-line {
        display: inline;
    }
    
    .testimonials__subquote {
        font-size: var(--text-sm);
        max-width: 100%;
        line-height: 1.6;
    }
    
    .testimonials__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        padding-top: var(--space-lg);
        margin-top: var(--space-lg);
    }
    
    .testimonials__decoration {
        display: none;
    }
    
    .testimonials__name {
        font-size: var(--text-base);
    }
    
    .testimonials__role {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: var(--space-xl) var(--container-padding);
    }
    
    .testimonials__quote {
        font-size: clamp(1.3rem, 5.5vw, 2rem);
    }
    
    .testimonials__label {
        font-size: 10px;
    }
    
    .testimonials__label-line {
        width: 30px;
    }
}

/* ----------------------------------------
   Contact Section - Editorial Style
   ---------------------------------------- */
.contact {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-3xl) var(--container-padding) var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Background Text */
.contact__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(12rem, 25vw, 35rem);
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

/* Decorations */
.contact__decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.contact__decoration {
    position: absolute;
    background-color: var(--color-accent);
    opacity: 0.1;
    filter: blur(100px);
    border-radius: 50%;
}

.contact__decoration--1 {
    width: 350px;
    height: 350px;
    bottom: -50px;
    right: -100px;
}

.contact__decoration--2 {
    width: 250px;
    height: 250px;
    top: 20%;
    left: -80px;
    opacity: 0.05;
}

/* Content Grid */
.contact__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 1800px;
    margin: auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .contact__content {
        grid-template-columns: 1.5fr 1fr;
        align-items: end;
    }
}

/* Main */
.contact__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white-muted);
}

.contact__label-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.contact__title {
    font-size: var(--text-5xl);
    line-height: 1;
    letter-spacing: -0.03em;
}

.contact__title em {
    font-style: italic;
    color: var(--color-accent);
}

.contact__title-line {
    display: block;
}

/* Aside */
.contact__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 1024px) {
    .contact__aside {
        padding-bottom: var(--space-sm);
    }
}

.contact__description {
    font-size: var(--text-lg);
    color: var(--color-white-soft);
    line-height: 1.7;
    max-width: 400px;
}

/* CTA */
.contact__cta {
    display: flex;
    gap: var(--space-md);
}

.contact__cta .btn {
    font-size: var(--text-base);
}

/* Links */
.contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg) var(--space-xl);
}

.contact__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-white-muted);
    font-size: var(--text-sm);
    padding-bottom: 2px;
    transition: color 0.4s var(--ease-out-expo);
}

/* Animated underline */
.contact__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.contact__link svg {
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 0.4s var(--ease-out-expo);
}

.contact__link:hover {
    color: var(--color-accent);
}

.contact__link:hover::before {
    transform: scaleX(1);
}

.contact__link:hover svg {
    opacity: 1;
    transform: translate(0, 0);
}

/* Footer */
.contact__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    z-index: 10;
}

@media (max-width: 640px) {
    .contact__footer {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-md);
        flex-wrap: wrap;
    }
}

/* Contact Mobile Responsive */
@media (max-width: 768px) {
    .contact {
        min-height: auto;
        padding: var(--space-2xl) var(--container-padding) var(--space-xl);
    }
    
    .contact__bg-text {
        font-size: clamp(5rem, 18vw, 12rem);
        opacity: 0.03;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .contact__content {
        gap: var(--space-xl);
        text-align: center;
    }

    .contact__main {
        align-items: center;
    }
    
    .contact__title {
        font-size: clamp(2.5rem, 11vw, 4rem);
        line-height: 1.05;
    }
    
    .contact__description {
        font-size: var(--text-sm);
        max-width: 100%;
        line-height: 1.6;
        margin-inline: auto;
    }

    .contact__aside {
        align-items: center;
    }
    
    .contact__cta {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .contact__links {
        justify-content: center;
        flex-direction: row;
    }
    
    .contact__cta .btn-wrapper {
        width: 100%;
    }
    
    .contact__cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact__links {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .contact__link {
        font-size: var(--text-base);
        padding: var(--space-xs) 0;
    }
    
    /* Show icons on mobile */
    .contact__link svg {
        opacity: 0.6;
        transform: none;
    }
    
    .contact__decoration--1 {
        width: 200px;
        height: 200px;
        bottom: -30px;
        right: -50px;
    }
    
    .contact__decoration--2 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .contact__title {
        font-size: var(--text-3xl);
    }
    
    .contact__label-line {
        width: 40px;
    }
}

.contact__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact__status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse 2s infinite;
}

.contact__location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white-muted);
    font-size: 10px;
}

.contact__location svg {
    color: var(--color-accent);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
    padding: var(--space-2xl) var(--container-padding) var(--space-lg);
    background-color: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1800px;
    margin: 0 auto var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer {
        padding: var(--space-xl) var(--container-padding) var(--space-md);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    /* Logo column spans full width */
    .footer__col:first-child {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: var(--space-sm);
        text-align: center;
    }

    .footer__nav {
        align-items: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }
    
    .footer__bottom span {
        font-size: 9px;
    }
}

.footer__tagline {
    color: var(--color-white-muted);
    font-style: italic;
    font-family: var(--font-display);
}

.footer__label {
    display: block;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.footer__col p {
    color: var(--color-white-muted);
    margin-bottom: var(--space-2xs);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (max-width: 640px) {
    .footer__nav {
        align-items: center;
    }
}

.footer__nav a {
    color: var(--color-white-soft);
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--color-white-muted);
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .footer__bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ----------------------------------------
   Project Modal - Fullscreen
   ---------------------------------------- */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: var(--color-bg);
}

.project-modal__container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Close Button */
.project-modal__close {
    position: fixed;
    top: var(--space-lg);
    right: calc(var(--space-lg) + 8px); /* Compense la scrollbar */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--color-white);
    z-index: 100;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.project-modal__close:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 10px 40px rgba(255, 77, 0, 0.3);
}

/* Content - Le padding est sur l'élément interne pour que la scrollbar soit au bord */
.project-modal__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--container-padding) var(--space-2xl);
    width: 100%;
    position: relative;
}

/* Background Number - Positionné derrière le titre en haut */
.project-modal__number {
    position: absolute;
    top: -200px;
    left: 0;
    font-family: var(--font-display);
    font-size: clamp(15rem, 35vw, 40rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    letter-spacing: -0.05em;
    line-height: 0.8;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    z-index: -1;
}

/* Header - Plus compact */
.project-modal__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    padding-top: var(--space-lg);
    position: relative;
    z-index: 1;
}

.project-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-left: auto;
}

.project-modal__tags .tag {
    background-color: rgba(255, 77, 0, 0.1);
    border-color: rgba(255, 77, 0, 0.3);
    color: var(--color-accent);
}

/* Title */
.project-modal__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-xs);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.project-modal__subtitle {
    font-size: var(--text-lg);
    color: var(--color-white-soft);
    margin-bottom: var(--space-xl);
    max-width: 700px;
}

/* Image - Gallery Grid System */
.project-modal__image {
    display: none; /* Hidden by default if empty */
    width: 100%;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
}

/* Show when it has content */
.project-modal__image:not(:empty) {
    display: grid;
    grid-template-columns: 1fr;
}

/* Desktop Gallery Layouts */
@media (min-width: 768px) {
    /* 2 Images: Side by side */
    .project-modal__image.has-2-images {
        grid-template-columns: 1fr 1fr;
    }
    
    /* 3 Images: Bento style (1 large top, 2 small bottom) */
    .project-modal__image.has-3-images {
        grid-template-columns: 1fr 1fr;
    }
    .project-modal__image.has-3-images .project-modal__image-wrapper:first-child {
        grid-column: 1 / -1;
    }

    /* 4 Images: 2x2 Grid */
    .project-modal__image.has-4-images {
        grid-template-columns: 1fr 1fr;
    }
    
    /* 5+ Images: Masonry-like auto grid */
    .project-modal__image.has-5-images,
    .project-modal__image.has-6-images {
        grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    }
}

.project-modal__image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--color-bg-secondary);
}

.project-modal__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-out-expo);
}

/* Overlay Effect - Consistent with Bento Items */
.project-modal__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-modal__image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--color-bg-secondary);
    cursor: none; /* Custom cursor handled by JS */
}

.project-modal__image-wrapper:hover .project-modal__image-overlay {
    opacity: 1;
}

.project-modal__image-wrapper:hover img {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000; /* Higher than project modal (10000) */
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}

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

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.6s var(--ease-out-expo);
}

.lightbox.active .lightbox__content {
    transform: scale(1);
}

.lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.lightbox__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
    transition: transform 0.3s ease;
}

.lightbox__close:hover {
    transform: rotate(90deg);
    color: var(--color-accent);
}

/* Details Grid - Plus compact */
.project-modal__details {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

@media (max-width: 1024px) {
    .project-modal__details {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* Info sidebar */
.project-modal__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .project-modal__info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}

.project-modal__info-item {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-modal__info-item:last-child {
    border-bottom: none;
}

.project-modal__info-item > span:first-child {
    display: block;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-modal__info-item p {
    font-size: var(--text-lg);
    font-weight: 500;
    margin: 0;
}

/* Sidebar Links */
.project-modal__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.project-modal__sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white-soft);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: all 0.4s var(--ease-out-expo);
    padding: 6px 0;
    width: fit-content;
}

.project-modal__sidebar-link svg {
    color: var(--color-accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-out-expo);
}

.project-modal__sidebar-link:hover {
    color: var(--color-white);
    transform: translateX(6px);
}

.project-modal__sidebar-link:hover svg {
    transform: scale(1.2);
}

/* Description */
.project-modal__description {
    color: var(--color-white-soft);
    line-height: 1.9;
    font-size: var(--text-lg);
}

.project-modal__description p {
    margin-bottom: var(--space-lg);
}

.project-modal__description p:last-child {
    margin-bottom: 0;
}

/* Stack */
.project-modal__stack {
    grid-column: 1 / -1;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-modal__stack > span {
    display: block;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.project-modal__stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.project-modal__stack-list .tag {
    background-color: var(--color-bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.project-modal__stack-list .tag:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Navigation - Compacte et intégrée en bas du contenu */
.project-modal__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    margin-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-modal__nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-white-muted);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-out-expo);
}

.project-modal__nav-btn:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.project-modal__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.project-modal__nav-btn:disabled:hover {
    transform: none;
    background-color: transparent;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .project-modal__content {
        padding: var(--space-lg) var(--space-md) var(--space-xl);
    }
    
    .project-modal__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        padding-top: var(--space-md);
    }

    .project-modal__number {
        font-size: clamp(10rem, 50vw, 20rem);
        top: -20px;
    }
    
    .project-modal__tags {
        margin-left: 0;
    }
    
    .project-modal__title {
        font-size: var(--text-3xl);
    }
    
    .project-modal__close {
        top: var(--space-md);
        right: calc(var(--space-md) + 8px);
        width: 44px;
        height: 44px;
    }
    
    .project-modal__image {
        aspect-ratio: 8/10;
        border-radius: 12px;
    }
    
    .project-modal__details {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .project-modal__nav {
        padding: var(--space-sm) 0;
    }
    
    .project-modal__nav-btn {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .project-modal__nav-btn span {
        display: none;
    }
}

/* ----------------------------------------
   Scrollbar
   ---------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-accent);
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reveal Animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-out-expo),
                transform 1s var(--ease-out-expo);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }
[data-reveal="delay-4"] { transition-delay: 0.4s; }

/* Stagger Animation */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

[data-stagger].revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].revealed > *:nth-child(3) { transition-delay: 0.15s; }
[data-stagger].revealed > *:nth-child(4) { transition-delay: 0.2s; }
[data-stagger].revealed > *:nth-child(5) { transition-delay: 0.25s; }
[data-stagger].revealed > *:nth-child(6) { transition-delay: 0.3s; }

[data-stagger].revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99990;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ----------------------------------------
   Page Transition
   ---------------------------------------- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.page-transition__panel {
    position: absolute;
    inset: 0;
    background-color: var(--color-accent);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    will-change: clip-path;
}

.page-transition.is-animating-in .page-transition__panel {
    animation: transitionIn 0.8s var(--ease-out-expo) forwards;
}

.page-transition.is-animating-out .page-transition__panel {
    animation: transitionOut 0.8s var(--ease-out-expo) forwards;
}

.page-transition.is-reverse.is-animating-in .page-transition__panel {
    animation: transitionInReverse 0.8s var(--ease-out-expo) forwards;
}

.page-transition.is-reverse.is-animating-out .page-transition__panel {
    animation: transitionOutReverse 0.8s var(--ease-out-expo) forwards;
}

@keyframes transitionIn {
    0% { clip-path: polygon(100% 0, 100% 0, 150% 100%, 150% 100%); }
    100% { clip-path: polygon(-50% 0, 100% 0, 150% 100%, 0% 100%); }
}

@keyframes transitionOut {
    0% { clip-path: polygon(-50% 0, 100% 0, 150% 100%, 0% 100%); }
    100% { clip-path: polygon(-50% 0, -50% 0, 0% 100%, 0% 100%); }
}

@keyframes transitionInReverse {
    0% { clip-path: polygon(-50% 0, -50% 0, 0% 100%, 0% 100%); }
    100% { clip-path: polygon(-50% 0, 100% 0, 150% 100%, 0% 100%); }
}

@keyframes transitionOutReverse {
    0% { clip-path: polygon(-50% 0, 100% 0, 150% 100%, 0% 100%); }
    100% { clip-path: polygon(100% 0, 100% 0, 150% 100%, 150% 100%); }
}

/* ----------------------------------------
   Mobile Touch Enhancements
   ---------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Active states for touch feedback */
    .bento-item:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }
    
    .service-card:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }
    
    .nav__link:active,
    .fullscreen-menu__link:active {
        opacity: 0.7;
    }
    
    /* Disable hover-only effects on touch */
    .bento-item:hover {
        transform: none;
    }
    
    .bento-item:hover::before,
    .bento-item:hover::after {
        opacity: 0;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:hover::before,
    .service-card:hover::after {
        opacity: 0;
    }
    
    /* Keep tags always visible on mobile */
    .bento-item .tag {
        background-color: rgba(255, 77, 0, 0.15);
        border-color: rgba(255, 77, 0, 0.3);
        color: var(--color-accent);
    }
    
    /* Show overlay gradient always on mobile for readability */
    .bento-item__overlay {
        opacity: 0.6;
    }
    
    /* Service card list items - always show bullets on mobile */
    .service-card__list li {
        padding-left: var(--space-md);
    }
    
    .service-card__list li::before {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----------------------------------------
   Mobile Typography & Layout Fixes (User Request)
   ---------------------------------------- */
@media (max-width: 768px) {
    /* Titres plus grands pour meilleur contraste */
    .section-header__title,
    h2 {
        font-size: clamp(3rem, 10vw, 4rem) !important;
        line-height: 1.1;
    }
    
    .hero__title {
        font-size: clamp(3.5rem, 12vw, 5rem) !important;
    }
    
    /* Fix padding général pour éviter que le contenu touche les bords */
    .about, .work, .services, .contact {
        padding-inline: var(--space-md);
    }
}
