/* ==========================================================================
   DESIGN TOKENS — edit these to re-theme the whole site
   ========================================================================== */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0b0f0d;
  --bg-elevated: #0d1310;
  --text-primary: #f5f5f5;
  --text-muted: #8a8f8c;
  --text-faint: #4a4e4b;
  --accent: #ff1a40;         /* Spider-Man Red — primary accent */
  --accent-2: #ff4d6d;       /* Red/Coral — secondary accent */
  --accent-soft: rgba(255, 26, 64, .14);
  --border-soft: rgba(255, 255, 255, .08);
  --border-softer: rgba(255, 255, 255, .05);
  --glass-bg: rgba(255, 255, 255, .03);
  --glass-bg-hover: rgba(255, 255, 255, .05);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
  height: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Keyboard accessibility outline */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   PERSISTENT OVERLAYS (Grain, Vignette, Canvas)
   ========================================================================== */
#web-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-primary);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, transparent 35%, rgba(5,5,5,.55) 100%);
}

/* ==========================================================================
   CUSTOM CURSOR (desktop only)
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent-soft);
  transition: opacity .2s var(--ease);
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(245, 245, 245, .35);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-ring::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity .2s var(--ease);
}

body.cursor-active .cursor-ring {
  width: 64px; height: 64px;
  border-color: var(--accent);
  background: rgba(255, 26, 64, .06);
}

body.cursor-active .cursor-ring::after {
  opacity: 1;
}

body:not(.has-fine-pointer) .cursor-dot,
body:not(.has-fine-pointer) .cursor-ring {
  display: none;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 64px);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(5, 5, 5, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* thin horizontal line under navbar */
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), height .5s var(--ease);
}

#navbar.scrolled {
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 26, 64, 0.16); /* subtle red border when scrolled */
  height: 72px;
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

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

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .3s var(--ease);
}

.nav-num {
  font-size: 8px;
  color: var(--accent);
  opacity: 0.75;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-hire-me {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 10px 22px;
  border-radius: 99px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  transition: all var(--transition-smooth);
  text-transform: uppercase;
}

.btn-hire-me:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 26, 64, 0.05);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  width: 32px; height: 32px;
  position: relative;
  z-index: 200;
}

.burger-line {
  position: absolute; left: 6px; right: 6px; height: 1px;
  background: var(--text-primary);
  transition: transform .35s var(--ease), opacity .35s var(--ease), top .35s var(--ease);
}

.burger-line:nth-child(1) { top: 11px; }
.burger-line:nth-child(2) { top: 16px; }
.burger-line:nth-child(3) { top: 21px; }

/* Mobile Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 5, 5, .98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform .5s var(--ease), opacity .5s var(--ease), visibility .5s var(--ease);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: color .3s var(--ease), transform .3s var(--ease);
}

.mobile-nav-links a .nav-num {
  font-size: 14px;
  font-family: var(--font-mono);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  color: var(--text-primary);
  transform: translateX(10px);
}

.mobile-hire-btn {
  margin-top: 24px;
  font-size: 14px;
  padding: 16px 40px;
}

/* Hamburger Active Styles */
.mobile-menu-toggle.active .burger-line:nth-child(1) {
  top: 16px;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
  top: 16px;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-hire-me:not(.mobile-hire-btn) {
    display: none;
  }
}

/* ==========================================================================
   SECTIONS & MAIN LAYOUT
   ========================================================================== */
main {
  flex: 1;
  position: relative;
  z-index: 2;
}

section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 140px clamp(20px, 5vw, 64px) 100px clamp(20px, 5vw, 64px);
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrows & Layout Headers */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: .6;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 56px;
}

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

/* Grid helper */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform .4s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 760px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   HOME PAGE (HERO + TEASERS)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: 80px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  gap: 30px;
}

.hero-left {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  order: 2;
}

.hero-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  order: 1;
}

@media (max-width: 1024px) {
  .hero-container {
    gap: 30px;
    padding-top: 20px;
  }
  .vfx-viewport-window {
    margin: 0 auto;
  }
}

/* ==========================================================================
   VFX VIEWPORT WINDOW & INTERNALS
   ========================================================================== */
.vfx-viewport-window {
  width: 600px;
  max-width: 100%;
  height: 400px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.vfx-viewport-window:hover {
  border-color: transparent;
  box-shadow: none;
}

/* Viewport Header */
.viewport-header {
  display: none !important;
}

.viewport-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.pulsing {
  animation: status-pulse 1.8s infinite ease-in-out;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

.viewport-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-sep {
  opacity: 0.3;
}

/* Canvas Container */
.viewport-canvas-container {
  width: 100%;
  flex: 1;
  position: relative;
  background: transparent;
  overflow: hidden;
  cursor: grab;
}

.viewport-canvas-container:active {
  cursor: grabbing;
}

.viewport-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

@media (max-width: 760px) {
  .vfx-viewport-window {
    width: 100%;
    height: 380px;
    max-height: 55vh;
  }
  .viewport-canvas-container {
    height: 100%;
    width: 100%;
  }
}

/* Floating HUD Overlay */
.viewport-hud {
  display: none !important;
}

.hud-top-left {
  top: 14px;
  left: 14px;
}

.hud-top-right {
  top: 14px;
  right: 14px;
}

.hud-bottom-left {
  bottom: 14px;
  left: 14px;
}

.hud-card {
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.hud-card.mini {
  padding: 8px 10px;
}

.vfx-viewport-window .hud-card {
  font-size: 8px;
  padding: 6px 10px;
}
.vfx-viewport-window .hud-top-left {
  top: 10px;
  left: 10px;
}
.vfx-viewport-window .hud-bottom-left {
  bottom: 10px;
  left: 10px;
}

.hud-header {
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  text-transform: uppercase;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 3px;
  line-height: 1.3;
}

.hud-row span:first-child {
  opacity: 0.6;
}

/* Camera Lens Selector Buttons */
.camera-modes {
  display: flex;
  gap: 4px;
}

.camera-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: 4px 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.camera-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.camera-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Settings Toolbar */
.viewport-toolbar {
  display: none !important;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-label {
  color: var(--text-faint);
  font-weight: 500;
}

.toolbar-buttons {
  display: flex;
  gap: 4px;
}

.toolbar-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.toolbar-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}

/* Color Theme dots */
.theme-dots {
  display: flex;
  gap: 8px;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
  box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
}

.theme-dot:hover {
  transform: scale(1.15);
}

.theme-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
}

/* VFX Timeline */
.viewport-timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 16px;
  background: transparent;
  gap: 12px;
  font-family: var(--font-mono);
}

.timeline-play-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.timeline-play-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}

.play-icon {
  font-size: 10px;
  color: var(--text-primary);
}

.timeline-slider-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.timeline-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 3px;
}

.timeline-handle {
  position: absolute;
  top: 50%;
  left: 40%;
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  cursor: grab;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease);
}

.timeline-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--accent);
}

.timeline-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--text-faint);
  user-select: none;
}

.timeline-counter {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-primary);
  min-width: 48px;
  text-align: right;
  letter-spacing: 0.04em;
}

.timeline-counter .f-lbl {
  font-size: 8px;
  color: var(--accent);
  margin-left: 2px;
}


.hero-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.2;
  letter-spacing: .08em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 700;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-role .sep {
  color: var(--accent);
  margin: 0 10px;
}

.hero-role .stack-item {
  color: var(--text-muted);
}

.hero-line {
  max-width: 600px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue-flow 2.2s ease-in-out infinite;
}

@keyframes cue-flow {
  0% { opacity: .2; }
  50% { opacity: 1; }
  100% { opacity: .2; }
}

/* Home Page Teasers */
.home-teasers {
  margin-top: 80px;
  border-top: 1px solid var(--border-softer);
  padding-top: 56px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }
}

.teaser-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 32px;
  transition: all .4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.teaser-card:hover {
  border-color: var(--accent);
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
}

.teaser-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.teaser-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 8px;
}

.teaser-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.teaser-arrow {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   ABOUT PAGE (TEXT + STATS + DIAGRAM)
   ========================================================================== */
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}

.about-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-softer);
}

.about-stats .stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  color: var(--text-primary);
}

.about-stats .stat-num span {
  color: var(--accent);
}

.about-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}

@media (max-width: 760px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Skills Network Hybrid Layout */
.skills-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 80px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.skills-head h3 {
  font-size: clamp(26px, 3.5vw, 38px);
}

.skills-head p {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 14px;
}

.skill-network-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 640px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}

.skill-node-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: .03em;
  color: var(--text-muted);
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  background: rgba(5, 5, 5, .65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  cursor: pointer;
  z-index: 10;
}

.skill-node-label:hover,
.skill-node-label.lit {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(255, 26, 64, .08);
  transform: translate(-50%, -50%) scale(1.08);
}

.skill-center-core {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px 2px var(--accent), 0 0 24px 4px rgba(255, 26, 64, 0.5);
  cursor: pointer;
  z-index: 15;
  outline: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.skill-center-core:hover,
.skill-center-core.active {
  transform: translate(-50%, -50%) scale(1.35);
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 25px 8px var(--accent), 0 0 50px 18px rgba(255, 26, 64, 0.85);
}

/* Skills Auxiliary Grid (Typing & Languages Known) */
.skills-aux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}

@media (max-width: 768px) {
  .skills-aux-grid {
    grid-template-columns: 1fr;
  }
}

.skills-aux-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px 32px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.skills-aux-card:hover {
  border-color: var(--accent);
  background: rgba(255, 26, 64, 0.03);
  transform: translateY(-3px);
}

.aux-card-header {
  margin-bottom: 16px;
}

.aux-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
}

.aux-title {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.aux-typing-display {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-softer);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.typing-prefix {
  color: var(--text-muted);
  font-size: 13.5px;
}

.typing-text {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.typing-cursor {
  color: var(--accent);
  font-weight: 700;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.aux-lang-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  color: var(--text-primary);
}

.lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.lang-level {
  color: var(--text-muted);
  font-size: 11px;
}

.aux-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PROJECTS PAGE (VERTICAL SPINE)
   ========================================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 40px;
}

.projects-spine {
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-soft) 8%, var(--border-soft) 92%, transparent);
}

.project-row {
  position: relative;
  padding-left: 52px;
  padding-block: 56px;
  border-bottom: 1px solid var(--border-softer);
}

.project-row:first-child {
  padding-top: 0;
}

.project-row:last-child {
  border-bottom: none;
}

.project-node {
  position: absolute;
  left: 0; top: 70px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-soft);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}

.project-node::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}

.project-row:hover .project-node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px 2px var(--accent-soft);
}

.project-row:hover .project-node::before {
  border-color: rgba(255, 26, 64, .35);
  transform: scale(1.4);
}

/* Spine Connector Particle */
.project-spine-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 980px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}

.project-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-elevated), #060907);
  border: 1px solid var(--border-soft);
}

.project-media .glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(48px, 15vw, 80px);
  color: rgba(255, 255, 255, .05);
  transition: transform .8s var(--ease), color .6s var(--ease);
}

.project-row:hover .project-media .glyph {
  transform: scale(1.08) rotate(-2deg);
  color: rgba(255, 26, 64, .09);
}

/* Web & Software Preview Mockup Styles */
.web-preview-media {
  display: flex;
  flex-direction: column;
  background: #080c0a;
  border: 1px solid var(--border-soft);
  position: relative;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.project-row:hover .web-preview-media {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(255, 26, 64, 0.15);
}

.browser-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(18, 24, 20, 0.85);
  border-bottom: 1px solid var(--border-softer);
  z-index: 5;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-url-pill {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-softer);
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.web-preview-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

.web-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  display: block;
}

.project-row:hover .web-preview-img {
  transform: scale(1.05);
}

.web-preview-body .glyph {
  position: absolute;
  font-size: clamp(22px, 3.8vw, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.18);
  transition: transform .6s var(--ease), color .4s var(--ease);
  pointer-events: none;
}

.project-row:hover .web-preview-body .glyph {
  color: var(--accent);
  transform: scale(1.08);
}

.project-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: .08em;
  margin-bottom: 14px;
  display: block;
}

.project-title {
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom: 14px;
  transition: color .3s var(--ease);
}

.project-row:hover .project-title {
  color: var(--accent);
}

.project-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 480px;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border-softer);
  border-radius: 100px;
}

.project-links {
  display: flex;
  gap: 14px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 11px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}

.project-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 26, 64, .06);
}

/* ==========================================================================
   EDUCATION & EXPERIENCE TIMELINES
   ========================================================================== */
.exp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

@media (max-width: 980px) {
  .exp-columns {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.exp-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 36px;
}

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border-softer);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(5,5,5,1), 0 0 12px 1px var(--accent-soft);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.timeline-title {
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 420px;
}

/* ==========================================================================
   CONTACT PAGE (CENTERED + FORM OR CTA)
   ========================================================================== */
.contact-section {
  min-height: calc(80vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-title {
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 24px;
}

.contact-title .accent-text {
  color: var(--accent);
}

.contact-sub {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 440px;
  margin-bottom: 40px;
}

/* Mailto CTA */
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  transition: border-color .35s var(--ease), color .35s var(--ease), gap .35s var(--ease), transform .35s var(--ease);
}

.contact-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 24px;
}

/* Email Form Option (merged for professional premium form feedback) */
.contact-form-wrap {
  width: 100%;
  max-width: 580px;
  margin: 56px auto 0 auto;
  text-align: left;
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  padding: 40px;
  border-radius: 14px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.form-input:focus, .form-textarea:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 26, 64, 0.1);
  outline: none;
}

.form-textarea {
  height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: none;
}

.form-status.success {
  display: block;
  color: var(--accent);
}

.form-status.error {
  display: block;
  color: #ff6b6b;
}

/* Social links */
.contact-socials {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-socials a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color .3s var(--ease);
}

.contact-socials a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}

.contact-socials a:hover {
  color: var(--text-primary);
}

.contact-socials a:hover::after {
  width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer,
#footer {
  position: relative;
  z-index: 2;
  padding: 32px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-softer);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
  background-color: var(--bg-primary);
  margin-top: auto;
}

.footer-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer .to-top,
#footer .to-top {
  color: var(--text-faint);
  transition: color .3s var(--ease);
}

footer .to-top:hover,
#footer .to-top:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
