@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================
   DESIGN TOKENS & VARIABLES
   ========================================== */
:root {
  /* Colors - Dark Mode (Default - Black, White, Blue) */
  --bg-primary: #0f172a; /* Lighter dark slate */
  --bg-secondary: #1e293b; /* Lighter secondary slate */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-purple: #8b5cf6; /* Royal Violet */
  --accent-purple-glow: rgba(139, 92, 246, 0.6);
  --accent-cyan: #00d8ff; /* Intense Neon Cyan/Blue */
  --accent-cyan-glow: rgba(0, 216, 255, 0.6);
  --accent-pink: #f1f5f9; /* Brilliant White */
  --accent-pink-glow: rgba(241, 245, 249, 0.6);
  
  --glass-bg: rgba(15, 15, 15, 0.6);
  --glass-border: rgba(0, 216, 255, 0.35);
  --glass-glow: rgba(0, 216, 255, 0.15);
  --glass-card-hover: rgba(241, 245, 249, 0.08);
  
  --card-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.5), 
    0 10px 15px rgba(0, 0, 0, 0.6), 
    0 20px 40px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
    
  --btn-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.5), 
    0 10px 25px rgba(0, 216, 255, 0.4);
  
  --blob-purple: rgba(139, 92, 246, 0.15);
  --blob-cyan: rgba(0, 216, 255, 0.15);
  --blob-pink: rgba(255, 255, 255, 0.05);
  
  --scrollbar-thumb: #1f2937;
  --scrollbar-track: #000000;
  --timeline-line: rgba(255, 255, 255, 0.2);
  --star-color: 255, 255, 255;
}

.light-theme {
  /* Colors - Light Mode (Prismatic Pearl) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent-purple: #7c3aed; /* Deep Vibrant Violet */
  --accent-purple-glow: rgba(124, 58, 237, 0.4);
  --accent-cyan: #0284c7; /* Deep Ocean Blue */
  --accent-cyan-glow: rgba(2, 132, 199, 0.4);
  --accent-pink: #e11d48; /* Deep Crimson */
  --accent-pink-glow: rgba(225, 29, 72, 0.4);
  
  --glass-bg: rgba(240, 245, 255, 0.6);
  --glass-border: rgba(2, 132, 199, 0.25);
  --glass-glow: rgba(2, 132, 199, 0.05);
  --glass-card-hover: rgba(255, 255, 255, 1);
  
  --card-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.12), 
    0 10px 20px rgba(124, 58, 237, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 1);
    
  --btn-shadow: 
    0 10px 25px rgba(124, 58, 237, 0.25), 
    0 10px 25px rgba(2, 132, 199, 0.25);
  
  --blob-purple: rgba(124, 58, 237, 0.15);
  --blob-cyan: rgba(2, 132, 199, 0.15);
  --blob-pink: rgba(225, 29, 72, 0.15);
  
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-track: #f8fafc;
  --timeline-line: rgba(15, 23, 42, 0.1);
  --star-color: 0, 0, 0;
}

/* ==========================================
   BASE & RESET
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  line-height: 1.7;
}

/* Hide default cursor only if pointer is fine (desktop) */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, input, textarea, select, .theme-toggle, .project-card, .skill-card, .social-icon {
    cursor: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  transition: background-color 0.5s ease;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 2px solid var(--scrollbar-track);
  transition: background-color 0.5s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
#custom-cursor {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 4px; /* Tech square shape, becomes a diamond when spun */
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease,
              backdrop-filter 0.3s ease;
}

#custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100000;
  transition: transform 0.1s ease;
}

/* Cursor States */
#custom-cursor.cursor-hover {
  width: 64px;
  height: 64px;
  border-radius: 50%; /* Morphs into a perfect circle */
  background-color: rgba(139, 92, 246, 0.08); /* Faint purple fill */
  border-color: var(--accent-purple); /* Royal Violet line color */
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(4px); /* Cool glass distortion effect on hovered text */
  -webkit-backdrop-filter: blur(4px);
}

#custom-cursor.cursor-click {
  width: 24px;
  height: 24px;
  background-color: rgba(0, 216, 255, 0.4);
  border-color: var(--accent-cyan);
}

#custom-cursor.has-text {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background-color: rgba(139, 92, 246, 0.15) !important;
  border-color: var(--accent-purple) !important; /* Royal Violet line */
  backdrop-filter: blur(6px) !important;
}

#custom-cursor.has-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background-color: rgba(0, 216, 255, 0.18) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 25px rgba(0, 216, 255, 0.5), inset 0 0 12px rgba(0, 216, 255, 0.25) !important;
  backdrop-filter: blur(8px) !important;
}

.light-theme #custom-cursor.has-icon {
  background-color: rgba(2, 132, 199, 0.18) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4), inset 0 0 8px rgba(2, 132, 199, 0.2) !important;
}

#cursor-text-container {
  position: fixed;
  pointer-events: none;
  z-index: 100001; /* Above the dot */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
}

#cursor-text {
  opacity: 0;
  color: var(--accent-cyan);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 216, 255, 0.8), 0 0 20px rgba(0, 216, 255, 0.4);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
  transform: scale(0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

#cursor-text i {
  font-size: 19px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 216, 255, 0.9));
  display: inline-block;
  line-height: 1;
}

.light-theme #cursor-text i {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.7));
}

#cursor-text-container.show-text #cursor-text {
  opacity: 1;
  transform: scale(1);
}

/* Hide on mobile/touch screen devices */
@media (max-width: 1024px) {
  #custom-cursor, #custom-cursor-dot {
    display: none !important;
  }
}

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #030307;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), 
              visibility 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: 2px;
  display: inline-block;
  background: linear-gradient(90deg, 
    #ffffff, #00d8ff, #10b981, #8b5cf6, #ffffff
  );
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: preloader-liquid-glow 3.2s linear infinite; /* 3.2s / 4 shifts = exactly 0.8s per color change */
}

@keyframes preloader-liquid-glow {
  0% {
    background-position: 0% center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  }
  25% { /* 0.2s */
    background-position: 25% center;
    filter: drop-shadow(0 0 20px rgba(0, 216, 255, 0.8));
  }
  50% { /* 0.4s */
    background-position: 50% center;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.8));
  }
  75% { /* 0.6s */
    background-position: 75% center;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
  }
  100% { /* 0.8s */
    background-position: 100% center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  }
}

.loader-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.03);
}

.loader-ring::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-cyan);
  border-bottom-color: var(--accent-purple);
  animation: spin 1.5s linear infinite;
}

.loader-ring::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: var(--accent-pink);
  border-right-color: var(--accent-cyan);
  animation: spin-reverse 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* ==========================================
   BACKGROUND DRIFTING BLOBS
   ========================================== */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: background-color 0.5s ease;
}

.blob-1 {
  background-color: var(--blob-purple);
  top: -10%;
  left: -5%;
  animation: float-blob-1 25s infinite ease-in-out alternate;
}

.blob-2 {
  background-color: var(--blob-cyan);
  bottom: -10%;
  right: -5%;
  animation: float-blob-2 30s infinite ease-in-out alternate;
}

.blob-3 {
  background-color: var(--blob-pink);
  top: 40%;
  left: 35%;
  animation: float-blob-3 22s infinite ease-in-out alternate;
}

@keyframes float-blob-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(120px, 80px, 0) scale(1.15); }
  66% { transform: translate3d(-80px, 160px, 0) scale(0.9); }
  100% { transform: translate3d(40px, -40px, 0) scale(1.05); }
}

@keyframes float-blob-2 {
  0% { transform: translate3d(0, 0, 0) scale(1.1); }
  33% { transform: translate3d(-100px, -120px, 0) scale(0.85); }
  66% { transform: translate3d(80px, -40px, 0) scale(1.1); }
  100% { transform: translate3d(-40px, 100px, 0) scale(1); }
}

@keyframes float-blob-3 {
  0% { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(140px, -100px, 0) scale(1.2); }
  100% { transform: translate3d(-100px, 120px, 0) scale(0.85); }
}

/* Optimize on mobile: disable blur filter, use simpler gradients or disable floating blobs for performance */
@media (max-width: 768px) {
  .bg-blob {
    width: 280px;
    height: 280px;
    filter: blur(60px);
    opacity: 0.4;
  }
}

/* ==========================================
   GLASSMORPHISM UTILITIES
   ========================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.6s ease,
              background-color 0.6s ease;
}

.light-theme .glass-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.glass-panel:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4), 
    0 0 30px rgba(0, 216, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.light-theme .glass-panel:hover {
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.1), 
    0 0 30px rgba(0, 216, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  transition: left 2.0s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-theme .glass-panel::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-panel:hover::before {
  left: 200%;
}

/* Make inner content physically pop out in 3D when the card tilts (subtle depth) */
.glass-panel > * {
  transform: translateZ(8px);
  transition: transform 0.3s ease;
}

.glass-panel-glow {
  box-shadow: var(--card-shadow), 0 0 30px var(--glass-glow);
}

/* ==========================================
   NEON MATTER HOVER EFFECTS
   ========================================== */
.section-title, .hero-name, h1, h2, h3, .project-card, .timeline-item {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* General Paragraph alternating colors */
p:nth-of-type(odd):hover {
  color: #00d8ff !important; /* Neon Cyan */
  text-shadow: 0 0 12px rgba(0, 216, 255, 0.8) !important;
}
p:nth-of-type(even):hover {
  color: #8b5cf6 !important; /* Royal Violet */
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.8) !important;
}

/* Project Paragraphs distinct unique colors */
.project-card:nth-child(1) p:hover { color: #22c55e !important; text-shadow: 0 0 12px rgba(34, 197, 94, 0.8) !important; }
.project-card:nth-child(2) p:hover { color: #f43f5e !important; text-shadow: 0 0 12px rgba(244, 63, 94, 0.8) !important; }
.project-card:nth-child(3) p:hover { color: #facc15 !important; text-shadow: 0 0 12px rgba(250, 204, 21, 0.8) !important; }

/* Timeline Paragraphs distinct unique colors */
.timeline-item:nth-child(1) p:hover { color: #e81cff !important; text-shadow: 0 0 12px rgba(232, 28, 255, 0.8) !important; }
.timeline-item:nth-child(2) p:hover { color: #00d8ff !important; text-shadow: 0 0 12px rgba(0, 216, 255, 0.8) !important; }
.timeline-item:nth-child(3) p:hover { color: #38bdf8 !important; text-shadow: 0 0 12px rgba(168, 85, 247, 0.8) !important; }

/* Light Theme overrides for neon text (Neon glows look bad on white backgrounds) */
.light-theme .project-card p:hover, .light-theme .timeline-item p:hover {
  text-shadow: none !important;
  font-weight: 500;
}
.light-theme .project-card:nth-child(1) p:hover { color: #16a34a !important; } /* Deep Green */
.light-theme .project-card:nth-child(2) p:hover { color: #e11d48 !important; } /* Deep Crimson */
.light-theme .project-card:nth-child(3) p:hover { color: #ca8a04 !important; } /* Deep Gold */
.light-theme .timeline-item:nth-child(1) p:hover { color: #c026d3 !important; } /* Deep Fuchsia */
.light-theme .timeline-item:nth-child(2) p:hover { color: #0284c7 !important; } /* Deep Blue */
.light-theme .timeline-item:nth-child(3) p:hover { color: #8b5cf6 !important; } /* Deep Violet */

/* Universal Headings white-cyan fusion glow */
h1:hover, h2:hover, h3:hover, h4:hover {
  color: #f1f5f9 !important;
  text-shadow: 0 0 15px rgba(0, 216, 255, 0.6) !important;
}

/* Light Theme overrides for headings */
.light-theme h1:hover, .light-theme h2:hover, .light-theme h3:hover, .light-theme h4:hover {
  color: #0f172a !important; /* Midnight Blue */
  text-shadow: 0 4px 15px rgba(2, 132, 199, 0.3) !important; /* Soft deep shadow instead of neon */
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .section-container {
    padding: 70px 20px;
  }
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-container:hover .section-title::after {
  transform: scaleX(0.8);
}

.subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: -10px auto 60px auto;
}

/* Button Premium styling */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 40px;
  border: 2px solid var(--accent-cyan);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 15px 30px rgba(0, 216, 255, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 25px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(0, 216, 255, 0.5),
    0 0 30px rgba(139, 92, 246, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255, 255, 255, 0.03); 
  color: var(--text-primary);
  font-weight: 700;
  border-radius: 40px;
  border: 2px solid var(--accent-cyan);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  box-shadow: 
    0 0 15px rgba(0, 216, 255, 0.4),
    inset 0 0 15px rgba(0, 216, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #fff !important; 
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 25px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(139, 92, 246, 0.4),
    0 0 25px rgba(139, 92, 246, 0.6),
    inset 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Animations Trigger classes via Intersection Observer */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-element.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 70px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.01); /* Extremely transparent */
  backdrop-filter: blur(24px); /* Very strong glass blur */
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.8), 
    -15px 15px 40px rgba(0, 216, 255, 0.15), 
    15px 15px 40px rgba(139, 92, 246, 0.15), 
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar-header:hover {
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.9), 
    -20px 20px 50px rgba(0, 216, 255, 0.3), 
    20px 20px 50px rgba(139, 92, 246, 0.3), 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
}

.navbar-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  background: linear-gradient(110deg, var(--accent-cyan) 0%, var(--accent-purple) 35%, #ffffff 50%, var(--accent-purple) 65%, var(--accent-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
  animation: holo-sheen 4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes holo-sheen {
  0% { background-position: 200% center; filter: drop-shadow(0 0 8px var(--accent-cyan-glow)) brightness(1); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) brightness(1.4); } /* Glare hits */
  100% { background-position: -200% center; filter: drop-shadow(0 0 8px var(--accent-cyan-glow)) brightness(1); }
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-link.active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Light / Dark Mode Toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, color 0.3s, transform 0.3s, background-color 0.5s;
}

.theme-toggle:hover {
  border-color: var(--accent-purple);
  transform: scale(1.05);
}

.theme-toggle .fa-sun {
  display: none;
}

.light-theme .theme-toggle .fa-moon {
  display: none;
}

.light-theme .theme-toggle .fa-sun {
  display: block;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Sticky navbar state */
.navbar-scrolled {
  top: 15px;
  background-color: rgba(255, 255, 255, 0.03); /* Almost invisible background */
  backdrop-filter: blur(32px); /* Ultimate glass blur */
  -webkit-backdrop-filter: blur(32px);
  border-color: rgba(0, 216, 255, 0.25);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.9), 
    -15px 20px 50px rgba(0, 216, 255, 0.2), 
    15px 20px 50px rgba(139, 92, 246, 0.2), 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}

.navbar-scrolled:hover {
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 1.0), 
    -25px 25px 60px rgba(0, 216, 255, 0.4), 
    25px 25px 60px rgba(139, 92, 246, 0.4), 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 80px 40px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
#home {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-welcome {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  display: block;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-name span {
  display: inline-block;
  background: linear-gradient(90deg, 
    #ffffff, #e2e8f0, /* White */
    #00d8ff, #38bdf8, /* Skyblue */
    #10b981, #22c55e, /* Green */
    #8b5cf6, #a855f7, /* Violet */
    #ffffff, #e2e8f0  /* Loop back */
  );
  background-size: 500% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ultra-neon-chroma 2.4s linear infinite; /* 2.4s / 4 shifts = exactly 0.6s per color change */
}

.light-theme .hero-name span {
  display: inline-block;
  background: linear-gradient(90deg, 
    #ffffff, #cbd5e1, 
    #00d8ff, #0ea5e9, 
    #10b981, #16a34a, 
    #8b5cf6, #7c3aed, 
    #ffffff, #cbd5e1
  );
  background-size: 500% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ultra-neon-chroma 2.4s linear infinite;
}

@keyframes ultra-neon-chroma {
  0% {
    background-position: 0% center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
  25% { /* 0.6s */
    background-position: 25% center;
    filter: drop-shadow(0 0 20px rgba(0, 216, 255, 0.6));
  }
  50% { /* 1.2s */
    background-position: 50% center;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.6));
  }
  75% { /* 1.8s */
    background-position: 75% center;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
  }
  100% { /* 2.4s */
    background-position: 100% center;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
}

.hero-role {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.typing-container {
  display: inline-block;
  color: var(--text-primary);
  font-weight: 600;
  border-right: 2px solid var(--accent-cyan);
  white-space: nowrap;
  animation: cursor-blink 0.75s step-end infinite;
}

@keyframes cursor-blink {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-cyan); }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}

.scroll-indicator i {
  font-size: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-img-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.about-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  aspect-ratio: 1;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15); /* Zoomed in slightly */
  transition: transform 0.6s ease;
}

.about-img-container:hover .about-img-frame img {
  transform: scale(1.2); /* Zoom slightly more on hover */
}

.about-img-glow {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  z-index: -1;
  opacity: 0.7;
  filter: blur(2px);
  animation: glow-pulse 4s infinite linear alternate;
}

@keyframes glow-pulse {
  0% {
    filter: blur(2px);
    opacity: 0.6;
  }
  100% {
    filter: blur(8px);
    opacity: 0.95;
    box-shadow: 0 0 25px var(--accent-purple-glow), 0 0 10px var(--accent-cyan-glow);
  }
}

.about-details h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-theme .about-details h3 {
  background: linear-gradient(90deg, #0f172a, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-details p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.skills-column h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-column h3 i {
  color: var(--accent-cyan);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-bar-container {
  width: 100%;
}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.skill-bar-name {
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.skill-bar-percent {
  color: var(--accent-cyan);
}

.skill-bar-track {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.light-theme .skill-bar-track {
  background-color: rgba(15, 23, 42, 0.03);
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  /* Glowing Violet and Skyblue Luxury Gradient */
  background: linear-gradient(90deg, #6d28d9, #38bdf8, #a855f7, #0ea5e9, #c084fc, #6d28d9);
  background-size: 200% auto;
  transition: width 2.5s ease-in-out;
  position: relative;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 10px rgba(56, 189, 248, 0.4), inset 0 0 5px rgba(255, 255, 255, 0.6);
  animation: luxury-flow 4s linear infinite;
}

@keyframes luxury-flow {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

/* Circular Skill Grid */
.circular-skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  text-align: center;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.skill-card i {
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.4s ease;
}

.skill-card:hover i {
  transform: translateZ(20px);
}

.skill-card-name {
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-top: 10px;
}

/* SVG Radial Meter styling */
.radial-meter {
  position: relative;
  width: 90px;
  height: 90px;
}

.radial-meter svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 6;
}

.light-theme .radial-bg {
  stroke: rgba(15, 23, 42, 0.03);
}

.radial-progress {
  fill: none;
  stroke: url(#cyan-purple-grad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2; /* 2 * PI * r (r=40) */
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 2.5s ease-in-out;
}

.radial-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .circular-skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  perspective: 1000px;
}

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

.project-card {
  height: 400px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-style: preserve-3d;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 11, 26, 0.95), rgba(13, 11, 26, 0.5));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 2;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.light-theme .project-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
}

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

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.project-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.project-links a:hover {
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #ffffff;
  transform: scale(1.1);
}

.project-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--accent-cyan);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.light-theme .tech-tag {
  background-color: rgba(15, 23, 42, 0.02);
}

/* ==========================================
   TIMELINE / EXPERIENCE SECTION
   ========================================== */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--timeline-line);
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  z-index: 2;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  transition: height 0.5s ease;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  z-index: 10;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--timeline-line);
  z-index: 20;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-node {
  left: -8px;
}

/* Node Lit-up State */
.timeline-node.active {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.timeline-item.lit-purple .timeline-node.active {
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.timeline-item.lit-pink .timeline-node.active {
  background-color: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink-glow);
}

.timeline-content {
  padding: 24px;
}

.timeline-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: block;
}

.timeline-item.lit-purple .timeline-date {
  color: var(--accent-purple);
}

.timeline-item.lit-pink .timeline-date {
  color: var(--accent-pink);
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.timeline-comp {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: block;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-line, .timeline-progress-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-node {
    left: 12px !important;
    right: auto !important;
  }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}

@media (max-width: 991px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

.contact-info-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-info-desc {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.contact-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.contact-text p {
  font-size: 1rem;
  color: var(--text-primary);
}

/* Floating Label Inputs */
.contact-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (max-width: 480px) {
  .contact-form {
    padding: 24px;
  }
}

.form-group {
  position: relative;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

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

.form-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 1rem;
}

textarea ~ .form-label {
  top: 24px;
}

/* Active floating label style */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  padding: 0 6px;
  background-color: var(--bg-primary); /* Masks the border line */
  color: var(--accent-purple);
  border-radius: 4px;
}

/* Morphing Submit Button */
.submit-btn {
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  min-width: 200px;
  height: 54px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(0, 216, 255, 0.15));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border: 1px solid rgba(0, 216, 255, 0.4);
  border: 1px solid rgba(0, 216, 255, 0.6);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(0, 216, 255, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: submit-btn-flow 3s linear infinite;
}

@keyframes submit-btn-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.submit-btn:hover::before {
  left: 150%;
}

.submit-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.5), rgba(0, 216, 255, 0.5), rgba(139, 92, 246, 0.5));
  background-size: 200% auto;
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.7), 
    0 0 40px rgba(139, 92, 246, 0.6),
    0 0 40px rgba(0, 216, 255, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.8);
  border-color: #ffffff;
}

.submit-btn-text {
  transition: opacity 0.3s, transform 0.3s;
}

.submit-btn .btn-loader, .submit-btn .btn-checkmark {
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
}

.submit-btn .btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-btn .btn-checkmark {
  font-size: 1.2rem;
}

/* Button Loading State */
.submit-btn.loading {
  min-width: 54px;
  width: 54px;
  border-radius: 50%;
  pointer-events: none;
}

.submit-btn.loading .submit-btn-text {
  opacity: 0;
  transform: scale(0.5);
}

.submit-btn.loading .btn-loader {
  opacity: 1;
  transform: scale(1);
}

/* Button Success State */
.submit-btn.success {
  min-width: 54px;
  width: 54px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  pointer-events: none;
}

.submit-btn.success .submit-btn-text, .submit-btn.success .btn-loader {
  opacity: 0;
  transform: scale(0.5);
}

.submit-btn.success .btn-checkmark {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  border-top: 1px solid var(--glass-border);
  background-color: var(--bg-secondary);
  padding: 40px 24px;
  position: relative;
  z-index: 10;
  transition: background-color 0.5s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo span {
  background: linear-gradient(to right, var(--accent-cyan), #22d3ee, var(--accent-purple), #c084fc, var(--accent-cyan));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aurora-drift 8s linear infinite;
}

@keyframes aurora-drift {
  0% {
    background-position: 0% center;
    filter: drop-shadow(0 0 10px var(--accent-cyan-glow)) hue-rotate(0deg);
  }
  50% {
    filter: drop-shadow(0 0 25px var(--accent-purple-glow)) hue-rotate(30deg);
  }
  100% {
    background-position: 300% center;
    filter: drop-shadow(0 0 10px var(--accent-cyan-glow)) hue-rotate(0deg);
  }
}

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

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
  position: relative;
}

.social-icon:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background-color: var(--glass-card-hover);
}

.social-icon.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
}

.social-icon.linkedin:hover {
  border-color: #0077b5;
  color: #0077b5;
}

.social-icon.instagram:hover {
  border-color: #e1306c;
  color: #e1306c;
}

/* ==========================================
   FLOATING CALL BUTTON
   ========================================== */
.floating-call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  z-index: 1000;
  border: 2px solid var(--accent-cyan);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 15px 35px rgba(0, 216, 255, 0.4),
    inset 0 4px 6px rgba(255, 255, 255, 0.5),
    inset 0 -4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  animation: dual-pulse-glow 2.5s infinite;
}

.floating-call-btn i {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-call-btn:hover {
  transform: scale(1.15) translateY(-8px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.7),
    0 25px 50px rgba(0, 216, 255, 0.6),
    0 0 40px rgba(139, 92, 246, 0.5),
    inset 0 4px 8px rgba(255, 255, 255, 0.6),
    inset 0 -4px 8px rgba(0, 0, 0, 0.3);
  border-color: #ffffff;
}

.floating-call-btn:hover i {
  transform: rotate(20deg) scale(1.2);
}

@keyframes dual-pulse-glow {
  0% { 
    box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.6),
      0 15px 35px rgba(0, 216, 255, 0.4),
      0 0 0 0 rgba(0, 216, 255, 0.6),
      inset 0 4px 6px rgba(255, 255, 255, 0.5),
      inset 0 -4px 6px rgba(0, 0, 0, 0.2);
  }
  70% { 
    box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.6),
      0 15px 35px rgba(0, 216, 255, 0.4),
      0 0 0 25px rgba(139, 92, 246, 0),
      inset 0 4px 6px rgba(255, 255, 255, 0.5),
      inset 0 -4px 6px rgba(0, 0, 0, 0.2);
  }
  100% { 
    box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.6),
      0 15px 35px rgba(0, 216, 255, 0.4),
      0 0 0 0 rgba(139, 92, 246, 0),
      inset 0 4px 6px rgba(255, 255, 255, 0.5),
      inset 0 -4px 6px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 768px) {
  .floating-call-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* ==========================================
   ENHANCED MOBILE OPTIMIZATIONS
   ========================================== */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 20px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .timeline-item {
    padding-left: 40px;
    padding-right: 15px;
  }
  .contact-detail-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.2rem;
  }
  .circular-skills-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .navbar-header {
    width: 95%;
    top: 10px;
    height: 60px;
  }
}

/* ==========================================
   CCBP LEARNING STREAK BOARD
   ========================================== */
.streak-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 1. Metrics Grid */
.streak-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 22px;
  width: 100%;
}

.streak-metric-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.light-theme .streak-metric-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.75) 100%);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.streak-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.streak-metric-card.card-fire::before { background: linear-gradient(90deg, transparent, #f97316, transparent); }
.streak-metric-card.card-trophy::before { background: linear-gradient(90deg, transparent, #eab308, transparent); }
.streak-metric-card.card-calendar::before { background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); }
.streak-metric-card.card-status::before { background: linear-gradient(90deg, transparent, #10b981, transparent); }

.streak-metric-card:hover::before {
  opacity: 1;
}

.streak-metric-card.card-fire:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(249, 115, 22, 0.2);
}

.streak-metric-card.card-trophy:hover {
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(234, 179, 8, 0.2);
}

.streak-metric-card.card-calendar:hover {
  border-color: rgba(0, 216, 255, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 216, 255, 0.2);
}

.streak-metric-card.card-status:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
}

.metric-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: #000000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  filter: contrast(1.1) brightness(1.05);
}

.streak-metric-card:hover .metric-icon-box {
  transform: scale(1.08) rotate(4deg);
}

.streak-metric-card:hover .metric-icon-img {
  transform: scale(1.1);
  filter: contrast(1.15) brightness(1.2);
}

.fire-glow {
  background: #050201;
  border: 1.5px solid rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.3), inset 0 0 15px rgba(249, 115, 22, 0.2);
}

.trophy-glow {
  background: #050400;
  border: 1.5px solid rgba(234, 179, 8, 0.6);
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.3), inset 0 0 15px rgba(234, 179, 8, 0.2);
}

.calendar-glow {
  background: #000408;
  border: 1.5px solid rgba(0, 216, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 216, 255, 0.3), inset 0 0 15px rgba(0, 216, 255, 0.2);
}

.status-glow {
  background: #020604;
  border: 1.5px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3), inset 0 0 15px rgba(16, 185, 129, 0.2);
}

.status-glow.active-today {
  background: #010603;
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.45), inset 0 0 15px rgba(16, 185, 129, 0.3);
}

.status-glow.pending-today {
  background: #010605;
  border-color: rgba(20, 184, 166, 0.8);
  box-shadow: 0 0 28px rgba(20, 184, 166, 0.4), inset 0 0 15px rgba(20, 184, 166, 0.25);
}

.metric-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.metric-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 3px 0 2px 0;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.light-theme .metric-value {
  color: #0f172a;
  text-shadow: none;
}

.metric-unit {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-left: 4px;
}

.metric-subtext {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.metric-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  width: fit-content;
}

.metric-status-badge.completed {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), inset 0 0 8px rgba(16, 185, 129, 0.15);
}

.metric-status-badge.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 0 8px rgba(245, 158, 11, 0.15);
}

/* 2. Heatmap Main Card */
.streak-heatmap-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.light-theme .heatmap-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.heatmap-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.heatmap-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 216, 255, 0.15), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 216, 255, 0.2);
}

.heatmap-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.heatmap-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.heatmap-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.7;
    box-shadow: 0 0 16px #10b981;
  }
}

/* 3. Heatmap Scrollable Wrapper */
.heatmap-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--scrollbar-track);
}

.heatmap-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.heatmap-scroll-container::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 6px;
}

.heatmap-board {
  min-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
  position: relative;
}

/* Loading & Empty States */
.heatmap-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 45px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.streak-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 216, 255, 0.15);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* Heatmap Inner Grid */
.heatmap-months-row {
  display: flex;
  position: relative;
  height: 18px;
  margin-left: 36px;
  margin-bottom: 4px;
}

.heatmap-month-label {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
}

.heatmap-main-grid {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.heatmap-days-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 114px;
  width: 28px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  padding-top: 2px;
}

.heatmap-weeks-container {
  display: flex;
  gap: 4px;
  flex: 1;
}

.heatmap-week-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heatmap-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s ease,
              background-color 0.2s ease,
              border-color 0.2s ease;
  position: relative;
}

.heatmap-cell.level-0 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.light-theme .heatmap-cell.level-0 {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.heatmap-cell.level-1 {
  background: linear-gradient(135deg, #00d8ff 0%, #8b5cf6 100%);
  border: 1px solid #00d8ff;
  box-shadow: 0 0 8px rgba(0, 216, 255, 0.6);
}

.light-theme .heatmap-cell.level-1 {
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  border: 1px solid #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.45);
}

.heatmap-cell.is-today {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 1px;
}

.heatmap-cell.is-future {
  opacity: 0.2;
  pointer-events: none;
}

.heatmap-cell:not(.is-future):hover {
  transform: scale(1.45);
  z-index: 10;
  border-color: #ffffff;
  box-shadow: 0 0 14px var(--accent-cyan);
}

/* 4. Heatmap Footer & Legend */
.heatmap-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.light-theme .heatmap-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.heatmap-summary-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* 5. Tooltip Styling */
.streak-tooltip {
  position: fixed;
  z-index: 1000000;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--accent-cyan);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 216, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -100%) translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  white-space: nowrap;
}

.light-theme .streak-tooltip {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15), 0 0 12px rgba(2, 132, 199, 0.25);
}

.streak-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -100%) translateY(-10px);
}

.tooltip-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 2px;
}

.tooltip-body {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Responsive Rules for Streak Section */
@media (max-width: 992px) {
  .streak-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .streak-metrics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .streak-metric-card {
    padding: 16px 18px;
  }
  
  .streak-heatmap-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  
  .heatmap-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .heatmap-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

