/* ===== Variables ===== */
:root {
    --lime: #10b981;
    --lime-dim: #059669;
    --lime-text: #10b981;
    --lime-glow: rgba(16, 185, 129, 0.15);
    --on-lime: #ffffff;
    --font-display: "Bebas Neue", sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --header-h: 84px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --grid-size: 50px 50px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --section-gap: clamp(6rem, 14vh, 10rem);
}

/* Thème sombre (défaut) */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --black: #0a0a0a;
    --dark: #111111;
    --gray: #1a1a1a;
    --gray-mid: #2a2a2a;
    --text: #f5f5f5;
    --text-muted: #aaa;
    --hero-bg: #121212;
    --hero-text: #f5f5f5;
    --hero-muted: #9a9a9a;
    --hero-line: rgba(255, 255, 255, 0.12);
    --header-hero-scrolled: rgba(18, 18, 18, 0.92);
    --header-main-scrolled: rgba(10, 10, 10, 0.92);
    --nav-menu-bg: rgba(26, 26, 26, 0.88);
    --nav-menu-hover: #2a2a2a;
    --hero-card-bg: rgba(20, 20, 20, 0.72);
    --fragment-bg: rgba(26, 26, 26, 0.94);
    --fragment-border: rgba(255, 255, 255, 0.1);
    --photo-shadow: rgba(0, 0, 0, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: rgba(0, 0, 0, 0.55);
    --card-bg: rgba(17, 17, 17, 0.9);
    --intro-meta-bg: rgba(10, 10, 10, 0.75);
    --topo-opacity: 0.35;
    --grid-line: rgba(255, 255, 255, 0.04);
    --grid-pattern:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}

/* Thème clair */
[data-theme="light"] {
    color-scheme: light;
    --lime-text: #059669;
    --lime-glow: rgba(5, 150, 105, 0.08);
    --black: #f5f7fb;
    --dark: #eaeff5;
    --gray: #ffffff;
    --gray-mid: #d4dbe6;
    --text: #0f172a;
    --text-muted: #556680;
    --hero-bg: #f5f7fb;
    --hero-text: #0f172a;
    --hero-muted: #556680;
    --hero-line: rgba(15, 23, 42, 0.1);
    --header-hero-scrolled: rgba(245, 247, 251, 0.95);
    --header-main-scrolled: rgba(255, 255, 255, 0.95);
    --nav-menu-bg: rgba(255, 255, 255, 0.85);
    --nav-menu-hover: #ffffff;
    --hero-card-bg: rgba(255, 255, 255, 0.6);
    --fragment-bg: rgba(255, 255, 255, 0.95);
    --fragment-border: rgba(15, 23, 42, 0.1);
    --photo-shadow: rgba(15, 23, 42, 0.15);
    --card-border: rgba(15, 23, 42, 0.1);
    --card-shadow: rgba(15, 23, 42, 0.06);
    --card-bg: rgba(255, 255, 255, 0.95);
    --intro-meta-bg: rgba(255, 255, 255, 0.85);
    --topo-opacity: 0.45;

    --grid-line: rgba(15, 23, 42, 0.05);
    --grid-pattern:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}
@font-face {
    font-display: swap;
}
html.theme-ready body,
html.theme-ready .header,
html.theme-ready .hero,
html.theme-ready .hero-visual,
html.theme-ready .nav-mobile,
html.theme-ready .project-fan-card,
html.theme-ready .hof-card,
html.theme-ready .split-card {
    transition:
        background-color 0.45s var(--ease-out),
        color 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

/* Split line / word masks for GSAP */
.split-line {
    display: block;
}

.word-wrap {
    display: inline-block;
    vertical-align: top;
    margin-right: 0.2em;
}

.word {
    display: inline-block;
}

/* Texte toujours lisible si l'animation n'a pas encore joué */
body.loaded .split-line,
body.loaded .word,
body.loaded .split-word,
body.loaded .hero-title-line,
body.loaded .hero-sub,
body.loaded .hero-actions a,
body.loaded .hero-eyebrow,
body.loaded .hero-stack {
    visibility: visible;
}

.split-line--lime {
    color: var(--lime-text);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition:
        background 0.45s,
        backdrop-filter 0.45s,
        border-color 0.45s;
}

.header--hero {
    color: var(--hero-text);
}

.header--hero.scrolled {
    background: var(--header-hero-scrolled);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hero-line);
}

.header:not(.header--hero).scrolled,
.hero.is-past .header.header--hero {
    background: var(--header-main-scrolled);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-mid);
    color: var(--text);
}

.header.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    border-color: transparent !important;
    color: var(--text) !important;
}

[data-theme="dark"] .header.menu-open {
    color: #fff !important;
}

.header-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 100991;
}

.nav-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    line-height: 1.05;
    justify-self: start;
    transition:
        opacity 0.25s,
        transform 0.25s;
}

.nav-brand:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.25));
    transition: transform 0.4s var(--ease-spring);
}

.nav-brand:hover .nav-logo-img {
    transform: rotate(8deg) scale(1.08);
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.5));
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

.nav-brand-line {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-monogram {
    justify-self: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    opacity: 0.85;
    transition:
        transform 0.3s,
        opacity 0.3s;
}

.nav-monogram:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* Liens nav desktop */
.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: center;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2.2vw, 2.5rem);
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hero-text);
    white-space: nowrap;
    transition: color 0.25s;
}

.header:not(.header--hero) .nav-links a,
.hero.is-past .header .nav-links a {
    color: var(--text);
}

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

/* Grand écran : liens visibles | petit écran : burger */
@media (min-width: 992px) {
    .header-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .nav-brand {
        flex-shrink: 0;
        justify-self: auto;
    }

    .nav-monogram {
        display: none;
    }

    .nav-links {
        display: flex;
        flex: 1;
        justify-content: center;
        justify-self: auto;
        min-width: 0;
    }

    .nav-actions {
        flex-shrink: 0;
        justify-self: auto;
    }

    .nav-menu {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .header-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-links {
        display: none !important;
    }
    .nav-monogram {
        display: none !important;
    }
    .nav-pill {
        display: none !important;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-self: end;
}

/* Theme toggle */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--hero-line);
    border-radius: 10px;
    background: var(--nav-menu-bg);
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 0.25s var(--ease-out),
        border-color 0.25s,
        background 0.25s;
}

.theme-toggle:hover {
    transform: scale(1.04);
    background: var(--nav-menu-hover);
}

.theme-toggle-track {
    display: none;
}

.theme-toggle-icon {
    position: absolute;
    font-size: 1.05rem;
    line-height: 1;
    transition:
        opacity 0.3s,
        transform 0.35s var(--ease-out);
}

.theme-toggle-icon--sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle-icon--moon {
    opacity: 0;
    transform: scale(0.6) rotate(-30deg);
}

.theme-toggle.is-light .theme-toggle-icon--sun {
    opacity: 0;
    transform: scale(0.6) rotate(30deg);
}

.theme-toggle.is-light .theme-toggle-icon--moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.header:not(.header--hero) .theme-toggle,
.hero.is-past .header .theme-toggle {
    border-color: var(--gray-mid);
    background: var(--gray);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: var(--lime);
    color: var(--on-lime);
    transition:
        transform 0.28s var(--ease-out),
        box-shadow 0.28s;
}

.nav-pill:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 8px 24px rgba(200, 245, 66, 0.45);
}

.nav-pill:active {
    transform: scale(0.98);
}

.nav-pill-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--hero-line);
    border-radius: 10px;
    background: var(--nav-menu-bg);
    cursor: pointer;
    transition:
        background 0.25s,
        border-color 0.25s,
        transform 0.25s;
}

.header:not(.header--hero) .nav-menu,
.hero.is-past .header .nav-menu {
    background: var(--gray);
    border-color: var(--gray-mid);
}

.nav-menu:hover {
    background: var(--lime);
    border-color: var(--lime);
    transform: scale(1.08);
}

.nav-menu:hover span {
    background: var(--on-lime) !important;
}

.nav-menu.open {
    background: var(--gray);
    border-color: var(--gray-mid);
}

.nav-menu.open span {
    background: var(--text) !important;
}

.nav-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--hero-text);
    border-radius: 2px;
    transition:
        transform 0.4s var(--ease-out),
        background 0.3s,
        width 0.3s;
}

.header:not(.header--hero) .nav-menu span,
.hero.is-past .header .nav-menu span {
    background: var(--text);
}

.nav-menu:hover span:first-child {
    width: 14px;
}
.nav-menu:hover span:last-child {
    width: 26px;
}

.nav-menu.open span:first-child {
    transform: translateY(4.5px) rotate(45deg);
    width: 20px;
}

.nav-menu.open span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
    width: 20px;
}

.nav-mobile {
    position: fixed;
    inset: 0;
    background: var(--black);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    opacity: 0;
    transition:
        transform 0.6s var(--ease-out),
        opacity 0.6s;
    pointer-events: none;
    overflow: hidden;
}

[data-theme="dark"] .nav-mobile {
    background: rgba(10, 10, 10, 0.95);
}

[data-theme="light"] .nav-mobile {
    background: rgba(238, 243, 250, 0.95);
}

.nav-mobile.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 1rem) clamp(1rem, 5vw, 2rem) 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.nav-mobile-links a {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 8vw, 2.6rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s var(--ease-out);
}

.nav-mobile-links a::before {
    content: attr(data-num);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--lime-text);
    opacity: 0.6;
    margin-bottom: 0.1rem;
}

.nav-mobile-links a span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    transition:
        transform 0.6s var(--ease-out),
        opacity 0.6s;
}

.nav-mobile.open .nav-mobile-links a span {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger indices pour le CSS pur (fallback GSAP) */
.nav-mobile.open .nav-mobile-links a:nth-child(1) span {
    transition-delay: 0.1s;
}
.nav-mobile.open .nav-mobile-links a:nth-child(2) span {
    transition-delay: 0.15s;
}
.nav-mobile.open .nav-mobile-links a:nth-child(3) span {
    transition-delay: 0.2s;
}
.nav-mobile.open .nav-mobile-links a:nth-child(4) span {
    transition-delay: 0.25s;
}
.nav-mobile.open .nav-mobile-links a:nth-child(5) span {
    transition-delay: 0.3s;
}
.nav-mobile.open .nav-mobile-links a:nth-child(6) span {
    transition-delay: 0.35s;
}

.nav-mobile-links a:hover {
    color: var(--lime-text);
    transform: scale(1.1);
}

.nav-mobile-footer {
    border-top: 1px solid var(--gray-mid);
    padding-top: 1.25rem;
    width: 100%;
    max-width: 320px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s var(--ease-out) 0.4s;
}

.nav-mobile.open .nav-mobile-footer {
    transform: translateY(0);
    opacity: 1;
}

.nav-mobile-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.nav-mobile-socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.nav-mobile-socials a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    transition:
        color 0.3s,
        transform 0.3s;
}

.nav-mobile-socials a:hover {
    color: var(--lime);
    transform: translateY(-3px);
}

.nav-mobile[hidden] {
    display: flex;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: clamp(600px, 100dvh, 950px);
    padding-top: var(--header-h);
    color: var(--hero-text);
    background-color: var(--hero-bg);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: clamp(600px, calc(100dvh - var(--header-h)), 950px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
}

.hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hero-muted);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    line-height: 0.85;
    margin-bottom: 1.25rem;
}

.hero-title-line {
    display: block;
    font-size: clamp(3.25rem, 8vw, 8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-title-line--accent {
    color: var(--lime-text);
    margin-left: clamp(0.35rem, 3vw, 1.75rem);
}

.hero-sub {
    font-size: clamp(0.92rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: var(--hero-muted);
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

.hero-sub strong {
    color: var(--hero-text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-btn {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.85rem 1.4rem;
    border-radius: 4px;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        background 0.25s,
        border-color 0.25s,
        color 0.25s;
}

.hero-btn--lime {
    background: var(--lime);
    color: var(--on-lime);
}

.hero-btn--lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 245, 66, 0.35);
}

.hero-btn--ghost {
    border: 1px solid var(--hero-line);
    color: var(--hero-text);
}

.hero-btn--ghost:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.hero-stack {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hero-line);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hero-muted);
    line-height: 1.8;
    max-width: 26rem;
}

.hero-dot {
    color: var(--lime-text);
    margin: 0 0.35em;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1rem, 3vw, 2.5rem);
    overflow: visible !important; /* Allow the glowing auroras and floating tech badges to expand */
    z-index: 1;
}

/* Dark Tech Grid Background */
.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: 32px 32px;
    background-image:
        linear-gradient(
            to right,
            rgba(16, 185, 129, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(16, 185, 129, 0.04) 1px,
            transparent 1px
        );
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(
        circle at center,
        black 40%,
        transparent 80%
    );
    pointer-events: none;
    opacity: 0.8;
}

/* Layered Dynamic Glow Blobs (Rotating & Morphing Liquid Auroras) */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
    animation: morphBlob 14s infinite alternate ease-in-out;
}

.blob-primary {
    background: radial-gradient(
        circle,
        var(--lime) 0%,
        rgba(16, 185, 129, 0) 70%
    );
    width: min(340px, 85%);
    height: min(340px, 85%);
    left: 10%;
    top: 15%;
    animation-duration: 14s;
}

.blob-secondary {
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    width: min(290px, 75%);
    height: min(290px, 75%);
    right: 10%;
    bottom: 20%;
    animation-duration: 9s;
    animation-delay: -3s;
}

.blob-tertiary {
    background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
    width: min(220px, 60%);
    height: min(220px, 60%);
    left: 25%;
    bottom: 30%;
    animation-duration: 11s;
    animation-delay: -6s;
}

@keyframes morphBlob {
    0% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
        transform: translate(20px, -25px) scale(1.1) rotate(120deg);
    }
    66% {
        border-radius: 28% 72% 35% 65% / 35% 65% 35% 65%;
        transform: translate(-15px, 20px) scale(0.9) rotate(240deg);
    }
    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* Thin Futuristic Orbit Ring */
.tech-orbit-ring {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 1px dashed rgba(16, 185, 129, 0.12);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    transform: rotateX(65deg) rotateY(-10deg);
    animation: rotateOrbit 30s infinite linear;
}

@keyframes rotateOrbit {
    0% {
        transform: rotateX(65deg) rotateY(-10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(65deg) rotateY(-10deg) rotateZ(360deg);
    }
}

/* Interactive Floating Glassmorphic Capsule Badges */
.floating-glass-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    animation: badgeFloat 6s infinite alternate ease-in-out;
    animation-delay: var(--delay);
}

.floating-glass-badge:hover {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow:
        0 15px 35px rgba(16, 185, 129, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transform: translateY(-6px) scale(1.05) !important;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--lime);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.floating-glass-badge:hover .badge-icon {
    background: var(--lime);
    color: #000;
}

.hero-illustration {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(100%, 460px);
}

.badge-left {
    left: -40px;
    bottom: 25%;
    --y-dist: -14px;
}

.badge-right {
    right: -30px;
    bottom: 15%;
    --y-dist: 14px;
}

.badge-top {
    right: -10px;
    top: 10%;
    --y-dist: -10px;
}

@keyframes badgeFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(var(--y-dist));
    }
}

/* Elegant Profile Image Container */
.hero-photo-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(
        circle,
        rgba(16, 185, 129, 0.2) 0%,
        rgba(18, 18, 18, 0.8) 100%
    );
    border: 3px solid var(--lime);
    padding: 0;
    box-shadow:
        0 20px 50px rgba(16, 185, 129, 0.25),
        inset 0 0 35px rgba(16, 185, 129, 0.15);
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-photo-wrapper::after {
    display: none;
}

.hero-photo-wrapper:hover {
    transform: translateY(-6px);
    border-color: var(--lime);
    box-shadow:
        0 25px 60px rgba(16, 185, 129, 0.35),
        0 0 30px rgba(16, 185, 129, 0.2),
        inset 0 0 45px rgba(16, 185, 129, 0.25);
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
    transition: transform 0.5s var(--ease-out);
}

.hero-photo-wrapper:hover .hero-photo {
    transform: scale(1.06);
}

/* Responsive adjustments for mobile and tablets */
@media (max-width: 899px) {
    .hero-visual {
        overflow: visible !important;
    }

    .badge-left {
        left: -10px;
        bottom: 25%;
    }

    .badge-right {
        right: -10px;
        bottom: 12%;
    }

    .badge-top {
        right: 5px;
        top: 5px;
    }

    .floating-glass-badge {
        padding: 6px 12px;
        font-size: 0.72rem;
        gap: 6px;
    }

    .badge-icon {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}

.hero-arrow {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hero-muted);
    transition:
        color 0.25s,
        transform 0.25s;
}

.hero-arrow-label {
    display: block;
}

.hero-arrow i {
    font-size: 0.8rem;
    animation: heroArrowBounce 2.2s ease-in-out infinite;
}

@keyframes heroArrowBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.hero-arrow:hover {
    color: var(--lime-text);
}

.hero-arrow:hover i {
    animation-play-state: paused;
}

@media (min-width: 900px) {
    .hero-arrow {
        position: absolute;
        bottom: 2rem;
        left: 25%;
        transform: translateX(-50%);
        z-index: 2;
    }

    .hero-arrow:hover {
        transform: translateX(-50%) translateY(3px);
    }

    .hero-visual {
        padding-bottom: 2rem;
        border-left: 1px solid var(--hero-line);
    }

    .hero-photo {
        max-height: calc(100dvh - var(--header-h) - 2rem);
    }
}

@media (max-width: 899px) {
    .hero {
        min-height: auto;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hero-copy {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .hero-title-line {
        font-size: clamp(2.85rem, 13vw, 4.25rem);
    }

    .hero-title-line--accent {
        margin-left: 0.35rem;
    }

    .hero-sub {
        max-width: none;
        margin-bottom: 1.35rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .hero-stack {
        max-width: none;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .hero-visual {
        padding: 0.5rem 1rem 0;
        min-height: 34vh;
    }

    .hero-visual::before {
        width: 100%;
        height: 70%;
    }

    .hero-photo {
        max-width: min(78vw, 320px);
        max-height: min(50vh, 400px);
        margin: 0 auto;
    }

    .hero-arrow {
        align-self: center;
        padding: 1.25rem 0 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-arrow i {
        animation: none;
    }
}
/* ===== À Propos (About) ===== */
.about-section {
    padding: clamp(4rem, 12vh, 8rem) clamp(1rem, 3vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

.about-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .about-visual {
        margin: 0;
    }
}

.about-photo-wrap {
    position: relative;
    z-index: 2;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    background: var(--gray);
    box-shadow: 0 20px 40px var(--photo-shadow);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.about-visual:hover .about-photo {
    transform: scale(1.05);
}

.about-deco-box {
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 2px solid var(--lime);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out);
}

.about-visual:hover .about-deco-box {
    transform: translate(-10px, 10px);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-eyebrow {
    font-size: clamp(0.62rem, 1.5vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
}

.about-desc {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

[data-theme="dark"] .about-desc {
    color: #c8d2df;
}

.about-desc strong {
    color: var(--text);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    flex: 1 1 120px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--lime);
    box-shadow: 0 10px 20px var(--card-shadow);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--lime-text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ===== Mon Process (Methodology) ===== */
.process-section {
    padding: clamp(4rem, 12vh, 8rem) clamp(1rem, 3vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.process-header {
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
    text-align: center;
}

.process-eyebrow {
    font-size: clamp(0.62rem, 1.5vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.process-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.process-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    transition: all 0.45s var(--ease-out);
    overflow: hidden;
}

.process-num {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 8vw, 5.5rem);
    color: rgba(200, 245, 66, 0.04);
    position: absolute;
    top: 0.75rem;
    right: 1.5rem;
    line-height: 1;
    pointer-events: none;
    transition: all 0.4s var(--ease-out);
}

[data-theme="light"] .process-num {
    color: rgba(61, 122, 10, 0.04);
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: var(--lime);
    box-shadow:
        0 20px 40px var(--card-shadow),
        0 0 20px var(--lime-glow);
}

.process-card:hover .process-num {
    color: rgba(200, 245, 66, 0.15);
    transform: translateY(-5px) scale(1.05);
}

[data-theme="light"] .process-card:hover .process-num {
    color: rgba(61, 122, 10, 0.1);
}

.process-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.process-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .process-card-desc {
    color: #ccd5e0;
}

/* ===== Services ===== */
.services {
    padding: clamp(3rem, 10vh, 8rem) 0;
}

.services .container-xxl {
    max-width: 1560px;
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}

.services-header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.services-eyebrow {
    font-size: clamp(0.62rem, 1.5vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.services-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 600px) {
    .services-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.service-card {
    position: relative;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: clamp(16px, 3vw, 24px);
    backdrop-filter: blur(16px);
    transition: all 0.5s var(--ease-out);
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(16, 185, 129, 0.08) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover {
    border-color: var(--lime);
    box-shadow: 0 20px 40px var(--card-shadow);
}

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

.service-icon {
    width: clamp(48px, 12vw, 60px);
    height: clamp(48px, 12vw, 60px);
    background: var(--gray);
    border: 1px solid var(--gray-mid);
    border-radius: clamp(12px, 2vw, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    color: var(--lime-text);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    transition: all 0.5s var(--ease-out);
    box-shadow: 0 8px 16px var(--card-shadow);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: var(--lime);
    color: var(--on-lime);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(200, 245, 66, 0.4);
}

.service-name {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.05;
    word-wrap: break-word;
}

.service-desc {
    font-size: clamp(0.88rem, 2.2vw, 0.95rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
}

[data-theme="dark"] .service-desc {
    color: #d1d1d1;
}

.service-desc strong {
    color: var(--text);
}

.service-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--gray-mid);
    padding-top: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0;
}

.service-list li {
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
    background: var(--gray);
    border: 1px solid var(--gray-mid);
    border-radius: 99px;
    color: var(--text-muted);
    transition: all 0.3s;
    white-space: nowrap;
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 599px) {
    .services-title {
        font-size: clamp(2.25rem, 12vw, 3rem);
    }

    .service-card {
        padding: 1.15rem;
        border-radius: 14px;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 0.85rem;
        border-radius: 10px;
    }

    .service-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-desc {
        font-size: 0.78rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-list {
        gap: 0.35rem;
        padding-top: 0.75rem;
    }

    .service-list li {
        font-size: 0.58rem;
        padding: 0.28rem 0.45rem;
        white-space: normal;
        text-align: center;
        flex: 1 1 auto;
        min-width: 0;
    }
}

.service-card:hover .service-list li {
    border-color: rgba(200, 245, 66, 0.3);
    color: var(--text);
}

/* ===== Stack Section (Derrière mon Code) ===== */
.stack-section {
    padding: clamp(4rem, 12vh, 8rem) clamp(1rem, 3vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.stack-header {
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.stack-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 0;
}

.stack-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    flex: 0 1 115px;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out);
}

.stack-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
    position: relative;
}

.stack-name {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.3s;
}

.stack-item:hover {
    transform: translateY(-8px);
}

.stack-item:hover .stack-name {
    color: var(--text);
}

/* HTML5 */
.stack-item.html5 .stack-icon-circle {
    background: rgba(227, 79, 38, 0.06);
    color: #e34f26;
    border-color: rgba(227, 79, 38, 0.12);
}
.stack-item.html5:hover .stack-icon-circle {
    background: rgba(227, 79, 38, 0.12);
    border-color: #e34f26;
    box-shadow:
        0 12px 24px rgba(227, 79, 38, 0.15),
        0 0 15px rgba(227, 79, 38, 0.2);
}

/* CSS3 */
.stack-item.css3 .stack-icon-circle {
    background: rgba(21, 114, 182, 0.06);
    color: #1572b6;
    border-color: rgba(21, 114, 182, 0.12);
}
.stack-item.css3:hover .stack-icon-circle {
    background: rgba(21, 114, 182, 0.12);
    border-color: #1572b6;
    box-shadow:
        0 12px 24px rgba(21, 114, 182, 0.15),
        0 0 15px rgba(21, 114, 182, 0.2);
}

/* JavaScript */
.stack-item.javascript .stack-icon-circle {
    background: rgba(247, 223, 30, 0.06);
    color: #e8c61c; /* Slightly darkened yellow for better visual contrast */
    border-color: rgba(247, 223, 30, 0.12);
}
.stack-item.javascript:hover .stack-icon-circle {
    background: rgba(247, 223, 30, 0.12);
    border-color: #e8c61c;
    box-shadow:
        0 12px 24px rgba(247, 223, 30, 0.15),
        0 0 15px rgba(247, 223, 30, 0.2);
}

/* Vue.js */
.stack-item.vuejs .stack-icon-circle {
    background: rgba(79, 192, 141, 0.06);
    color: #42b983;
    border-color: rgba(79, 192, 141, 0.12);
}
.stack-item.vuejs:hover .stack-icon-circle {
    background: rgba(79, 192, 141, 0.12);
    border-color: #42b983;
    box-shadow:
        0 12px 24px rgba(79, 192, 141, 0.15),
        0 0 15px rgba(79, 192, 141, 0.2);
}

/* PHP */
.stack-item.php .stack-icon-circle {
    background: rgba(119, 123, 180, 0.06);
    color: #777bb4;
    border-color: rgba(119, 123, 180, 0.12);
}
.stack-item.php:hover .stack-icon-circle {
    background: rgba(119, 123, 180, 0.12);
    border-color: #777bb4;
    box-shadow:
        0 12px 24px rgba(119, 123, 180, 0.15),
        0 0 15px rgba(119, 123, 180, 0.2);
}

/* Laravel */
.stack-item.laravel .stack-icon-circle {
    background: rgba(255, 45, 32, 0.06);
    color: #ff2d20;
    border-color: rgba(255, 45, 32, 0.12);
}
.stack-item.laravel:hover .stack-icon-circle {
    background: rgba(255, 45, 32, 0.12);
    border-color: #ff2d20;
    box-shadow:
        0 12px 24px rgba(255, 45, 32, 0.15),
        0 0 15px rgba(255, 45, 32, 0.2);
}

/* Bootstrap */
.stack-item.bootstrap .stack-icon-circle {
    background: rgba(121, 82, 179, 0.06);
    color: #7952b3;
    border-color: rgba(121, 82, 179, 0.12);
}
.stack-item.bootstrap:hover .stack-icon-circle {
    background: rgba(121, 82, 179, 0.12);
    border-color: #7952b3;
    box-shadow:
        0 12px 24px rgba(121, 82, 179, 0.15),
        0 0 15px rgba(121, 82, 179, 0.2);
}

/* MySQL */
.stack-item.mysql .stack-icon-circle {
    background: rgba(68, 121, 161, 0.06);
    color: #00758f; /* Styled MySQL brand blue/teal color */
    border-color: rgba(68, 121, 161, 0.12);
}
.stack-item.mysql:hover .stack-icon-circle {
    background: rgba(68, 121, 161, 0.12);
    border-color: #00758f;
    box-shadow:
        0 12px 24px rgba(68, 121, 161, 0.15),
        0 0 15px rgba(68, 121, 161, 0.2);
}

/* ===== Projects ===== */
.projects-section {
    padding: clamp(3rem, 10vh, 6rem) 1.5rem clamp(4rem, 12vh, 8rem);
    max-width: 1400px;
    margin: 0 auto;
}

.projects-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--lime-text);
    margin-bottom: 0.5rem;
}

.projects-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ===== Dynamic Horizontal Projects Carousel & 3D Browser Decks ===== */
.projects-header .view-all-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--lime-text) !important;
    padding: 0.65rem 1.6rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s var(--ease-spring);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.projects-header .view-all-btn:hover {
    background: var(--lime);
    color: var(--on-lime) !important;
    border-color: var(--lime);
    box-shadow: 0 8px 24px var(--lime-glow);
    transform: translateY(-3px);
}

.projects-header .view-all-btn i {
    transition: transform 0.3s ease;
}

.projects-header .view-all-btn:hover i {
    transform: translateX(4px);
}

.projects-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s var(--ease-spring);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.carousel-nav-btn.prev-btn {
    left: -26px;
}

.carousel-nav-btn.next-btn {
    right: -26px;
}

.carousel-nav-btn:hover {
    background: var(--lime);
    color: var(--on-lime);
    border-color: var(--lime);
    box-shadow: 0 8px 24px var(--lime-glow);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Header Projects Controls */
.projects-carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.projects-carousel-controls .carousel-nav-btn {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
}

.projects-carousel-controls .carousel-nav-btn:hover {
    transform: scale(1.06) !important;
    background: var(--lime) !important;
    color: var(--on-lime) !important;
    border-color: var(--lime) !important;
    box-shadow: 0 8px 24px var(--lime-glow) !important;
}

.projects-carousel-controls .carousel-nav-btn:active {
    transform: scale(0.96) !important;
}

.projects-carousel-track-viewport {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding: 1.5rem 0;
}

.projects-carousel-track-viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.projects-carousel-track {
    display: flex;
    gap: 2.5rem;
    padding: 0 1rem;
    width: max-content;
}

.project-card {
    width: 530px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    backdrop-filter: blur(16px);
}

.project-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.project-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.project-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Termine (Completed) */
.project-status-badge.status-completed {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--lime-text);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.project-status-badge.status-completed .status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--lime-text);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--lime-text);
}

/* En cours (Ongoing) */
.project-status-badge.status-ongoing {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.05);
}

[data-theme="light"] .project-status-badge.status-ongoing {
    color: #d97706;
    background: rgba(217, 119, 6, 0.06);
    border-color: rgba(217, 119, 6, 0.2);
}

.project-status-badge.status-ongoing .status-dot-pulse {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 6px currentColor;
}

.project-status-badge.status-ongoing .status-dot-pulse::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: statusPulse 1.8s infinite ease-in-out;
    opacity: 0;
}

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

.project-card-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.04em;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.project-card-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.9rem; /* Keeps layout perfectly standardized and aligned */
}

.project-deck-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.project-deck-item {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 14px;
    overflow: hidden;
    background: #15181e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s;
    display: flex;
    flex-direction: column;
}

.browser-header {
    height: 20px;
    background: #1e222a;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.browser-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.browser-dot:nth-child(1) {
    background: #ff5f56;
}
.browser-dot:nth-child(2) {
    background: #ffbd2e;
}
.browser-dot:nth-child(3) {
    background: #27c93f;
}

.browser-content {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.browser-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* 3D Cards Stacking Transform Positions */
.deck-item-1 {
    transform: rotate(5deg) translate(20px, -15px) scale(0.92);
    z-index: 1;
    opacity: 0.65;
}

.deck-item-2 {
    transform: rotate(-3deg) translate(-20px, -8px) scale(0.96);
    z-index: 2;
    opacity: 0.85;
}

.deck-item-3 {
    transform: rotate(0deg) translate(0, 8px) scale(1);
    z-index: 3;
    opacity: 1;
}

/* Hover Deck Expansion Micro-Interactions */
.project-card:hover .deck-item-1 {
    transform: rotate(9deg) translate(42px, -24px) scale(0.94);
    opacity: 0.85;
}

.project-card:hover .deck-item-2 {
    transform: rotate(-7deg) translate(-40px, -15px) scale(0.98);
    opacity: 0.95;
}

.project-card:hover .deck-item-3 {
    transform: rotate(-1deg) translate(0, 0px) scale(1.03);
}

/* Dynamic Bottom-Right Diagonal Link Button */
.project-link-btn {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #11141a;
    border: 1px solid var(--card-border);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.4s var(--ease-spring),
        background 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
    text-decoration: none;
}

.project-card:hover .project-link-btn {
    background: var(--lime);
    color: var(--on-lime) !important;
    border-color: var(--lime);
    box-shadow: 0 8px 24px var(--lime-glow);
}

.project-link-btn:hover {
    transform: scale(1.12) rotate(45deg);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .project-card {
        width: 440px;
        padding: 1.8rem;
    }
    .carousel-nav-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    .carousel-nav-btn.prev-btn {
        left: -15px;
    }
    .carousel-nav-btn.next-btn {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .projects-carousel-container {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
    }

    .projects-carousel-track-viewport {
        overflow-x: auto !important;
        overflow-y: visible !important;
        width: 100% !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        padding: 1rem 0 !important;
    }

    .projects-carousel-track {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        width: max-content !important;
        padding: 0 1.5rem !important; /* Perfect side margins so active card centers nicely and next card peeks in */
    }

    .project-card {
        width: 85vw !important;
        max-width: 380px !important;
        flex-shrink: 0 !important;
        scroll-snap-align: center !important;
        padding: 1.6rem !important;
        border-radius: 24px !important;
        gap: 1.25rem !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
        margin: 0 !important;
    }

    .project-card-title {
        font-size: 1.4rem !important;
    }

    .project-card-subtitle {
        font-size: 0.82rem !important;
        height: 2.6rem !important; /* 2 aligned text lines */
        margin-bottom: 0.2rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .projects-carousel-controls .carousel-nav-btn {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
        background: rgba(17, 17, 17, 0.65) !important;
        backdrop-filter: blur(6px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: var(--text) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        margin: 0 !important;
    }

    [data-theme="light"] .projects-carousel-controls .carousel-nav-btn {
        background: rgba(255, 255, 255, 0.75) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    .projects-carousel-controls .carousel-nav-btn:hover {
        background: var(--lime) !important;
        color: var(--on-lime) !important;
        border-color: var(--lime) !important;
        transform: scale(1.05) !important;
    }

    .project-link-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 0.9rem !important;
        bottom: -5px !important;
        right: -5px !important;
    }

    /* 3D stacked browser frames scaled beautifully to fit within small card dimensions */
    .project-deck-container {
        aspect-ratio: 16 / 10.5 !important;
        height: auto !important;
        margin-top: 0.4rem !important;
        padding: 0 !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .project-deck-item {
        width: 82% !important;
        height: 82% !important;
        border-radius: 10px !important;
    }

    .browser-header {
        height: 15px !important;
        padding: 0 6px !important;
        gap: 3px !important;
    }

    .browser-dot {
        width: 4px !important;
        height: 4px !important;
    }

    /* Scaled down translations for smaller cards to avoid border spills */
    .deck-item-1 {
        transform: rotate(4deg) translate(10px, -8px) scale(0.92) !important;
        opacity: 0.65 !important;
        z-index: 1 !important;
    }

    .deck-item-2 {
        transform: rotate(-3deg) translate(-10px, -4px) scale(0.96) !important;
        opacity: 0.85 !important;
        z-index: 2 !important;
    }

    .deck-item-3 {
        transform: rotate(0deg) translate(0, 4px) scale(1) !important;
        opacity: 1 !important;
        z-index: 3 !important;
    }

    /* Hover/touch active expansions on mobile */
    .project-card:hover .deck-item-1 {
        transform: rotate(7deg) translate(22px, -14px) scale(0.94) !important;
        opacity: 0.85 !important;
    }

    .project-card:hover .deck-item-2 {
        transform: rotate(-6deg) translate(-20px, -8px) scale(0.98) !important;
        opacity: 0.95 !important;
    }

    .project-card:hover .deck-item-3 {
        transform: rotate(-1deg) translate(0, 0px) scale(1.03) !important;
    }

    .carousel-dots-container {
        display: flex !important; /* Restore indicators */
    }
}

/* ===== CTA Banner ===== */
.cta-banner {
    margin: 0 2rem clamp(3rem, 8vh, 6rem);
    border: 1px solid var(--gray-mid);
    background: var(--dark);
    overflow: hidden;
}

.cta-banner-inner {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .cta-banner-inner {
        grid-template-columns: 1fr 1.2fr;
    }
}

.cta-photo-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    max-height: 400px;
}

@media (min-width: 768px) {
    .cta-photo-wrap {
        max-height: none;
        aspect-ratio: auto;
        min-height: 320px;
    }
}

.cta-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.cta-text {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--lime-text);
    margin: 0.5rem 0 1rem;
}

.cta-desc {
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.cta-btn {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    background: var(--lime);
    color: var(--on-lime);
    border: none;
    cursor: pointer;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.cta-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(200, 245, 66, 0.35);
}

/* ===== Contact ===== */
.contact {
    padding: clamp(4rem, 12vh, 8rem) clamp(1rem, 3vw, 2rem);
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.contact-header {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.contact-eyebrow {
    font-size: clamp(0.62rem, 1.5vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.contact-title span {
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: start;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-desc {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0;
}

[data-theme="dark"] .contact-desc {
    color: #c8d2df;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--lime-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--lime);
    box-shadow:
        0 12px 28px var(--card-shadow),
        0 0 20px var(--lime-glow);
}

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

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gray);
    border: 1px solid var(--gray-mid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--lime-text);
    transition: all 0.4s var(--ease-out);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-card-icon {
    background: var(--lime);
    color: var(--on-lime);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 15px rgba(200, 245, 66, 0.4);
}

.contact-card > div {
    position: relative;
    z-index: 1;
}

.contact-card-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-card-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--text);
    transition: color 0.3s;
}

.contact-card:hover .contact-card-value {
    color: var(--lime-text);
}

.contact-availability {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.15rem;
    border-radius: 99px;
    background: var(--lime-glow);
    border: 1px solid rgba(200, 245, 66, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--lime-text);
    box-shadow: 0 4px 12px rgba(200, 245, 66, 0.05);
}

[data-theme="light"] .contact-availability {
    background: rgba(61, 122, 10, 0.06);
    border-color: rgba(61, 122, 10, 0.18);
    color: #3d7a0a;
}

.contact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8f542;
    position: relative;
}

[data-theme="light"] .contact-dot {
    background: #3d7a0a;
}

.contact-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulseDot 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    opacity: 0.8;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.contact-form-wrap {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease-out);
}

.contact-form-wrap:focus-within {
    border-color: rgba(200, 245, 66, 0.35);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    background: var(--gray);
    border: 1px solid var(--gray-mid);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.95rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all 0.3s var(--ease-out);
    resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--lime);
    background: var(--black);
    box-shadow: 0 0 0 4px var(--lime-glow);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: #99a;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 2rem;
    border-radius: var(--radius-sm);
    background: var(--lime);
    color: var(--on-lime);
    border: none;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 245, 66, 0.4);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit i {
    font-size: 0.85rem;
    transition: transform 0.4s var(--ease-out);
}

.contact-submit:hover i {
    transform: translate(4px, -4px);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--black);
    border-top: 1px solid var(--gray-mid);
    padding: 5rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 245, 66, 0.2),
        transparent
    );
}

.footer-top {
    max-width: 1560px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 4rem;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
    transition: transform 0.4s var(--ease-out);
}

.footer-logo:hover .footer-logo-img {
    transform: rotate(-8deg) scale(1.08);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo span:last-child {
    color: var(--lime);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
    border: 1px solid var(--gray-mid);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s var(--ease-out);
}

.footer-socials a:hover {
    background: var(--lime);
    color: var(--on-lime);
    border-color: var(--lime);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 20px rgba(200, 245, 66, 0.2);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-list a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-list a:hover {
    color: var(--lime);
}

.footer-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-mid);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-made {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-made i {
    margin: 0 0.1rem;
}

.footer-made i.fa-heart {
    color: #ff4d4d;
}

.footer-made i.fa-laravel {
    color: #ff2d20;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-line {
        animation: none;
    }
    .hero-photo,
    .gallery-card-img,
    .project-card-img,
    .message-photo {
        transform: none !important;
    }
}

/* ===== FAQs ===== */
.faqs {
    padding: clamp(5rem, 15vh, 10rem) 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

/* Background glow for the whole section */
.faqs::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(
        circle,
        rgba(200, 245, 66, 0.03) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.faqs-header {
    margin-bottom: clamp(4rem, 8vw, 6rem);
    text-align: center;
    position: relative;
    z-index: 1;
}

.faqs-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--lime-text);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.faqs-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 6rem);
    line-height: 0.85;
    text-transform: uppercase;
    color: var(--text);
}

.accordion-flush {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.accordion-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    margin-bottom: 1rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-out);
}

.accordion-item:hover {
    border-color: var(--lime) !important;
    box-shadow: 0 10px 30px var(--card-shadow);
    transform: translateY(-2px);
}

.accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--lime) !important;
    box-shadow:
        0 15px 40px var(--card-shadow),
        0 0 20px var(--lime-glow);
}

.accordion-button {
    background: transparent !important;
    color: var(--text) !important;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    padding: 1.5rem;
    box-shadow: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.accordion-button::after {
    display: none;
}

.accordion-button::before {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-muted);
    order: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-mid);
    transition: all 0.4s var(--ease-out);
}

.accordion-button:not(.collapsed) {
    color: var(--lime) !important;
    padding-bottom: 1rem;
}

.accordion-button:not(.collapsed)::before {
    content: "\f068";
    color: var(--on-lime);
    background: var(--lime);
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

[data-theme="dark"] .accordion-body {
    color: #c8d2df;
}

@media (max-width: 768px) {
    .accordion-button {
        padding: 1.25rem 1rem;
        font-size: 1.05rem;
    }
    .accordion-body {
        padding: 0 1rem 1.25rem;
    }
}

/* ===== Testimonials ===== */
.testimonials {
    padding: clamp(4rem, 12vh, 8rem) 0;
    position: relative;
}

.testimonials .container-xxl {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.testimonials-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.testimonials-eyebrow {
    font-size: clamp(0.62rem, 1.5vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.testimonials-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.testimonials-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 1.5rem;
    padding: 1rem 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    min-width: 100%;
    animation: scrollMarquee 40s linear infinite;
}

.testimonials-marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 1.5rem));
    }
}

.testimonial-card {
    width: clamp(320px, 85vw, 420px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s var(--ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--lime);
    box-shadow:
        0 15px 35px var(--card-shadow),
        0 0 20px var(--lime-glow);
}

.testimonial-quote {
    font-size: 2.5rem;
    color: var(--lime-glow);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    opacity: 0.5;
    transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover .testimonial-quote {
    color: var(--lime);
    opacity: 0.2;
    transform: scale(1.1) rotate(-5deg);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

[data-theme="dark"] .testimonial-text {
    color: #c8d2df;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    color: var(--lime-text);
    font-size: 1.4rem;
    border: 1px solid var(--card-border);
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin: 0;
    color: var(--text);
}

.author-role {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    z-index: 100990;
    transition:
        transform 0.4s var(--ease-spring),
        box-shadow 0.4s var(--ease-out);
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-ripple 2s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 76px;
    left: auto;
    background: var(--nav-menu-bg);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition:
        opacity 0.3s var(--ease-out),
        transform 0.3s var(--ease-out),
        visibility 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-mid);
    backdrop-filter: blur(8px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsapp-ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        left: auto;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .whatsapp-tooltip {
        display: none !important;
    }
}
