/* ═══════════════════════════════════════════════════════
   AURORA / COSMIC PORTFOLIO — Design System & Styles
   ═══════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary:    #060918;
  --bg-secondary:  #0c1024;
  --bg-card:       rgba(255, 255, 255, 0.03);

  --text-primary:  #e8eaf0;
  --text-secondary:#8b8fa8;
  --text-muted:    #4a4e69;

  --accent-teal:   #00e5ff;
  --accent-violet: #a855f7;
  --accent-gold:   #f5a623;
  --accent-rose:   #f472b6;

  --gradient-aurora: linear-gradient(135deg, #00e5ff 0%, #a855f7 50%, #f472b6 100%);
  --gradient-teal:   linear-gradient(135deg, #00e5ff, #06b6d4);
  --gradient-violet: linear-gradient(135deg, #a855f7, #7c3aed);

  --glass-bg:      rgba(12, 16, 36, 0.7);
  --glass-border:  rgba(255, 255, 255, 0.06);
  --glass-blur:    16px;

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

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.3s var(--ease-out-quart);
  --transition-slow: 0.6s var(--ease-out-expo);
}

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

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

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

::selection {
  background: rgba(0, 229, 255, 0.2);
  color: #fff;
}

/* ─── Custom Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-teal), var(--accent-violet));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* ─── Utilities ──────────────────────────────────────── */
.hidden { opacity: 0; pointer-events: none; }

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

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-teal);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 229, 255, 0.55);
  transition: width 0.25s var(--ease-out-quart), height 0.25s var(--ease-out-quart), border-color 0.25s;
}

.cursor-ring.expanded {
  width: 56px;
  height: 56px;
  border-color: rgba(168, 85, 247, 0.5);
}

.cursor-active,
.cursor-active * { cursor: none !important; }

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   CINEMATIC PRELOADER
   ═══════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Curtain panels — form the dark background, split apart on reveal */
.curtain {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  background: var(--bg-primary);
  transition: transform 1.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain-top { top: 0; height: 50%; }
.curtain-bottom { bottom: 0; height: 50%; }
.curtain-top.reveal { transform: translateY(-100%); }
.curtain-bottom.reveal { transform: translateY(100%); }

/* Preloader UI — sits above curtains */
.preloader-ui {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 860px;
  padding: 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: opacity 0.35s ease;
}

.pre-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.3s forwards;
}

.pre-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pre-role-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-teal);
  letter-spacing: 7px;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.5s forwards;
}

.pre-name-wrap {
  overflow: hidden;
  margin-bottom: 22px;
}

.pre-name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #d4d8f0 45%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(110%);
  animation: revealUp 1.1s var(--ease-out-expo) 0.7s forwards;
}

.pre-rule {
  width: 0;
  height: 1px;
  max-width: 660px;
  background: linear-gradient(90deg, transparent, var(--accent-teal) 30%, var(--accent-violet) 70%, transparent);
  margin-bottom: 18px;
  animation: expandWidth 0.9s var(--ease-out-expo) 1.4s forwards;
}

@keyframes expandWidth {
  to { width: 100%; }
}

.pre-subtags {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) 1.7s forwards;
}

.pre-sep { color: var(--accent-teal); opacity: 0.4; }

.pre-foot {
  margin-top: 56px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pre-counter-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.pre-pct {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  min-width: 3ch;
  display: inline-block;
}

.pre-pct-sign {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
}

.pre-track {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.pre-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-violet));
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: 14px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.logo-bracket {
  color: var(--accent-teal);
  transition: var(--transition-base);
}

.logo-dot {
  color: var(--accent-violet);
}

.nav-logo:hover .logo-bracket {
  color: var(--accent-violet);
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent-teal);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-teal);
  border-radius: 50%;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
  border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 9, 24, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 24px;
  transition: var(--transition-base);
  position: relative;
}

.mobile-nav-link:hover {
  color: var(--accent-teal);
  transform: translateX(8px);
}

/* ─── Dot Navigation (Side) ─────────────────────────── */
.dot-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.3);
}

.dot.active {
  background: var(--accent-teal);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  transform: scale(1.2);
}

/* ═══════════════════════════════════════════════════════
   AURORA BACKGROUND CANVAS
   ═══════════════════════════════════════════════════════ */
#aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Dot-grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Floating ambient tech labels */
.hero-float-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-badge {
  position: absolute;
  left: var(--fb-x);
  top: var(--fb-y);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.22);
  animation: floatBadge var(--fb-dur, 7s) ease-in-out var(--fb-delay, 0s) infinite;
  user-select: none;
}

@keyframes floatBadge {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(7px, -12px); }
  50% { transform: translate(-5px, -20px); }
  75% { transform: translate(-9px, -7px); }
}

@media (max-width: 768px) {
  .hero-float-badges { display: none; }
  .hero-grid-bg { display: none; }
}

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

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.2s forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-badge span {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Title */
.hero-title {
  margin-bottom: 24px;
}

.hero-line {
  display: block;
}

.hero-line-1 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.4s forwards;
}

.hero-line-2 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-top: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #d8dcf0 40%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.6s forwards;
}

/* Typing subtitle */
.hero-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  min-height: 36px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.8s forwards;
}

.hero-subtitle-prefix {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-teal);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.typing-cursor {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-teal);
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 2px;
}

/* Description */
.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 1s forwards;
}

.hero-description strong {
  color: var(--accent-teal);
  font-weight: 600;
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 1.2s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-aurora);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.2);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Social links */
.hero-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 1.4s forwards;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
}

.social-link:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--accent-teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.15);
}

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

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-teal);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--accent-violet);
  bottom: -15%;
  left: -10%;
  animation-delay: 3s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-gold);
  top: 40%;
  left: 60%;
  animation-delay: 5s;
  opacity: 0.08;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 2s forwards;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-teal), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   PLACEHOLDER SECTIONS
   ═══════════════════════════════════════════════════════ */
.section {
  padding: var(--section-padding);
  position: relative;
}

.placeholder-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal) 30%, var(--accent-violet) 70%, transparent);
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-teal);
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-social {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
}

.footer-social:hover { color: var(--accent-teal); }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealUp {
  from {
    transform: translateY(120%);
  }
  to {
    transform: translateY(0);
  }
}

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

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

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

@keyframes scroll-anim {
  0% {
    opacity: 1;
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    opacity: 0.3;
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    padding: 16px 20px;
  }

  .dot-nav {
    display: none;
  }

  .hero-section {
    padding: 100px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-orb-1 {
    width: 250px;
    height: 250px;
  }

  .hero-orb-2 {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    padding: 6px 14px;
  }

  .hero-badge span {
    font-size: 0.7rem;
  }

  .hero-socials {
    gap: 12px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }
}

/* ─── Hero Divider Line ─────────────────────────────── */
.hero-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal) 30%, var(--accent-violet) 70%, transparent);
  margin: 20px auto;
  max-width: 480px;
  animation: expandWidth 1s var(--ease-out-expo) 1.5s forwards;
  opacity: 0;
  animation: fadeInLine 1.1s var(--ease-out-expo) 1.4s forwards;
}

@keyframes fadeInLine {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 480px; }
}

/* ─── Button shimmer effect ─────────────────────────── */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 150%;
}

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

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.reveal-on-scroll[data-delay="150"] { transition-delay: 0.15s; }
.reveal-on-scroll[data-delay="200"] { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-teal);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */
.about-section { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.about-highlights {
  list-style: none;
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats sidebar */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition-base);
}

.stat-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,229,255,0.15);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.current-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}

.current-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.current-card-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.current-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.current-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  color: var(--accent-violet);
  border-radius: 6px;
}

.availability-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: var(--transition-base);
}

.skill-category-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

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

.skill-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-cat-icon.teal {
  background: rgba(0,229,255,0.12);
  color: var(--accent-teal);
}
.skill-cat-icon.violet {
  background: rgba(168,85,247,0.12);
  color: var(--accent-violet);
}
.skill-cat-icon.rose {
  background: rgba(244,114,182,0.12);
  color: var(--accent-rose);
}
.skill-cat-icon.gold {
  background: rgba(245,166,35,0.12);
  color: var(--accent-gold);
}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  transition: var(--transition-base);
  cursor: default;
}

.skill-pill:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
}

.skill-pill.primary {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.15);
  color: var(--accent-teal);
}

.skill-pill.primary:hover {
  background: rgba(0,229,255,0.15);
}

/* ═══════════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════════ */
.projects-section { background: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,229,255,0.04), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

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

.project-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.project-card.featured {
  background: rgba(255,255,255,0.04);
}

.project-card.featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-aurora);
}

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

.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
}

.project-category.teal { background: rgba(0,229,255,0.1); color: var(--accent-teal); border: 1px solid rgba(0,229,255,0.2); }
.project-category.violet { background: rgba(168,85,247,0.1); color: var(--accent-violet); border: 1px solid rgba(168,85,247,0.2); }
.project-category.rose { background: rgba(244,114,182,0.1); color: var(--accent-rose); border: 1px solid rgba(244,114,182,0.2); }
.project-category.gold { background: rgba(245,166,35,0.1); color: var(--accent-gold); border: 1px solid rgba(245,166,35,0.2); }

.project-link {
  color: var(--text-muted);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
}

.project-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

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

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
}

.tech-tag.small {
  font-size: 0.68rem;
  padding: 2px 8px;
}

.projects-footer {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   EXPERIENCE SECTION
   ═══════════════════════════════════════════════════════ */
.exp-timeline {
  margin-bottom: 64px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 24px;
}

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

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 16px rgba(0,229,255,0.5);
  flex-shrink: 0;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--accent-teal), transparent);
  margin-top: 8px;
  min-height: 40px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--accent-teal);
  font-weight: 500;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 4px 10px;
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-desc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.timeline-desc li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.timeline-desc li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
}

.timeline-desc li strong {
  color: var(--text-primary);
}

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

/* Experience sub grid */
.exp-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.exp-sub-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.edu-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: var(--transition-base);
}

.edu-card:hover {
  border-color: rgba(0,229,255,0.15);
  background: rgba(255,255,255,0.04);
}

.edu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.edu-degree {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--accent-teal);
  margin-bottom: 4px;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: var(--transition-base);
}

.cert-item:hover {
  border-color: rgba(168,85,247,0.2);
  background: rgba(255,255,255,0.04);
}

.cert-icon {
  color: var(--accent-violet);
  margin-top: 2px;
  flex-shrink: 0;
}

.cert-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */
.contact-section { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.contact-item-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a.contact-item-value:hover {
  color: var(--accent-teal);
}

.contact-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-base);
}

.contact-social-link:hover {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.2);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
  width: 100%;
}

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

.form-input:focus {
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.06);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — NEW SECTIONS
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stat-grid {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .exp-sub-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .timeline-header {
    flex-direction: column;
  }
  .timeline-meta {
    align-items: flex-start;
  }
  .about-sidebar {
    display: block;
  }
  .stat-grid {
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .about-actions {
    flex-direction: column;
  }
  .about-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
