/* ============================================================
   GAUTAM LASGOTRA PORTFOLIO — PREMIUM CSS
   Apple × Tesla × Linear × Arc Browser Inspired
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=SF+Pro+Display:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
  --bg-primary: #050507;
  --bg-secondary: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.6);
  --text-tertiary: rgba(245, 245, 247, 0.35);
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --glow-purple: rgba(124, 58, 237, 0.3);
  --glow-blue: rgba(37, 99, 235, 0.3);
  --gradient-accent: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  --gradient-text: linear-gradient(135deg, #e2d9f3, #a5b4fc, #67e8f9);
  --gradient-card: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(37,99,235,0.05));
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 80px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --nav-height: 72px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Custom Cursor ────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(124, 58, 237, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  background: rgba(124, 58, 237, 0.05);
  backdrop-filter: blur(2px);
}

#cursor-ring.expanded {
  width: 64px;
  height: 64px;
  border-color: rgba(124, 58, 237, 0.9);
  background: rgba(124, 58, 237, 0.08);
}

#cursor-ring.clicked {
  transform: translate(-50%, -50%) scale(0.85);
}

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-purple), var(--accent-blue));
  border-radius: 2px;
}

/* ─── Noise Overlay ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* ─── Ambient Background Orbs ──────────────────────────────── */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-duration: 15s;
}

.ambient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  bottom: 20%;
  left: -150px;
  animation-duration: 18s;
  animation-delay: -6s;
}

.ambient-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.05); }
}

/* ─── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth), border-bottom var(--transition-smooth);
}

#navbar.scrolled {
  background: rgba(5, 5, 7, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo span {
  font-weight: 200;
  opacity: 0.7;
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: -0.01em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 60%; }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after { width: 60%; }

.nav-cta {
  padding: 9px 22px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a78bfa;
  transition: all var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-cta:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.6);
  color: #c4b5fd;
  transform: scale(1.03);
}

/* ─── Mobile Menu Button (Apple-style) ───────────────────── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  flex-shrink: 0;
  /* Reset browser button defaults */
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  outline: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-hamburger:active {
  transform: scale(0.93);
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
}

/* Three-line icon — drawn with the inner wrapper */
.nav-hamburger .ham-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-hamburger .ham-box span {
  display: block;
  height: 1.5px;
  background: rgba(245, 245, 247, 0.85);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.25s cubic-bezier(0.4, 0, 0.2, 1),
    width     0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Line widths — top short, middle full, bottom shorter = Apple feel */
.nav-hamburger .ham-box span:nth-child(1) { width: 18px; }
.nav-hamburger .ham-box span:nth-child(2) { width: 14px; }
.nav-hamburger .ham-box span:nth-child(3) { width: 10px; }

/* Open state → animated X */
.nav-hamburger.open {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
}
.nav-hamburger.open .ham-box span:nth-child(1) {
  width: 18px;
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open .ham-box span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open .ham-box span:nth-child(3) {
  width: 18px;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Full-Screen Mobile Overlay Menu ─────────────────────── */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(5, 5, 7, 0.96);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 40px 32px;

  /* Hidden state */
  pointer-events: none;
  opacity: 0;
  transform: translateY(-16px);
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Accent line at top */
.nav-mobile-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), rgba(37,99,235,0.4), transparent);
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  padding: 18px 24px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 247, 0.5);
  border-radius: var(--radius-md);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  /* Stagger animation handled in JS */
  opacity: 0;
  transform: translateY(20px);
}

.nav-mobile-menu.open .nav-mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile-link:hover,
.nav-mobile-link:active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(6px) !important;
}

/* Arrow icon per link */
.nav-mobile-link::after {
  content: '›';
  position: absolute;
  right: 24px;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #a78bfa;
}
.nav-mobile-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Resume link — styled differently */
.nav-mobile-link.nav-mobile-resume {
  margin-top: 24px;
  padding: 14px 28px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #a78bfa;
  font-size: 1rem;
  font-weight: 500;
  justify-content: center;
  max-width: 200px;
  margin-inline: auto;
  border-radius: 50px;
  letter-spacing: 0;
}
.nav-mobile-link.nav-mobile-resume:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
  transform: translateY(-2px) !important;
}
.nav-mobile-link.nav-mobile-resume::after { display: none; }

/* ─── Section Base ─────────────────────────────────────────── */
section {
  position: relative;
  z-index: 2;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── Section Labels ────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #7c3aed;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255,255,255,0.06);
  transition: opacity var(--transition-fast);
  border-radius: inherit;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  box-shadow: 0 4px 30px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(124,58,237,0.4);
  color: #a78bfa;
}
.btn-outline:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.7);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.btn:hover svg { transform: translateX(3px); }

/* ─── HERO SECTION ──────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(37,99,235,0.08) 0%, transparent 60%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 80%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
  animation: badgeFade 1s ease 0.3s both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: #7c3aed;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes badgeFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 12px;
  animation: titleReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title .name-gradient {
  background: linear-gradient(135deg, #e2d9f3 0%, #a5b4fc 40%, #67e8f9 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 24px auto 0;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: -0.01em;
  animation: titleReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
  animation: titleReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  animation: fadeInUp 1s ease 1.5s both;
  z-index: 2;
}

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

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-mouse::before {
  content: '';
  width: 3px;
  height: 8px;
  background: rgba(124,58,237,0.7);
  border-radius: 2px;
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

/* Floating particles */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.5);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
#about {
  padding: 140px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  width: 300px;
  height: 400px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-accent);
  border-radius: 30px;
  z-index: -1;
  opacity: 0.5;
}

.about-image-frame::after {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(124,58,237,0.18), transparent 70%);
  border-radius: 50%;
  z-index: -2;
}

.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 26px;
  filter: contrast(1.05) brightness(1.02);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,58,237,0.2);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}

.about-text .section-subtitle {
  max-width: 100%;
  margin-bottom: 28px;
}

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

.about-tag {
  padding: 6px 14px;
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  color: #a78bfa;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ─── SKILLS SECTION ────────────────────────────────────────── */
#skills {
  padding: 140px 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(37,99,235,0.04) 0%, transparent 70%);
}

.skills-header {
  text-align: center;
  margin-bottom: 70px;
}

.skills-header .section-eyebrow { margin-inline: auto; }
.skills-header .section-subtitle { margin: 0 auto; text-align: center; }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.skill-chip:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 20px rgba(124,58,237,0.1);
}

.skill-chip:hover::before { opacity: 1; }

.skill-icon {
  font-size: 1.75rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-spring);
}
.skill-chip:hover .skill-icon { transform: scale(1.2); }

.skill-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ─── PROJECTS SECTION ──────────────────────────────────────── */
#projects {
  padding: 140px 0;
}

.projects-header {
  margin-bottom: 60px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
  cursor: default;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: inherit;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.08);
  transform: translateY(-8px);
}

.project-card:hover::before { opacity: 1; }
.project-card:hover::after { opacity: 1; }

.project-number {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 52px;
  height: 52px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: all var(--transition-smooth);
}

.project-card:hover .project-icon {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  transform: scale(1.1);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.tech-tag {
  padding: 5px 12px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #93c5fd;
  letter-spacing: 0.02em;
}

.project-links {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.project-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.project-link svg {
  width: 14px; height: 14px;
  transition: transform var(--transition-fast);
}
.project-link:hover svg { transform: translateX(2px); }

/* ─── EXPERIENCE SECTION ────────────────────────────────────── */
#experience {
  padding: 140px 0;
  background: radial-gradient(ellipse 50% 50% at 0% 50%, rgba(124,58,237,0.04) 0%, transparent 70%);
}

.experience-header {
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.4), rgba(37,99,235,0.4), transparent);
}

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

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

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 0 16px rgba(124,58,237,0.5);
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50%;
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 0; }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: all var(--transition-smooth);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,58,237,0.2);
  transform: translateX(6px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-role {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.timeline-company {
  font-size: 0.9rem;
  color: #a78bfa;
  font-weight: 500;
}

.timeline-period {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.timeline-badge.experience-badge {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  color: #93c5fd;
}
.timeline-badge.education-badge {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  color: #67e8f9;
}

/* ─── CONTACT SECTION ───────────────────────────────────────── */
#contact {
  padding: 140px 0;
}

.contact-wrapper {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.contact-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 60px 50px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), rgba(37,99,235,0.5), transparent);
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.contact-link:hover {
  color: var(--text-primary);
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.contact-link svg {
  width: 16px; height: 16px;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 500;
  color: #a78bfa;
  margin-top: 12px;
  display: inline-block;
  transition: color var(--transition-fast);
}
.contact-email:hover { color: #c4b5fd; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  padding: 36px 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer-left span {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-right {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-heart {
  color: #7c3aed;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

/* ─── MOBILE NAV INDICATOR ──────────────────────────────────── */
.nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #2563eb, #06b6d4);
  z-index: 10001;
  transition: width 0.1s linear;
  width: 0%;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }

  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .section-container { padding: 0 20px; }

  #hero { padding: 120px 20px 80px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Portrait-friendly frame on mobile */
  .about-image-frame {
    width: 220px;
    height: 290px;
  }

  .projects-grid { grid-template-columns: 1fr; }

  .contact-card { padding: 36px 24px; }
  footer { padding: 24px 20px; flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-actions { gap: 12px; }
  .btn { padding: 12px 22px; font-size: 0.875rem; }

  .nav-mobile-link { font-size: 1.2rem; padding: 16px 20px; }
}
