/* ============================================================
   SIMERDEEP SINGH MANCHANDA — Elite Portfolio CSS
   Inspired by: Nakula + Mats.zip + Arkon.digital
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:           #080808;
  --bg-card:      #111111;
  --bg-hover:     #181818;
  --bg-glass:     rgba(17,17,17,0.85);
  --accent:       #ff4925;
  --accent-soft:  #ff6b4a;
  --accent-glow:  rgba(255, 73, 37, 0.15);
  --accent-dim:   rgba(255, 73, 37, 0.08);
  --text:         #f0ede8;
  --text-muted:   #888888;
  --text-dim:     #444444;
  --border:       rgba(255,255,255,0.07);
  --border-accent:rgba(255, 73, 37, 0.3);
  --white:        #ffffff;

  --font-display: 'Anton', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --nav-h:        72px;
  --max-w:        1320px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-pill:  100px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════
   PRELOADER
═══════════════════════════════════════ */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; z-index: 10000;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s var(--ease-out);
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; }
.preloader-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderFadeUp 0.6s var(--ease-out) 0.2s forwards;
}
.preloader-name span { color: var(--accent); }
.preloader-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0;
  animation: preloaderFadeUp 0.6s var(--ease-out) 0.5s forwards;
}
.preloader-bar-wrap {
  width: 200px; height: 1px;
  background: var(--border);
  margin: 24px auto 0;
  overflow: hidden;
}
.preloader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  width: 0%;
  animation: preloaderBar 1.8s var(--ease-out) 0.3s forwards;
}
.preloader-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0;
  animation: preloaderFadeUp 0.4s ease 0.4s forwards;
}
@keyframes preloaderFadeUp { to { opacity:1; transform:translateY(0); } }
@keyframes preloaderBar { to { width: 100%; } }

/* ═══════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════ */
#cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.3s;
  mix-blend-mode: normal;
  /* Hidden by default — JS makes visible after first mouse move */
  opacity: 0;
}
#cursor-ring {
  position: fixed; width: 40px; height: 40px;
  border: 1.5px solid rgba(255,73,37,0.5);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, opacity 0.3s;
  opacity: 0;
}
body.cursor-hover #cursor-dot { width: 12px; height: 12px; background: var(--accent-soft); }
body.cursor-hover #cursor-ring { width: 60px; height: 60px; border-color: var(--accent); }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color 0.3s;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: background 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.nav-cta:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,73,37,0.35);
}

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.7px, 4.7px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.7px, -4.7px); }

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed; top: 0; right: -100%;
  width: min(380px, 100vw);
  height: 100vh; background: #0d0d0d;
  border-left: 1px solid var(--border);
  z-index: 999;
  display: flex; flex-direction: column;
  padding: 100px 48px 48px;
  gap: 40px;
  transition: right 0.5s var(--ease-out);
}
.nav-drawer.open { right: 0; }
.nav-drawer-link {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
  display: block;
}
.nav-drawer-link:hover { color: var(--white); transform: translateX(8px); }
.nav-drawer-socials {
  display: flex; gap: 20px;
  margin-top: auto;
}
.nav-drawer-socials a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav-drawer-socials a:hover { color: var(--accent); }
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 998; opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: var(--nav-h) 40px 0;
}

#canvas-bg {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  touch-action: none;
  opacity: 0.6;
}

.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.4;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 8px 16px; border-radius: var(--radius-pill);
  margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,73,37,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255,73,37,0); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(60px, 9.5vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-headline .line {
  display: block; overflow: hidden;
}
.hero-headline .line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineReveal 0.9s var(--ease-out) forwards;
}
.hero-headline .line:nth-child(1) .line-inner { animation-delay: 1.1s; }
.hero-headline .line:nth-child(2) .line-inner { animation-delay: 1.25s; }
.hero-headline .line:nth-child(3) .line-inner { animation-delay: 1.4s; }
.hero-headline .accent { color: var(--accent); }

@keyframes lineReveal { to { transform: translateY(0); } }

.hero-bottom {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 1.8s forwards;
}
.hero-desc {
  max-width: 480px;
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted);
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }

.btn-primary {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--white);
  background: var(--accent);
  padding: 16px 32px; border-radius: var(--radius-pill);
  transition: background 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,73,37,0.4);
}
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translate(3px,-3px); }

.btn-outline {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 16px 32px; border-radius: var(--radius-pill);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
}
.btn-outline:hover {
  color: var(--text); border-color: var(--text-dim);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; z-index: 2;
  animation: fadeUp 0.8s ease 2.2s both;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════
   MARQUEE TICKER
═══════════════════════════════════════ */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 18px 0;
  overflow: hidden;
  position: relative; z-index: 3;
}
.marquee-track {
  display: flex; gap: 0;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
}
.marquee-item .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.marquee-item .num {
  font-family: var(--font-display);
  font-size: 20px; color: var(--accent);
  margin-right: -8px;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════ */
.section {
  padding: 120px 40px;
  position: relative;
}
.container {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}
.section-label::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--white);
}
.section-title .outline {
  -webkit-text-stroke: 1px rgba(255,255,255,0.25);
  color: transparent;
}
.section-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted); max-width: 520px;
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════ */
.stats-section {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: var(--bg);
  padding: 48px 36px;
  text-align: center;
  transition: background 0.3s;
  position: relative;
}
.stat-item:hover { background: var(--bg-card); }
.stat-item::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.stat-item:hover::after { width: 60%; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  color: var(--white); line-height: 1; display: block;
}
.stat-num .accent { color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 8px; display: block;
}

/* ═══════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════ */
#about { padding: 120px 40px; border-bottom: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
}
.about-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease-out);
}
.about-image-frame:hover img { transform: scale(1.04); }
.about-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.7) 0%, transparent 50%);
}
.about-image-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.about-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse-green 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.about-badge-text {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--text-muted);
}
.about-badge-text strong { display: block; color: var(--white); font-size: 12px; }

.about-accent-card {
  position: absolute; top: 32px; right: -24px;
  background: var(--accent);
  padding: 20px 24px; border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(255,73,37,0.3);
}
.about-accent-card .num {
  font-family: var(--font-display); font-size: 36px;
  color: var(--white); line-height: 1;
}
.about-accent-card .txt {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 4px;
}

.about-content {}
.about-tagline {
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted); margin: 24px 0 40px;
}
.about-tagline strong { color: var(--text); }

.skills-list { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.skill-item {}
.skill-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.skill-name {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.skill-pct {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent);
}
.skill-bar {
  height: 2px; background: var(--bg-hover);
  border-radius: 1px; overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 1px; width: 0%;
  transition: width 1.2s var(--ease-out);
}
.skill-fill.animate { width: var(--pct); }

/* ═══════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════ */
#services { padding: 120px 40px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.services-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 72px; gap: 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-card);
  padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: background 0.4s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover { background: var(--bg-hover); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 24px; display: block;
}
.service-icon {
  font-size: 32px; margin-bottom: 20px; display: block;
  transition: transform 0.3s var(--ease-spring);
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(-5deg); }
.service-title {
  font-family: var(--font-display);
  font-size: 28px; line-height: 1;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 16px;
}
.service-desc {
  font-size: 14px; line-height: 1.7;
  color: var(--text-muted);
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.service-tag {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: var(--radius-pill);
  transition: color 0.3s, border-color 0.3s;
}
.service-card:hover .service-tag { color: var(--accent); border-color: var(--border-accent); }

/* ═══════════════════════════════════════
   WORK / EXPERIENCE SECTION
═══════════════════════════════════════ */
#work { padding: 120px 40px; border-bottom: 1px solid var(--border); }
.work-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 72px; gap: 40px;
}
.work-list { display: flex; flex-direction: column; }
.work-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px; align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding 0.3s var(--ease-out);
  position: relative;
}
.work-item::before {
  content: '';
  position: absolute; left: -40px; right: -40px; top: 0; bottom: 0;
  background: var(--bg-card); z-index: -1; opacity: 0;
  transition: opacity 0.3s;
}
.work-item:hover { padding: 32px 0 32px 16px; }
.work-item:hover::before { opacity: 1; }

.work-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--text-dim);
  transition: color 0.3s;
}
.work-item:hover .work-num { color: var(--accent); }
.work-info {}
.work-company {
  font-family: var(--font-display); font-size: 28px;
  text-transform: uppercase; color: var(--white);
  line-height: 1; margin-bottom: 6px;
  transition: color 0.3s;
}
.work-item:hover .work-company { color: var(--accent); }
.work-role {
  font-size: 13px; color: var(--text-muted);
  font-family: var(--font-mono);
}
.work-meta {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px; text-align: right;
}
.work-year {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--text-dim);
}
.work-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 16px;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.work-item:hover .work-arrow {
  background: var(--accent); border-color: var(--accent);
  color: var(--white); transform: rotate(45deg);
}

/* ═══════════════════════════════════════
   TOOLS SECTION
═══════════════════════════════════════ */
#tools { padding: 120px 40px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.tools-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 48px;
}
.tool-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 14px 22px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-spring), background 0.3s;
}
.tool-pill:hover {
  border-color: var(--accent); color: var(--white);
  transform: translateY(-4px); background: var(--accent-dim);
}
.tool-pill .tool-emoji { font-size: 18px; }

/* ═══════════════════════════════════════
   CONTACT / CTA SECTION
═══════════════════════════════════════ */
#contact {
  padding: 160px 40px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.contact-bg-text {
  position: absolute; bottom: -30px; left: -10px; right: -10px;
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 220px);
  text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  line-height: 1; letter-spacing: -0.02em;
  user-select: none; pointer-events: none;
  white-space: nowrap; text-align: center;
}
.contact-inner {
  position: relative; z-index: 2; text-align: center;
}
.contact-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 32px;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  text-transform: uppercase; color: var(--white);
  line-height: 0.95; margin-bottom: 32px;
}
.contact-title .outline {
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
}
.contact-sub {
  font-size: 16px; color: var(--text-muted);
  max-width: 480px; margin: 0 auto 48px; line-height: 1.7;
}
.contact-actions {
  display: flex; gap: 16px; justify-content: center;
  align-items: center; flex-wrap: wrap;
}
.contact-email {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin-top: 32px; display: block;
  transition: color 0.3s;
}
.contact-email:hover { color: var(--accent); }

.social-links {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 48px;
}
.social-link {
  width: 48px; height: 48px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 16px;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-spring), background 0.3s;
}
.social-link:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-4px); background: var(--accent-dim);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  padding: 48px 40px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--white);
}
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex; gap: 32px;
}
.footer-links a {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--text-dim);
}

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(16px);
  z-index: 5000; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 700px;
  max-height: 88vh; overflow-y: auto;
  padding: 0;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
  position: relative;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

.modal-header {
  padding: 40px 48px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-title-group {}
.modal-subtitle {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 36px; text-transform: uppercase; color: var(--white);
}
.modal-close-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; flex-shrink: 0;
  font-size: 20px; transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.modal-close-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.modal-tabs-bar {
  display: flex; gap: 0; padding: 24px 48px 0;
  border-bottom: 1px solid var(--border); margin-top: 24px;
}
.modal-tab {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 24px 16px 0;
  cursor: pointer; position: relative;
  transition: color 0.3s;
}
.modal-tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.modal-tab.active { color: var(--accent); }
.modal-tab.active::after { width: calc(100% - 24px); }

.modal-body { padding: 40px 48px 48px; }
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

.modal-story {
  display: flex; flex-direction: column; gap: 20px;
}
.story-block {
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.story-block.show { opacity: 1; transform: translateX(0); }
.story-block strong {
  display: block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.story-block p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.modal-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out),
              border-color 0.3s, background 0.3s;
}
.metric-card.show { opacity: 1; transform: translateY(0); }
.metric-card:hover { border-color: var(--accent); background: var(--accent-dim); }
.metric-num {
  font-family: var(--font-display);
  font-size: 40px; color: var(--accent); line-height: 1;
}
.metric-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 8px;
}

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.text-accent { color: var(--accent); }
.divider {
  height: 1px; background: var(--border);
  margin: 0 40px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-image-frame { max-width: 480px; margin: 0 auto; }
  .about-accent-card { right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item { grid-template-columns: 48px 1fr auto; gap: 20px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  #navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .section, #about, #services, #tools, #work, #contact {
    padding: 80px 24px;
  }
  .stats-section { padding: 60px 24px; }
  footer { padding: 40px 24px 24px; }

  #hero { padding: var(--nav-h) 24px 0; }
  .hero-headline { font-size: clamp(48px, 12vw, 80px); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-actions { width: 100%; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-header, .work-header { flex-direction: column; align-items: flex-start; }
  .work-item { grid-template-columns: 40px 1fr; }
  .work-meta { display: none; }

  .contact-title { font-size: clamp(44px, 12vw, 72px); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .modal-box { border-radius: var(--radius); }
  .modal-header { padding: 28px 28px 0; }
  .modal-tabs-bar { padding: 20px 28px 0; }
  .modal-body { padding: 28px 28px 32px; }
  .modal-metrics { grid-template-columns: 1fr; }

  .about-accent-card { right: -8px; top: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(40px, 14vw, 64px); }
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
}
