/* ============================================================
   AURORA BASE — Complete Redesign (Roman Caseres Inspired)
   Annie Karim | Flutter Developer
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg: #030009;
  --bg-2: #08000f;
  --bg-3: #0d0018;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.08);
  --border: rgba(124, 58, 237, 0.14);
  --border-2: rgba(124, 58, 237, 0.28);
  --border-3: rgba(124, 58, 237, 0.45);
  --purple: #7c3aed;
  --purple-l: #a78bfa;
  --purple-d: #4c1d95;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --emerald: #10b981;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #64748b;
  --text-4: #334155;
  --grad: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  --grad-2: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
  --nav-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'system-ui', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.5);
  border-radius: 2px;
}

/* ── FIXED LAYERS ── */
#aurora-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
}

/* ── CUSTOM CURSOR (disabled — was causing lag) ── */
#cursor-dot,
#cursor-ring {
  display: none !important;
}

body * {
  cursor: auto;
}

/* ── NAVIGATION ── */
.aurora-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  background: transparent;
  transition: background .4s, border-color .4s;
}

.aurora-nav.scrolled {
  background: transparent;
}

/* ── PILL NAV INNER CONTAINER ── */
.nav-pill {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  height: 48px;
  background: rgba(18, 15, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 6px;
  gap: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

/* Avatar left side */
.nav-pill-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.1);
}
.nav-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Divider after avatar */
.nav-pill-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.1);
  margin: 0 10px;
  flex-shrink: 0;
}

/* Links row */
.nav-pill-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

/* Each pill link */
.nav-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-pill-link:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,0.05);
}

.nav-pill-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}

/* Green dot indicator */
.nav-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

/* Hamburger on mobile (right side of pill) */
.nav-pill-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  margin-left: auto;
}
.nav-pill-hamburger:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-pill {
    max-width: calc(100vw - 2.5rem);
    padding: 0 6px;
  }
  .nav-pill-links {
    display: none;
  }
  .nav-pill-hamburger {
    display: flex;
  }
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.02em;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .4);
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .01em;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  border-radius: 1px;
  background: var(--grad-2);
  transition: width .3s cubic-bezier(.16, 1, .3, 1);
}

.nav-link:hover {
  color: var(--text-2);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #c4b5fd;
}

.nav-link.active::after {
  width: 100%;
}

/* ── NAV DROPDOWN ── */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(10, 3, 22, 0.95);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(124, 58, 237, 0.32);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.85), 0 0 25px rgba(124, 58, 237, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.25s;
  z-index: 1000;
}

/* Hover bridge to keep dropdown open when cursor moves from link into menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
}

.nav-dropdown-item:hover {
  background: rgba(124, 58, 237, 0.16);
  color: #fff;
  transform: translateX(4px);
}

.nav-dropdown-icon {
  display: none !important;
}

.nav-dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.nav-dropdown-desc {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #93c5fd 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #f0abfc, #818cf8, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── GLASS ── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

/* ── BADGE ── */
.aurora-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .25);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: #c4b5fd;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, filter .3s;
  box-shadow: 0 4px 24px rgba(124, 58, 237, .35);
  letter-spacing: .01em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(124, 58, 237, .55);
  filter: brightness(1.12);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid rgba(124, 58, 237, .3);
  color: #c4b5fd;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s, transform .3s;
  letter-spacing: .01em;
}

.btn-outline:hover {
  background: rgba(124, 58, 237, .12);
  border-color: rgba(124, 58, 237, .55);
  color: #fff;
  transform: translateY(-2px);
}

/* ── SECTION EYEBROW ── */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: #7c3aed;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ── SKILL TAGS ── */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  color: #c4b5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  transition: background .2s, border-color .2s;
}

.skill-tag:hover {
  background: rgba(124, 58, 237, .2);
  border-color: rgba(124, 58, 237, .4);
}

/* ── PROGRESS BARS ── */
.progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  width: 0%;
  transition: width 1.4s cubic-bezier(.16, 1, .3, 1);
}

/* ── CARDS ── */
.aurora-card {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s, border-color .35s;
}

.aurora-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, .18);
  border-color: rgba(124, 58, 237, .38) !important;
}

.service-card {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s, border-color .35s;
}

.service-card:hover {
  transform: translateY(-9px) scale(1.01);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

/* ── HERO NUMBER STATS ── */
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.04em;
}

/* ── FLOATING BADGES (PROFILE) ── */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  backdrop-filter: blur(16px);
  background: rgba(10, 5, 30, .7);
  border: 1px solid rgba(124, 58, 237, .3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ── TICKER MARQUEE ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(124, 58, 237, .1);
  border-bottom: 1px solid rgba(124, 58, 237, .1);
  padding: 1.25rem 0;
  background: rgba(124, 58, 237, .025);
  position: relative;
  z-index: 2;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: ticker 30s linear infinite;
  width: max-content;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .2s;
}

.ticker-item:hover {
  color: #c4b5fd;
}

.ticker-item i {
  font-size: .95rem;
}

.ticker-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(124, 58, 237, .45);
  flex-shrink: 0;
}

/* ── SCROLL-SCRUB CAROUSEL ── */
.scrub-section {
  position: relative;
}

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scrub-sticky-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--nav-h) 4rem 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 5;
  background: linear-gradient(180deg, rgba(3, 0, 9, .9) 60%, transparent);
  pointer-events: none;
}

.scrub-scroll-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--text-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: nudge 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nudge {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

.scrub-track {
  display: flex;
  gap: 1.75rem;
  padding: 0 4rem;
  will-change: transform;
  align-items: center;
}

.scrub-card {
  flex-shrink: 0;
  width: min(460px, 84vw);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(124, 58, 237, .14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s, transform .4s;
  transform: scale(0.95);
}

.scrub-card.active {
  border-color: rgba(124, 58, 237, .45);
  box-shadow: 0 0 60px rgba(124, 58, 237, .18), 0 20px 60px rgba(0, 0, 0, .4);
  transform: scale(1);
}

.scrub-img-box {
  height: 210px;
  overflow: hidden;
  background: rgba(124, 58, 237, .04);
  border-bottom: 1px solid rgba(124, 58, 237, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scrub-img-box img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform .5s ease;
}

.scrub-card.active .scrub-img-box img {
  transform: scale(1.05);
}

.scrub-img-box-icon {
  font-size: 3rem;
  opacity: .3;
}

.scrub-body {
  padding: 1.5rem;
}

.scrub-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: #7c3aed;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  display: block;
}

.scrub-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.scrub-desc {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.scrub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scrub-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(124, 58, 237, .12);
  border: 1px solid rgba(124, 58, 237, .25);
  color: #c4b5fd;
}

/* Scrub progress dots */
.scrub-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 5;
}

.scrub-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
}

.scrub-dot.active {
  background: #a78bfa;
  width: 24px;
}

/* Scrub progress bar line */
.scrub-prog-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 0 1px 1px 0;
  transition: width .08s linear;
  z-index: 5;
}

/* ── PAGE CONTENT ── */
.page-content {
  position: relative;
  z-index: 2;
}

/* ── PROJECT CARD (Projects page) ── */
.project-card {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .35s;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(124, 58, 237, .45) !important;
  box-shadow: 0 20px 60px rgba(124, 58, 237, .22);
}

.project-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid rgba(139, 92, 246, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-container img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform .5s ease;
}

.project-card:hover .project-img-container img {
  transform: scale(1.08) rotate(1deg);
}

.project-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .63rem;
  font-weight: 500;
  padding: .22rem .65rem;
  border-radius: 4px;
  background: rgba(124, 58, 237, .14);
  border: 1px solid rgba(124, 58, 237, .3);
  color: #c4b5fd;
}

.project-badge.intl {
  background: rgba(6, 182, 212, .12);
  border-color: rgba(6, 182, 212, .28);
  color: #67e8f9;
}

.tab-btn {
  padding: .65rem 1.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid rgba(124, 58, 237, .3);
  background: rgba(124, 58, 237, .08);
  color: #c4b5fd;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
}

.tab-btn:hover,
.tab-btn.active {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, .35);
}

.proc-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 5, 30, .45);
  border: 2px solid rgba(139, 92, 246, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all .3s;
}

.process-item:hover .proc-dot {
  border-color: #a78bfa;
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(124, 58, 237, .35);
}

/* ── CERT CARD ── */
.cert-card {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .35s;
}

.cert-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(124, 58, 237, .45) !important;
  box-shadow: 0 20px 60px rgba(124, 58, 237, .2);
}

.cert-img-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.cert-card:hover .cert-img-wrap img {
  transform: scale(1.08);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 0, 9, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.filter-btn {
  padding: .4rem 1.1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  border: 1px solid rgba(124, 58, 237, .25);
  background: rgba(124, 58, 237, .08);
  color: #c4b5fd;
  transition: all .25s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(124, 58, 237, .3);
  border-color: rgba(124, 58, 237, .6);
  color: #fff;
}

/* ── SOCIAL CARD ── */
.social-card {
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}

.social-card:hover {
  transform: translateY(-8px) scale(1.06);
}

/* ── FORM ── */
.aurora-input {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.aurora-input:focus {
  border-color: rgba(124, 58, 237, .6);
  background: rgba(124, 58, 237, .05);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

.aurora-input::placeholder {
  color: var(--text-4);
}

/* ── FOOTER ── */
.aurora-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(124, 58, 237, .1);
  padding: 1.75rem 2.5rem;
  background: rgba(3, 0, 9, .65);
  backdrop-filter: blur(20px);
}

/* ── ANIMATIONS ── */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .35;
  }

  50% {
    transform: scale(1.08);
    opacity: .5;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1),
    transform .75s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero reveal — CSS animation (no JS needed) */
.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn .9s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FORM SUCCESS ── */
.form-success {
  display: none;
}

.form-success.show {
  display: flex;
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.4);
  color: #fff;
}

/* ── DESKTOP NAV LINKS ── */
.nav-desktop-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ── NAV NAME TAG (top right) ── */
.nav-name-tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}
.nav-name-first {
  color: #f1f5f9;
}
.nav-name-last {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-name-tag:hover .nav-name-first {
  color: #fff;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .aurora-nav {
    padding: 0 1.25rem;
  }

  .aurora-footer {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .scrub-sticky-header {
    padding-top: var(--nav-h);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .scrub-track {
    padding: 0 1.25rem;
    gap: 0.75rem;
  }

  .ticker-wrap::before,
  .ticker-wrap::after {
    width: 60px;
  }

  /* Show hamburger, hide desktop links — !important beats Tailwind CDN utilities */
  .nav-hamburger {
    display: flex !important;
  }

  .nav-desktop-links {
    display: none !important;
  }

  /* Hide name tag on mobile (hamburger takes that spot) */
  .nav-name-tag {
    display: none !important;
  }

  /* Hide Figma tag & handles on mobile (decorative desktop-only elements) */
  .figma-tag,
  .figma-handle {
    display: none !important;
  }

  /* General padding fixes */
  .btn-primary,
  .btn-outline {
    padding: 11px 20px;
    font-size: 0.84rem;
  }

  /* Card hover — disable intense transforms on touch */
  .aurora-card:hover,
  .service-card:hover,
  .project-card:hover,
  .cert-card:hover {
    transform: none;
  }

  /* Scrub card width */
  .scrub-card {
    width: min(88vw, 360px);
  }

  /* Float badges — hide on mobile to avoid overflow */
  .float-badge {
    display: none;
  }

  /* Stat value smaller */
  .stat-value {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  /* Keycap sizes on mobile */
  .keycap {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    font-size: 1.1rem;
  }

  .keycap-wide {
    height: 48px;
    padding: 0 1.2rem;
    font-size: 0.78rem;
  }

  /* Section header padding fix */
  section,
  .page-content {
    overflow-x: hidden;
  }

  /* Prevent blobs from causing horizontal scroll */
  .hero-blob {
    max-width: 100vw;
  }
}

/* ── EXTRA SMALL (<=480px) ── */
@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
  }

  .aurora-nav {
    padding: 0 1rem;
  }

  .keycap {
    width: 44px;
    height: 44px;
  }

  .keycap-wide {
    height: 44px;
    padding: 0 1rem;
    font-size: 0.72rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  /* Scrub sticky header overflow fix */
  .scrub-sticky-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .scrub-track {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .scrub-card {
    width: min(92vw, 320px);
  }
}

/* ── SIDE DRAWER MENU ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 0, 9, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: rgba(8, 2, 20, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.drawer-close:hover {
  background: rgba(124, 58, 237, 0.12);
  color: #fff;
  border-color: rgba(124, 58, 237, 0.4);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.drawer-link {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.25s;
  padding: 0.5rem 0;
  display: inline-block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.drawer-link:hover,
.drawer-link.active {
  color: #c4b5fd;
  padding-left: 0.5rem;
  border-bottom-color: rgba(124, 58, 237, 0.25);
}

/* Hide scrollbar utility for horizontal navigation */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}