@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #040308;
  --bg-elevated: #0d0a1a;
  --text: #f3f2fa;
  --text-muted: rgba(243, 242, 250, 0.5);
  
  /* Synthwave / Retro-Futuristic neon colors */
  --accent-pink: #ff007f;
  --accent-cyan: #00f3ff;
  --accent-purple: #b026ff;
  --accent-amber: #ffaa00;
  
  --border: rgba(0, 243, 255, 0.15);
  --card-bg: rgba(13, 10, 26, 0.65);
  --card-hover: rgba(13, 10, 26, 0.9);

  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100%;
}

body {
  height: 100%;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow: hidden;
}

::selection {
  background: rgba(255, 0, 127, 0.25);
  color: #ffffff;
}

/* ============================================
   CRT SCREEN EMULATION OVERLAY
   ============================================ */
.crt-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 100%),
              linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 100%, 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.16;
}

/* ============================================
   CANVAS BACKGROUND (Retro 3D Grid)
   ============================================ */
#bg-canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#bg-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Radial Vignette & Neon Horizon Grid Shadow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 30%, rgba(4, 3, 8, 0.8) 100%),
              linear-gradient(to bottom, transparent 60%, rgba(176, 38, 255, 0.08) 100%);
  pointer-events: none;
}

/* ============================================
   PRELOADER - SYNTHWAVE GLOW
   ============================================ */
#loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.8s var(--ease-out-expo);
}

#loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, var(--bg) 100%);
  z-index: 1;
}

.loader-heartbeat-container {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-welcome-container {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.welcome-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.8), 0 0 20px rgba(255, 0, 127, 0.4);
  opacity: 0;
  transform: scale(0.95) translateY(5px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.welcome-text.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@keyframes heartbeat {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2.2); }
}

/* ============================================
   SWEEP WIPE VIEW TRANSITION
   ============================================ */
#wave-transition-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transform: translateX(100%);
}

#wave-transition-overlay.animate-sweep {
  animation: sweep 0.7s var(--ease-out-expo) forwards;
}

@keyframes sweep {
  0% { transform: translateX(100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

.wave-svg {
  width: 100%;
  height: 30vh;
}

/* ============================================
   HEADER / NAVIGATION - Neon Floating Pill
   ============================================ */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  background: rgba(13, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.25), inset 0 0 10px rgba(0, 243, 255, 0.1);
  border-radius: 9999px;
  padding: 0.25rem;
  position: relative;
}

nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.25s ease;
  border-radius: 9999px;
  z-index: 2;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

nav a.active {
  color: #ffffff !important;
  font-weight: 600;
}

.nav-pill-bg {
  position: absolute;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  border-radius: 9999px;
  height: calc(100% - 0.5rem);
  top: 0.25rem;
  left: 0.25rem;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* ============================================
   SPEED DRAWER (Left Side Controls)
   ============================================ */
.speed-trigger-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 4.5vw;
  min-width: 35px;
  max-width: 50px;
  z-index: 997;
  display: flex;
  align-items: center;
  justify-content: start;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out-expo);
}

.speed-trigger-svg {
  height: 200px;
  width: 100%;
}

.speed-trigger-svg path {
  fill: rgba(0, 243, 255, 0.4);
  transition: fill 0.3s ease;
}

.speed-trigger-container:hover .speed-trigger-svg path {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.speed-trigger-container.hidden {
  transform: translateX(-100%);
}

.speed-widget {
  position: fixed;
  left: 0;
  top: 25%;
  z-index: 998;
  display: flex;
  align-items: center;
  pointer-events: none;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s ease;
}

.speed-widget.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.speed-widget-svg {
  position: relative;
  width: 100px;
  height: 350px;
}

.speed-notch-path {
  stroke: var(--accent-cyan);
  stroke-width: 1.5px;
}

.speed-content-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 50px; height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.speed-content-overlay .label,
.speed-content-overlay .bottom-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.speed-content-overlay .value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-pink);
  text-shadow: 0 0 8px var(--accent-pink);
  margin: 0.5rem 0;
}

.speed-slider-container {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-content-overlay input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 243, 255, 0.2);
  height: 2px;
  width: 130px;
  outline: none;
  transform: rotate(-90deg);
  cursor: grab;
}

.speed-content-overlay input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-pink);
  border: 1px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-pink);
}

/* ============================================
   ROTATING USER PHOTO (Tactile Cyber-Lock)
   ============================================ */
.hero-photo-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-ring {
  position: absolute;
  inset: 0;
  animation: spinSlow 30s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-photo-img {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.65;
  filter: grayscale(80%) contrast(1.1) sepia(10%) hue-rotate(180deg);
  transition: opacity 0.5s var(--ease-out-expo);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.4), inset 0 0 15px rgba(0, 243, 255, 0.2);
}

.hero-photo-orbit-ring {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px solid rgba(0, 243, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

.hero-photo-orbit-ring-2 {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 0, 127, 0.4);
}

.hero-photo-orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent-pink);
  border-radius: 50%;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent-pink);
}

.hero-photo-orbit-dot-2 {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent-cyan);
}

@media (min-width: 768px) {
  .hero-photo-container { width: 440px; height: 440px; }
  .hero-photo-img { width: 240px; height: 240px; }
}

@media (min-width: 1200px) {
  .hero-photo-container { width: 520px; height: 520px; }
  .hero-photo-img { width: 290px; height: 290px; }
}

/* ============================================
   SPA VIEW ROUTING SYSTEM
   ============================================ */
.spa-view {
  display: none;
  opacity: 0;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
}

.spa-view.active {
  display: block;
  opacity: 1;
}

/* ============================================
   HOME VIEW — SCROLLYTELLING
   ============================================ */
#view-home {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

#view-home::-webkit-scrollbar { display: none; }

.home-slide {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

/* Corner Placements */
.slide-top-left {
  position: absolute;
  top: 16vh; left: 6vw;
  max-width: 85vw;
  text-align: left;
  z-index: 10;
}

.slide-top-right {
  position: absolute;
  top: 16vh; right: 6vw;
  max-width: 85vw;
  text-align: right;
  z-index: 10;
}

.slide-bottom-left {
  position: absolute;
  bottom: 14vh; left: 6vw;
  max-width: 85vw;
  text-align: left;
  z-index: 10;
}

.slide-bottom-right {
  position: absolute;
  bottom: 14vh; right: 6vw;
  max-width: 85vw;
  text-align: right;
  z-index: 10;
}

@media (min-width: 768px) {
  .slide-top-left { max-width: 48vw; left: 8vw; }
  .slide-top-right { max-width: 48vw; right: 8vw; }
  .slide-bottom-left { max-width: 52vw; left: 8vw; }
  .slide-bottom-right { max-width: 52vw; right: 8vw; }
}

/* Typography Elements */
.slide-title-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
}

.slide-subtitle-tech {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 3px;
  margin-top: 1rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.4);
}

.slide-statement {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(243, 242, 250, 0.75);
}

.slide-comment {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--accent-pink);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 5px rgba(255, 0, 127, 0.3);
}

.slide-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
}

.slide-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

.slide-link:hover {
  border-bottom-color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan);
}

/* Desktop Typography Scale */
@media (min-width: 768px) {
  .slide-title-name { font-size: 6rem; letter-spacing: -3px; }
  .slide-subtitle-tech { font-size: 0.85rem; }
  .slide-statement { font-size: 1.15rem; }
  .slide-quote { font-size: 3.5rem; letter-spacing: -2px; }
}

@media (min-width: 1200px) {
  .slide-title-name { font-size: 8.5rem; letter-spacing: -5px; }
  .slide-statement { font-size: 1.25rem; }
  .slide-quote { font-size: 5.5vw; letter-spacing: -3px; }
}

/* Fade Reveal animation */
.fade-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.fade-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLL PROGRESS & HINTS
   ============================================ */
.scroll-progress {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.scroll-progress.visible { opacity: 1; }

.scroll-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid rgba(0, 243, 255, 0.3);
  transition: all 0.4s var(--ease-out-expo);
}

.scroll-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transform: scale(1.4);
}

.scroll-hint {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s 2.5s forwards;
}

.scroll-hint-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

.scroll-hint-arrow {
  width: 14px; height: 14px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  animation: bounceArrow 2s infinite;
  filter: drop-shadow(0 0 3px var(--accent-cyan));
}

@keyframes bounceArrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   SCROLLABLE VIEWS & STRUCTURAL LAYOUT
   ============================================ */
.container-scrollable {
  max-width: 1050px;
  margin: 0 auto;
  padding: 7rem 2rem 6rem 2rem;
  height: 100%;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .container-scrollable {
    padding: 7rem 2rem 6rem 6rem;
  }
}

.spa-view { scrollbar-width: none; }
.spa-view::-webkit-scrollbar { display: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -1px;
  margin-bottom: 2.5rem;
  position: relative;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent-pink);
  box-shadow: 0 0 8px var(--accent-pink);
  margin-top: 0.5rem;
}

/* ============================================
   PROJECT CARDS — Retro-Hardware Modules
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.project-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.project-card:hover {
  background: var(--card-hover);
  border-color: var(--accent-pink);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.25), inset 0 0 15px rgba(255, 0, 127, 0.1);
}

/* Cybernetic corner ticks */
.project-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
  border-top-left-radius: 12px;
  pointer-events: none;
}

.project-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: rgba(0, 243, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 5px var(--accent-pink);
}

.project-link svg {
  width: 12px; height: 12px;
  fill: currentColor;
}

/* ============================================
   REPOS GRID
   ============================================ */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 5rem;
}

.repo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.repo-card:hover {
  background: var(--card-hover);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.repo-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.repo-lang-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent-cyan) !important;
  box-shadow: 0 0 5px var(--accent-cyan);
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  margin-top: auto;
}

.repo-link:hover {
  color: #ffffff;
}

.repo-link svg {
  width: 10px; height: 10px;
  fill: currentColor;
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink);
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.timeline-company-date {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.timeline-company {
  font-weight: 600;
  color: var(--accent-cyan);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 1rem;
}

.timeline-content li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  list-style: none;
}

.timeline-content li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.timeline-content li strong {
  color: #ffffff;
  font-weight: 500;
}

/* Education */
.education-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.education-details h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.education-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   ABOUT / STATS / SKILLS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

.about-text p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-text p strong {
  color: #ffffff;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.skills-matrix {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skills-category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.skills-category-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(0, 243, 255, 0.02);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.skill-tag:hover {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.contact-wrapper::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 15px; height: 15px;
  border-top: 2px solid var(--accent-pink);
  border-right: 2px solid var(--accent-pink);
  pointer-events: none;
}

.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.contact-email:hover {
  border-bottom-color: var(--accent-pink);
  text-shadow: 0 0 15px var(--accent-pink);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.social-icon svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* ============================================
   CLI TERMINAL MODULE
   ============================================ */
.terminal-card {
  background: rgba(13, 10, 26, 0.92);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  height: 450px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.25), inset 0 0 10px rgba(0, 243, 255, 0.1);
}

.terminal-bar {
  background: rgba(0, 243, 255, 0.05);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-bar-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.4);
}

.terminal-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(0, 243, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.terminal-actions::-webkit-scrollbar { display: none; }

.term-btn {
  background: rgba(0, 243, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.term-btn:hover {
  background: var(--accent-cyan);
  color: #000000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.terminal-screen {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(0, 243, 255, 0.85);
  text-shadow: 0 0 3px rgba(0, 243, 255, 0.3);
}

.term-output {
  margin-bottom: 0.65rem;
  white-space: pre-wrap;
}

.term-output.command-echo {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 5px var(--accent-cyan);
}

.term-output.success {
  color: #00ffaa;
  text-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
}

.term-output.error {
  color: var(--accent-pink);
  text-shadow: 0 0 5px var(--accent-pink);
}

.term-output.info {
  color: var(--text-muted);
}

.term-prompt {
  color: var(--accent-pink);
  text-shadow: 0 0 4px var(--accent-pink);
}

.term-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-grow: 1;
  caret-color: var(--accent-cyan);
}

/* ============================================
   LOG STREAM CARD
   ============================================ */
.log-stream-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  height: 250px;
  display: flex;
  flex-direction: column;
}

.log-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.log-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
}

.dots { display: flex; gap: 5px; }

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

.dot.red { background: var(--accent-pink); box-shadow: 0 0 5px var(--accent-pink); }
.dot.yellow { background: var(--accent-amber); box-shadow: 0 0 5px var(--accent-amber); }
.dot.green { background: #00ffaa; box-shadow: 0 0 5px #00ffaa; }

.log-body {
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
}

.log-body::-webkit-scrollbar { display: none; }

.log-line.success { color: #00ffaa; }
.log-line.info { color: var(--text-muted); }
.log-line.warn { color: var(--accent-amber); }
.log-line.system { color: var(--accent-cyan); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-location {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-location::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: pulse-cyan 2s infinite;
}

@keyframes pulse-cyan {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   CURSOR GLOW — Neon Trail
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, rgba(176, 38, 255, 0.02) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ============================================
   RESPONSIVE SCALING ADAPTATIONS
   ============================================ */
@media (max-width: 1024px) {
  .speed-trigger-container { display: none; }
  .speed-widget {
    left: auto; right: 1.5rem;
    top: auto; bottom: 1.5rem;
    transform: none; opacity: 1;
    pointer-events: auto;
  }
  .speed-widget-svg { display: none; }
  .speed-content-overlay {
    position: relative;
    background: rgba(13, 10, 26, 0.95);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    border-radius: 16px;
    height: auto;
    padding: 0.5rem 0.8rem;
    flex-direction: row;
    gap: 0.6rem;
    width: auto;
  }
  .speed-content-overlay .label,
  .speed-content-overlay .bottom-label {
    writing-mode: horizontal-tb;
    margin: 0;
  }
  .speed-slider-container { height: auto; width: 80px; }
  .speed-content-overlay input[type="range"] {
    transform: none; width: 80px;
  }
  .speed-content-overlay .value { margin: 0; }
  .stats-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 768px) {
  header {
    top: 1rem;
    width: 95%;
  }
  nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.62rem;
  }
  .slide-top-left, .slide-top-right { top: 14vh; }
  .slide-bottom-left, .slide-bottom-right { bottom: 12vh; }
  .slide-quote { font-size: 1.8rem; }
  .slide-statement { font-size: 0.9rem; }
  .timeline-company-date { flex-direction: column; gap: 0.2rem; }
  .contact-email { font-size: 1.4rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-number { font-size: 1.8rem; }
  .section-title { font-size: 1.85rem; }
}
