/* ===================================
   IMPORTS & FONTS
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Headline:wght@200..800&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mr+De+Haviland&display=swap');

/* ===================================
   VARIABLES CSS
   =================================== */
:root {
    /* Couleurs */
    --bg-color: #050505;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #E5D1A4;
    --line-color: rgba(255,255,255,0.1);
    
    /* Typographie */
    --font-display: 'Stack Sans Headline', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espacements */
    --padding-sides: 6vw;
    --gap-sm: 15px;
    --gap-md: 40px;
    --gap-lg: 60px;
    
    /* Bordures & Radius */
    --radius-sm: 4px;
    --radius-md: 20px;
    --radius-lg: 50px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Carrousel */
    --mzaC-accent: var(--accent);
    --mzaC-accent2: #ffffff;
    --mzaC-glass: rgba(255, 255, 255, 0.03);
    --mzaC-slideW: min(850px, 85vw);
}

[data-theme="light"] {
    --bg-color: #F2F0EB;
    --text-main: #1a1a1a;
    --text-muted: #5a5a5a;
    --accent: #B89E68;
    --line-color: rgba(0,0,0,0.1);
}

/* ===================================
   RESET & BASE
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* ===================================
   EFFET DE GRAIN (Optimisé)
   =================================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.05;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    will-change: opacity;
}

/* ===================================
   HEADER
   =================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px var(--padding-sides);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.main-header > * { 
    pointer-events: auto; 
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

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

.dot { 
    color: var(--accent); 
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--gap-md);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.hero-description strong {
    color: var(--text-main); /* Force le gras en blanc/ivoire */
    font-weight: 600;
}
/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 100vh;
    padding: 100px 0 50px var(--padding-sides);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--gap-lg);
}

.hero-text-container {
    flex: 1;
    z-index: 2;
    padding-right: var(--gap-md);
}

/* Titre Hero avec Typewriter */
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 10rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.typewriter-line {
    display: block;
    width: fit-content;
}

.typewriter-line.indent {
    margin-left: 10vw;
    color: var(--accent);
}

.char {
    opacity: 0;
    display: inline-block;
    will-change: opacity;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
}

/* Surlignage optimisé */
.highlight {
    background-color: #FFFF00;
    color: #000000;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
    line-height: 1.2;
    margin: 0 2px;
}

/* ===================================
   PROFIL ÉDITORIAL
   =================================== */
.vertical-separator {
    width: 1px;
    height: 400px;
    background-color: var(--accent);
    opacity: 0.3;
    margin-right: var(--gap-lg);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1s var(--transition-bounce);
}

.editorial-profile {
    flex: 0 0 auto;
    padding-right: 4vw;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.profile-layout {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    text-align: right;
}

.profile-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 300px;
}

.profile-identity h3 {
    font-family: "Mr de haviland", cursive;
    font-size: 5rem;
    color: var(--text-main);
    line-height: 0.8;
    margin-bottom: 10px;
    margin-top: -180px;
    font-weight: 400;
}

.job-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 20px 0 30px;
}

/* Photo de profil avec animation */
.profile-photo-circle {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

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

.profile-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
    transition: filter var(--transition-smooth), transform var(--transition-smooth);
}

.profile-photo-circle:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Compétences */
.clean-skills {
    display: flex;
    gap: var(--gap-sm);
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.clean-skills span {
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 2px;
    transition: border-color var(--transition-fast);
}

.clean-skills span:hover {
    border-color: var(--accent);
}

/* Liens */
.link-clean {
    text-decoration: none;
    color: var(--accent);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: gap var(--transition-fast);
    flex-direction: row-reverse;
}

.link-clean:hover { 
    gap: 20px; 
}

/* ===================================
   FOOTER HERO
   =================================== */
.hero-footer {
    position: absolute;
    bottom: 30px;
    left: var(--padding-sides);
    right: var(--padding-sides);
    display: flex;
    justify-content: flex-start;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

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

.line-down {
    width: 1px;
    height: 40px;
    background-color: var(--text-muted);
}

/* ===================================
   SECTIONS COMMUNES
   =================================== */
.projects-section, 
.footer-section {
    padding: 150px var(--padding-sides);
}

.section-header {
    margin-bottom: 80px;
    border-top: 1px solid var(--line-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-main);
}

/* ===================================
   PROJETS
   =================================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 150px;
}

.project-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.project-item.reversed {
    grid-template-columns: 1fr 1.5fr;
    direction: rtl;
}

.project-item.reversed .project-info {
    direction: ltr;
    text-align: right;
}

.project-item.reversed .tags {
    justify-content: flex-end;
}

.project-image {
    overflow: hidden;
    border-radius: var(--radius-sm);
    height: 60vh;
    filter: grayscale(100%);
    transition: filter var(--transition-smooth);
}

.project-item:hover .project-image {
    filter: grayscale(0%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

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

.project-info h3 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tags {
    list-style: none;
    display: flex;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-md);
    flex-wrap: wrap;
}

.tags li {
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 1px solid var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.tags li:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-arrow {
    text-decoration: none;
    color: var(--accent);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap var(--transition-fast);
}

.btn-arrow:hover { 
    gap: 20px; 
}

/* ===================================
   FOOTER
   =================================== */
.footer-section {
    text-align: center;
    padding-bottom: 50px;
}

.footer-content h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 50px;
    color: var(--text-main);
}

.email-link {
    font-size: 2rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
    transition: opacity var(--transition-fast);
}

.email-link:hover { 
    opacity: 0.7; 
}

.social-links-minimal {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-bottom {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ===================================
   EFFETS SPÉCIAUX
   =================================== */
.interactive-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 209, 164, 0.15) 0%, transparent 70%);
    border-radius: var(--radius-full);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 2s ease;
    will-change: transform;
}

/* ===================================
   ANIMATION NORRIS (Hover Links)
   =================================== */
a.norris {
    font-size: 3rem;
    color: var(--text-main);
    margin: 5px 0;
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    display: block;
    white-space: nowrap;
    width: fit-content;
    overflow: hidden;
}

a.norris span {
    position: relative;
    display: inline-block;
    color: transparent;
}

a.norris span::before,
a.norris span::after {
    position: absolute;
    left: 0;
    content: attr(data-char);
    color: var(--text-muted);
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
    transition-delay: calc(var(--index) * 25ms);
}

a.norris span::before {
    transform: translateY(0);
    opacity: 1;
}

a.norris span::after {
    transform: translateY(3rem);
    opacity: 0;
    color: var(--accent);
}

a.norris:hover span::before {
    transform: translateY(-3rem);
    opacity: 0;
}

a.norris:hover span::after {
    transform: translateY(0);
    opacity: 1;
}

/* ===================================
   PRELOADER
   =================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.curtain-panel {
    position: relative;
    height: 100%;
    width: 50%;
    background-color: #0c0c0c;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.left-panel {
    justify-content: flex-end;
    padding-right: 10px;
    border-right: 1px solid #222;
}

.right-panel {
    justify-content: flex-start;
    padding-left: 10px;
}

.letter {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
}

/* ===================================
   SWITCH THEME (ON/OFF)
   =================================== */
.switch {
    font-size: 14px;
    display: grid;
    grid-template-columns: 1.5em 2em;
    grid-template-rows: repeat(2, 1.5em);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    margin-left: 20px;
}

.switch__input {
    appearance: none;
    cursor: pointer;
    grid-row: 1 / 3;
    width: 1.5em;
    height: 3em;
    border-radius: 0.75em;
    display: block;
    box-shadow: 0 0 0 2px var(--text-main) inset;
    background-color: transparent;
    transition: all var(--transition-fast);
}

.switch__input::before {
    content: "";
    display: block;
    background-color: var(--text-main);
    border-radius: var(--radius-full);
    margin: 0.15em;
    width: 1.2em;
    height: 1.2em;
    transform: translateY(1.5em);
    transition: transform var(--transition-bounce), background-color var(--transition-fast);
}

.switch__input:checked::before {
    transform: translateY(0);
}

.switch__letters {
    display: block;
    justify-self: center;
    pointer-events: none;
    line-height: 1;
    color: var(--text-main);
    transition: transform var(--transition-bounce), opacity var(--transition-fast);
}

.switch__letters:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
    font-size: 2.5em;
    transform: scale(0.64);
    transform-origin: 50% 100%;
    opacity: 0.3;
}

.switch__letters:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
    font-size: 2.5em;
    transform: scale(1);
    transform-origin: 50% 0%;
    opacity: 1;
}

.switch__input:checked ~ .switch__letters:nth-of-type(1) {
    transform: scale(1);
    opacity: 1;
}

.switch__input:checked ~ .switch__letters:nth-of-type(2) {
    transform: scale(0.64);
    opacity: 0.3;
}

/* ===================================
   CARROUSEL 3D
   =================================== */
.mzaCarousel {
    position: relative;
    height: 80vh;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    touch-action: none;
}

.mzaCarousel-viewport {
    perspective: 1200px;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mzaCarousel-track {
    position: relative;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
}

.mzaCarousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--mzaC-slideW);
    height: 450px;
    transition: opacity var(--transition-fast);
    will-change: transform;
}

.mzaCard {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--gap-md);
    background-color: #111;
    border: 1px solid var(--line-color);
}

.mzaCard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.mzaCard-head,
.mzaCard-text,
.mzaCard-actions {
    position: relative;
    z-index: 2;
}

.mzaCard-title {
    font-family: var(--font-display) !important;
    text-transform: uppercase;
}

.mzaBtn {
    background-color: var(--accent) !important;
    color: #000 !important;
    border: none !important;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.mzaBtn:hover {
    transform: translateY(-2px);
}

/* Pagination */
.mzaCarousel-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 0 5px;
}

.mzaCarousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.mzaCarousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
}

.mzaCarousel-progressBar {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
}

/* ===================================
   RESPONSIVE
   =================================== */
   





   @media (max-width: 600px) {
    .main-header {
        padding: 15px 20px; /* Moins d'espace en haut et sur les côtés */
        backdrop-filter: blur(15px); /* On accentue le flou pour la lisibilité */
    }

    .logo {
        font-size: 1.2rem; /* Logo un peu plus petit */
    }

    /* Option 1 : On cache les liens pour éviter l'encombrement */
    .nav-links {
        display: none; 
    }

    .main-header nav {
        gap: 10px; /* On réduit l'écart entre les éléments restants */
    }

    /* On s'assure que le switch reste bien visible */
    .switch {
        margin-left: 0;
        transform: scale(0.8); /* On réduit un peu la taille du bouton ON/OFF */
    }
}
@media (max-width: 768px) {
    /* On réduit la taille du texte dans le rideau */
    .letter {
        font-size: 3rem; /* Divisé par deux pour mobile */
    }

    /* On ajuste l'espace entre les panneaux pour que le nom ne soit pas collé */
    .left-panel {
        padding-right: 5px;
    }
    .right-panel {
        padding-left: 5px;
    }

    .interactive-glow {
        display: none !important;
    }
}

   @media (max-width: 968px) {
    :root {
        --padding-sides: 20px;
    }
    
    .main-header {
        padding: 15px 20px;
    }
    
    .hero-section {
        padding-right: var(--padding-sides);
    }
    
    .hero-grid {
        flex-direction: column;
        gap: var(--gap-md);
    }
    
    .hero-text-container {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 4rem;
        align-items: center;
    }
    
    .typewriter-line.indent {
        margin-left: 0;
    }
    
    .hero-description {
        margin: 0 auto;
        text-align: left;
    }
    
    .vertical-separator {
        width: 100%;
        height: 1px;
        margin: 30px 0;
        transform: scaleX(0);
        transform-origin: center;
    }
    
    .editorial-profile {
        padding-right: 0;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .profile-layout {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .profile-info-block {
        align-items: center;
        max-width: 100%;
    }
    
    .profile-identity h3 {
        margin-top: 0;
    }
    
    .link-clean {
        flex-direction: row;
    }
    
    .project-item,
    .project-item.reversed {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }
    
    .project-image {
        height: 40vh;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 1024px) {
  #floatingPreview {
    display: none !important; /* On supprime l'élément sur mobile et tablette */
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 414px) {
    /* Empêche le mot de se couper en deux */
    .typewriter-line {
        display: block;
        white-space: nowrap;
        font-size: 3rem; 
    }

    /* Ajuste la taille spécifiquement pour que ça rentre sur iPhone 12 */
    .hero-title {
        font-size: 2.5rem; /* Un peu plus petit pour garantir que "Developer" tient en largeur */
        gap: 5px;
    }

    /* Réduit l'indentation qui pousse le mot vers la droite */
    .typewriter-line.indent {
        margin-left: 5vw; 
    }

    .projects-editorial {
        padding: 60px 15px; /* On réduit les marges sur les côtés */
    }

    .project-row {
        flex-direction: column; /* On passe le contenu l'un au-dessus de l'autre */
        align-items: flex-start;
        gap: 15px;
        padding: 20px 0;
    }

    .project-row-left {
        gap: 15px;
        width: 100%;
    }

    .project-name {
        font-size: 1.8rem; /* On réduit la taille pour que ça ne dépasse pas */
        white-space: normal; /* Autorise le retour à la ligne si le nom est trop long */
        line-height: 1.2;
    }

    .project-row-right {
        width: 100%;
        justify-content: space-between; /* Aligne l'année et les tags proprement */
        gap: 0;
    }

    .project-tags {
        display: flex;
    }
    
    /* On cache l'année ou les flèches si c'est encore trop serré */
    .year-badge {
        font-size: 0.65rem;
    }
}

/* ===================================
   UTILITAIRES DE PERFORMANCE
   =================================== */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Préchargement des images */
.preload-image {
    content-visibility: auto;
}

.projects-editorial {
  padding: 100px var(--padding-sides);
}
.section-divider {
  width: 100%; height: 1px;
  background: var(--line-color); margin-bottom: 0;
}
.project-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; position: relative;
  transition: padding-left 0.4s cubic-bezier(0.65,0,0.35,1);
  text-decoration: none;
}
.project-row:hover { padding-left: 20px; }
.project-row-left { display: flex; align-items: baseline; gap: 28px; }
.project-number {
  font-family: var(--font-display);
  font-size: 0.8rem; color: rgba(229,209,164,0.4);
  font-weight: 700; letter-spacing: 2px; min-width: 30px;
  transition: color 0.3s ease;
}
.project-row:hover .project-number { color: var(--accent); }
.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700; text-transform: uppercase;
  color: var(--text-main); letter-spacing: -0.02em;
  transition: color 0.3s ease; line-height: 1;
}
.project-row:hover .project-name { color: var(--accent); }
.project-row-right { display: flex; align-items: center; gap: 40px; }
.project-tags { display: flex; gap: 10px; justify-content: flex-end; }
.project-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); border: 1px solid var(--line-color);
  padding: 5px 12px; border-radius: var(--radius-lg);
  transition: all var(--transition-fast); white-space: nowrap;
}
.project-row:hover .project-tag { border-color: rgba(229,209,164,0.4); color: var(--accent); }
.project-arrow {
  font-size: 1.2rem; color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1), color 0.3s ease;
}
.project-row:hover .project-arrow { transform: translate(6px,-6px); color: var(--accent); }
.year-badge { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.floating-preview {
  position: fixed; width: 320px; height: 200px;
  border-radius: 6px; overflow: hidden;
  pointer-events: none; z-index: 9999; opacity: 0;
  transform: scale(0.88) rotate(-2deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.floating-preview.visible { opacity: 1; transform: scale(1) rotate(-1deg); }
.floating-preview img { width: 100%; height: 100%; object-fit: cover; }
