/* ═══════════════════════════════════════════════════════════════════
   FARHAN.DEV — PINK/PURPLE SOFTWARE ENGINEER PORTFOLIO
   Single dark theme · 3D Modern Animations · Glassmorphism
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── CSS Variables ─── */
:root {
  /* Pink/Purple Palette */
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6d28d9;
  --purple-900: #4c1d95;

  /* Background layers */
  --bg-base: #0a0512;
  --bg-deep: #0d0620;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass2: rgba(255, 255, 255, 0.08);

  /* Text */
  --t-1: #f8f4ff;
  --t-2: #c4b5e0;
  --t-3: #8b7aaa;
  --t-4: #5a4d72;

  /* Borders */
  --border: rgba(168, 85, 247, 0.18);
  --border-hi: rgba(236, 72, 153, 0.35);

  /* Gradients */
  --grad-pp: linear-gradient(135deg, #ec4899, #a855f7);
  --grad-pp2: linear-gradient(135deg, #f472b6, #c084fc, #818cf8);
  --grad-bg: linear-gradient(135deg, #0a0512 0%, #12052a 50%, #0f0318 100%);

  /* Glow */
  --glow-pink: 0 0 40px rgba(236, 72, 153, 0.3);
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
  --glow-both: 0 0 60px rgba(168, 85, 247, 0.2), 0 0 100px rgba(236, 72, 153, 0.1);

  /* Sidebar */
  --sb-w: 230px;

  /* Typography */
  --f-body: 'Inter', sans-serif;
  --f-display: 'Space Grotesk', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  background: var(--bg-base);
  color: var(--t-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Animated Background ─── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--grad-bg);
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(168, 85, 247, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(236, 72, 153, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

/* Animated grid lines */
.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(60px);
  }
}

/* 3D Floating Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.4), rgba(99, 102, 241, 0.1) 70%);
  top: -100px;
  left: -150px;
  animation-duration: 10s;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 60% 60%, rgba(236, 72, 153, 0.35), rgba(251, 113, 133, 0.05) 70%);
  bottom: -100px;
  right: -100px;
  animation-duration: 12s;
  animation-delay: -4s;
}

.bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.3), transparent 70%);
  top: 50%;
  left: 60%;
  animation-duration: 9s;
  animation-delay: -2s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  33% {
    transform: translate3d(30px, -40px, 0) scale(1.05);
    opacity: 0.85;
  }

  66% {
    transform: translate3d(-20px, 20px, 0) scale(0.95);
    opacity: 0.95;
  }
}

/* ─── Layout Shell ─── */
.shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sb-w);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  background: rgba(10, 5, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.sb-brand:hover {
  border-color: var(--border-hi);
  background: var(--bg-glass2);
  box-shadow: var(--glow-purple);
  transform: translateY(-1px);
}

.sb-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-pp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4), 0 0 30px rgba(236, 72, 153, 0.2);
  position: relative;
  flex-shrink: 0;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4), 0 0 30px rgba(236, 72, 153, 0.2);
  }

  50% {
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.6), 0 0 50px rgba(236, 72, 153, 0.3);
  }
}

.sb-title {
  font-family: var(--f-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--t-1);
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sb-role {
  font-size: 0.66rem;
  color: var(--t-3);
  font-family: var(--f-mono);
  margin-top: 1px;
}

/* Sidebar Nav */
.sb-section-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-4);
  padding: 0 12px;
  margin-bottom: 8px;
}

.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--t-3);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.sb-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-pp);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.sb-link:hover {
  color: var(--t-1);
  border-color: var(--border);
  background: var(--bg-glass);
  transform: translateX(4px);
}

.sb-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.15));
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.1), 0 0 15px rgba(168, 85, 247, 0.15);
}

.sb-link.active i {
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sb-link i {
  font-size: 0.78rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar Status */
.sb-status {
  padding: 14px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.sb-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a3e635;
  margin-bottom: 8px;
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 8px rgba(163, 230, 53, 0.7);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.sb-clock,
.sb-weather {
  font-size: 0.67rem;
  color: var(--t-3);
  font-family: var(--f-mono);
  margin-top: 4px;
}

/* ─── Main Content Area ─── */
.main {
  margin-left: var(--sb-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Top Bar ─── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(10, 5, 18, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.top-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.td {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.td:hover {
  transform: scale(1.2);
}

.td-r {
  background: #ff5f57;
  box-shadow: 0 0 6px rgba(255, 95, 87, 0.6);
}

.td-y {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.6);
}

.td-g {
  background: #28ca42;
  box-shadow: 0 0 6px rgba(40, 202, 66, 0.6);
}

.top-path {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--t-3);
}

.top-path span {
  color: var(--pink-400);
}

.top-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--purple-400);
  font-family: var(--f-mono);
}

/* ─── Scroll Area ─── */
.scroll-area {
  flex: 1;
  padding: 40px 36px;
  overflow-y: auto;
}

/* ─── Page Header ─── */
.page-head {
  margin-bottom: 40px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-400);
  margin-bottom: 12px;
}

.page-eyebrow::before {
  content: '//';
  color: var(--purple-400);
  opacity: 0.6;
}

.page-h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--t-1);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-sub {
  font-size: 0.95rem;
  color: var(--t-3);
  max-width: 520px;
  line-height: 1.7;
}

.grad-pink {
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-back);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--grad-pp);
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4), 0 0 30px rgba(236, 72, 153, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5), 0 0 50px rgba(236, 72, 153, 0.3);
}

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

.btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--t-1);
  background: var(--bg-glass);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.75rem;
}

/* Legacy btn-blue alias */
.btn-blue {
  background: var(--grad-pp);
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

/* ─── HERO Section ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink-400);
  width: fit-content;
  backdrop-filter: blur(8px);
  animation: badgePop 0.6s var(--ease-back) both;
}

@keyframes badgePop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--t-1);
  animation: heroSlide 0.7s var(--ease) 0.1s both;
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 1rem;
  color: var(--t-3);
  line-height: 1.75;
  max-width: 440px;
  animation: heroSlide 0.7s var(--ease) 0.2s both;
}

.hero-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-400);
  width: fit-content;
  font-family: var(--f-mono);
  animation: heroSlide 0.7s var(--ease) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroSlide 0.7s var(--ease) 0.4s both;
}

/* ═══════════════════════════════════════════
   HERO RIGHT — PLANETARY ORBIT SYSTEM
   Icons travel ON the rings like planets
   ═══════════════════════════════════════════ */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroSlide 0.8s var(--ease) 0.3s both;
}

.orb-scene {
  width: 380px;
  height: 380px;
  position: relative;
}

/* ── Centre photo ── */
.hero-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(168, 85, 247, 0.35),
    0 0 0 8px rgba(168, 85, 247, 0.12),
    0 0 60px rgba(168, 85, 247, 0.5),
    0 0 120px rgba(236, 72, 153, 0.25);
  animation: spherePulse 4s ease-in-out infinite;
  z-index: 10;
}

@keyframes spherePulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.35), 0 0 0 8px rgba(168, 85, 247, 0.12), 0 0 60px rgba(168, 85, 247, 0.5), 0 0 120px rgba(236, 72, 153, 0.25);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.5), 0 0 0 12px rgba(236, 72, 153, 0.15), 0 0 80px rgba(168, 85, 247, 0.7), 0 0 150px rgba(236, 72, 153, 0.4);
  }
}

/* ── Orbit tracks (rings) ── */
.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-track-1 {
  width: 220px;
  height: 220px;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.08) inset;
}

.orbit-track-2 {
  width: 310px;
  height: 310px;
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.06) inset;
}

.orbit-track-3 {
  width: 380px;
  height: 380px;
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.05) inset;
}

/* ═══════════════════════════════════════════
   ORBIT SHELL — correct planet system
   Each shell is a full circle centered on scene.
   It spins around its own center (50% 50%).
   Planet sits at top edge; counter-spins to stay upright.
   Starting angle = negative animation-delay trick.
   ═══════════════════════════════════════════ */

.orbit-shell {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-origin: 50% 50%;
  /* rotate around OWN center = scene center */
  animation: orbitSpin var(--dur, 10s) linear infinite;
  /* Starting angle via negative delay: delay = -(start/360) × duration */
  animation-delay: var(--orbit-delay, 0s);
}

.orbit-shell.r1 {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
}

.orbit-shell.r2 {
  width: 310px;
  height: 310px;
  margin: -155px 0 0 -155px;
}

.orbit-shell.r3 {
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Planet icon — sits at top of shell, counter-spins to stay upright */
.planet {
  position: absolute;
  top: -22px;
  /* half of icon height, sits just above ring */
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 5, 18, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(168, 85, 247, 0.3);
  animation: counterSpin var(--dur, 10s) linear infinite;
  animation-delay: var(--orbit-delay, 0s);
  transform: translateX(-50%) rotate(0deg);
  cursor: default;
  user-select: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@keyframes counterSpin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(-360deg);
  }
}

.planet:hover {
  border-color: rgba(236, 72, 153, 0.75);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(236, 72, 153, 0.5);
}

/* Glow dot that travels with the planet */
.orbit-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ec4899, #a855f7);
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.9), 0 0 20px rgba(168, 85, 247, 0.6);
  animation: counterSpin var(--dur, 10s) linear infinite;
  animation-delay: var(--orbit-delay, 0s);
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 24px;
  animation: heroSlide 0.7s var(--ease) 0.5s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hs-num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hs-label {
  font-size: 0.68rem;
  color: var(--t-4);
  font-weight: 500;
  margin-top: 2px;
}

/* ─── Glass Cards ─── */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: var(--glow-purple), 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

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

/* ─── Project Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.proj-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-pp);
  opacity: 0;
  transition: opacity 0.35s;
}

.proj-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2), 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow-purple);
  transform: translateY(-6px) scale(1.01);
}

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

.proj-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.08));
}

.proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.proj-card:hover .proj-img {
  transform: scale(1.06);
}

.proj-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-1);
}

.proj-desc {
  font-size: 0.8rem;
  color: var(--t-3);
  line-height: 1.65;
  flex: 1;
}

.proj-footer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ─── Blog Cards ─── */
.blog-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

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

.blog-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: var(--glow-purple), 0 16px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

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

.blog-cat {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--pink-400);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(236, 72, 153, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.blog-date {
  font-size: 0.7rem;
  color: var(--t-4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t-1);
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.8rem;
  color: var(--t-3);
  line-height: 1.7;
}

/* ─── Tags ─── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--purple-400);
  font-size: 0.68rem;
  font-family: var(--f-mono);
  font-weight: 500;
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--t-1);
}

.tag.hl {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.1));
  border-color: rgba(236, 72, 153, 0.3);
  color: var(--pink-400);
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-500), var(--pink-500), transparent);
  opacity: 0.4;
}

.tl-entry {
  position: relative;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.tl-entry::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-pp);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6), 0 0 24px rgba(236, 72, 153, 0.3);
  border: 2px solid var(--bg-base);
  z-index: 2;
}

.tl-entry::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-pp);
  opacity: 0;
  transition: opacity 0.35s;
}

.tl-entry:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--glow-purple), 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

.tl-entry:hover::after {
  opacity: 1;
}

.tl-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--pink-400);
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(236, 72, 153, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
}

.tl-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t-1);
  margin-bottom: 4px;
}

.tl-institution {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-400);
  margin-bottom: 8px;
}

.tl-desc {
  font-size: 0.8rem;
  color: var(--t-3);
  line-height: 1.7;
}

/* ─── About / Bento Grid ─── */
.bento {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.bento-profile {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.bento-profile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08), transparent 60%);
  animation: profileGlow 6s ease-in-out infinite;
}

@keyframes profileGlow {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(180deg);
  }
}

.bento-profile:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--glow-purple);
  transform: translateY(-4px);
}

.bento-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
    var(--grad-pp) border-box;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  position: relative;
  z-index: 1;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-name {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-1);
  position: relative;
  z-index: 1;
}

.bento-role {
  font-size: 0.75rem;
  color: var(--purple-400);
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  position: relative;
  z-index: 1;
}

.bento-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stat boxes */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(12px);
}

.stat-box:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--glow-purple);
  transform: translateY(-3px) scale(1.02);
}

.stat-icon {
  font-size: 1.1rem;
  margin-bottom: 8px;
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-val {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--t-1);
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-key {
  font-size: 0.65rem;
  color: var(--t-4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bio-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  font-size: 0.87rem;
  color: var(--t-2);
  line-height: 1.8;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.bio-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: start;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  margin-bottom: 12px;
  transition: all 0.3s var(--ease);
}

.contact-info-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--glow-purple);
  transform: translateX(6px);
}

.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s var(--ease-back);
}

.contact-info-card:hover .ci-icon {
  transform: scale(1.15) rotate(-5deg);
}

.ci-text h4 {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--t-1);
  margin-bottom: 2px;
}

.ci-text p {
  font-size: 0.75rem;
  color: var(--t-3);
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--t-2);
  margin-bottom: 8px;
  font-family: var(--f-mono);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--t-1);
  font-family: var(--f-body);
  font-size: 0.85rem;
  transition: all 0.25s;
  outline: none;
  resize: vertical;
}

.form-control::placeholder {
  color: var(--t-4);
}

.form-control:focus {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1), 0 0 20px rgba(168, 85, 247, 0.1);
}

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

/* ─── Glance / Resume ─── */
.glance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.glance-section-title {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--t-1);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.glance-section-title i {
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-bar-row {
  margin-bottom: 14px;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--t-2);
  font-weight: 500;
  margin-bottom: 6px;
}

.skill-bar-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-pp);
  transform-origin: left;
  animation: barGrow 1s var(--ease) both;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

@keyframes barGrow {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

/* ─── Education ─── */
.edu-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(16px);
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-pp);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.35s;
}

.edu-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--glow-purple), 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

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

.edu-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--purple-400);
}

.edu-body {
  flex: 1;
}

.edu-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--pink-400);
  font-weight: 600;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.edu-degree {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-1);
  margin-bottom: 3px;
}

.edu-school {
  font-size: 0.8rem;
  color: var(--purple-400);
  font-weight: 600;
  margin-bottom: 8px;
}

.edu-desc {
  font-size: 0.78rem;
  color: var(--t-3);
  line-height: 1.65;
}

/* ─── Social Float ─── */
.social-float {
  position: fixed;
  bottom: 30px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.sf-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(10, 5, 18, 0.8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-3);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-back);
  backdrop-filter: blur(12px);
}

.sf-link:hover {
  background: var(--grad-pp);
  border-color: transparent;
  color: #fff;
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5);
}

/* ─── ABOUT PAGE BENTO GRID ─── */
.about-bento {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

/* ─── Left Profile Card ─── */
.about-profile-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.about-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-pp);
}

.ap-img-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(168, 85, 247, 0.5));
  margin-bottom: 20px;
  position: relative;
}

.ap-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  background: var(--bg-surface);
}

.ap-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--t-1);
  margin-bottom: 6px;
  text-align: center;
}

.ap-role {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--pink-400);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.5px;
}

.ap-info-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.ap-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--t-2);
}

.ap-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-400);
  font-size: 1rem;
}

.ap-cv-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--grad-pp);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.ap-cv-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s var(--ease);
}

.ap-cv-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-pink);
}

.ap-cv-btn:hover::before {
  left: 200%;
}

/* ─── Right Content Area ─── */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ac-intro-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(16px);
}

.ac-intro-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--t-2);
}

.ac-intro-body p {
  margin-bottom: 16px;
}

.ac-intro-body p:last-child {
  margin-bottom: 0;
}

.ac-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ac-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.ac-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.ac-card-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t-1);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.ac-card-title i {
  color: var(--purple-400);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateX(4px);
}

.service-item i {
  color: var(--pink-400);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.service-item span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--t-2);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--t-2);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.25s ease;
}

.skill-tag:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--t-1);
  transform: translateY(-2px);
}

/* ─── Scroll Reveal ─── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ─── Mobile Header ─── */
.m-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 5, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.m-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.m-menu-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--t-2);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.m-menu-btn:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--t-1);
}

.m-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 5, 18, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.m-overlay.open {
  display: flex;
}

.m-nav-link {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--t-2);
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s var(--ease-back);
  border: 1px solid transparent;
}

.m-nav-link:hover,
.m-nav-link.active {
  color: var(--t-1);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
  border-color: rgba(168, 85, 247, 0.3);
  transform: scale(1.05);
}

/* ─── Floating Particles ─── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--purple-400);
  opacity: 0;
  animation: particleRise var(--dur, 8s) ease-in infinite var(--delay, 0s);
}

@keyframes particleRise {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1.5);
  }
}

/* ─── Typing cursor ─── */
.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--pink-400);
  margin-left: 2px;
  animation: cursorBlink 1.2s step-end infinite;
  vertical-align: bottom;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ─── Glance page ─── */
.glance-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--grad-pp);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-back);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.glance-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple-700), var(--pink-500));
  border-radius: 3px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .m-header {
    display: flex;
  }

  .main {
    margin-left: 0;
    padding-top: 62px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-right {
    order: -1;
  }

  .orb-scene {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .orbit-track-1 {
    width: 140px;
    height: 140px;
  }

  .orbit-track-2 {
    width: 210px;
    height: 210px;
  }

  .orbit-track-3 {
    width: 280px;
    height: 280px;
  }

  .orbit-shell.r1 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
  }

  .orbit-shell.r2 {
    width: 210px;
    height: 210px;
    margin: -105px 0 0 -105px;
  }

  .orbit-shell.r3 {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
  }

  .hero-sphere {
    width: 90px;
    height: 90px;
    font-size: 1.8rem;
  }

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

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

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

  .scroll-area {
    padding: 24px 20px;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-area {
    padding: 16px 12px;
  }
}

/* ═══════════════════════════════════════════
   HERO INFO STRIP — below hero
   ═══════════════════════════════════════════ */
.hero-info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
  animation: heroSlide 0.8s var(--ease) 0.6s both;
}

.hi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.hi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-pp);
  opacity: 0;
  transition: opacity 0.3s;
}

.hi-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-3px);
}

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

.hi-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.hi-label {
  font-size: 0.68rem;
  color: var(--t-4);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hi-value {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--t-1);
}

.hi-value.grad {
  background: var(--grad-pp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 900px) {
  .hero-info-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-info-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   ADMIN DASHBOARD — Full Redesign
   ═══════════════════════════════════════════ */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: #07040f;
  font-family: var(--f-body);
  color: var(--t-1);
}

.dash-sidebar {
  width: 240px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: rgba(10, 5, 18, 0.95);
  border-right: 1px solid rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(24px);
  z-index: 100;
  padding: 28px 18px;
  gap: 8px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t-1);
  padding: 0 6px 24px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  margin-bottom: 12px;
}

.dash-brand i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-pp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.dash-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--t-3);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dash-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--t-4);
  transition: color 0.25s;
}

.dash-nav-item:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--t-1);
}

.dash-nav-item:hover i {
  color: var(--purple-400);
}

.dash-nav-item.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.12));
  color: var(--t-1);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.dash-nav-item.active i {
  color: var(--purple-400);
}

.dash-logout {
  margin-top: auto;
  color: rgba(248, 113, 113, 0.8) !important;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  padding-top: 14px;
  margin-top: 12px;
}

.dash-logout:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
}

.dash-main {
  margin-left: 240px;
  flex: 1;
  padding: 32px 36px;
  min-height: 100vh;
}

.dash-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.dash-top h2 {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--grad-pp2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-date {
  font-size: 0.8rem;
  color: var(--t-4);
  font-family: var(--f-mono);
}

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

.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.18);
  text-decoration: none;
  color: var(--t-1);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.dash-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.04));
  opacity: 0;
  transition: opacity 0.35s;
}

.dash-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-pp);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
  transform-origin: left;
}

.dash-tile:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.15);
}

.dash-tile:hover::before {
  opacity: 1;
}

.dash-tile:hover::after {
  transform: scaleX(1);
}

.dash-tile.green::after {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.dash-tile.orange::after {
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.dash-tile.pink::after {
  background: var(--grad-pp);
}

.dash-tile.slate::after {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.dash-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--purple-400);
  transition: all 0.35s var(--ease);
  flex-shrink: 0;
}

.dash-tile:hover .dash-tile-icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.25));
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
}

.dash-tile.green .dash-tile-icon {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.25);
}

.dash-tile.orange .dash-tile-icon {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.25);
}

.dash-tile.pink .dash-tile-icon {
  color: var(--pink-400);
}

.dash-tile.slate .dash-tile-icon {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.2);
}

.dash-tile h3 {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-1);
  margin: 0;
}

.dash-tile p {
  font-size: 0.78rem;
  color: var(--t-4);
  margin: 0;
  line-height: 1.5;
}

/* Dash sub-page shared styles */
.dash-page-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--t-1);
  margin-bottom: 4px;
}

.dash-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.dash-section-title {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.dash-form-full {
  grid-column: 1 / -1;
}

.dash-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-input,
.dash-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  color: var(--t-1);
  font-size: 0.88rem;
  font-family: var(--f-body);
  outline: none;
  transition: border-color 0.25s;
}

.dash-input:focus,
.dash-textarea:focus {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.dash-textarea {
  min-height: 110px;
  resize: vertical;
}

.dash-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dash-btn-primary {
  background: var(--grad-pp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.dash-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
  transform: translateY(-2px);
}

.dash-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.dash-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.dash-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.25s;
  margin-bottom: 10px;
}

.dash-item-card:hover {
  border-color: rgba(168, 85, 247, 0.28);
}

.dash-item-info {
  flex: 1;
}

.dash-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--t-1);
}

.dash-item-sub {
  font-size: 0.75rem;
  color: var(--t-4);
  margin-top: 3px;
}

.dash-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dash-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--t-4);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.dash-back-link:hover {
  color: var(--purple-400);
}

/* Toast notification */
.dash-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  animation: toastIn 0.4s var(--ease-back) both;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dash-toast.success {
  background: linear-gradient(135deg, #1a3a2a, #0d2a1a);
  border: 1px solid #34d399;
  color: #34d399;
}

.dash-toast.error {
  background: linear-gradient(135deg, #3a1a1a, #2a0d0d);
  border: 1px solid #f87171;
  color: #f87171;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .dash-sidebar {
    display: none;
  }

  .dash-main {
    margin-left: 0;
    padding: 24px 18px;
  }

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

  .dash-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Floating Social Panel ─── */
.social-float {
  position: fixed;
  right: 18px;
  bottom: 50%;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.sf-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  color: var(--t-2);
  background: rgba(10, 5, 18, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: sfFadeIn 0.5s ease forwards;
}

@keyframes sfFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sf-link:hover {
  color: #fff;
  background: var(--sf-color, var(--purple-500));
  border-color: var(--sf-color, var(--purple-500));
  transform: scale(1.18) translateX(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px color-mix(in srgb, var(--sf-color, #a855f7) 40%, transparent);
}

@media (max-width: 900px) {
  .social-float {
    right: auto;
    left: 50%;
    bottom: 16px;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }

  .sf-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .sf-link:hover {
    transform: scale(1.15) translateY(-4px);
  }

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

  .ac-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ─── Mobile Responsiveness ─── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-left {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(10, 5, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
  }

  .m-brand {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--t-1);
    background: var(--grad-pp);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .m-menu-btn {
    background: none;
    border: none;
    color: var(--t-1);
    font-size: 1.4rem;
    cursor: pointer;
  }

  .m-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 18, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .m-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .m-nav-link {
    font-size: 1.2rem;
    color: var(--t-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }

  .m-nav-link:hover,
  .m-nav-link.active {
    color: #fff;
    text-shadow: var(--glow-purple);
  }

  .top-bar {
    display: none;
  }

  .glance-grid,
  .about-bento {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {

  .m-header,
  .m-overlay {
    display: none !important;
  }
}