/* Google Fonts Import: Space Grotesk (Tech/Modern) & Plus Jakarta Sans (Clean/Premium) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
.light ::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  background-color: #020617;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Background Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Ambient Glowing Orbs in Background */
.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  opacity: 0.15;
  z-index: -1;
  animation: pulse-glow 10s infinite alternate;
}

.glow-orb-blue {
  background: radial-gradient(circle, #3b82f6 0%, #1d4ed8 100%);
  top: -10%;
  right: -5%;
}

.glow-orb-cyan {
  background: radial-gradient(circle, #06b6d4 0%, #0891b2 100%);
  bottom: 10%;
  left: -10%;
}

.glow-orb-purple {
  background: radial-gradient(circle, #8b5cf6 0%, #6d28d9 100%);
  top: 40%;
  right: 15%;
  width: 300px;
  height: 300px;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9) translate(0, 0);
    opacity: 0.12;
  }
  100% {
    transform: scale(1.1) translate(20px, 20px);
    opacity: 0.22;
  }
}

/* Premium Glassmorphism Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light .glass-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 20px 45px -10px rgba(59, 130, 246, 0.08);
}

.light .glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06);
}

/* Custom Profile Image Container (No ugly boundaries, overlaps elegantly) */
.profile-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-backdrop-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.profile-img-cutout {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.light .profile-img-cutout {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.profile-frame:hover .profile-img-cutout {
  transform: scale(1.03) translateY(-5px);
}

/* Text Gradients */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Timeline Custom Styles */
.timeline-connector {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.light .timeline-connector {
  background: rgba(0, 0, 0, 0.05);
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #020617;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.light .timeline-dot {
  border-color: #f8fafc;
}

/* Theme Switch Transition */
.theme-transition,
.theme-transition * {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease !important;
}

/* Mobile responsive navigation glass wrapper */
.glass-nav {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light .glass-nav {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
