/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea { }

/* ===== PAGE LOAD CINEMA ===== */
body.page-loading { opacity: 0; }
body.page-loaded {
  animation: pageReveal 1s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes pageReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== VARIABLES ===== */
:root {
  --white: #ffffff;
  --bg: #fafbfd;
  --bg-alt: #f0f4f8;
  --text: #0a0a1a;
  --text-light: #5a6077;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99,102,241,.15);
  --accent: #f59e0b;
  --teal: #14b8a6;
  --pink: #ec4899;
  --border: #e2e8f0;
  --surface: #ffffff;
  --glass: rgba(255,255,255,.7);
  --glass-border: rgba(255,255,255,.3);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.04), 0 10px 40px rgba(0,0,0,.08);
  --shadow-glow: 0 0 60px rgba(99,102,241,.15);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0a0a1a;
  --bg-alt: #141428;
  --text: #f0f0f8;
  --text-light: #9ca3b8;
  --border: #1e1e3a;
  --surface: #12122a;
  --glass: rgba(18,18,42,.7);
  --glass-border: rgba(99,102,241,.15);
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.2), 0 10px 40px rgba(0,0,0,.3);
  --white: #f0f0f8;
  --primary-glow: rgba(99,102,241,.25);
}

/* ===== CUSTOM CURSOR (REMOVED) ===== */

/* ===== PARTICLE CANVAS ===== */
.particle-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--primary), var(--pink), var(--accent));
  width: 0%; transition: none;
}

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  /* Prevent scroll trapping on mobile */
  .hero, .about, .work, .process, .testimonials, .timeline, .skills, .contact {
    overflow: visible !important;
  }
}
.section-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 4px;
  color: var(--primary); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 20px; line-height: 1.1;
  letter-spacing: -1px;
}
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; line-height: 1.8; }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }
.fade-in-delay-5 { transition-delay: .5s; }

/* Slide in from sides */
.slide-left { opacity: 0; transform: translateX(-60px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.slide-right { opacity: 0; transform: translateX(60px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.slide-left.visible, .slide-right.visible { opacity: 1; transform: translateX(0); }

/* ===== NAV — GLASSMORPHISM ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow), 0 0 40px rgba(99,102,241,.05);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; letter-spacing: -1px;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: .85rem; font-weight: 600; color: var(--text-light);
  transition: color var(--transition); position: relative;
  letter-spacing: .5px; text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none;
  flex-shrink: 0; padding: 0; cursor: pointer;
}
.toggle-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-light);
  min-width: 32px; text-align: right;
}
.toggle-track {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 50px;
  width: 52px; height: 28px; position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
[data-theme="dark"] .toggle-track::after { transform: translateX(24px); }
.toggle-track .icon-sun, .toggle-track .icon-moon {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: .7rem; line-height: 1;
}
.toggle-track .icon-sun { left: 6px; }
.toggle-track .icon-moon { right: 6px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 6px 0; transition: var(--transition); border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; z-index: 101; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column; padding: 24px 32px; gap: 20px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform var(--transition);
    z-index: 100;
    align-items: center;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; }
  .nav-dropdown { text-align: center; }
  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    min-width: 100% !important;
    text-align: center;
    background: var(--bg-alt) !important;
    border-radius: 12px;
    display: none;
  }
  .nav-dropdown.touch-open .nav-dropdown-menu {
    display: block;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    padding: 8px 0;
    margin-top: 8px;
  }
  .nav-dropdown-menu a {
    text-align: center !important;
    padding: 10px 16px;
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}

/* Dot grid background */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .3;
  pointer-events: none;
  z-index: 0;
}

/* Gradient blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; animation: blobFloat 8s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-blob-1 {
  width: 500px; height: 500px; top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,.2), transparent 70%);
}
.hero-blob-2 {
  width: 400px; height: 400px; bottom: -50px; left: -50px;
  background: radial-gradient(circle, rgba(236,72,153,.12), transparent 70%);
  animation-delay: -4s;
}
.hero-blob-3 {
  width: 300px; height: 300px; top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.1), transparent 70%);
  animation-delay: -2s;
}
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%;
  position: relative; z-index: 1;
}
.hero-text { position: relative; z-index: 1; }
.hero-location {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; color: var(--primary);
  margin-bottom: 20px; letter-spacing: 2px; text-transform: uppercase;
}
.hero-location svg { width: 14px; height: 14px; }
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem); font-weight: 700;
  line-height: 1.0; letter-spacing: -3px; margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600;
  margin-bottom: 24px;
}
.hero-title .typed-text {
  color: var(--primary);
  border-right: 2px solid var(--primary);
  padding-right: 2px;
  animation: blink .8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

.hero-tagline {
  font-size: 1.1rem; color: var(--text-light); max-width: 520px;
  margin-bottom: 36px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

/* Stats strip in hero — GLASSMORPHISM */
.hero-stats {
  display: flex; gap: 24px; padding: 24px 28px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-stat .stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; color: var(--text);
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: .7rem; color: var(--text-light); font-weight: 600;
  margin-top: 4px; text-transform: uppercase; letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: .9rem;
  transition: all var(--transition); cursor: pointer; border: none;
  font-family: inherit; position: relative; overflow: hidden;
  letter-spacing: .3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--pink), var(--primary));
  opacity: 0; transition: opacity .4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99,102,241,.4);
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-outline {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }

/* Magnetic button effect handled by JS */
.magnetic-wrap { display: inline-block; }

.hero-photo {
  display: flex; justify-content: center; align-items: center; position: relative; z-index: 1;
}
.hero-photo-inner {
  position: relative; width: 380px; height: 380px;
}
.headshot-img {
  width: 380px; height: 380px; border-radius: 24px;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,.15);
  transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s;
}
.hero-photo-inner:hover .headshot-img {
  transform: scale(1.02) rotate(-1deg);
  box-shadow: var(--shadow-lg), 0 0 120px rgba(99,102,241,.25);
}
/* Decorative elements around photo */
.hero-photo-inner::before {
  content: ''; position: absolute; inset: -16px;
  border: 2px solid var(--primary); border-radius: 28px;
  opacity: .2; animation: photoSpin 20s linear infinite;
}
.hero-photo-inner::after {
  content: '✦'; position: absolute; top: -8px; right: -8px;
  font-size: 1.5rem; color: var(--primary);
  animation: starPulse 2s ease-in-out infinite;
}
@keyframes photoSpin { to { transform: rotate(360deg); } }
@keyframes starPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

.hero-photo-badge {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 8px 20px; border-radius: 50px;
  font-size: .75rem; font-weight: 700; color: var(--primary);
  white-space: nowrap; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 6px;
}
.hero-photo-badge .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34,197,94,.5);
}
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34,197,94,.5); } 50% { opacity: .4; box-shadow: 0 0 20px rgba(34,197,94,.3); } }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-tagline { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero-actions { justify-content: center; gap: 10px; }
  .hero-actions .btn { padding: 12px 20px; font-size: .82rem; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 16px; padding: 18px 20px; }
  .hero-stat { min-width: 0; flex: 1 1 40%; text-align: center; }
  .hero-stat .stat-number { font-size: 1.3rem; }
  .hero-stat .stat-label { font-size: .62rem; }
  .hero-stats { margin-bottom: 24px; }
  .hero-photo { order: -1; margin-top: 24px; }
  .hero-photo-inner { width: 200px; height: 200px; }
  .headshot-img { width: 200px; height: 200px; }
  .hero-name { letter-spacing: -2px; font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-title { font-size: 1rem; }
}

/* ===== ABOUT ===== */
.about { background: var(--bg); position: relative; overflow: hidden; }
.about::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--text-light); margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; }
.about-text p strong { color: var(--text); }

/* About highlights — glassmorphism cards */
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about-highlight {
  padding: 24px; border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.about-highlight:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), 0 8px 32px rgba(99,102,241,.12);
}
.about-highlight .number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1;
}
.about-highlight .label { font-size: .78rem; color: var(--text-light); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.about-highlight .highlight-detail { font-size: .82rem; color: var(--text-light); margin-top: 8px; line-height: 1.5; opacity: .85; }

/* Fun facts */
.about-fun-facts {
  margin-top: 32px; padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}
.about-fun-facts h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text);
}
.about-fun-facts ul li {
  font-size: .9rem; color: var(--text-light); padding: 4px 0 4px 20px;
  position: relative;
}
.about-fun-facts ul li::before {
  content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-highlights { grid-template-columns: 1fr; gap: 12px; }
  .about-highlight { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
  .about-highlight .number { font-size: 1.5rem; flex-shrink: 0; }
}

/* ===== PROCESS ===== */
.process { background: var(--bg); position: relative; }
.process-flow {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 60px; position: relative;
}
/* Connecting line behind process steps */
.process-flow::before {
  display: none;
}
.process-step {
  text-align: left; padding: 28px; position: relative; z-index: 1;
  background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.process-step::after {
  display: none;
}
.process-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin: 0 0 16px; font-size: 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,.2);
}
.process-step:hover .process-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(99,102,241,.35);
}
.process-step h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: .82rem; color: var(--text-light); }

@media (max-width: 768px) {
  .process-flow { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .process-flow::before { display: none; }
  .process-step::after { display: none; }
  .process-step { text-align: left; display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
  .process-icon { margin: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ===== WORK / CASE STUDIES ===== */
.work { background: var(--bg); position: relative; overflow: hidden; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 52px; }

.work-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all .4s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
  transform-style: preserve-3d; perspective: 1000px;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,.15);
  border-color: var(--primary);
}
.work-card-image {
  height: 240px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .85rem; font-weight: 600;
  position: relative; overflow: hidden;
}
.work-card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.4));
}
.work-card-image .card-badge {
  position: absolute; top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff; font-size: .68rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 1.5px;
  z-index: 2;
}
/* Hover overlay */
.work-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(99,102,241,.9), rgba(236,72,153,.8));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s;
  color: #fff; font-weight: 700; font-size: 1rem;
  letter-spacing: 1px;
}
.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.work-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3;
}
.work-card-body p { color: var(--text-light); font-size: .9rem; margin-bottom: 20px; flex: 1; line-height: 1.7; }
.work-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.work-card-tags span {
  font-size: .7rem; font-weight: 700; padding: 4px 12px; border-radius: 50px;
  background: var(--bg); color: var(--text-light); border: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .5px;
}
.work-card-link {
  font-size: .85rem; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.work-card:hover .work-card-link { gap: 12px; }
@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ===== IMPACT STRIP ===== */
.impact {
  background: linear-gradient(135deg, #0a0a1a, #1e1b4b 50%, #0a0a1a);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.impact::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
/* Animated glow line at top of impact */
.impact::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--pink), transparent);
  animation: glowSweep 4s ease-in-out infinite;
}
@keyframes glowSweep {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

.impact-grid {
  display: flex; justify-content: space-around; flex-wrap: nowrap; gap: 40px;
  text-align: center; position: relative; z-index: 1;
}
@media (max-width: 768px) {
  .impact-grid { flex-wrap: wrap; gap: 20px 16px; }
  .impact-item { flex: 1 1 40%; }
  .impact-item .number { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .impact-item .label { font-size: .68rem; letter-spacing: .5px; }
  .impact { padding: 48px 0; }
}
.impact-item .number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1;
}
.impact-item .label { font-size: .8rem; font-weight: 600; opacity: .6; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.testimonial-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-family: var(--font-display);
  font-size: 4rem; color: var(--primary); opacity: .1; line-height: 1;
}
.testimonial-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 0 40px rgba(99,102,241,.1); }
.testimonial-card .stars { color: var(--accent); font-size: .9rem; margin-bottom: 12px; }
.testimonial-card p { font-size: .95rem; color: var(--text-light); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial-card .author { font-size: .82rem; font-weight: 700; color: var(--text); }
.testimonial-card .source { font-size: .72rem; color: var(--text-light); }

/* Carousel dots (mobile) */
.carousel-dots {
  display: none; justify-content: center; gap: 8px; margin-top: 24px;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: var(--border); transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.2); }
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex; flex-direction: column; gap: 16px;
  }
  .testimonial-card {
    padding: 24px;
    min-width: unset;
  }
  .testimonial-card p { font-size: .88rem; }
  .carousel-dots { display: none; }
}

/* ===== SKILLS ===== */
.skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 52px; }
.skill-category {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.skill-category::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  opacity: 0; transition: opacity var(--transition);
}
.skill-category:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.skill-category:hover::before { opacity: 1; }
.skill-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: #fff;
  transition: transform var(--transition);
}
.skill-category:hover .skill-icon { transform: scale(1.1) rotate(-5deg); }
.skill-category h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.skill-category ul li {
  font-size: .83rem; color: var(--text-light); padding: 4px 0 4px 16px;
  position: relative;
}
.skill-category ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
@media (max-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== SKILL ORBIT VISUALIZATION ===== */
.skill-orbit {
  position: relative;
  width: 500px; height: 500px;
  margin: 60px auto 0;
}

.orbit-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 30s linear infinite;
}
.orbit-ring-1 { width: 200px; height: 200px; opacity: .4; }
.orbit-ring-2 { width: 340px; height: 340px; opacity: .3; animation-duration: 45s; animation-direction: reverse; }
.orbit-ring-3 { width: 460px; height: 460px; opacity: .2; animation-duration: 60s; }
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 0 40px rgba(99,102,241,.3);
  z-index: 2;
}

.orbit-node {
  position: absolute; top: 50%; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform-origin: 0 0;
  animation: orbitNode 20s linear infinite;
  animation-delay: var(--delay);
  z-index: 1;
}
.orbit-node.orbit-1 { animation-duration: 20s; }
.orbit-node.orbit-2 { animation-duration: 30s; }
.orbit-node.orbit-3 { animation-duration: 40s; }

@keyframes orbitNode {
  from { transform: rotate(var(--angle)) translateX(var(--radius, 100px)) rotate(calc(-1 * var(--angle))); }
  to { transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--radius, 100px)) rotate(calc(-1 * (var(--angle) + 360deg))); }
}

.orbit-node.orbit-1 { --radius: 100px; }
.orbit-node.orbit-2 { --radius: 170px; }
.orbit-node.orbit-3 { --radius: 230px; }

.orbit-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.1));
}
.orbit-label {
  font-size: .6rem; font-weight: 700;
  color: var(--text-light); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .5px;
}

@media (max-width: 640px) {
  .skill-orbit { width: 320px; height: 320px; }
  .orbit-ring-1 { width: 130px; height: 130px; }
  .orbit-ring-2 { width: 220px; height: 220px; }
  .orbit-ring-3 { width: 300px; height: 300px; }
  .orbit-node.orbit-1 { --radius: 65px; }
  .orbit-node.orbit-2 { --radius: 110px; }
  .orbit-node.orbit-3 { --radius: 150px; }
  .orbit-center { width: 60px; height: 60px; font-size: .75rem; }
}

/* ===== TIMELINE ===== */
.timeline { background: var(--bg); }
.timeline-list { margin-top: 52px; position: relative; padding-left: 40px; }
.timeline-list::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--pink), var(--accent));
}
.timeline-item {
  position: relative; padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--surface);
  transition: all var(--transition);
  box-shadow: 0 0 0 0 rgba(99,102,241,0);
}
.timeline-item:hover::before {
  box-shadow: 0 0 0 8px rgba(99,102,241,.15);
  transform: scale(1.2);
}
.timeline-item .year {
  font-size: .75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

/* Timeline mobile */
@media (max-width: 768px) {
  .timeline-list { padding-left: 28px; }
  .timeline-list::before { left: 8px; }
  .timeline-item::before { left: -26px; width: 12px; height: 12px; }
  .timeline-item p { font-size: .85rem; }
}

/* ===== CONTACT ===== */
.contact { background: var(--bg); position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; bottom: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none; opacity: .5;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 52px; position: relative; z-index: 1; }
.contact-info p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.8; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link-item {
  display: flex; align-items: center; gap: 14px; font-weight: 600;
  color: var(--text); transition: color var(--transition), transform var(--transition);
}
.contact-link-item:hover { color: var(--primary); transform: translateX(4px); }
.contact-link-item .icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.contact-link-item:hover .icon { background: var(--primary); border-color: var(--primary); color: #fff; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-family: inherit; font-size: .95rem;
  background: var(--glass); color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.contact-form textarea { min-height: 140px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer {
  text-align: center; padding: 40px 24px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.footer p { font-size: .85rem; color: var(--text-light); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 8px; }
.footer-links a { font-size: .85rem; color: var(--text-light); font-weight: 600; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer .ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: .75rem; color: var(--text-light);
  padding: 6px 16px; border-radius: 50px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer .ai-badge span { color: var(--primary); font-weight: 700; }

/* ===== KONAMI PARTY MODE ===== */
body.party-mode {
  animation: partyBg 0.5s linear infinite;
}
body.party-mode * {
  animation-duration: 0.2s !important;
}
@keyframes partyBg {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ===== MARQUEE ===== */
.marquee-section {
  padding: 24px 0; overflow: hidden; background: var(--bg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex; gap: 48px; animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--text-light);
  opacity: .3; white-space: nowrap; text-transform: uppercase; letter-spacing: 3px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CASE STUDY PAGES ===== */
.case-hero {
  padding: 140px 0 80px; background: var(--surface);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.case-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.case-hero .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--primary); margin-bottom: 24px;
  transition: gap var(--transition);
}
.case-hero .back-link:hover { gap: 10px; }
.case-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -1px;
}
.case-hero .case-meta {
  display: flex; flex-wrap: wrap; gap: 24px; color: var(--text-light);
  font-size: .88rem; font-weight: 600;
}
.case-hero .case-meta span { display: flex; align-items: center; gap: 6px; }
@media (max-width: 768px) {
  .case-hero { padding: 100px 0 48px; overflow: visible !important; -webkit-overflow-scrolling: touch; position: relative !important; }
  .case-hero::before { display: none; }
  .case-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .case-hero .case-meta { gap: 12px; font-size: .8rem; }
  .case-hero-bg { display: none !important; }
}

.case-content { padding: 80px 0; overflow-x: hidden; }
.case-content .container { max-width: 880px; }
@media (max-width: 768px) {
  .case-content { padding: 48px 0; }
  .case-content .container { padding: 0 20px; overflow-x: hidden; }
  .case-section p, .case-section ul li { font-size: .92rem; }
  .case-section h2 { font-size: 1.3rem; }
  .case-section h3 { font-size: 1rem; }
}
.case-section { margin-bottom: 72px; }
.case-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--bg-alt);
  position: relative;
}
.case-section h2::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--pink));
}
.case-section h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 12px; color: var(--primary); }
.case-section p { color: var(--text-light); font-size: 1rem; margin-bottom: 16px; line-height: 1.8; }
.case-section ul { margin: 12px 0 20px 0; }
.case-section ul li {
  color: var(--text-light); font-size: .95rem; padding: 6px 0 6px 22px;
  position: relative;
}
.case-section ul li::before {
  content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}

/* Placeholders */
.placeholder {
  background: var(--bg-alt);
  border-radius: var(--radius); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px; color: var(--text-light); font-size: .82rem; font-weight: 600;
  margin: 28px 0; padding: 20px;
  transition: border-color var(--transition);
}
.placeholder:hover { border-color: var(--primary); }
.case-hero-img { width: 100%; border-radius: var(--radius); margin: 28px 0; }
.case-video { width: 100%; border-radius: var(--radius); display: block; }
.video-wrap { position: relative; }
.video-wrap .video-label { display: block; text-align: center; font-size: .8rem; font-weight: 600; color: var(--text-light); margin-top: 8px; }
.sound-toggle { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); z-index: 2; }
.sound-toggle:hover { background: rgba(0,0,0,.85); }
.placeholder.tall { height: 400px; }
.placeholder.medium { height: 260px; }
.placeholder.short { height: 160px; }
.placeholder.video { background: linear-gradient(135deg, #0a0a1a, #1e1b4b); color: rgba(255,255,255,.5); }
.placeholder svg { width: 32px; height: 32px; opacity: .4; }

/* Device mockups */
.device-frame {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--bg-alt); border: 2px solid var(--border);
}
.device-frame.phone { width: 220px; height: 440px; border-radius: 28px; margin: 0 auto; }
.device-frame.tablet { width: 400px; height: 280px; border-radius: 16px; margin: 0 auto; }
.device-frame.desktop { width: 100%; height: 300px; border-radius: 12px 12px 0 0; }
.device-frame .device-notch {
  width: 60px; height: 6px; background: var(--border); border-radius: 3px;
  margin: 8px auto;
}
.device-frame .device-screen {
  position: absolute; inset: 12px; border-radius: 12px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: .8rem; font-weight: 600;
}

.placeholder-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0;
}
.placeholder-grid .placeholder { margin: 0; }
@media (max-width: 768px) { .placeholder-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 480px) { .placeholder-grid { grid-template-columns: 1fr; } }

/* Metrics grid */
.metrics-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0;
}
.metric-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm); padding: 24px;
  text-align: center; border: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.metric-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 0 30px rgba(99,102,241,.1); }
.metric-card .number {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1;
}
.metric-card .label { font-size: .78rem; color: var(--text-light); font-weight: 600; margin-top: 8px; }
@media (max-width: 768px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .metric-card { padding: 18px 12px; }
  .metric-card .number { font-size: 1.4rem; }
  /* Override inline grid styles on case study pages */
  .case-section [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    overflow-x: hidden !important;
  }
  /* Stack twitter embeds vertically on mobile */
  .case-section .twitter-tweet { max-width: 100% !important; }
  .case-section twitter-widget,
  .case-section .twitter-tweet-rendered { max-width: 100% !important; }
  .case-section iframe[id^="twitter"] { max-width: 100% !important; }
  .tweet-grid, .video-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    overflow: hidden !important;
  }
  .tweet-grid > *, .tweet-grid blockquote,
  .tweet-grid twitter-widget, .tweet-grid iframe {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .case-section [style*="grid-template-columns"] > div {
    padding: 1rem !important;
  }
  .case-section [style*="grid-template-columns"] [style*="font-size:2.2rem"],
  .case-section [style*="grid-template-columns"] [style*="font-size: 2.2rem"] {
    font-size: 1.4rem !important;
  }
}
@media (max-width: 380px) { .metrics-grid { grid-template-columns: 1fr; }
  .case-section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* Case study nav */
.case-nav-wrap {
  border-top: 1px solid var(--border); padding: 48px 0;
}
.case-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.case-nav a {
  font-weight: 700; color: #fff; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  background: var(--primary); border: 1px solid var(--primary);
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.case-nav a:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Case study quick-nav strip — sits between prev/next */
.case-quicknav {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; flex: 1;
}
.case-quicknav a {
  font-size: .8rem; font-weight: 600; color: var(--text-light);
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all var(--transition); text-decoration: none;
}
.case-quicknav a:hover, .case-quicknav a.active {
  color: var(--primary); border-color: var(--primary); background: rgba(99,102,241,.08);
}
@media (max-width: 768px) {
  .case-nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .case-nav a { font-size: .8rem; padding: 10px 18px; width: 100%; justify-content: center; }
  .case-quicknav { width: 100%; order: 3; margin-top: 12px; justify-content: center; }
  .case-quicknav a { font-size: .72rem; padding: 8px 12px; }
  .case-nav-wrap { padding: 32px 0; }
}

/* Work dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--glass); backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 8px 0; min-width: 240px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover,
.nav-dropdown.touch-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  .nav-dropdown-menu { position: static; transform: none; min-width: 100%; border-radius: 8px; margin-top: 8px; }
  .nav-dropdown.touch-open .nav-dropdown-menu { transform: none; }
}
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: .85rem; font-weight: 500;
  color: var(--text-light); transition: all .15s;
}
.nav-dropdown-menu a:hover { color: var(--primary); background: rgba(99,102,241,.06); }

/* Cursor styles restored to normal */

/* ===== SELECTION STYLE ===== */
::selection {
  background: rgba(99,102,241,.2);
  color: var(--text);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--pink));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== FOCUS STYLES (KEYBOARD NAV) ===== */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem;
  line-height: 1; padding: 0; text-indent: 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s, transform .3s, border-color .3s, box-shadow .3s;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.scroll-top-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ===== TIMELINE HOVER MICRO-ANIMATIONS ===== */
.timeline-item {
  transition: all .4s cubic-bezier(.16,1,.3,1);
  padding-left: 0;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.timeline-item:hover {
  padding-left: 12px;
  border-left-color: var(--primary);
  background: linear-gradient(90deg, var(--primary-glow), transparent 60%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.timeline-item:hover h3 {
  color: var(--primary);
  transition: color .3s;
}

/* ===== READING PROGRESS (CASE STUDY) ===== */
.reading-progress {
  position: fixed; top: 72px; left: 0; height: 3px; z-index: 199;
  background: linear-gradient(90deg, var(--teal), var(--primary), var(--pink));
  width: 0%; transition: none;
  opacity: 0;
}
.reading-progress.active { opacity: 1; }

/* ===== PAGE TRANSITIONS ===== */
.page-transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity .3s cubic-bezier(.4,0,.2,1);
}
.page-transition-overlay.active {
  opacity: 1; pointer-events: all;
}

/* ===== KEYBOARD SHORTCUT HINT ===== */
.keyboard-hint {
  position: fixed; bottom: 32px; left: 32px; z-index: 150;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .7rem; color: var(--text-light);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.keyboard-hint.visible { opacity: .6; }
.keyboard-hint kbd {
  display: inline-block; padding: 1px 6px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 4px; font-family: var(--font-display);
  font-weight: 700; font-size: .65rem; margin: 0 1px;
}

/* ===== HERO TEXT SPLIT REVEAL ===== */
.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-80deg);
  animation: charReveal .8s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--char-delay);
}
.hero-name br + .char { /* first char after br */ }
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

/* ===== HORIZONTAL SCROLL CASE STUDIES ===== */
/* ===== WORK GRID (2x2) ===== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 52px 0;
}
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy scroll styles (kept for reference) */
.work-scroll-wrapper {
  position: relative;
}
.work-scroll-pin {
  /* JS will handle sticky positioning */
}
.work-scroll-track {
  display: flex;
  gap: 32px;
  padding: 52px 0;
  transition: transform .1s linear;
}
.work-scroll-track .work-card {
  min-width: 420px;
  max-width: 420px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .work-scroll-track .work-card {
    min-width: 85vw;
    max-width: 85vw;
  }
}
.work-scroll-progress {
  height: 3px;
  background: var(--bg-alt);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}
.work-scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: 2px;
  transition: width .05s linear;
}

/* ===== SECTION BACKGROUND TRANSITIONS ===== */
.section-bg-shift {
  transition: background .8s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] .section,
[data-theme="dark"] .marquee-section { background: #0a0a1a; }
[data-theme="dark"] .about, [data-theme="dark"] .about.section-active { background: #0e0e26; }
[data-theme="dark"] .work { background: #0c0c22; }
[data-theme="dark"] .process, [data-theme="dark"] .process.section-active { background: #0c1220; }
[data-theme="dark"] .testimonials, [data-theme="dark"] .testimonials.section-active { background: #140e24; }
[data-theme="dark"] .timeline, [data-theme="dark"] .timeline.section-active { background: #0e0e26; }
[data-theme="dark"] .skills, [data-theme="dark"] .skills.section-active { background: #0c1220; }
[data-theme="dark"] .contact, [data-theme="dark"] .contact.section-active { background: #12091e; }

:root:not([data-theme="dark"]) .about.section-active { background: #f8f9ff; }
:root:not([data-theme="dark"]) .process.section-active { background: #f5fafa; }
:root:not([data-theme="dark"]) .testimonials.section-active { background: #fef8ff; }
:root:not([data-theme="dark"]) .timeline.section-active { background: #f8f9ff; }
:root:not([data-theme="dark"]) .skills.section-active { background: #f5fafa; }
:root:not([data-theme="dark"]) .contact.section-active { background: #faf5ff; }

/* ===== TIMELINE ACCORDION ===== */
.timeline-item {
  cursor: pointer;
}
.timeline-item .timeline-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s cubic-bezier(.16,1,.3,1), opacity .4s, margin .4s;
  margin-top: 0;
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.7;
}
.timeline-item.expanded .timeline-detail {
  max-height: 300px;
  opacity: 1;
  margin-top: 12px;
}
.timeline-item .expand-hint {
  font-size: .7rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 8px;
  opacity: .6;
  transition: opacity .3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.timeline-item.expanded .expand-hint { display: none; }

/* Timeline glow dot */
.timeline-glow-dot {
  position: absolute;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  z-index: 2;
  transition: top .3s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(99,102,241,.6)) drop-shadow(0 0 20px rgba(99,102,241,.3));
}

/* ===== TESTIMONIAL AUTO-ROTATION ===== */
@media (min-width: 769px) {
  .testimonials-grid.auto-rotate .testimonial-card {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
  }
  .testimonials-grid.auto-rotate .testimonial-card.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .testimonials-grid.auto-rotate {
    position: relative;
    display: block;
  }
  .testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
  }
  .testimonial-indicator {
    width: 32px; height: 3px;
    border-radius: 2px;
    background: var(--border);
    border: none;
    transition: all .3s;
    cursor: pointer;
    padding: 0;
  }
  .testimonial-indicator.active {
    background: var(--primary);
    width: 48px;
  }
}
@media (max-width: 768px) {
  .testimonial-indicators { display: none; }
}

/* ===== AVAILABLE FOR HIRE BADGE ===== */
.hire-badge {
  position: fixed;
  bottom: 32px;
  right: 90px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  font-size: .75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all .3s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.hire-badge.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hire-badge:hover {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34,197,94,.2), var(--shadow-lg);
  transform: translateY(-2px);
}
.hire-badge .hire-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34,197,94,.5);
}
@media (max-width: 768px) {
  .hire-badge { right: 20px; bottom: 20px; font-size: .7rem; padding: 8px 14px; }
  .scroll-top-btn { bottom: 20px; right: 20px; width: 40px; height: 40px; }
  .hire-badge { display: none; }
}

/* ===== CASE STUDY HERO PARALLAX ===== */
.case-hero {
  overflow: hidden;
}
/* Prevent horizontal overflow on case study pages */
html, body { max-width: 100vw; overflow-x: hidden; }
.case-hero-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  transition: transform .1s linear;
  z-index: 0;
  opacity: .08;
}
.case-hero > * { position: relative; z-index: 1; }
.case-hero > .case-hero-bg { z-index: 0; }

/* ===== PRINT STYLESHEET ===== */
@media print {
  /* Reset everything for clean resume */
  *, *::before, *::after { cursor: auto !important; }
  body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111 !important; background: #fff !important;
    font-size: 11pt; line-height: 1.5;
    -webkit-font-smoothing: auto;
  }
  
  /* Hide non-essential elements */
  .nav, .scroll-progress, .reading-progress, .scroll-top-btn,
  .keyboard-hint, .cursor, .cursor-dot, .particle-canvas,
  .hero-blob, .marquee-section, .hero-photo-inner::before,
  .hero-photo-inner::after, .hero-photo-badge .status-dot,
  .skill-orbit, .contact-form, .ai-badge, .theme-toggle,
  .nav-toggle, .page-transition-overlay, .testimonials,
  .footer-links, .hero-actions .btn-outline,
  .work-card-overlay, .card-badge { display: none !important; }
  
  /* Remove animations & effects */
  .fade-in, .slide-left, .slide-right {
    opacity: 1 !important; transform: none !important;
    transition: none !important;
  }
  
  /* Layout resets */
  .hero { min-height: auto; padding: 20pt 0 10pt; }
  .hero-inner { display: block; }
  .hero-photo { display: none; }
  .hero-name { font-size: 24pt; letter-spacing: -1px; margin-bottom: 4pt; }
  .hero-title { font-size: 12pt; margin-bottom: 4pt; }
  .hero-title .typed-text { border: none; }
  .hero-tagline { font-size: 10pt; margin-bottom: 8pt; color: #555; }
  .hero-stats { background: none; backdrop-filter: none; border: 1px solid #ddd; padding: 10pt; }
  .hero-actions { margin-bottom: 10pt; }
  .hero-actions .btn-primary { background: none; color: #111; box-shadow: none; padding: 0; font-size: 10pt; }
  .hero-actions .btn-primary::before { display: none; }
  
  .section { padding: 20pt 0; }
  .section-title { font-size: 16pt; }
  
  .about-grid { display: block; }
  .about-text p { font-size: 10pt; color: #333; }
  .about-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8pt; }
  .about-highlight { padding: 8pt; background: none; border: 1px solid #ddd; }
  .about-highlight .number { font-size: 14pt; color: #333; }
  .about-fun-facts { background: none; border: 1px solid #ddd; padding: 10pt; }
  
  .work-grid { grid-template-columns: 1fr; gap: 10pt; }
  .work-card { border: 1px solid #ddd; background: none; }
  .work-card-image { height: 0; display: none; }
  .work-card-body { padding: 10pt; }
  .work-card-body h3 { font-size: 12pt; }
  .work-card-body p { font-size: 9pt; }
  
  .impact { background: none !important; color: #111 !important; padding: 15pt 0; border: 1px solid #ddd; }
  .impact::before, .impact::after { display: none; }
  .impact-item .number { color: #111; font-size: 18pt; }
  .impact-item .label { color: #555; opacity: 1; }
  
  .process-flow { flex-wrap: wrap; }
  .process-icon { background: none; border: 1px solid #ddd; color: #111; box-shadow: none; }
  
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 8pt; }
  .skill-category { background: none; border: 1px solid #ddd; padding: 10pt; }
  .skill-icon { background: none; border: 1px solid #ddd; color: #111; }
  
  .timeline-list::before { background: #ccc; }
  .timeline-item::before { background: #555; border-color: #fff; }
  
  .contact-info p { font-size: 10pt; }
  .contact-link-item .icon { background: none; border: 1px solid #ddd; }
  
  .footer { border-top: 1px solid #ddd; }
  
  /* Prevent page breaks in bad places */
  .work-card, .skill-category, .timeline-item, .about-highlight,
  .process-step, .case-section { break-inside: avoid; }
  
  /* Page margins */
  @page { margin: 0.5in; }
  
  /* Links show URL */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
  .nav-logo::after, .work-card-link::after, .back-link::after, .case-nav a::after { content: none; }
}

/* ===== STICKY SECTION NAV (DOT NAV) ===== */
.section-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.section-nav.visible {
  opacity: 1;
  pointer-events: auto;
}
.section-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
}
.section-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  transition: all .3s;
  flex-shrink: 0;
}
.section-nav a.active .section-nav-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(99,102,241,.4);
  transform: scale(1.3);
}
.section-nav a:hover .section-nav-dot {
  border-color: var(--primary);
}
.section-nav-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  position: absolute;
  right: 22px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 6px;
}
.section-nav a:hover .section-nav-label {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 768px) {
  .section-nav { display: none; }
}

/* Case study figcaptions */
.placeholder-grid figure {
  margin: 0;
}
.placeholder-grid figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.96);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.active { visibility: visible; opacity: 1; }
.lightbox-overlay #lb-img {
  max-width: 85vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-top: 1rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: none; border: none;
  z-index: 10000;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  background: none; border: none;
  padding: 1rem;
  z-index: 10000;
}
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-nav:hover, .lightbox-close:hover { color: var(--accent, #6c63ff); }
.placeholder-grid figure { cursor: pointer; position: relative; }
.placeholder-grid figure img { transition: transform 0.2s ease; }
.placeholder-grid figure:hover img { transform: scale(1.03); }
.placeholder-grid figure::after {
  content: '🔍 Click to expand';
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.placeholder-grid figure:hover::after { opacity: 1; }
