/* ═══════════════════════════════════════════════
   PORTFOLIO V3 — EDITORIAL DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0A0A0A;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --bg-surface: #050505;
  --accent: #C8FF3D;
  --border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(11, 13, 12, 0.4);
  --nav-scrolled: rgba(11, 13, 12, 0.85);
  --nav-border: rgba(255, 255, 255, 0.05);
  --nav-text: var(--text-primary);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-8: 96px;
  --space-10: 128px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --container-gutter: clamp(16px, 3vw, 32px);
  --section-block-space: clamp(72px, 9vw, 128px);
}

[data-theme="light"] {
  --bg-primary: #F5F5F7;
  --bg-secondary: #FFFFFF;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-muted: #69696F;
  --bg-surface: #FFFFFF;
  --accent: #0055FF;
  --border: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(29, 29, 31, 0.85);
  --nav-scrolled: rgba(29, 29, 31, 0.95);
  --nav-border: rgba(0, 0, 0, 0.08);
  --nav-text: #FFFFFF;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ─── Global Resets ─── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; /* Lenis handles smooth scroll */ }
body { 
    margin: 0; padding: 0; 
    background: var(--bg-primary); color: var(--text-primary); 
    font-family: var(--font-body); line-height: 1.6; 
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; 
    min-width: 0; overflow-x: clip;
}
main, section, article, aside, div { min-width: 0; }
img, video, canvas, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Lenis Scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-scroll-container] { will-change: transform; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { 
    margin: 0; font-family: var(--font-heading); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; 
    word-break: break-word;
}
.display-1 { font-size: clamp(2.5rem, 8vw, 6rem); text-transform: uppercase; }
.display-2 { font-size: clamp(2rem, 5vw, 4rem); }
.display-3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.text-lead { font-size: clamp(1rem, 2vw, 1.5rem); color: var(--text-secondary); line-height: 1.5; }
.text-mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.text-muted { color: var(--text-secondary); }

p { margin: 0; color: var(--text-secondary); font-size: 1.05rem; overflow-wrap: anywhere; }

/* ─── Layout ─── */
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 5vw, var(--space-4)); }
.section { padding: clamp(40px, 10vw, var(--space-10)) 0; }
.section--sm { padding: clamp(32px, 8vw, var(--space-6)) 0; }
.section--dark { background: var(--bg-secondary); }
.section-header { margin-bottom: var(--space-8); }
.section-number { display: block; font-family: var(--font-mono); font-size: 1rem; color: var(--accent); margin-bottom: var(--space-2); }

/* Grid Asymmetric */
.grid-editorial { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 1024px) {
    .grid-editorial { grid-template-columns: 4fr 8fr; gap: var(--space-10); }
    .grid-editorial--reverse { grid-template-columns: 8fr 4fr; }
}

/* ─── Header & Nav ─── */
.nav {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%); 
    width: calc(100% - clamp(24px, 5vw, 48px)); max-width: 1200px; z-index: 100;
    background: transparent; 
    border: none;
    transition: all var(--transition-base);
    mix-blend-mode: difference;
    color: #fff; /* Ensure text is white so it inverts to black on white bgs */
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px; padding: 0 clamp(16px, 3vw, var(--space-4)); margin: 0 auto;
    transition: height var(--transition-base);
}
.nav--scrolled {
    background: var(--nav-scrolled);
    border-color: var(--nav-border);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
    top: 12px;
}
.nav--scrolled .nav__inner { height: 60px; }
.nav__logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: clamp(10px, 2vw, var(--space-5)); }
.nav__link { font-size: clamp(0.8rem, 1.2vw, 0.9rem); font-weight: 500; color: #fff; position: relative; text-decoration: none; white-space: nowrap; }
.nav__link::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; width: 0%; height: 2px;
    background: var(--accent); transition: width var(--transition-fast), left var(--transition-fast);
}
.nav__link:hover::after { width: 100%; left: 0; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px; flex-direction: column; gap: 5px; z-index: 1000; }
.nav__toggle span { display: block; width: 28px; height: 2px; background: #fff; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px; }
.nav__toggle:hover span:nth-child(1) { transform: translateY(-2px); }
.nav__toggle:hover span:nth-child(3) { transform: translateY(2px); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-dropdown:hover .lang-menu {
    display: flex !important;
}

/* Available Badge */
.available-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}
.pulse-dot {
    width: 8px; height: 8px; background: #27C93F; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(39, 201, 63, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}
.badge-text { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }

@media (max-width: 1350px) and (min-width: 1181px) {
    .available-badge { display: none !important; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100dvh;
    background-color: #000000 !important; z-index: 99999 !important;
    display: flex; flex-direction: column;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    /* GSAP will handle the animation, these are just fallbacks if GSAP fails */
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s;
    overflow-y: auto; overflow-x: hidden;
}
.mobile-menu--open { transform: translateY(0); opacity: 1 !important; pointer-events: auto; }
@media (min-width: 1181px) { .mobile-menu { display: none !important; } }

.mobile-menu__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px clamp(16px, 5vw, var(--space-4));
}
.mobile-menu__close {
    background: none; border: none; width: 44px; height: 44px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
    cursor: pointer; padding: 0;
}
.close-line {
    width: 24px; height: 2px; background: var(--text-primary);
    transition: transform 0.3s;
}
.close-line:first-child { transform: translateY(4px) rotate(45deg); }
.close-line:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu__close:hover .close-line { background: var(--accent); }

.mobile-menu__links {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 0 clamp(16px, 5vw, var(--space-4)); max-width: 600px; margin: 0 auto; width: 100%;
}
.mobile-menu__link {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 700;
    color: var(--text-primary); text-decoration: none; line-height: 1.2;
    padding: clamp(8px, 2vh, 16px) 0;
    position: relative; transition: color 0.3s, opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; transform: translateY(20px);
}
.mobile-menu--open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__link.active { color: var(--text-primary); }
.mobile-menu__link.active::before {
    content: ''; position: absolute; left: -20px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.mobile-menu__footer {
    padding: var(--space-6) clamp(16px, 5vw, var(--space-4)) var(--space-4);
    display: flex; flex-direction: column; gap: var(--space-4);
    transition: opacity 0.4s ease;
    transition-delay: 0.3s;
    opacity: 0;
}
.mobile-menu--open .mobile-menu__footer { opacity: 1; }
.mobile-menu__footer-top {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border); padding-bottom: var(--space-4);
}
.mobile-menu__cta {
    font-family: var(--font-heading); font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 600;
    color: var(--text-primary); text-decoration: none; transition: color 0.3s;
}
.mobile-menu__cta:hover { color: var(--accent); }
.mobile-menu__lang { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.mobile-menu__lang span.active { color: var(--text-primary); }
.mobile-menu__footer-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
}
.mobile-menu__footer-bottom a {
    font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s;
}
.mobile-menu__footer-bottom a:hover { color: var(--text-primary); }
.mobile-menu__social { display: flex; gap: 16px; }

@media (max-width: 1180px) {
    .nav__links { display: none; }
    .nav__toggle { display: flex; }
    .nav__logo { font-size: 1.1rem; }
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
    padding: 16px 32px; border: 1px solid var(--border); background: transparent;
    color: var(--text-primary); font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
    min-height: 44px; cursor: pointer; transition: all var(--transition-fast); position: relative; overflow: hidden;
    border-radius: 100px; /* Sharp pill shape */
}
.btn::before {
    content: ''; position: absolute; inset: 0; background: var(--text-primary);
    transform: translateY(100%); transition: transform var(--transition-base); z-index: -1;
}
.btn:hover { border-color: var(--text-primary); color: var(--bg-primary); }
.btn:hover::before { transform: translateY(0); }

/* ─── GSAP Reveal Utilities ─── */
.reveal-text { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
.reveal-text .line { overflow: hidden; }
.reveal-text .line-inner { display: inline-block; transform: translateY(100%); }
.fade-up { opacity: 0; transform: translateY(30px); }

/* ─── Marquee ─── */
.marquee-container {
    width: 100%; overflow: hidden; background: var(--bg-secondary);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: clamp(12px, 3vw, var(--space-3)) 0; display: flex; white-space: nowrap;
}
.marquee-track {
    display: flex; align-items: center; gap: clamp(16px, 5vw, var(--space-4));
    animation: marquee 20s linear infinite; flex-shrink: 0;
    width: max-content; max-width: max-content; flex-wrap: nowrap;
}
.marquee-container:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    font-family: var(--font-heading); font-size: clamp(1.25rem, 5vw, 2rem); font-weight: 700; color: inherit;
    display: inline-flex; align-items: center; gap: clamp(16px, 5vw, var(--space-4));
    flex-shrink: 0; white-space: nowrap;
}
.marquee-item::after {
    content: '—'; color: var(--accent); font-family: var(--font-mono); font-weight: 400;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Footer Mega ─── */
.footer-mega { background: var(--bg-primary); position: relative; overflow: hidden; }
.mega-contact-link { display: inline-block; position: relative; color: var(--text-primary); transition: color 0.4s ease; text-decoration: none; }
.mega-contact-link:hover { color: var(--accent); }
.social-icon { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 50px; height: 50px; border-radius: 50%; 
    border: 1px solid rgba(255,255,255,0.2); color: var(--text-primary); 
    transition: all 0.3s ease; 
}
.social-icon:hover { 
    background: var(--accent); color: var(--bg-primary); border-color: var(--accent); 
    transform: translateY(-5px); 
}
@media (max-width: 768px) {
    .footer-mega-bottom { flex-direction: column; align-items: flex-start !important; gap: 20px; }
    .footer-mega-info { text-align: left !important; }
}

/* ─── Terminal Playground ─── */
.playground-terminal {
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md);
    font-family: var(--font-mono); font-size: 0.9rem; overflow: hidden;
}
.playground-header { display: flex; gap: 8px; padding: 16px; border-bottom: 1px solid var(--border); }
.playground-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.playground-body { padding: 24px; min-height: 300px; max-height: 400px; overflow-y: auto; color: var(--text-secondary); line-height: 1.6; }
.playground-line { margin-bottom: 8px; }
.playground-prompt { color: var(--accent); margin-right: 8px; }
.playground-input-line { display: flex; align-items: center; min-width: 0; margin-top: 16px; }
.playground-input {
    background: transparent; border: none; color: var(--text-primary); font-family: inherit; font-size: inherit;
    flex: 1 1 auto; min-width: 0; outline: none; caret-color: var(--accent);
}
.cursor-blink { animation: blink 1s step-end infinite; color: var(--accent); font-weight: bold; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ─── Experience Timeline ─── */
.editorial-timeline { position: relative; padding-left: 2px; }
.editorial-timeline::before {
    content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--border);
}
.timeline-item { padding: 0 0 var(--space-6) var(--space-5); position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -4px; top: 8px; width: 9px; height: 9px;
    background: var(--accent); border-radius: 50%;
}
.timeline-year { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.timeline-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-primary); margin-bottom: 4px; }
.timeline-org { font-size: 1.1rem; color: var(--accent); margin-bottom: var(--space-2); }

/* ─── Forms ─── */
.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); margin-bottom: var(--space-1); text-transform: uppercase; }
.form-control {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
    padding: var(--space-2) 0; color: var(--text-primary); font-family: var(--font-body); font-size: 1.1rem;
    transition: border-color var(--transition-fast);
}
.form-control:focus { outline: none; border-bottom-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Chrome Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ─── Shared Interior Pages ─── */
.page-shell { min-height: 100vh; }
.page-hero {
    position: relative;
    padding: clamp(132px, 14vw, 180px) 0 clamp(56px, 7vw, 88px);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-hero__eyebrow, .section-header__label {
    margin-bottom: 18px; color: var(--accent); font: 500 .75rem/1.4 var(--font-mono);
    letter-spacing: .1em; text-transform: uppercase;
}
.page-hero__title { max-width: 900px; font-size: clamp(2.35rem, 6vw, 5.4rem); letter-spacing: -.055em; line-height: 1.02; overflow-wrap: anywhere; }
.page-hero__subtitle { max-width: 620px; margin-top: 24px; font-size: clamp(1rem, 2vw, 1.16rem); }
.stack-content { padding: var(--section-block-space) 0; }
.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack-category { min-height: 260px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.stack-category__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.stack-category__index, .stack-category__count { color: var(--text-muted); font: 500 .72rem/1 var(--font-mono); }
.stack-category__title { font-size: clamp(1.1rem, 2vw, 1.35rem); overflow-wrap: anywhere; }
.stack-category__items { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; padding: 22px 20px; }
.stack-item { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: .9rem; overflow-wrap: anywhere; }
.stack-item__status { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.stack-manifest { padding: var(--section-block-space) 0; background: var(--bg-secondary); }
.manifest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 80px); align-items: start; }
.manifest__title { max-width: 620px; font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.manifest__list { border-top: 1px solid var(--border); }
.manifest__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-family: var(--font-mono); font-size: .82rem; }
.empty-state { padding: 40px; border: 1px solid var(--border); text-align: center; }
.privacy-page { min-height: 70vh; padding: clamp(132px, 14vw, 180px) 0 var(--section-block-space); }
.privacy-page__content { max-width: 760px; }
.privacy-page h1 { margin-bottom: 24px; font-size: clamp(2.4rem, 7vw, 5rem); }
.error-page { min-height: 80vh; padding: 140px var(--container-gutter) 72px; display: grid; place-items: center; text-align: center; }
.error-page__code { color: var(--accent); font: 700 clamp(4rem, 18vw, 10rem)/.9 var(--font-heading); }
.error-page__title { margin-top: 16px; color: var(--text-primary); font: 600 clamp(1.4rem, 5vw, 2.4rem)/1.1 var(--font-mono); overflow-wrap: anywhere; }
.detail-content img, .detail-content video { width: auto; height: auto; max-width: 100%; }
.detail-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }

/* ─── V3.1 PREMIUM INTERACTIONS ─── */

/* 1. Custom Magnetic Cursor */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    
    .cursor-dot, .cursor-follower {
        position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
        border-radius: 50%; transform: translate(-50%, -50%);
    }
    
    .cursor-dot {
        width: 8px; height: 8px; background-color: var(--accent);
        transition: opacity 0.3s;
    }
    
    .cursor-follower {
        width: 24px; height: 24px; 
        border: 1px solid rgba(200, 255, 61, 0.5); /* Accent with opacity */
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s;
        display: flex; align-items: center; justify-content: center;
        backdrop-filter: blur(2px);
    }
    
    .cursor-text {
        font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; color: var(--bg-primary);
        opacity: 0; transition: opacity 0.2s; white-space: nowrap;
    }
    
    /* Cursor States */
    .cursor-hover .cursor-follower { width: 26px; height: 26px; background-color: rgba(200, 255, 61, 0.1); border-color: var(--accent); }
    .cursor-hover .cursor-dot { opacity: 0; }
    
    .cursor-view .cursor-follower { width: 48px; height: 48px; background-color: var(--accent); border-color: var(--accent); }
    .cursor-view .cursor-dot { opacity: 0; }
    .cursor-view .cursor-text { opacity: 1; font-size: 0.55rem; }
    
    .cursor-hidden .cursor-dot, .cursor-hidden .cursor-follower { opacity: 0 !important; }
}

/* 2. Film Noise Overlay (Kaldırıldı) */
.noise-overlay {
    display: none;
}

/* 3. Curtain Page Transition */
.curtain-container {
    position: fixed; inset: 0; z-index: 10000;
    pointer-events: none;
    display: flex; flex-direction: column;
}
.curtain-layer {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    transform-origin: top;
    transform: scaleY(0); /* Default hidden (up) */
    background: var(--bg-primary);
}
.curtain-1 { background: var(--text-secondary); z-index: 10001; }
.curtain-2 { background: var(--accent); z-index: 10002; }
.curtain-3 { 
    background: var(--bg-primary); z-index: 10003; 
    display: flex; align-items: center; justify-content: center;
}
.curtain-logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
}

/* 4. Text-Stroke Fill Effect on Scroll */
.text-stroke-fill {
    font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700;
    color: transparent; -webkit-text-stroke: 1px var(--text-secondary);
    text-transform: uppercase; cursor: default;
    background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    width: fit-content;
    display: inline-block;
}

/* Pendulum Rope Effect */
.tech-item {
    position: relative;
    transform-origin: top center;
    margin-top: 40px; /* Space for the rope */
}
.tech-item::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: var(--border);
    transform: translateX(-50%);
}

/* 4.1 Hover Underline Sweep */
.hover-underline-sweep {
    position: relative;
    display: inline-block;
}
.hover-underline-sweep::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.hover-underline-sweep:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 5. Horizontal Scroll Layout Utility */
.h-scroll-wrapper { width: 100%; height: 100vh; display: flex; flex-wrap: nowrap; overflow: hidden; align-items: center; }
.h-scroll-slide { width: 80vw; height: 70vh; flex-shrink: 0; padding: 0 var(--space-4); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1024px) {
    /* Unpin on mobile */
    .h-scroll-wrapper { height: auto; flex-direction: column; overflow: visible; align-items: stretch; }
    .h-scroll-slide { width: 100%; height: auto; margin-bottom: var(--space-6); padding: 0; }
}







/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    
    .cursor-dot, .cursor-follower {
        display: none !important;
    }
    
    .spinner-premium .ring {
        animation: none !important;
    }

    .fade-up,
    .reveal-text .line-inner {
        opacity: 1 !important;
        transform: none !important;
    }
}

.nav__link--active {
    color: var(--accent) !important;
}
.nav__link--active::after {
    width: 100%;
    left: 0;
}
.playground-input:focus, .playground-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==========================================================================
   STACKED CARDS PARALLAX (AWWWARDS STYLE)
   ========================================================================== */
.stacked-cards-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4vh; /* spacing between cards before they stack */
    padding-bottom: 20vh;
}

.stacked-card {
    position: sticky;
    top: calc(10vh + (var(--index) * 20px));
    height: 70vh;
    min-height: 500px;
    width: 100%;
    margin-bottom: 4vh;
    transform-origin: top center;
}

.stacked-card-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.1s ease;
    overflow: hidden;
    position: relative;
}

.stacked-card__image {
    flex: 1.2;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.stacked-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

.stacked-card:hover .stacked-card__image img {
    transform: scale(1.05);
}

.stacked-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.stacked-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
}

.stacked-card__num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.5;
}

@media (max-width: 992px) {
    .stacked-card { position: relative; top: auto; height: auto; min-height: 0; }
    .stacked-card-inner { flex-direction: column; gap: 24px; }
    .stacked-card__image { height: auto; aspect-ratio: 16 / 10; flex: none; }
    .stacked-card__content { padding: 0; }
}

/* ==========================================================================
   BENTO GRID (MINIMAL GALLERY / PREMIUM STYLE)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 24px;
}

.bento-box {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-box:hover {
    transform: translateY(-4px);
    background: rgba(25, 28, 26, 0.8);
    border-color: rgba(255,255,255,0.1);
}

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

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Spotify Equalizer Animation */
.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
}

.music-bars .bar {
    width: 4px;
    background-color: #1DB954;
    border-radius: 2px;
    animation: bounce-bar 1.2s ease infinite alternate;
}

.music-bars .bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.music-bars .bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.music-bars .bar:nth-child(3) { height: 40%; animation-delay: 0.5s; }

@keyframes bounce-bar {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1); }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-large, .bento-medium, .bento-small {
        grid-column: span 1;
        grid-row: auto;
        min-height: 200px;
    }
}

/* ==========================================================================
   TYPOGRAPHIC PROJECTS (PREMIUM STYLE B)
   ========================================================================== */
.typographic-projects {
    display: flex;
    flex-direction: column;
}

.typographic-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease, padding 0.3s ease;
    cursor: none; /* Hide default cursor to show custom one */
}

.typographic-project-item:hover {
    color: var(--text-primary);
    padding-left: 20px;
    padding-right: 20px;
    border-bottom-color: rgba(255,255,255,0.3);
}

.typographic-project-item:hover .project-title {
    color: var(--text-primary); /* could be text-stroke */
}

.project-item-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.project-num {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
}

.project-title { font-size: clamp(1.5rem, 3.5vw, 3.5rem) !important;
    font-weight: 700;
    line-height: 1;
    transition: color 0.3s ease;
}

.project-cat {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.typographic-project-item:hover .project-cat {
    opacity: 1;
}

/* Cursor Follower Image */
.project-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 250px;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
    border-radius: 16px;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-cursor-follower img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .project-item-left {
        gap: 16px;
    }
    .typographic-project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 24px 0;
        cursor: pointer;
    }
    .project-cursor-follower {
        display: none !important;
    }
    .typographic-project-item:hover {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ========================================================================== 
   RESPONSIVE FOUNDATION
   ========================================================================== */
@media (max-width: 1180px) {
    .nav {
        top: 16px;
        width: calc(100% - 32px);
    }
    .nav__inner {
        height: 64px;
        padding-inline: clamp(16px, 3vw, 28px);
    }
    .nav__toggle {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu {
        min-height: 100dvh;
        padding: 104px var(--container-gutter) max(24px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .mobile-menu__link {
        min-height: 52px;
        font-size: clamp(1.55rem, 6vw, 2.5rem);
        padding-block: clamp(10px, 2vh, 16px);
    }
}

@media (max-width: 768px) {
    :root {
        --space-5: 36px;
        --space-6: 48px;
        --space-8: 64px;
        --space-10: 80px;
    }
    .display-1 { font-size: clamp(2.5rem, 13vw, 4.25rem); }
    .display-2 { font-size: clamp(2.2rem, 11vw, 3.75rem); }
    .text-lead { font-size: clamp(1rem, 4.5vw, 1.25rem); }
    .hero-v3 { min-height: auto; padding-block: 128px 72px; }
    .hero-v3__title {
        min-height: clamp(168px, 56vw, 240px) !important;
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        overflow-wrap: anywhere;
    }
    .hero-v3__grid { gap: 40px; }
    .hero-v3__grid > div:last-child { justify-self: stretch !important; max-width: none !important; }
    .hero-v3 .flex { flex-wrap: wrap; }
    .hero-v3 .btn { flex: 1 1 180px; }
    .bento-box { padding: clamp(20px, 6vw, 28px); }
    .bento-content .text-lead { max-width: none !important; }
    .skill-category { padding: clamp(20px, 6vw, 32px); }
    .timeline-item { padding-left: 28px; }
    .contact-info { position: static !important; }
    .contact-value { overflow-wrap: anywhere; word-break: break-word; }
    .contact-info a.contact-value { font-size: clamp(1.15rem, 6vw, 1.6rem) !important; }
    .detail-cover { aspect-ratio: 16 / 10; }
    .detail-sidebar { position: static; }
    .project-nav { flex-direction: column; gap: 28px; }
    .project-nav-item { width: 100%; text-align: left !important; }
    .footer-mega__cta { margin-bottom: clamp(64px, 18vw, 112px) !important; }
    .footer-mega__title { font-size: clamp(2.25rem, 13vw, 5rem) !important; line-height: .92 !important; overflow-wrap: anywhere; }
    .footer-mega__email { width: 100%; margin-top: 32px !important; padding: 14px 18px !important; font-size: clamp(.9rem, 4.5vw, 1.1rem) !important; overflow-wrap: anywhere; }
    .footer-mega__grid { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; padding-bottom: 40px !important; }
    .footer-mega__bottom { align-items: flex-start !important; }
    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
    .stack-grid, .manifest { grid-template-columns: minmax(0, 1fr); }
    .stack-category { min-height: 0; }
    .manifest__list > div { flex-wrap: wrap; }
}

@media (max-width: 430px) {
    .nav { top: 12px; width: calc(100% - 24px); }
    .nav__inner { padding-inline: 12px; }
    .available-badge { display: none; }
    .mobile-menu { padding-top: 92px; }
    .mobile-menu__link { font-size: clamp(1.35rem, 7vw, 1.8rem); }
    .btn { width: 100%; padding-inline: 20px; }
    .section-header { margin-bottom: 44px; }
    .playground-body { min-height: 220px; padding: 16px; }
    .stacked-card-inner { padding: 16px; border-radius: 16px; }
    .bento-grid { gap: 16px; }
    .bento-box { border-radius: 16px; }
    .skill-list { gap: 10px; }
    .skill-chip { padding: 8px 12px; font-size: .82rem; overflow-wrap: anywhere; }
}


/* ═══════════════════════════════════════════════
   HERO CONCEPT 1 (Monolith Center)
   ═══════════════════════════════════════════════ */
.hero-monolith {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100svh;
}
.hero-monolith__bg-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(39, 201, 63, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: pulseOrb 8s infinite alternate ease-in-out;
}
@keyframes pulseOrb {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
.hero-monolith__grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}
.hero-monolith__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.hero-monolith__title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    color: var(--text-primary);
}
.hero-monolith__desc {
    max-width: 600px;
    margin: 0 auto var(--space-6) auto;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}
.hero-monolith__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
/* ═══════════════════════════════════════════════
   BENTO V2 (Editorial & CV Visuals)
   ═══════════════════════════════════════════════ */
.bento-grid-v2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.bento-box-v2 {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); /* Reduced radius */
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-fast);
    /* GSAP clip-path setup */
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
}
.bento-box-v2:hover {
    transform: scale(1.01); /* Subtle 1-2% max scale */
    border-color: rgba(255,255,255,0.2);
}
.bento-content-v2 {
    padding: var(--space-4);
}
.bento-col-4 { grid-column: span 12; }
.bento-col-8 { grid-column: span 12; }

@media (min-width: 900px) {
    .bento-col-4 { grid-column: span 4; }
    .bento-col-8 { grid-column: span 8; }
}

/* Blur to Sharp */
.blur-to-sharp {
    filter: blur(10px);
    opacity: 0;
}

/* Title Mask */
.title-mask {
    overflow: hidden;
}
.title-mask > * {
    transform: translateY(100%);
}

/* Arrow Hover Interaction */
.btn-text-arrow:hover .arrow {
    transform: translate(4px, -4px);
    transition: transform var(--transition-fast);
}
.arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
}

/* Computer Vision Face Animation */
@keyframes cv-scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
/* Triggered via JS or plays once */
.cv-scanline.play {
    animation: cv-scan 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Tech Focus Hover */
.focus-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    cursor: default;
}
.focus-item:hover {
    background: rgba(255,255,255,0.03);
}
/* ═══════════════════════════════════════════════
   EXPERIMENTAL EDITORIAL PROJECT STAGE
   ═══════════════════════════════════════════════ */
.stage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}
@media (min-width: 900px) {
    .stage-grid {
        grid-template-columns: 4fr 8fr;
        gap: var(--space-12);
    }
}

/* Left Profile */
.stage-profile {
    display: flex;
    flex-direction: column;
}

/* Right Dynamic Stage */
.stage-dynamic {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Media Wrapper */
.stage-media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #050505;
    border: 1px solid var(--border);
    overflow: hidden;
}

.stage-media-inner {
    position: absolute;
    inset: 0;
}

.stage-media-item {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Hide by default using clip-path wipe up */
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.8s cubic-bezier(0.8, 0, 0.2, 1), transform 1.5s ease-out;
}
.stage-media-item.active {
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.stage-row:hover ~ .stage-media-wrapper .stage-media-item.active,
.stage-media-wrapper:hover .stage-media-item.active {
    transform: scale(1.03);
}

.stage-media-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.8);
    transition: filter var(--transition-base);
}
.stage-media-item.active:hover .stage-media-content {
    filter: brightness(0.9) saturate(1);
}

/* Typographic Fallback */
.stage-typo-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--bg-primary);
    padding: var(--space-6);
}
.typo-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
    opacity: 0.8;
}
.typo-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}
.typo-year {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Info Overlay */
.stage-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    pointer-events: none;
}
@media (min-width: 768px) {
    .stage-info-overlay {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}
.stage-info-left, .stage-info-right {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
.stage-info-right {
    align-items: flex-start;
    max-width: 400px;
}
@media (min-width: 768px) {
    .stage-info-right {
        align-items: flex-end;
        text-align: right;
    }
}

.stage-num-counter {
    font-size: 0.8rem;
    color: var(--project-accent, var(--accent));
    margin-bottom: 8px;
    transition: color 0.5s;
}
.stage-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: var(--text-primary);
}
.stage-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.stage-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .stage-tech { justify-content: flex-end; }
}
.stage-tech span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}
.btn-stage-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.btn-stage-link:hover {
    color: var(--project-accent, var(--accent));
}

/* Row Index */
.stage-index {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}
@media (max-width: 767px) {
    .stage-index {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        border-top: none;
        gap: 16px;
    }
}

.stage-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: padding-left 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s, background 0.4s;
    outline: none;
}
@media (max-width: 767px) {
    .stage-row {
        flex: 0 0 80%;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 8px;
        scroll-snap-align: center;
    }
}

.stage-index:hover .stage-row {
    opacity: 0.4;
}
.stage-index .stage-row:hover,
.stage-row:focus,
.stage-row.active {
    opacity: 1 !important;
    padding-left: 16px;
    border-color: rgba(255,255,255,0.3);
}
@media (max-width: 767px) {
    .stage-index .stage-row:hover,
    .stage-row:focus,
    .stage-row.active {
        padding-left: 16px;
        background: rgba(255,255,255,0.03);
    }
}

.row-num {
    width: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.3s;
}
.stage-row.active .row-num {
    color: var(--project-accent, var(--accent));
}
.row-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}
.row-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ─── Editorial Project Rows (Awwwards Style) ─── */
.project-rows-container {
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: var(--space-8);
    position: relative;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(24px, 4vw, 40px) 24px;
    margin: 0 -24px;
    border-bottom: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
    z-index: 2;
    /* mix-blend-mode: difference; Kaldırıldı çünkü arkaplan rengi eklenecek */
}

.project-row:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.pr-left {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
}

.pr-num {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    opacity: 0.5;
    font-weight: 500;
}

.pr-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    word-break: break-word;
}

.pr-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: clamp(0.85rem, 1vw, 1rem);
    opacity: 0.8;
}

.pr-cat {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
}

@media (max-width: 768px) {
    .project-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
        padding: 24px 16px;
        margin: 0;
    }
    .pr-right {
        width: 100%;
        justify-content: space-between;
        padding-left: 0; /* Reset alignment for mobile */
    }
}

/* ─── Floating Image Hover Reveal ─── */
.pr-floating-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    aspect-ratio: 4/3;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    overflow: hidden;
    will-change: transform, opacity;
}

.pr-floating-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .pr-floating-img {
        display: none !important; /* Disable hover image on mobile */
    }
}

/* ═══════════════════════════════════════════════
   EXPERIENCE PAGE - EDITORIAL INDEX
   ═══════════════════════════════════════════════ */

.exp-page-wrapper {
    position: relative;
    z-index: 2;
    padding-top: clamp(100px, 15vw, 200px);
    padding-bottom: var(--space-8);
    overflow: hidden;
}

/* Background Outline Text Parallax */
.exp-bg-outline {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 25rem);
    font-weight: 700;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03); /* Subtle outline */
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    letter-spacing: -0.05em;
    opacity: 0;
    will-change: transform;
}

/* Hero Section */
.exp-hero {
    padding: 0 clamp(16px, 4vw, 40px);
    margin-bottom: var(--space-8);
    position: relative;
}

.exp-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1vw, 1rem);
    text-transform: uppercase;
    opacity: 0.6;
    display: inline-block;
}

.exp-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 12px 0 40px 0;
}

.clip-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Filter Buttons */
.exp-filters {
    display: flex;
    gap: 32px;
    position: relative;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.exp-filters::-webkit-scrollbar {
    display: none;
}

.exp-filter-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.exp-filter-btn.active, .exp-filter-btn:hover {
    opacity: 1;
}

.exp-filter-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Rows Container */
.exp-index-container {
    display: flex;
    flex-direction: column;
}

/* Row Wrapper */
.exp-row-wrapper {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-row-divider-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* The Row */
.exp-row {
    display: grid;
    grid-template-columns: 15% 45% 35% 5%;
    align-items: center;
    padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

/* Background hover color */
.exp-row::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    z-index: -1;
    transition: background 0.4s;
}

/* Hover effects */
.exp-row-wrapper:hover .exp-row {
    /* Slightly highlight */
    border-color: var(--accent);
}

/* The parent hover magic - when container is hovered, dim others */
.exp-index-container:hover .exp-row-wrapper:not(:hover) .exp-row {
    opacity: 0.3;
}

/* Line turns acid green on hover */
.exp-row-wrapper:hover {
    border-color: var(--accent);
}

.exp-mobile-meta {
    display: none;
}

.exp-col-year {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    opacity: 0.5;
}

.exp-col-role {
    /* Overflow hidden for animation */
}
.role-mask {
    overflow: hidden;
}
.role-text {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-row-wrapper:hover .role-text {
    transform: translateX(12px);
    color: var(--accent);
}

.exp-col-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.company-name {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 500;
}

.company-type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
}

.exp-col-arrow {
    text-align: right;
}
.icon-arrow {
    display: inline-block;
    font-size: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.exp-row-wrapper:hover .icon-arrow {
    transform: translate(4px, -4px);
    color: var(--accent);
}
.exp-row-wrapper.is-open .icon-arrow {
    transform: rotate(45deg); /* Point down slightly when open */
}

/* Accordion Details */
.exp-details {
    height: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.02); /* Slight contrast */
}
.exp-details-inner {
    padding: 0 clamp(16px, 4vw, 40px) 40px clamp(16px, 4vw, 40px);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    opacity: 0;
    transform: translateY(-20px);
}

.details-heading {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 12px;
}
.details-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}
.details-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-pill {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}
.details-meta-item {
    margin-bottom: 24px;
}
.meta-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 4px;
}
.meta-value {
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .exp-row {
        grid-template-columns: 1fr auto;
        padding: 24px 16px;
        align-items: flex-start;
    }
    .exp-col-year, .exp-col-company {
        display: none; /* Hide on mobile to simplify */
    }
    .exp-mobile-meta {
        display: block;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        opacity: 0.5;
        grid-column: 1 / -1;
        margin-bottom: 12px;
    }
    .exp-col-role {
        grid-column: 1 / 2;
    }
    .exp-col-arrow {
        grid-column: 2 / 3;
        align-self: center;
    }
    .role-text {
        font-size: 2.5rem;
    }
    .exp-details-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ═══════════════════════════════════════════════
   INTERACTIVE TIMELINE (SCROLL & PREVIEW)
   ═══════════════════════════════════════════════ */

.exp-interactive-section {
    position: relative;
    padding-bottom: var(--space-8);
}

.exp-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Timeline Column */
.exp-timeline-col {
    position: relative;
    padding-left: 32px;
    padding-top: 50vh; /* Start halfway down so scrolltrigger hits center easily */
    padding-bottom: 50vh;
}

/* Scroll Lines */
.exp-scroll-track {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.exp-scroll-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
    z-index: 2;
    will-change: transform;
}

/* Timeline Item */
.exp-item {
    position: relative;
    padding: 0 0 120px 40px;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}
.exp-item.is-active {
    opacity: 1;
}

/* Points & Rings */
.exp-item-point-container {
    position: absolute;
    left: -37px; /* Align to center of track (track is at left:0, padding-left: 32px on parent means track is 32px away? Track is left:0 of exp-timeline-col) */
    /* Wait, exp-timeline-col padding-left 32px. exp-scroll-track is left:0. 
       So exp-item is 32px to the right. 
       Left of exp-item is 0. To reach track: -32px. 
       Track width is 2px. Center is -31px. */
    left: -32px;
    top: 8px;
    width: 32px;
    height: 20px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.exp-point-core {
    position: absolute;
    left: 0; /* Center on the 2px track */
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--border);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-item.is-active .exp-point-core {
    background: var(--accent);
    width: 12px;
    height: 12px;
}

.exp-point-ring {
    position: absolute;
    left: 0;
    transform: translateX(-50%) scale(0.5);
    width: 24px;
    height: 24px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
}
.exp-item.is-active .exp-point-ring {
    animation: rippleRing 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rippleRing {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.5); opacity: 0; }
}

.exp-point-line {
    position: absolute;
    left: 12px;
    height: 1px;
    width: 0;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.exp-item.is-active .exp-point-line {
    width: 20px;
}

/* Content */
.exp-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 8px;
}
.blur-to-sharp {
    filter: blur(4px);
    opacity: 0;
    transform: translateY(10px);
}

.exp-role-wrapper {
    margin-bottom: 8px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-item.is-active .exp-role-wrapper {
    transform: translateX(8px);
}
.exp-item:hover .exp-role-wrapper {
    transform: translateX(12px);
}

.role-mask {
    overflow: hidden;
    display: inline-block;
}
.exp-role-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    transform: translateY(100%);
    will-change: transform;
}

.exp-org-loc {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 24px;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.exp-desc-wrapper {
    color: var(--text-secondary);
}
.exp-item.is-active .exp-desc-wrapper {
    color: var(--text-primary); /* Kırık beyaz / daha parlak */
}

.exp-desc-line {
    margin-bottom: 8px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
}

/* Hover Action */
.exp-hover-action {
    margin-top: 16px;
}
.exp-details-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-item:hover .exp-details-link {
    transform: translateY(0);
}
.exp-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.exp-item:hover .exp-arrow {
    transform: translate(4px, -4px);
}

/* Mobile Preview */
.exp-mobile-preview {
    display: none;
    margin-top: 24px;
}
.exp-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.exp-tech-pill {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
.exp-item.is-active .exp-tech-pill {
    border-color: var(--accent);
    color: var(--accent);
}

/* Sticky Right Column */
.exp-sticky-col {
    position: sticky;
    top: 250px;
    height: auto;
    padding-bottom: 50px;
}

.preview-type {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.preview-company-mask {
    overflow: hidden;
    margin-bottom: 12px;
}
.preview-company {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1;
    font-weight: 700;
}

.preview-role {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.preview-status {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 40px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.preview-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.preview-tech .exp-tech-pill {
    font-size: 0.85rem;
    padding: 6px 16px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .exp-grid-container {
        grid-template-columns: 1fr;
    }
    .exp-sticky-col {
        display: none;
    }
    .exp-mobile-preview {
        display: block;
    }
    .exp-timeline-col {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .exp-item {
        padding-bottom: 80px;
    }
    .exp-item:hover .exp-role-wrapper {
        transform: translateX(8px); /* Reset hover shift on mobile */
    }
    .exp-hover-action {
        display: none; /* Hide desktop hover link on mobile */
    }
}




.footer-mega__email:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 10px 25px rgba(255,255,255,0.2); background: var(--text-primary); color: var(--bg-primary); }

