
:root {
  /* Colors */
  --clr-bg: #080b11;
  --clr-bg-2: #0d1117;
  --clr-surface: rgba(255, 255, 255, 0.03);
  --clr-surface-2: rgba(255, 255, 255, 0.06);
  --clr-border: rgba(255, 255, 255, 0.07);
  --clr-border-2: rgba(255, 255, 255, 0.12);
  --clr-text: #e8eaf0;
  --clr-text-muted: rgba(232, 234, 240, 0.5);
  --clr-text-faint: rgba(232, 234, 240, 0.25);

  /* Neon Accents */
  --clr-accent: #00f0ff;
  --clr-accent-2: #7c3aed;
  --clr-accent-3: #f472b6;
  --clr-accent-glow: rgba(0, 240, 255, 0.15);
  --clr-accent-glow-2: rgba(124, 58, 237, 0.15);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%);
  --grad-subtle: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  --grad-card: linear-gradient(135deg, rgba(0, 240, 255, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing */
  --section-py: clamp(80px, 12vw, 140px);
  --container: 1200px;

  /* Radius */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-card: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--clr-border);
  --shadow-glow: 0 0 30px var(--clr-accent-glow);
  --shadow-btn: 0 4px 20px rgba(0, 240, 255, 0.25);
}

/* Light theme */
[data-theme="light"] {
  --clr-bg: #e8e8e8;
  --clr-bg-2: #f5f5f5;
  --clr-surface: rgba(0, 0, 0, 0.05);
  --clr-surface-2: rgba(0, 0, 0, 0.08);
  --clr-border: rgba(0, 0, 0, 0.1);
  --clr-border-2: rgba(0, 0, 0, 0.2);
  --clr-text: #1a1a1a;
  --clr-text-muted: rgba(26, 26, 26, 0.7);
  --clr-text-faint: rgba(26, 26, 26, 0.4);

  /* Neon Accents - darker for light theme */
  --clr-accent: #2563eb;
  --clr-accent-2: #7c3aed;
  --clr-accent-3: #dc2626;
  --clr-accent-glow: rgba(37, 99, 235, 0.2);
  --clr-accent-glow-2: rgba(124, 58, 237, 0.2);

  /* Gradients - adjusted for light theme */
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  --grad-card: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);

  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--clr-border);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  overflow-x: hidden;
  line-height: 1.7;
  cursor: none; /* Custom cursor active */
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}


img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: none; font-family: inherit; }
ul { list-style: none; }

::selection {
  background: var(--clr-accent);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-accent-2); border-radius: 4px; }

/* ── LOADING SCREEN ─────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: #05070d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 500;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--clr-border-2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: 2px;
  animation: fill-bar 1.8s var(--ease-out) forwards;
}

@keyframes fill-bar {
  to { width: 100%; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.1em;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--clr-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), opacity 0.3s;
  mix-blend-mode: difference;
}

#cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: left 0.15s var(--ease), top 0.15s var(--ease), width 0.4s var(--ease-spring), height 0.4s var(--ease-spring), opacity 0.3s;
}

#cursor.expanded, #cursor-follower.expanded {
  width: 60px;
  height: 60px;
  opacity: 0.6;
}

/* ── SCROLL PROGRESS ────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--grad-primary);
  z-index: 9000;
  transition: width 0.1s;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--clr-accent);
}

/* ── THEME TOGGLE ───────────────────────────────────────────── */
#theme-toggle {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border-2);
  color: var(--clr-text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
  cursor: none;
}

#theme-toggle:hover {
  background: var(--clr-accent);
  color: #000;
  border-color: transparent;
  transform: rotate(20deg);
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 900;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#navbar.scrolled {
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--clr-border);
}

[data-theme="light"] #navbar.scrolled {
  background: rgba(245, 245, 245, 0.9);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.logo-bracket {
  color: var(--clr-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover, .nav-link.active {
  color: var(--clr-text);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--grad-primary);
  color: #000;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.35);
}

.btn-ghost {
  border: 1px solid var(--clr-border-2);
  color: var(--clr-text);
  background: var(--clr-surface);
}

.btn-ghost:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
  transform: translateY(-2px);
}

.full-width { width: 100%; justify-content: center; }

/* ── SECTION SHARED ─────────────────────────────────────────── */
section {
  padding: var(--section-py) clamp(20px, 5vw, 60px);
  max-width: var(--container);
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: normal;
  color: var(--clr-accent-3);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 100px;
  overflow: hidden;
  max-width: 100%;
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
}

/* Canvas background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

/* Gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  bottom: 0;
  right: 20%;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
  top: 40%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: var(--clr-accent-glow);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-full);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title .line { display: block; }

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

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.typing-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.typing {
  color: var(--clr-accent);
  font-weight: 500;
}

.cursor-blink {
  color: var(--clr-accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

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

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 14px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--clr-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--clr-text-muted);
  transition: all 0.3s var(--ease-spring);
  background: var(--clr-surface);
}

.social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
  transform: translateY(-4px);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-img {
  width: clamp(200px, 30vw, 340px);
  height: clamp(200px, 30vw, 340px);
  object-fit: cover;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  position: relative;
  z-index: 2;
  filter: brightness(0.95) contrast(1.05);
}

.hero-img-ring {
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  animation: spin-ring 20s linear infinite;
  z-index: 1;
}

.ring-2 {
  inset: -32px;
  border-color: rgba(124, 58, 237, 0.15);
  animation-direction: reverse;
  animation-duration: 30s;
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-text);
  box-shadow: var(--shadow-card);
  z-index: 3;
  backdrop-filter: blur(10px);
  animation: badge-float 3s ease-in-out infinite;
}

.hero-badge i { color: var(--clr-accent); }

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--clr-text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  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; }
}

/* ── ABOUT ──────────────────────────────────────────────────── */
#about { background: var(--clr-bg); }

.section-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
}

.about-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-img {
  width: clamp(200px, 28vw, 360px);
  height: clamp(220px, 35vw, 440px);
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  filter: grayscale(20%);
  transition: filter 0.4s var(--ease);
}

.about-img:hover { filter: grayscale(0%); }

.about-img-bg {
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--grad-primary);
  border-radius: var(--radius);
  opacity: 0.12;
  z-index: 0;
}

.about-stat {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  z-index: 2;
  backdrop-filter: blur(10px);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

.about-text { flex: 1; }

.about-desc {
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.85;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border-2);
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  transition: all 0.3s var(--ease);
}

.tag:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
}

/* ── PROJECTS ───────────────────────────────────────────────── */
#projects {
  background: var(--clr-bg-2);
  max-width: 100%;
  padding: var(--section-py) clamp(20px, 5vw, 60px);
}

.projects-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: none;
}

.project-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.08), 0 20px 40px rgba(0,0,0,0.3);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
  filter: blur(40px);
}

.project-card:hover .card-glow { opacity: 0.06; }

.card-inner {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
}

.card-links {
  display: flex;
  gap: 8px;
}

.card-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  transition: all 0.3s var(--ease);
  background: var(--clr-surface);
}

.card-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.3s;
}

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

.card-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
}

/* Tilt overlay */
.card-tilt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* ── QUALIFICATION ──────────────────────────────────────────── */
#qualification { background: var(--clr-bg); }

.timeline {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 24px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 12px var(--clr-accent-glow);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.marker-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  margin-top: 4px;
  opacity: 0.2;
}

.timeline-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  flex: 1;
  transition: all 0.3s var(--ease);
  position: relative;
}

.timeline-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: var(--clr-surface-2);
  transform: translateX(6px);
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #000;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
}

.timeline-stats {
  display: flex;
  gap: 20px;
}

.t-stat { text-align: center; }

.t-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--clr-accent);
}

.t-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--clr-text-muted);
}

/* ── SKILLS ─────────────────────────────────────────────────── */
#skills {
  background: var(--clr-bg-2);
  max-width: 100%;
  padding: var(--section-py) clamp(20px, 5vw, 60px);
}

.skills-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-name i { color: var(--clr-accent); }

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-accent);
}

.skill-track {
  height: 6px;
  background: var(--clr-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--clr-accent-glow);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease-spring);
  cursor: default;
}

.skill-chip i { color: var(--clr-accent); font-size: 0.85em; }

.skill-chip:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
  transform: translateY(-3px);
}

/* ── SERVICES ───────────────────────────────────────────────── */
#services { background: var(--clr-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-surface);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  background: var(--clr-surface-2);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(0, 240, 255, 0.1);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: var(--clr-text-faint);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.service-card:hover .service-num {
  color: var(--clr-accent);
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--clr-accent);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

.service-line {
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  filter: blur(60px);
}

.service-card:hover .service-line { opacity: 0.04; }

/* ── CONTACT ────────────────────────────────────────────────── */
#contact {
  background: var(--clr-bg-2);
  max-width: 100%;
  padding: var(--section-py) clamp(20px, 5vw, 60px);
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  margin-top: 16px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  transition: all 0.3s var(--ease);
}

.contact-link i {
  width: 20px;
  color: var(--clr-accent);
}

.contact-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-glow);
  transform: translateX(6px);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 16px 16px 8px;
  color: var(--clr-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s var(--ease);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  background: var(--clr-surface-2);
  box-shadow: 0 0 0 3px var(--clr-accent-glow);
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 0.7rem;
  color: var(--clr-accent);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  padding-top: 22px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--clr-border);
  padding: 32px clamp(20px, 5vw, 60px);
  background: var(--clr-bg-2);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

.visitor-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.visitor-counter #visitor-count {
  color: var(--clr-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  transition: color 0.3s;
}

.footer-socials a:hover { color: var(--clr-accent); }

/* ── CHATBOT ────────────────────────────────────────────────── */
.chatbot-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #000;
  cursor: none;
  z-index: 800;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  box-shadow: var(--shadow-btn);
}

.chatbot-trigger:hover {
  transform: scale(1.1);
}

.chatbot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0.3;
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}

.chatbot-toast {
  position: fixed;
  bottom: 88px;
  right: 24px;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--clr-text);
  z-index: 800;
  display: none;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  animation: slide-up 0.3s var(--ease-spring);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 340px;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 800;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transform-origin: bottom right;
}

.chatbot-window.active {
  display: flex;
  animation: chat-in 0.35s var(--ease-spring);
}

@keyframes chat-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chatbot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--grad-primary);
  color: #000;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chatbot-head strong {
  font-size: 0.9rem;
  font-weight: 700;
  flex: 1;
}

.online-dot {
  width: 7px;
  height: 7px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff88;
}

.chatbot-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #000;
  cursor: none;
  transition: background 0.2s;
}

.chatbot-close:hover { background: rgba(0,0,0,0.3); }

.chat-messages {
  flex: 1;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  align-self: flex-end;
  background: var(--grad-primary);
  color: #000;
  font-weight: 500;
  animation: msg-in 0.25s var(--ease-out);
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  font-weight: 400;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-footer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--clr-border);
}

.chat-footer input {
  flex: 1;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--clr-text);
  font-family: var(--font-display);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.chat-footer input:focus { border-color: var(--clr-accent); }

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  color: #000;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring);
  flex-shrink: 0;
  cursor: none;
}

.chat-send:hover { transform: scale(1.08); }

/* ── ANIMATIONS / REVEAL ─────────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-hidden.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-hidden.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-hidden.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .skills-layout {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--clr-bg-2);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    backdrop-filter: blur(20px);
    z-index: 899;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger { display: flex; }

  /* Hero */
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 110px;
    padding-bottom: 60px;
    gap: 40px;
    justify-content: center;
    align-items: center;
  }

  .hero-cta, .hero-socials { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-eyebrow { margin: 0 auto 20px; }
  .scroll-hint { display: none; }
  .hero-badge { right: 0; bottom: 10px; }

  /* About */
  .section-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-stat { right: 0; }
  .about-tags { justify-content: center; }

  /* Timeline */
  .timeline-item { gap: 14px; }

  /* Custom cursor — hide on touch */
  #cursor, #cursor-follower { display: none; }
  body { cursor: auto; }
  button, a, .hamburger { cursor: pointer; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-badge { display: none; }
  .chatbot-window { width: calc(100vw - 32px); right: 16px; }
}

/* Mobile nav hidden */
.nav-links {
  display: flex;
}

