/* ========================================================================
   AYUSH ANCHAL — IGLOO × BASEMENT STUDIO PORTFOLIO
   Design System & Animations
   ======================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Ice / Igloo palette */
  --ice-50: #f0f9ff;
  --ice-100: #e0f2fe;
  --ice-200: #bae6fd;
  --ice-300: #7dd3fc;
  --ice-400: #38bdf8;
  --ice-500: #0ea5e9;
  --ice-600: #0284c7;

  /* Basement / Dark palette */
  --base-700: #2a2a3d;
  --base-800: #1e1e2e;
  --base-900: #0f0f1a;
  --base-950: #08080f;

  /* Neon spray-paint */
  --neon-pink: #ff2d75;
  --neon-green: #39ff14;
  --neon-orange: #ff6b35;
  --neon-cyan: #00f0ff;
  --neon-purple: #b44aff;
  --neon-yellow: #ffe600;

  /* Sticky notes */
  --sticky-yellow: #fef3c7;
  --sticky-peach: #fde8d0;
  --sticky-pink: #fce4ec;
  --sticky-blue: #e0f7fa;
  --sticky-green: #e8f5e9;
  --sticky-lilac: #ede7f6;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);

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

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--base-900);
  color: var(--ice-100);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background: Gradient + Sketch Lines ---------- */
.bg-main {
  background:
    linear-gradient(135deg,
      rgba(14, 165, 233, 0.15) 0%,
      rgba(30, 30, 46, 0.95) 40%,
      var(--base-900) 70%,
      var(--base-950) 100%
    );
  position: relative;
}

.bg-main::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.5) 40px,
      rgba(255,255,255,0.5) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.3) 40px,
      rgba(255,255,255,0.3) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(255,255,255,0.15) 80px,
      rgba(255,255,255,0.15) 81px
    );
}

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

/* ---------- Spray Paint Text Animation ---------- */
@keyframes sprayIn {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.3) rotate(-2deg);
    text-shadow: none;
  }
  40% {
    opacity: 0.6;
    filter: blur(8px);
    transform: scale(1.1) rotate(1deg);
  }
  70% {
    opacity: 0.9;
    filter: blur(3px);
    transform: scale(1.02) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) rotate(0deg);
    text-shadow:
      0 0 10px var(--neon-cyan),
      0 0 30px rgba(0, 240, 255, 0.4),
      0 0 60px rgba(0, 240, 255, 0.15);
  }
}

@keyframes sprayInSub {
  0% {
    opacity: 0;
    filter: blur(16px);
    letter-spacing: 0.5em;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.7;
    filter: blur(4px);
    letter-spacing: 0.15em;
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    letter-spacing: 0.2em;
    transform: translateY(0);
  }
}

.spray-text {
  animation: sprayIn 1.8s var(--ease-out-expo) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.spray-subtitle {
  animation: sprayInSub 1.5s var(--ease-out-expo) forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.spray-tagline {
  animation: sprayInSub 1.5s var(--ease-out-expo) forwards;
  animation-delay: 1.8s;
  opacity: 0;
}

/* Neon glow variations */
.glow-cyan {
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 40px rgba(0,240,255,0.3);
}
.glow-pink {
  text-shadow: 0 0 10px var(--neon-pink), 0 0 40px rgba(255,45,117,0.3);
}
.glow-green {
  text-shadow: 0 0 10px var(--neon-green), 0 0 40px rgba(57,255,20,0.3);
}
.glow-orange {
  text-shadow: 0 0 10px var(--neon-orange), 0 0 40px rgba(255,107,53,0.3);
}
.glow-purple {
  text-shadow: 0 0 10px var(--neon-purple), 0 0 40px rgba(180,74,255,0.3);
}

/* ---------- Frosted Glass / Igloo Panels ---------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: all 0.4s var(--ease-out-expo);
}

.glass-panel:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 8px 32px rgba(14,165,233,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass-panel-strong {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
}

/* Igloo curved panel (wider border-radius, arch shape) */
.igloo-panel {
  background: rgba(14, 165, 233, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 50% 50% 24px 24px / 30% 30% 24px 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease-out-expo);
}

.igloo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,165,233,0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Code snippet scroll inside igloo panel */
.code-scroll {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  line-height: 1.6;
  color: rgba(56, 189, 248, 0.35);
  white-space: pre;
  animation: scrollCode 30s linear infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes scrollCode {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ---------- Sticky Notes ---------- */
.sticky-note {
  background: var(--sticky-yellow);
  color: var(--base-900);
  padding: 1.2rem 1.4rem;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: all 0.45s var(--ease-spring);
  transform-origin: top center;
  box-shadow:
    2px 3px 8px rgba(0,0,0,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.05);
  /* Torn edge via clip-path */
  clip-path: polygon(
    0% 0%, 100% 0%,
    100% 92%, 97% 94%, 94% 91%,
    90% 95%, 86% 92%, 82% 96%,
    78% 93%, 74% 95%, 70% 91%,
    66% 94%, 62% 92%, 58% 96%,
    54% 93%, 50% 95%, 46% 92%,
    42% 94%, 38% 91%, 34% 95%,
    30% 93%, 26% 96%, 22% 92%,
    18% 94%, 14% 91%, 10% 95%,
    6% 93%, 3% 96%, 0% 93%
  );
  will-change: transform;
  z-index: 2;
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 30%;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 0 0 2px 2px;
}

.sticky-note:nth-child(2) { background: var(--sticky-peach); }
.sticky-note:nth-child(3) { background: var(--sticky-pink); }
.sticky-note:nth-child(4) { background: var(--sticky-blue); }
.sticky-note:nth-child(5) { background: var(--sticky-green); }
.sticky-note:nth-child(6) { background: var(--sticky-lilac); }

.sticky-note:hover {
  transform: scale(1.15) rotate(0deg) translateY(-8px) !important;
  z-index: 20;
  box-shadow:
    4px 8px 24px rgba(0,0,0,0.35),
    0 0 40px rgba(14,165,233,0.15);
}

.sticky-note .note-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.sticky-note:hover .note-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.8rem;
}

/* ---------- Float / Orbit Animations ---------- */
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(-1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float5 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(-3deg); }
}
@keyframes float6 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

.float-1 { animation: float1 5s ease-in-out infinite; }
.float-2 { animation: float2 6s ease-in-out infinite 0.5s; }
.float-3 { animation: float3 5.5s ease-in-out infinite 1s; }
.float-4 { animation: float4 6.5s ease-in-out infinite 1.5s; }
.float-5 { animation: float5 5.8s ease-in-out infinite 0.8s; }
.float-6 { animation: float6 6.2s ease-in-out infinite 1.2s; }

/* Orbit for sticky notes around timer */
@keyframes orbit {
  0%   { transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); }
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -60px;
  margin-left: -80px;
  --orbit-radius: 220px;
  animation: orbit 40s linear infinite;
  animation-play-state: running;
}

.orbit-item:hover {
  animation-play-state: paused;
}

.orbit-item:nth-child(1) { animation-delay: 0s; }
.orbit-item:nth-child(2) { animation-delay: -6.66s; }
.orbit-item:nth-child(3) { animation-delay: -13.33s; }
.orbit-item:nth-child(4) { animation-delay: -20s; }
.orbit-item:nth-child(5) { animation-delay: -26.66s; }
.orbit-item:nth-child(6) { animation-delay: -33.33s; }

/* ---------- 24h Timer ---------- */
.timer-ring {
  fill: none;
  stroke: var(--ice-500);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(14,165,233,0.4));
  transition: stroke-dashoffset 1s linear;
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 3;
}

.timer-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14,165,233,0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

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

/* ---------- Challenge Me Button ---------- */
.challenge-btn {
  position: relative;
  padding: 1rem 2.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--ice-50);
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: none;
  border-radius: 60px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-spring);
  box-shadow:
    0 4px 20px rgba(255,45,117,0.3),
    0 0 40px rgba(180,74,255,0.15);
  z-index: 5;
}

.challenge-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 8px 32px rgba(255,45,117,0.5),
    0 0 60px rgba(180,74,255,0.25);
}

.challenge-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 62px;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 3s linear infinite;
}

@keyframes borderSpin {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Pulse ring behind button */
.challenge-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 68px;
  border: 2px solid rgba(255,45,117,0.3);
  animation: pingRing 2s ease-out infinite;
}

@keyframes pingRing {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Skills Constellation ---------- */
.skill-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease-spring);
  cursor: default;
  position: relative;
}

.skill-node::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--skill-color, var(--ice-500)), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.skill-node:hover {
  transform: scale(1.18) translateY(-6px);
  background: rgba(255,255,255,0.1);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.3),
    0 0 20px color-mix(in srgb, var(--skill-color, var(--ice-500)) 30%, transparent);
}

.skill-node:hover::before {
  opacity: 0.15;
}

.skill-node img,
.skill-node i {
  width: 40px;
  height: 40px;
  transition: transform 0.4s var(--ease-spring);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.skill-node:hover img,
.skill-node:hover i {
  transform: scale(1.15);
}

.skill-node span {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  color: var(--ice-200);
  transition: color 0.3s ease;
}

.skill-node:hover span {
  color: var(--ice-50);
}

/* Skill category labels */
.skill-category {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--ice-400);
  position: relative;
  display: inline-block;
}

.skill-category::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ice-500), transparent);
  border-radius: 2px;
}

/* ---------- Project Wall (Basement Gallery) ---------- */
.project-wall {
  position: relative;
}

.project-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.project-item {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.project-item::before {
  content: attr(data-name);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-family: 'Permanent Marker', cursive;
  font-size: 3rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  pointer-events: none;
  transition: all 0.5s var(--ease-out-expo);
  white-space: nowrap;
}

.project-item:hover {
  border-color: var(--project-color, var(--neon-cyan));
  background: rgba(255,255,255,0.04);
  box-shadow:
    0 0 30px color-mix(in srgb, var(--project-color, var(--neon-cyan)) 15%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--project-color, var(--neon-cyan)) 5%, transparent);
  transform: translateY(-4px);
}

.project-item:hover::before {
  color: var(--project-color, var(--neon-cyan));
  -webkit-text-stroke: none;
  opacity: 0.08;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(1px);
  text-shadow: 0 0 40px var(--project-color, var(--neon-cyan));
}

/* Spray paint reveal on hover */
.spray-reveal {
  position: relative;
  display: inline-block;
}

.spray-reveal::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--project-color, var(--neon-cyan));
  border-radius: 3px;
  transition: width 0.6s var(--ease-out-expo);
  box-shadow: 0 0 12px var(--project-color, var(--neon-cyan));
}

.project-item:hover .spray-reveal::after {
  width: 100%;
}

/* Tech stack tags */
.tech-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ice-300);
  transition: all 0.3s ease;
}

.project-item:hover .tech-tag {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* Project link buttons */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
}

.project-link-live {
  background: linear-gradient(135deg, var(--ice-500), var(--ice-600));
  color: white;
}

.project-link-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(14,165,233,0.4);
}

.project-link-github {
  background: rgba(255,255,255,0.08);
  color: var(--ice-200);
  border: 1px solid rgba(255,255,255,0.1);
}

.project-link-github:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s var(--ease-out-expo);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s var(--ease-out-expo);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.8s var(--ease-spring);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.35s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(9) { transition-delay: 0.45s; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.5s; }

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.8rem 1.6rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--ice-100);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.5s var(--ease-spring), opacity 0.5s ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Copy Button ---------- */
.copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ice-300);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--ice-100);
}

/* ---------- 3D Tilt ---------- */
.tilt-card {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Section Divider ---------- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(14,165,233,0.2) 30%,
    rgba(14,165,233,0.3) 50%,
    rgba(14,165,233,0.2) 70%,
    transparent 100%
  );
  margin: 0 auto;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--base-900);
}
::-webkit-scrollbar-thumb {
  background: rgba(14,165,233,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(14,165,233,0.5);
}

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
  color: var(--ice-300);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ice-500);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--ice-100);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Bio Section ---------- */
.bio-highlight {
  color: var(--ice-400);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .orbit-item {
    --orbit-radius: 170px;
  }
}

@media (max-width: 768px) {
  /* Disable orbit on mobile — stack vertically */
  .orbit-item {
    position: relative !important;
    animation: none !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
  }

  .sticky-note {
    transform: none !important;
  }

  .sticky-note:hover {
    transform: scale(1.04) !important;
  }

  .igloo-panel {
    border-radius: 20px;
  }

  .project-item::before {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .challenge-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1.2rem;
  }
}

/* ---------- Utility: no-scrollbar ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Loading Screen ---------- */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--base-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ice-500);
  margin: 0 6px;
  animation: loaderBounce 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---------- Spray Paint Signature ---------- */
@keyframes spraySignature {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: scale(1.2) rotate(-3deg);
    letter-spacing: 0.3em;
  }
  40% {
    opacity: 0.5;
    filter: blur(6px);
    transform: scale(1.05) rotate(1deg);
  }
  70% {
    opacity: 0.8;
    filter: blur(2px);
    letter-spacing: 0.08em;
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) rotate(0deg);
    letter-spacing: 0.05em;
  }
}

.spray-signature {
  display: inline-block;
  position: relative;
}

.spray-signature::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  border-radius: 2px;
  opacity: 0;
  animation: sprayLineIn 1.5s cubic-bezier(0.16,1,0.3,1) forwards 2s;
  transform: scaleX(0);
}

@keyframes sprayLineIn {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 0.5; }
}
