/*
 * Portfolio Public — Main CSS
 * Thème dark, adapté du design original
 */

/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #0F172A;
    --card-bg: #1E293B;
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-color: #ffffff;
    --accent-green: #22C55E;
    --font-main: 'Archivo', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-modal-title: 'Space Grotesk', sans-serif;
    --font-modal-body: 'Archivo', sans-serif;
    --nav-height: 80px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(124, 58, 237, 0.35);
    color: #fff;
}
::-moz-selection {
    background: rgba(124, 58, 237, 0.35);
    color: #fff;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse at 15% 30%, rgba(90, 25, 140, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 55%, rgba(140, 35, 90, 0.14) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(100, 30, 115, 0.12) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* --- FOCUS STATES (accessibilité clavier) --- */
:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.75);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- RESPECT prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- NAVIGATION --- */
.main-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: opacity 1s ease;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    font-family: var(--font-display);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img { height: 40px; vertical-align: middle; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: white; }

/* Hamburger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

#canvas-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Subtle breathing — opacity est GPU-composited (pas de repaint) */
@keyframes heroBreath {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.88; }
}
.hero-breath { animation: heroBreath 5s ease-in-out infinite; }

/* Bottom fade — smooths transition to next section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40vh;
    background: linear-gradient(to bottom,
        transparent 0%,
        color-mix(in srgb, var(--bg-color, #0F172A) 20%, transparent) 35%,
        color-mix(in srgb, var(--bg-color, #0F172A) 65%, transparent) 65%,
        var(--bg-color, #0F172A) 100%
    );
    z-index: 6;
    pointer-events: none;
}

/* Animated film grain */
@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-2%, -3%); }
    20%  { transform: translate(3%, 1%); }
    30%  { transform: translate(-1%, 4%); }
    40%  { transform: translate(4%, -2%); }
    50%  { transform: translate(-3%, 3%); }
    60%  { transform: translate(2%, -4%); }
    70%  { transform: translate(-4%, 1%); }
    80%  { transform: translate(1%, -1%); }
    90%  { transform: translate(3%, 4%); }
    100% { transform: translate(0, 0); }
}

/* Noise Texture Overlay */
.hero::before {
    content: "";
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    opacity: var(--hero-grain, 0.14);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: soft-light;
    animation: grainShift 0.1s steps(1) infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    /* Pre-hidden for entry animation — JS reveals via clip-path */
    clip-path: inset(110% 0 0 0);
    will-change: clip-path;
}

.hero h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    /* Pre-hidden for entry animation */
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
}

/* Animated gradient border on the subtitle badge */
@keyframes badgeSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Outer ring — clips the oversized rotating gradient → only 1px border is visible */
.subtitle-ring {
    display: inline-block;
    padding: 1px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    /* Pre-hidden for entry animation */
    opacity: 0;
    will-change: opacity;
}

.subtitle-ring::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(
        from 0deg, #8b5cf6, #3b82f6, #06b6d4, #10b981, #8b5cf6
    );
    animation: badgeSpin 1.5s linear infinite;
    pointer-events: none;
}

/* Badge inner — sits above the gradient, texte parfaitement lisible */
.subtitle {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(0,0,0,0.72);
    padding: 8px 16px;
    border-radius: 49px;
    backdrop-filter: blur(5px);
    position: relative;
    border: none;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: opacity 0.4s ease;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
    opacity: 0.5;
}

.wheel {
    width: 2px;
    height: 6px;
    background: currentColor;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.5;
    animation: arrow-anim 1.5s infinite;
    animation-delay: 0.2s;
}

@keyframes scroll-wheel {
    0%  { opacity: 1; top: 8px; }
    100%{ opacity: 0; }
}

@keyframes arrow-anim {
    0%  { opacity: 0; transform: rotate(45deg) translate(-5px,-5px); }
    50% { opacity: 1; }
    100%{ opacity: 0; transform: rotate(45deg) translate(5px,5px); }
}

/* ─── 3D interaction hint ────────────────────────────────────────────── */
/* ─── 3D interaction hint — centered above scroll button ─────────── */
.hero-3d-hint {
    position: absolute;
    bottom: 160px; /* above .scroll-down at bottom:40px + ~80px height */
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

/* JS adds .hint-visible after hero reveals */
.hero-3d-hint.hint-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes hint3d-idle {
    to   { opacity: 0; transform: translateX(-50%) translateY(5px); }
}


.hero-3d-hint-text {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* Drag icon: hand + bidirectional arrows */
.hero-3d-hint-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer dashed ring */
.hero-3d-hint-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,0.25);
    animation: hint3d-spin 8s linear infinite;
}

@keyframes hint3d-spin {
    to { transform: rotate(360deg); }
}

/* The drag + rotate icon */
.hero-3d-hint-icon i {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
    animation: hint3d-rock 2.4s ease-in-out infinite;
}

@keyframes hint3d-rock {
    0%, 100% { transform: rotate(-10deg); }
    50%       { transform: rotate(10deg); }
}

.hero-3d-hint-chevron {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    animation: hint3d-bounce 1.6s ease-in-out infinite;
}

@keyframes hint3d-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- SECTIONS COMMUNES --- */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 5;
}

/* First section after hero overlaps to erase the boundary */
.hero + section {
    margin-top: -80px;
    padding-top: calc(6rem + 80px);
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

/* --- PROJETS SECTION --- */
#projects {
    position: relative;
}

/* Section title row (projets) */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}
.section-title-row .section-title { margin-bottom: 0; }

/* Carousel nav buttons */
.carousel-controls { display: flex; gap: 0.5rem; }
.carousel-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.carousel-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.35);
}
.carousel-btn:disabled { opacity: 0.25; cursor: not-allowed; }

/* Disable card hover lift while drag-scrolling */
.projects-carousel .projects-grid[style*="grabbing"] .project-card,
.skills-carousel   .skills-grid[style*="grabbing"]   .skill-card {
    transform: none !important;
    transition: none !important;
}

/* === CAROUSEL VIEW (projets-carousel class on <section>) === */
.projects-carousel {
    overflow: hidden; /* clip cards at viewport edge */
}
.projects-carousel .projects-grid {
    display: flex;
    overflow-x: auto;
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-top: 12px; /* room for hover lift */
    padding-left: max(5vw, calc((100vw - 1200px) / 2));
    padding-right: max(5vw, calc((100vw - 1200px) / 2));
    padding-bottom: 2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.projects-carousel .projects-grid::-webkit-scrollbar { display: none; }
.projects-carousel .project-card {
    flex: 0 0 clamp(260px, 38vw, 500px);
    height: auto;
}
/* Title larger in carousel */
.projects-carousel .project-info h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

/* Image proportionnelle à la largeur de carte (ratio 4:3) */
.projects-carousel .project-img-wrap {
    aspect-ratio: 4 / 3;
}
.projects-carousel .project-img {
    height: 100%;
}

/* --- GRILLE PROJETS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2,0.8,0.2,1) forwards;
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(n+7) { animation-delay: 0.7s; }

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Overlay sombre sur toute la carte */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 2;
    border-radius: 16px;
}

.project-card:hover::before { opacity: 1; }

/* Bouton centré sur l'overlay */
.project-card::after {
    content: 'Voir les d\00e9tails';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -46%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);
    white-space: nowrap;
    z-index: 3;
    letter-spacing: 0.5px;
}

.project-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Cacher le texte statique en bas au survol */
.project-card:hover .project-link { opacity: 0; }

.project-img-wrap {
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #222;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.project-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: background 0.2s;
}

.project-play-badge i {
    width: 52px;
    height: 52px;
    background: rgba(20,20,24,0.82);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    padding-left: 3px; /* optical centering of the play triangle */
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 24px rgba(0,0,0,0.55);
    border: 1.5px solid rgba(255,255,255,0.18);
}

.project-card:hover .project-play-badge { background: rgba(0,0,0,0.18); }
.project-card:hover .project-play-badge i { transform: scale(1.1); background: rgba(30,30,36,0.92); }

.project-context-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}
.project-context-badge--freelance {
    background: rgba(10, 40, 20, 0.75);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #4ade80;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.project-context-badge--experience {
    background: rgba(15, 15, 40, 0.75);
    border: 1px solid rgba(165, 180, 252, 0.5);
    color: #c4b5fd;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.project-job-title {
    font-size: 0.8rem;
    color: var(--cta-color, #22C55E);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin: 0;
}

.project-img-placeholder {
    width: 100%;
    height: 250px;
    background: #222;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 2rem;
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
}

.project-info h3 {
    color: white;
    font-size: 1.25rem;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: gap 0.2s;
    cursor: pointer;
}

.project-link:hover { gap: 1rem; }

/* --- COMPÉTENCES SECTION --- */
#skills {
    position: relative;
}

/* --- COMPÉTENCES --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.skill-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2,0.8,0.2,1) forwards;
    transition: transform 0.3s;
}

.skill-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
}

.skill-card i { font-size: 2.5rem; color: white; margin-bottom: 0.5rem; }
.skill-card h3 { color: white; font-size: 1.25rem; font-family: var(--font-display); }
.skill-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* === SKILLS CAROUSEL MODE === */
.skills-carousel {
    overflow: hidden;
}
.skills-carousel .skills-grid {
    display: flex;
    overflow-x: auto;
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-top: 12px; /* room for hover lift */
    padding-left: max(5vw, calc((100vw - 1200px) / 2));
    padding-right: max(5vw, calc((100vw - 1200px) / 2));
    padding-bottom: 2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
}
.skills-carousel .skills-grid::-webkit-scrollbar { display: none; }

.skills-carousel .skill-card {
    flex: 0 0 clamp(260px, 38vw, 500px);
    min-height: clamp(240px, 30vw, 380px);
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.75rem;
    border-radius: 16px;
    animation: none;
    opacity: 1;
}
/* Icon: absolute top-right */
.skills-carousel .skill-card i {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    font-size: 2.2rem;
    margin: 0;
    color: rgba(255,255,255,0.75);
}
/* Title: top-left, normal weight */
.skills-carousel .skill-card h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: white;
    font-family: inherit;
    padding-right: 3.5rem;
    margin-bottom: 0;
}
/* Description: pushed to bottom, large bold */
.skills-carousel .skill-card p {
    margin-top: auto;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 700;
    color: white;
    line-height: 1.55;
}

/* --- CONTACT --- */
#contact {
    text-align: center;
    position: relative;
    padding-bottom: 10rem;
}

.contact-container {
    padding: 2rem;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(140, 40, 90, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 0%,   rgba(90,  30, 120, 0.12) 0%, transparent 55%),
        rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.4),
        0 0 60px rgba(120, 35, 80, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Contact dual layout (form + LinkedIn) */
.contact-dual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;   /* OU + LinkedIn card centrés verticalement */
    max-width: 960px;
    margin: 0 auto;
}

.contact-form-col {
    display: flex;
    flex-direction: column;
    align-self: stretch;   /* la colonne formulaire prend toute la hauteur */
}

.contact-form-col .contact-container {
    max-width: none;
    margin: 0;
    flex: 1;
}

.contact-or {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    user-select: none;
}

.contact-or::before,
.contact-or::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
}

.contact-or span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

/* LinkedIn card */
.linkedin-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    min-height: 200px;
    justify-content: space-between;
}

.linkedin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
    border-color: rgba(10, 102, 194, 0.45);
}

.glass-card {
    position: relative;
    background:
        radial-gradient(ellipse at 50% -10%,  rgba(90,  30, 120, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%,  rgba(140, 40, 90,  0.14) 0%, transparent 55%),
        rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.4),
        0 0 60px rgba(80, 25, 110, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.linkedin-card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin: 0;
    text-align: center;
}

.linkedin-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #0a66c2;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.2s;
}

.linkedin-card:hover .linkedin-card-cta {
    background: #0958a8;
    transform: scale(1.03);
}

.linkedin-card-cta i {
    font-size: 1.25rem;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .contact-dual {
        grid-template-columns: 1fr;
    }
    .contact-or {
        flex-direction: row;
        padding-top: 0;
        gap: 1rem;
    }
    .contact-or::before,
    .contact-or::after {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    }
}

.form-group { margin-bottom: 1.25rem; text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 0.95rem 1.2rem;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    /* Remove browser default decorations */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* Textarea — fixed height, no resize handle */
.form-group textarea {
    resize: none;
    min-height: 120px;
    line-height: 1.6;
}

/* Number input — hide spinners */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-group input[type="number"] { -moz-appearance: textfield; }

/* Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

#captchaLabel {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
    color: rgba(255,255,255,0.45);
}

.btn-submit {
    width: 100%;
    padding: 1.1rem;
    border: none;
    border-radius: 50px;
    background: var(--cta-color, var(--accent-green));
    color: #0F172A;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-display);
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 1.25rem;
}

.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 25px color-mix(in srgb, var(--cta-color, #22C55E) 40%, transparent); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

#formStatus { text-align: center; font-weight: 500; min-height: 20px; margin-top: 1rem; font-size: 0.9rem; }
#formStatus.success { color: #4ade80; }
#formStatus.error { color: #f87171; }

/* Social liens contact */
.contact-socials {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* --- FOOTER --- */
footer {
    margin-top: 6rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

/* Left: logo + stacked name/role */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.footer-logo { height: 26px; opacity: 0.8; }

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.footer-name {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.footer-role {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255,255,255,0.22);
    letter-spacing: 0.06em;
    line-height: 1.3;
}

/* Right: socials + copy + scroll-to-top */
.footer-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.footer-socials a:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
}

.footer-copy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 0;
        text-align: center;
    }
    .footer-right { gap: 0.85rem; }
}

/* --- SCROLL TO TOP (fixed bottom-right, avoids footer via JS) --- */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s, bottom 0.2s;
    z-index: 900;
    font-size: 0.85rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

#scrollToTop:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.28);
}

#scrollToTop.visible { opacity: 1; visibility: visible; }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 320px;
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(12px);
    transform: translateY(120%);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.cookie-banner.show {
    display: flex;
    transform: translateY(0);
}

/* Overlay désactivé — banner discret, pas de blocage */
.cookie-overlay { display: none !important; }

.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-btn { flex: 1; padding: 0.55rem 0.75rem; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.cookie-accept { background: white; color: black; }
.cookie-deny { background: transparent; color: #888; border: 1px solid #333; }

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 14px 14px 0 0;
        padding: 1.25rem 1.25rem 1.5rem;
    }
}

/* --- PROJECT MODAL --- */
.project-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    max-width: 100%; max-height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    z-index: 9999;
    overflow: hidden;
}

.project-modal::backdrop {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    z-index: 1;
}

.modal-content {
    position: relative;
    width: min(95%, 900px);
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    z-index: 2;
    margin: 5vh auto;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,0.9);
    animation: modalSlideIn 0.4s cubic-bezier(0.165,0.84,0.44,1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.modal-body {
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.modal-header { margin-bottom: 2rem; }
.modal-header .project-type-badge + .project-type-badge { margin-left: 0.4rem; }

.project-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 0.75rem;
}

.modal-header h2 {
    font-family: var(--font-modal-title, var(--font-display));
    font-size: 2.5rem;
    color: white;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

.modal-main-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.modal-main-image--has-gallery {
    cursor: pointer;
}

.modal-main-image--has-gallery::after {
    content: '\f103'; /* fa-angle-double-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.8);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.modal-main-image--has-gallery:hover::after { opacity: 1; }

/* YouTube embed in modal */
.modal-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 0;
}

.modal-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Job title in modal header */
.modal-job-title {
    font-size: 0.85rem;
    color: var(--cta-color, #22C55E);
    font-weight: 500;
    margin: 0.6rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-info { display: flex; flex-direction: column; gap: 2rem; margin-top: 1.5rem; }

.info-section h3 {
    font-family: var(--font-modal-title, var(--font-display));
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-section p,
.info-section div {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    font-family: var(--font-modal-body, var(--font-main));
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

.project-link-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,255,255,0.25); }

.info-section:has(.project-link-btn) {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.tags-container { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #c4b5fd;
    font-weight: 500;
    transition: all 0.2s;
}

.tag:hover { background: rgba(139,92,246,0.18); border-color: rgba(139,92,246,0.35); }

.tag-typology {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.25);
    color: #a5b4fc;
}
.tag-typology:hover { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.4); }

.tag-competence {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.25);
    color: #6ee7b7;
}
.tag-competence:hover { background: rgba(16,185,129,0.16); border-color: rgba(16,185,129,0.4); }

.modal-gallery {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.modal-gallery h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
    animation: fadeInUp 0.5s ease both;
    animation-delay: var(--gi-delay, 0s);
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    background: rgba(0,0,0,0);
    opacity: 0;
    transition: opacity 0.25s, background 0.25s;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: rgba(139,92,246,0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.gallery-item:hover::after {
    opacity: 1;
    background: rgba(0,0,0,0.45);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* --- LIGHTBOX (dialog) --- */
#lightbox-overlay {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-overlay::backdrop {
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    transition: background 0.3s, backdrop-filter 0.3s;
}

#lightbox-overlay.lightbox-visible::backdrop {
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(14px);
}

.lightbox-inner {
    position: relative;
    max-width: min(90vw, 1400px);
    max-height: 90vh;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34,1.4,0.64,1);
}

#lightbox-overlay.lightbox-visible .lightbox-inner {
    opacity: 1;
    transform: scale(1);
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(8px);
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* URL en texte gris discret sous le titre */
.modal-url-text {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.modal-url-text:hover { color: #888; }

/* Contexte du projet (Freelance / Expérience pro) */
.tag-context {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.tag-freelance {
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.35);
    color: #5eead4;
}
.tag-experience {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.35);
    color: #a5b4fc;
}
.modal-context-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.modal-date-range {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- PRELOADER --- */
@keyframes loaderIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#site-loader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(80, 40, 180, 0.18) 0%, transparent 70%),
        #07071a;
    z-index: 99999;
    overflow: hidden;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-loader.loader-exit {
    opacity: 0;
    pointer-events: none;
    touch-action: auto;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.75rem;
    animation: loaderIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Logo */
.loader-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.loader-logo {
    height: clamp(48px, 8vw, 80px);
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
    user-select: none;
    pointer-events: none;
    display: block;
    margin: 0 auto;
}

.loader-logo-text {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

/* Bar wrapper */
.loader-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: clamp(130px, 18vw, 180px);
}

/* Percentage label */
.loader-pct {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1;
    margin-top: 1rem;
    order: 1;
}

/* Track = the "remaining" white portion */
.loader-track {
    position: relative;
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    overflow: hidden;
}

/* Fill = the purple progress portion */
.loader-bar-fill {
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background: #7c3aed;
    border-radius: 2px;
    transition: width 0.06s linear;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5,5,5,0.98);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .hero h1 { font-size: 3rem; }
    .main-nav { padding: 1rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }

    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-body { padding: 1.5rem; max-height: 100vh; }
    .modal-header h2 { font-size: 1.8rem; }
    .modal-main-image { height: 250px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .modal-close { top: 15px; right: 15px; width: 38px; height: 38px; }
}
