/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --bg-primary: #0B0B0B;
    --bg-secondary: #181818;
    --white: #F5F5F5;
    --orange: #FF6B35;
    --yellow: #FFC857;
    --gray-light: #BEBEBE;
    --font-title: 'Bebas Neue', sans-serif;
    --font-subtitle: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--bg-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain-overlay {
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    pointer-events: none; z-index: 9999; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(10) infinite;
}
@keyframes grain {
    0%,100%{transform:translate(0,0)}10%{transform:translate(-5%,-10%)}20%{transform:translate(-15%,5%)}30%{transform:translate(7%,-25%)}40%{transform:translate(-5%,25%)}50%{transform:translate(-15%,10%)}60%{transform:translate(15%,0%)}70%{transform:translate(0%,15%)}80%{transform:translate(3%,35%)}90%{transform:translate(-10%,10%)}
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed; width: 20px; height: 20px; border: 1px solid var(--orange);
    border-radius: 50%; pointer-events: none; z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth),
                background 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth);
    mix-blend-mode: difference;
}
.cursor.hover { width: 60px; height: 60px; background: rgba(255,107,53,0.1); border-color: var(--yellow); }
.cursor-dot {
    position: fixed; width: 6px; height: 6px; background: var(--orange);
    border-radius: 50%; pointer-events: none; z-index: 10001;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--orange), 0 0 20px var(--orange);
}

@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    z-index: 101; background: transparent;
}
.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed; inset: 0; background: var(--bg-primary); z-index: 9998;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.preloader-logo {
    font-family: var(--font-title); font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white); letter-spacing: 0.1em; overflow: hidden;
}
.preloader-logo span { display: inline-block; opacity: 0; transform: translateY(100%); }
.preloader-bar { width: 200px; height: 2px; background: var(--bg-secondary); border-radius: 2px; overflow: hidden; position: relative; }
.preloader-progress { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 2px; }
.preloader-percent { font-family: var(--font-mono); font-size: 0.875rem; color: var(--gray-light); letter-spacing: 0.2em; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.5rem 3rem; display: flex; justify-content: space-between; align-items: center;
    transition: background 0.5s var(--transition-smooth), backdrop-filter 0.5s var(--transition-smooth);
}
.nav.scrolled { background: rgba(11,11,11,0.85); backdrop-filter: blur(20px); }
.nav-logo { font-family: var(--font-title); font-size: 1.5rem; color: var(--white); text-decoration: none; letter-spacing: 0.15em; transition: color 0.3s; }
.nav-logo:hover { color: var(--orange); }
.nav-menu-btn { width: 40px; height: 30px; position: relative; cursor: none; background: none; border: none; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.nav-menu-btn span { display: block; width: 100%; height: 2px; background: var(--white); transition: all 0.4s var(--transition-smooth); transform-origin: center; }
.nav-menu-btn.active span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-menu-btn.active span:last-child { transform: translateY(-5px) rotate(-45deg); }

.fullscreen-menu {
    position: fixed; inset: 0; background: var(--bg-primary); z-index: 99;
    display: flex; align-items: center; justify-content: center;
    clip-path: circle(0% at calc(100% - 60px) 40px);
    transition: clip-path 0.8s var(--transition-smooth);
}
.fullscreen-menu.active { clip-path: circle(150% at calc(100% - 60px) 40px); }
.menu-links { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.menu-link {
    font-family: var(--font-title); font-size: clamp(2.5rem, 6vw, 5rem); color: var(--white);
    text-decoration: none; letter-spacing: 0.05em; opacity: 0; transform: translateY(40px);
    transition: color 0.3s, transform 0.3s; display: inline-block;
}
.menu-link:hover { color: var(--orange); transform: translateX(10px); }
.menu-link .num { font-family: var(--font-mono); font-size: 0.4em; color: var(--orange); margin-right: 1rem; vertical-align: super; }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-text {
    position: absolute; font-family: var(--font-title); font-size: clamp(8rem, 20vw, 25rem);
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.05); white-space: nowrap;
    z-index: 1; animation: marquee 30s linear infinite; user-select: none; pointer-events: none;
}
@keyframes marquee { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; }
.hero-name { font-family: var(--font-title); font-size: clamp(4rem, 12vw, 10rem); line-height: 0.9; letter-spacing: 0.05em; color: var(--white); overflow: hidden; }
.hero-name .char { display: inline-block; opacity: 0; transform: translateY(100%); }
.hero-roles { margin-top: 1.5rem; height: 2.5rem; overflow: hidden; position: relative; }
.hero-roles-inner { animation: roleScroll 10s ease-in-out infinite; }
@keyframes roleScroll { 0%,18%{transform:translateY(0)}20%,38%{transform:translateY(-20%)}40%,58%{transform:translateY(-40%)}60%,78%{transform:translateY(-60%)}80%,98%{transform:translateY(-80%)}100%{transform:translateY(0)} }
.hero-role { font-family: var(--font-subtitle); font-size: clamp(1rem, 2.5vw, 1.75rem); font-weight: 500; color: var(--orange); letter-spacing: 0.2em; text-transform: uppercase; height: 2.5rem; display: flex; align-items: center; justify-content: center; }
.hero-scroll { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; z-index: 2; cursor: pointer; }
.hero-scroll-text { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gray-light); }
.hero-scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--orange), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:1}50%{transform:scaleY(0.5);opacity:0.5} }
.hero-image { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 35vw; max-width: 500px; aspect-ratio: 3/4; z-index: 1; opacity: 0.15; border-radius: 8px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }

@media (max-width: 768px) { .hero-image { display: none; } }

/* ============================================
   SECTION COMMON
   ============================================ */
.section { position: relative; padding: 8rem 3rem; z-index: 2; }
.section-header { margin-bottom: 4rem; }
.section-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; display: block; }
.section-title { font-family: var(--font-title); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; color: var(--white); overflow: hidden; }
.section-title .word { display: inline-block; overflow: hidden; }
.section-title .word-inner { display: inline-block; transform: translateY(100%); }
.container { max-width: 1400px; margin: 0 auto; }

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.about-portrait { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--transition-smooth); }
.about-portrait:hover img { transform: scale(1.05); }
.about-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,11,0.6), transparent 50%); pointer-events: none; }
.about-text { display: flex; flex-direction: column; gap: 2rem; }
.about-bio { font-size: 1.125rem; line-height: 1.8; color: var(--gray-light); text-align: left; }
.about-bio p { margin-bottom: 1.4rem; }
.about-bio .line { display: block; overflow: hidden; }
.about-bio .line-inner { display: block; transform: translateY(100%); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.stat-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
    padding: 1.5rem; text-align: center;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), border-color 0.4s;
    position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--transition-smooth); }
.stat-card:hover { transform: translateY(-5px) rotate(1deg); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: rgba(255,107,53,0.3); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-number { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; color: var(--orange); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray-light); margin-top: 0.5rem; letter-spacing: 0.05em; }

/* ============================================
   SKILLS
   ============================================ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.skill-card {
    background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
    padding: 2rem; position: relative; overflow: hidden;
    transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
    transform-style: preserve-3d; perspective: 1000px;
}
.skill-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mouse-x,50%) var(--mouse-y,50%), rgba(255,107,53,0.1), transparent 50%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.skill-card:hover::after { opacity: 1; }
.skill-card:hover { transform: translateY(-8px) rotateX(2deg) rotateY(2deg); box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-name { font-family: var(--font-subtitle); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.skill-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-top: 1rem; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 2px; width: 0%; transition: width 1.5s var(--transition-smooth); }
.skill-percent { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gray-light); margin-top: 0.5rem; text-align: right; }

/* ============================================
   SOFTWARE
   ============================================ */
.software { background: var(--bg-secondary); }
.software-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2rem; }
.software-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; transition: all 0.4s var(--transition-smooth); cursor: none; }
.software-item:hover { transform: translateY(-5px) scale(1.05); border-color: var(--orange); box-shadow: 0 10px 30px rgba(255,107,53,0.15); }
.software-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--white); background: linear-gradient(135deg, var(--orange), var(--yellow)); border-radius: 10px; transition: transform 0.4s var(--transition-smooth); }
.software-item:hover .software-icon { transform: rotate(10deg) scale(1.1); }
.software-name { font-size: 0.8rem; color: var(--gray-light); text-align: center; }

/* ============================================
   EXPERIENCE
   ============================================ */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--orange), var(--yellow), transparent); }
.timeline-item { position: relative; padding-bottom: 3rem; opacity: 0; transform: translateX(-30px); }
.timeline-item::before { content: ''; position: absolute; left: -3rem; top: 0.5rem; width: 9px; height: 9px; background: var(--orange); border-radius: 50%; transform: translateX(-4px); box-shadow: 0 0 0 4px rgba(255,107,53,0.2); }
.timeline-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--orange); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.timeline-title { font-family: var(--font-subtitle); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.timeline-company { font-size: 0.9rem; color: var(--gray-light); margin-bottom: 0.75rem; }
.timeline-desc { font-size: 0.95rem; line-height: 1.7; color: var(--gray-light); }

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: var(--bg-secondary); }
.projects-filter { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.6rem 1.5rem; background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--gray-light); border-radius: 100px; cursor: none; transition: all 0.3s var(--transition-smooth); }
.filter-btn:hover, .filter-btn.active { background: var(--orange); border-color: var(--orange); color: var(--bg-primary); box-shadow: 0 0 20px rgba(255,107,53,0.3); }
.projects-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; grid-auto-rows: 300px; }
.project-card { position: relative; border-radius: 16px; overflow: hidden; cursor: none; background: var(--bg-primary); }
.project-card:nth-child(3n+1) { grid-row: span 2; }
.project-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--transition-smooth); }
.project-card:hover .project-card-img { transform: scale(1.1); }
.project-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,11,0.95) 0%, rgba(11,11,11,0.3) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; opacity: 0; transition: opacity 0.5s var(--transition-smooth); }
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-category { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.project-card-title { font-family: var(--font-subtitle); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-card-year { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gray-light); }

/* ============================================
   BILICHI
   ============================================ */
.bilichi-hero { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 24px; margin-bottom: 4rem; }
.bilichi-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bilichi-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-primary), rgba(11,11,11,0.5)); }
.bilichi-hero-content { position: relative; z-index: 2; text-align: center; }
.bilichi-hero-title { font-family: var(--font-title); font-size: clamp(3rem, 8vw, 7rem); letter-spacing: 0.1em; }
.bilichi-hero-subtitle { font-family: var(--font-subtitle); font-size: 1.25rem; color: var(--orange); margin-top: 1rem; letter-spacing: 0.2em; }
.bilichi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.bilichi-item { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 16/10; }
.bilichi-item img, .bilichi-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--transition-smooth); }
.bilichi-item:hover img, .bilichi-item:hover video { transform: scale(1.05); }
.bilichi-item-label { position: absolute; bottom: 1rem; left: 1rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.4rem 0.8rem; background: rgba(11,11,11,0.8); backdrop-filter: blur(10px); border-radius: 6px; color: var(--white); }
.bilichi-info { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.bilichi-info-block h3 { font-family: var(--font-subtitle); font-size: 1.25rem; margin-bottom: 1rem; color: var(--orange); }
.bilichi-info-block p, .bilichi-info-block li { font-size: 1rem; line-height: 1.8; color: var(--gray-light); }
.bilichi-info-block ul { list-style: none; }
.bilichi-info-block li { padding-left: 1.5rem; position: relative; }
.bilichi-info-block li::before { content: '→'; position: absolute; left: 0; color: var(--orange); }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.award-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.5rem; text-align: center; transition: all 0.4s var(--transition-smooth); }
.award-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.award-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.award-name { font-family: var(--font-subtitle); font-weight: 600; margin-bottom: 0.25rem; }
.award-detail { font-size: 0.8rem; color: var(--gray-light); }

/* ============================================
   GALLERY
   ============================================ */
.gallery { background: var(--bg-secondary); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-rows: 250px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; cursor: none; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item img { transition: transform 0.8s var(--transition-smooth), filter 0.5s; filter: grayscale(30%); }
.gallery-item:hover img { transform: scale(1.1); filter: grayscale(0%); }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,11,0.8), transparent); display: flex; align-items: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { font-family: var(--font-subtitle); font-size: 1rem; font-weight: 600; }

/* ============================================
   DISTINCTIONS
   ============================================ */
.distinctions-timeline { position: relative; padding: 2rem 0; }
.distinctions-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--orange), var(--yellow), transparent); transform: translateX(-50%); }
.distinction-item { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem; position: relative; opacity: 0; transform: translateY(30px); }
.distinction-item:nth-child(even) .distinction-content { grid-column: 2; }
.distinction-item:nth-child(even) .distinction-year { grid-column: 1; grid-row: 1; text-align: right; }
.distinction-year { font-family: var(--font-mono); font-size: 3rem; font-weight: 500; color: var(--orange); opacity: 0.3; line-height: 1; }
.distinction-content { padding: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; transition: all 0.4s var(--transition-smooth); }
.distinction-content:hover { border-color: var(--orange); transform: translateX(5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.distinction-title { font-family: var(--font-subtitle); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.distinction-detail { font-size: 0.9rem; color: var(--gray-light); line-height: 1.6; }
.distinction-badge { display: inline-block; margin-top: 0.75rem; padding: 0.3rem 0.8rem; background: rgba(255,107,53,0.15); color: var(--orange); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 4px; }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-secondary); position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; border: 3px solid var(--orange); position: relative; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--yellow); border-right-color: var(--yellow); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; color: var(--white); text-decoration: none; font-size: 0.95rem; transition: all 0.3s var(--transition-smooth); }
.contact-link:hover { background: rgba(255,107,53,0.1); border-color: var(--orange); transform: translateX(5px); box-shadow: 0 5px 20px rgba(255,107,53,0.1); }
.contact-link-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--orange), var(--yellow)); border-radius: 8px; font-size: 1.2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { position: relative; }
.form-input { width: 100%; padding: 1rem 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; color: var(--white); font-family: var(--font-body); font-size: 1rem; outline: none; transition: all 0.3s var(--transition-smooth); }
.form-input:focus { border-color: var(--orange); background: rgba(255,107,53,0.05); box-shadow: 0 0 20px rgba(255,107,53,0.1); }
.form-input::placeholder { color: var(--gray-light); opacity: 0.5; }
textarea.form-input { min-height: 150px; resize: vertical; }
.form-submit { padding: 1rem 2.5rem; background: linear-gradient(135deg, var(--orange), var(--yellow)); border: none; border-radius: 12px; color: var(--bg-primary); font-family: var(--font-subtitle); font-size: 1rem; font-weight: 600; letter-spacing: 0.05em; cursor: none; transition: all 0.4s var(--transition-smooth); position: relative; overflow: hidden; }
.form-submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.6s; }
.form-submit:hover::before { left: 100%; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,53,0.3); }
.qr-code { width: 120px; height: 120px; background: var(--white); border-radius: 8px; padding: 8px; margin-top: 1rem; }
.qr-code svg { width: 100%; height: 100%; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 3rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-text { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gray-light); letter-spacing: 0.2em; }
.footer-heart { color: var(--orange); animation: heartbeat 1.5s ease-in-out infinite; display: inline-block; }
@keyframes heartbeat { 0%,100%{transform:scale(1)}50%{transform:scale(1.2)} }

/* ============================================
   PAGE 3D — 7 BLOCS MODÈLES
   ============================================ */
.page-3d-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.5rem 3rem; display: flex; justify-content: space-between; align-items: center;
    background: rgba(11,11,11,0.85); backdrop-filter: blur(20px);
}
.page-3d-content {
    padding: 8rem 3rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Container des modèles — liste verticale */
.models-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 6rem;
}

/* Bloc individuel modèle 3D */
.model-block {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
}

.model-block:hover {
    border-color: rgba(255,107,53,0.3);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transform: translateY(-4px);
}

/* Canvas wrapper */
.model-canvas-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.model-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay info sur le canvas */
.model-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(11,11,11,0.95) 0%, rgba(11,11,11,0.5) 60%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--transition-smooth);
}

.model-block:hover .model-overlay {
    opacity: 1;
    transform: translateY(0);
}

.model-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(255,107,53,0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.model-name {
    font-family: var(--font-subtitle);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.model-desc {
    font-size: 0.9rem;
    color: var(--gray-light);
    max-width: 500px;
    line-height: 1.6;
}

/* Meta bar sous le canvas */
.model-meta {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.model-stat {
    flex: 1;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}

.model-stat:last-child {
    border-right: none;
}

.model-stat:hover {
    background: rgba(255,107,53,0.05);
}

.model-stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 0.35rem;
}

.model-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--orange);
    font-weight: 500;
}

/* Info section en bas */
.three-info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.three-info-block {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s var(--transition-smooth);
}

.three-info-block:hover {
    border-color: rgba(255,107,53,0.2);
    transform: translateY(-3px);
}

.three-info-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.three-info-block h3 {
    font-family: var(--font-subtitle);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.three-info-block p {
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* Numéro de bloc décoratif */
.model-block::before {
    content: attr(data-model);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.15);
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   VIDEO OVERLAY
   ============================================ */
#video-overlay {
    display: none;
}
#video-overlay.active {
    display: flex;
}

/* ============================================
   IMAGE REVEAL
   ============================================ */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after { content: ''; position: absolute; inset: 0; background: var(--bg-secondary); transform: scaleX(1); transform-origin: right; transition: transform 1.2s var(--transition-smooth); }
.img-reveal.revealed::after { transform: scaleX(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .bilichi-grid { grid-template-columns: 1fr; }
    .bilichi-info { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .distinctions-timeline::before { left: 1rem; }
    .distinction-item { grid-template-columns: 1fr; gap: 1rem; padding-left: 3rem; }
    .distinction-item:nth-child(even) .distinction-content { grid-column: 1; }
    .distinction-item:nth-child(even) .distinction-year { grid-column: 1; text-align: left; }
    .projects-masonry { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .three-features { grid-template-columns: repeat(2, 1fr); }
    .three-controls { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 4rem 1.5rem; }
    .nav { padding: 1rem 1.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .software-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .gallery-item--wide { grid-column: span 1; }
    .gallery-item--tall { grid-row: span 1; }
    .hero-image { display: none; }
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }
    .timeline { padding-left: 2rem; }
    .timeline-item::before { left: -2rem; }
    .page-3d-content { padding: 6rem 1.5rem 2rem; }
    .model-canvas-wrap { height: 280px; }
    .model-meta { flex-wrap: wrap; }
    .model-stat { flex: 1 1 33%; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .model-stat:nth-child(3) { border-right: none; }
    .three-info-section { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .software-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-masonry { grid-template-columns: 1fr; }
    .project-card:nth-child(3n+1) { grid-row: span 1; }
}
