/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO1.CSS — Complete Styles
   Aishraj Yadav · Developer Portfolio
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  --primary:         #6366f1;
  --primary-light:   #818cf8;
  --primary-dark:    #4f46e5;
  --primary-glow:    rgba(99, 102, 241, 0.28);
  --primary-subtle:  rgba(99, 102, 241, 0.08);

  --secondary:       #8b5cf6;
  --secondary-light: #a78bfa;
  --secondary-glow:  rgba(139, 92, 246, 0.22);

  --accent:          #06b6d4;
  --accent-light:    #22d3ee;
  --accent-glow:     rgba(6, 182, 212, 0.22);

  --green:           #10b981;
  --orange:          #f59e0b;

  --gradient-brand:  linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
  --gradient-text:   linear-gradient(135deg, #818cf8 0%, #a78bfa 40%, #22d3ee 100%);

  --bg-void:         #04060d;
  --bg-base:         #070b14;
  --bg-surface:      #0c1120;
  --bg-card:         rgba(13, 18, 35, 0.80);
  --bg-card-hover:   rgba(17, 24, 48, 0.95);
  --bg-glass:        rgba(99, 102, 241, 0.05);
  --bg-glass-hover:  rgba(99, 102, 241, 0.10);

  --text-primary:    #f1f5f9;
  --text-secondary:  #94a3b8;
  --text-muted:      #475569;

  --border-subtle:   rgba(99, 102, 241, 0.10);
  --border-default:  rgba(99, 102, 241, 0.20);
  --border-strong:   rgba(99, 102, 241, 0.40);

  --font-display:    'Space Grotesk', system-ui, sans-serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  --ease-base:   0.25s ease;
  --ease-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height:      68px;
  --container-max:   1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--gradient-brand); border-radius: 99px; }

/* ─────────────────────────────────────────────────────────────
   3. BACKGROUND SYSTEM
───────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -10;
  background-color: var(--bg-void);
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -9;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbFadeIn 2s ease forwards;
}

.aurora-orb-1 {
  width: min(70vw, 860px);
  height: min(70vw, 860px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
  top: -20%;
  left: -15%;
  animation: orbFadeIn 2s ease forwards, orbDrift1 18s ease-in-out infinite 2s;
}

.aurora-orb-2 {
  width: min(55vw, 680px);
  height: min(55vw, 680px);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation: orbFadeIn 2.5s ease 0.3s forwards, orbDrift2 22s ease-in-out infinite 2.5s;
}

.aurora-orb-3 {
  width: min(40vw, 520px);
  height: min(40vw, 520px);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.10) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation: orbFadeIn 3s ease 0.6s forwards, orbDrift3 26s ease-in-out infinite 3s;
}

.aurora-orb-4 {
  width: min(35vw, 420px);
  height: min(35vw, 420px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  bottom: 20%;
  left: 10%;
  animation: orbFadeIn 3.5s ease 0.9s forwards, orbDrift4 30s ease-in-out infinite 3.5s;
}

@keyframes orbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, 40px) scale(1.04); }
  66%  { transform: translate(-30px, 70px) scale(0.96); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-50px, -60px) scale(1.06); }
  66%  { transform: translate(40px, -30px) scale(0.94); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-70px, 50px) scale(1.05); }
}

@keyframes orbDrift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, -40px) scale(1.04); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -8;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  animation: gridPulse 9s ease-in-out infinite;
}

.bg-lines {
  position: fixed;
  inset: 0;
  z-index: -7;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  animation: gridPulse 13s ease-in-out infinite reverse;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.40; }
  50%  { opacity: 0.65; }
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -6;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 45%, rgba(4, 6, 13, 0.72) 100%);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.055) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -3;
}

/* ─────────────────────────────────────────────────────────────
   4. SCROLL PROGRESS BAR
───────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ─────────────────────────────────────────────────────────────
   5. TYPOGRAPHY UTILITIES
───────────────────────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
}

/* ─────────────────────────────────────────────────────────────
   6. LAYOUT
───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.18;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.eyebrow-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.65;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────
   7. SCROLL REVEAL
───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-reveal), transform var(--ease-reveal);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity var(--ease-reveal), transform var(--ease-reveal);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity var(--ease-reveal), transform var(--ease-reveal);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="0"].revealed { transition-delay: 0.00s; }
[data-delay="1"].revealed { transition-delay: 0.10s; }
[data-delay="2"].revealed { transition-delay: 0.20s; }
[data-delay="3"].revealed { transition-delay: 0.30s; }

/* ─────────────────────────────────────────────────────────────
   8. COMPONENT — Card
───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-glass) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--ease-base);
  border-radius: inherit;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45), 0 0 30px var(--primary-glow);
}

.card:hover::before { opacity: 1; }

.card-accent-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--ease-smooth);
}

.card:hover.card-accent-top::after { opacity: 1; }

.card-active {
  border-color: rgba(99, 102, 241, 0.30);
  box-shadow: 0 0 30px var(--primary-glow);
}

/* ─────────────────────────────────────────────────────────────
   9. COMPONENT — Buttons
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--ease-smooth);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--ease-base);
  border-radius: inherit;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(-1px); }

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-default);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--bg-glass);
  color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.10);
  color: var(--text-primary);
  border-color: var(--border-default);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   10. COMPONENT — Badges / Tags
───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.28rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary-light);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all var(--ease-base);
}

.badge:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.badge-accent {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-light);
  border-color: rgba(6, 182, 212, 0.15);
}

.badge-learning {
  background: rgba(139, 92, 246, 0.10);
  color: var(--secondary-light);
  border-color: rgba(139, 92, 246, 0.20);
}

.badge-open {
  background: rgba(16, 185, 129, 0.10);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.20);
}

/* ─────────────────────────────────────────────────────────────
   11. NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 2px;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 18px var(--primary-glow);
  transition: all var(--ease-smooth);
  flex-shrink: 0;
}

.nav-brand:hover .nav-brand-icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 0 28px var(--primary-glow);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  opacity: 0.75;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all var(--ease-base);
  white-space: nowrap;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 55%;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px;
  transition: all var(--ease-base);
}

.hamburger:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-default);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 99px;
  transition: all var(--ease-smooth);
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--primary-light);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--primary-light);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 6, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-smooth);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-20px);
  transition: transform var(--ease-spring);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-overlay.open .mobile-menu {
  transform: translateY(0);
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all var(--ease-base);
  border: 1px solid transparent;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border-subtle);
  padding-left: 24px;
}

.mobile-cta {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   12. HERO SECTION
───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  position: relative;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Status pill */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.20);
  border-radius: 99px;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #6ee7b7;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* Greeting + Name */
.hero-heading {
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}

.hero-greeting {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: var(--primary-light);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

/* Typing role */
.hero-typing-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.typing-prefix,
.typing-suffix {
  color: var(--text-muted);
  opacity: 0.5;
  font-weight: 300;
}

.typing-word {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--primary-light);
  border-radius: 2px;
  animation: cursorBlink 1s step-end infinite;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 1px;
}

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

/* Subtitle */
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.58s forwards;
}

/* Introduction */
.hero-intro {
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  line-height: 1.82;
  color: var(--text-secondary);
  max-width: 540px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.66s forwards;
}

.hero-intro strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* CTA Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.78s forwards;
}

.btn-hero {
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
}

.btn-hero svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Socials — icon-only */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.88s forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--ease-base);
}

.social-link:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.social-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Hero entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   13. HERO VISUAL — Profile Card + Orbiting Icons
───────────────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeRight 0.8s ease 0.45s forwards;
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Orbit container */
.hero-orbit-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Profile Card ── */
.hero-profile-card {
  position: relative;
  z-index: 5;
  width: 200px;
}

.profile-card-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.profile-card-inner {
  background: rgba(10, 14, 26, 0.88);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px var(--primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

/* Avatar */
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px var(--primary-glow), 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  flex-shrink: 0;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
    conic-gradient(from 0deg, var(--primary), var(--accent), var(--secondary), var(--primary)) border-box;
  animation: ringRotate 10s linear infinite;
}

.avatar-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

.profile-info { line-height: 1.3; }

.profile-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--primary-light);
  letter-spacing: 0.08em;
}

/* Meta row */
.profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  justify-content: center;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.profile-meta-val {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-meta-lbl {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-meta-sep {
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
}

/* Status bar */
.profile-status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.profile-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.profile-status-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #6ee7b7;
  letter-spacing: 0.05em;
}

/* ── Orbit Rings ── */
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.orbit-ring-1 {
  animation: orbitSpin1 28s linear infinite;
}

.orbit-ring-2 {
  animation: orbitSpin2 36s linear infinite reverse;
}

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

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

/* ── Orbit Icons ── */
.orbit-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 8px 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px var(--primary-glow);
  white-space: nowrap;
  transition: all var(--ease-smooth);
  z-index: 4;
}

.orbit-icon:hover {
  transform: scale(1.18) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 24px var(--primary-glow);
  border-color: var(--primary);
  z-index: 10;
}

.orbit-icon svg {
  width: 26px;
  height: 26px;
}

.orbit-icon .orbit-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.orbit-icon > span:last-child {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Counter-rotate icon content so text stays upright */
.orbit-ring-1 .orbit-icon { animation: counterSpin1 28s linear infinite; }
.orbit-ring-2 .orbit-icon { animation: counterSpin2 36s linear infinite reverse; }

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

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

/* Position icons around the ring */
.orbit-icon-html  { top: -5%;   left: 50%;  transform: translateX(-50%); }
.orbit-icon-css   { bottom: 8%; left: -8%;  }
.orbit-icon-js    { bottom: 8%; right: -8%; }

.orbit-icon-react { top: 6%;    right: -5%; }
.orbit-icon-node  { bottom: -3%; left: 50%; transform: translateX(-50%); }
.orbit-icon-mongo { top: 6%;    left: -5%;  }
.orbit-icon-java  { bottom: 28%; right: -12%; }

/* ── Decorative Rings ── */
.hero-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
}

.hero-deco-ring-1 {
  inset: 15px;
  border: 1px dashed rgba(99, 102, 241, 0.10);
  animation: ringRotate 40s linear infinite;
}

.hero-deco-ring-2 {
  inset: -10px;
  background:
    linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
    conic-gradient(from 0deg, var(--primary) 0%, transparent 30%, var(--secondary) 50%, transparent 70%, var(--accent) 100%) border-box;
  animation: ringRotate 20s linear infinite reverse;
  opacity: 0.35;
}

.hero-deco-ring-3 {
  inset: -40px;
  border: 1px solid rgba(99, 102, 241, 0.05);
  animation: ringRotate 50s linear infinite;
}

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

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.4s forwards;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--border-default);
  border-radius: 99px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 99px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.scroll-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   14. ABOUT SECTION
───────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-bio p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.82;
}

.about-bio strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about-close {
  font-size: 1.05rem !important;
  font-style: italic;
  color: var(--text-secondary) !important;
}

/* Stat cards */
.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--ease-smooth);
}

.stat-card:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.stat-card-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.stat-card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--primary-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stat-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   15. SKILLS SECTION
───────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-group {
  padding: 28px;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.skill-group-icon { font-size: 1.2rem; }

.skill-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.learning-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(139, 92, 246, 0.12);
  color: var(--secondary-light);
  border: 1px solid rgba(139, 92, 246, 0.20);
  border-radius: 99px;
  padding: 2px 8px;
  font-weight: 400;
}

.skill-bars { display: flex; flex-direction: column; gap: 14px; }

.skill-bar-item { display: flex; flex-direction: column; gap: 6px; }

.skill-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.skill-bar-meta span:last-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary-light);
}

.skill-bar-track {
  height: 5px;
  background: rgba(99, 102, 241, 0.10);
  border-radius: 99px;
  overflow: hidden;
}

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

.fill-secondary {
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  box-shadow: 0 0 8px var(--secondary-glow);
}

.fill-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 8px var(--accent-glow);
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--primary-subtle);
  color: var(--primary-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--ease-base);
  white-space: nowrap;
}

.tool-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.tool-chip-learning {
  background: rgba(139, 92, 246, 0.08);
  color: var(--secondary-light);
  border-color: rgba(139, 92, 246, 0.15);
}

/* ─────────────────────────────────────────────────────────────
   16. JOURNEY / TIMELINE
───────────────────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-default);
  border: 2px solid var(--bg-surface);
  flex-shrink: 0;
  transition: all var(--ease-smooth);
}

.timeline-dot-active {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-dot-now {
  background: var(--gradient-brand);
  box-shadow: 0 0 16px var(--primary-glow);
  animation: dotPulse 2.5s ease-in-out infinite;
}

.timeline-dot-future {
  background: var(--text-muted);
  opacity: 0.4;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 12px var(--primary-glow); }
  50% { box-shadow: 0 0 24px var(--primary-glow), 0 0 40px rgba(99, 102, 241, 0.15); }
}

.timeline-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--border-default), transparent);
  margin-top: 4px;
}

.timeline-card {
  padding: 24px 28px;
  margin-bottom: 20px;
}

.timeline-year {
  margin-bottom: 6px;
  color: var(--primary-light);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.timeline-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.now-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border-default);
  border-radius: 99px;
  padding: 3px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────────
   17. PROJECTS SECTION
───────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card { padding: 24px; }

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}

.status-done {
  background: rgba(16, 185, 129, 0.10);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.20);
}

.status-progress {
  background: rgba(245, 158, 11, 0.10);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.20);
}

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

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--ease-base);
}

.icon-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary);
  color: var(--primary-light);
}

.project-icon { font-size: 2.2rem; margin-bottom: 14px; }

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.project-learnings {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.learning-label {
  color: var(--primary-light);
  margin-bottom: 5px;
  font-size: 0.65rem;
}

.learning-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.project-card-future {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  border-style: dashed;
  border-color: var(--border-subtle);
}

.project-card-future:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
}

.future-icon { font-size: 2.8rem; margin-bottom: 16px; }

.future-status {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.68rem;
}

/* ─────────────────────────────────────────────────────────────
   18. CERTIFICATES
───────────────────────────────────────────────────────────── */
.cert-note {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.cert-note-icon { font-size: 1.8rem; flex-shrink: 0; }

.cert-note p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.78;
}

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

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.cert-card-soon { opacity: 0.7; }

.cert-icon { font-size: 1.6rem; flex-shrink: 0; }

.cert-issuer { color: var(--primary-light); margin-bottom: 4px; }

.cert-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.cert-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cert-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.10);
  color: var(--primary-light);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-badge-soon {
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.18);
}

/* ─────────────────────────────────────────────────────────────
   19. CONTACT SECTION
───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-who {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.who-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.who-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.who-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.who-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--ease-base);
}

.contact-detail-link:hover {
  color: var(--primary-light);
  background: var(--bg-glass);
  border-color: var(--border-subtle);
}

.contact-detail-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  padding: 32px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.form-input {
  width: 100%;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--ease-base);
  resize: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.07);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea { min-height: 120px; }

.form-submit { width: 100%; justify-content: center; margin-top: 4px; }

.form-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────
   20. FOOTER
───────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.5;
}

.footer-inner { display: flex; flex-direction: column; gap: 28px; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-quote {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary-light);
  font-style: italic;
  opacity: 0.8;
  border: none;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.footer-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

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

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--ease-base);
}

.footer-social:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease-base);
  letter-spacing: 0.05em;
}

.back-to-top:hover { color: var(--primary-light); }

/* ─────────────────────────────────────────────────────────────
   21. RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content   { align-items: center; }
  .hero-intro     { text-align: left; }
  .hero-visual    { display: none; }
  .about-grid     { grid-template-columns: 1fr; }
  .skills-grid    { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr 1fr; }
  .cert-grid      { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .hamburger      { display: flex; }
  .nav-links      { display: none; }
  .nav-cta        { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .section   { padding: 70px 0; }
  .section-header { margin-bottom: 44px; }

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

  .footer-top    { flex-direction: column; text-align: center; }
  .footer-middle { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero { padding-top: calc(var(--nav-height) + 32px); }
  .hero-actions, .hero-socials { justify-content: center; }
}

@media (max-width: 480px) {
  .timeline-item { grid-template-columns: 28px 1fr; gap: 14px; }
  .cert-grid     { grid-template-columns: 1fr; }
}