/* ---------- Fonts & base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #05060a;
  color: #e7e9f3;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05060a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #22d3ee);
  border-radius: 999px;
}

/* ---------- Background grid + glow ---------- */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(90deg, #818cf8, #22d3ee 60%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glass card ---------- */
.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-hover {
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.glass-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.45);
}

/* ---------- Marquee ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track.reverse {
  animation-direction: reverse;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* ---------- Blob float ---------- */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}
.animate-float-slow {
  animation: float-slow 9s ease-in-out infinite;
}
@keyframes float-slower {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 25px) scale(1.05); }
}
.animate-float-slower {
  animation: float-slower 12s ease-in-out infinite;
}

/* ---------- Nav ---------- */
#navbar {
  transition: background-color .4s ease, border-color .4s ease, padding .4s ease;
}
#navbar.scrolled {
  background-color: rgba(5, 6, 10, 0.75);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

/* ---------- Mobile menu ---------- */
#mobileMenu {
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
#mobileMenu.open {
  transform: translateX(0);
}

/* ---------- Timeline ---------- */
.timeline-line {
  background: linear-gradient(180deg, #6366f1, #22d3ee, transparent);
}

/* ---------- Skill bar ---------- */
.skill-bar-fill {
  width: 0%;
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
}

/* ---------- Reveal (GSAP targets) ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ---------- Tech logo chip ---------- */
.tech-chip img {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

/* ---------- Utility ---------- */
.mask-fade-x {
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
