@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- PREMIUM LIGHT THEME COMPLEMENTING TAILWIND --- */

:root {
  --primary-navy: #030F26;
  --primary-blue: #0055ff;
  --primary-cyan: #00d2ff;
  --accent-gold: #FFB300;
  
  /* Physical Easing Spring Curve */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Base resets */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF; /* Crisp White Background */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom selection */
::selection {
  background: rgba(0, 85, 255, 0.1);
  color: #0055ff;
}

/* Premium Thin Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0055ff;
}

/* Noise overlay texture */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.008; /* Extremely low opacity on white to stay crisp */
  z-index: 9999;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Moving Ambient Glow Circles for Light Theme */
.glow-mesh {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.07; /* Low opacity on white for soft pastel ambient light */
  mix-blend-mode: multiply;
  animation: floatAmbient 20s infinite ease-in-out;
}

.gc-blue {
  background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
  width: 700px;
  height: 700px;
  top: -150px;
  right: -150px;
  animation-delay: 0s;
}

.gc-cyan {
  background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
  width: 600px;
  height: 600px;
  top: 30%;
  left: -200px;
  animation-delay: -5s;
}

.gc-slate {
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  width: 500px;
  height: 500px;
  bottom: 10%;
  right: -100px;
  animation-delay: -10s;
}

/* Infinite Marquee Loop for Tools */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  min-width: 100%;
  gap: 4rem;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* 3D Perspective Grid Card systems */
.perspective-3d {
  perspective: 1000px;
}

.card-tilt-wrapper {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  transform-style: preserve-3d;
}

.card-tilt-inner {
  transform: translateZ(30px);
}

/* Premium Light Mode Glassmorphism (Stripe/Linear-inspired) */
.premium-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px -10px rgba(0, 85, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.premium-glass-light {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Animated custom border glow */
.border-glow-hover {
  position: relative;
}

.border-glow-hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-glow-hover:hover::after {
  opacity: 1;
}

/* Staggered Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring), filter 0.8s var(--ease-spring);
}

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

/* Keyframes */
@keyframes scrollMarquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@keyframes floatAmbient {
  0% { transform: translateY(0px) scale(1) rotate(0deg); }
  33% { transform: translateY(-50px) scale(1.1) rotate(60deg); }
  66% { transform: translateY(20px) scale(0.95) rotate(-60deg); }
  100% { transform: translateY(0px) scale(1) rotate(0deg); }
}

/* Pulse Glows */
.pulse-glow {
  box-shadow: 0 0 50px 10px rgba(0, 85, 255, 0.05);
  animation: pulseGlowAnimation 4s infinite ease-in-out;
}

@keyframes pulseGlowAnimation {
  0% { box-shadow: 0 0 50px 10px rgba(0, 85, 255, 0.05); }
  50% { box-shadow: 0 0 70px 25px rgba(0, 210, 255, 0.1); }
  100% { box-shadow: 0 0 50px 10px rgba(0, 85, 255, 0.05); }
}

/* Learning roadmap path link lines */
.roadmap-line {
  background: linear-gradient(to right, transparent, rgba(0, 85, 255, 0.2), rgba(0, 210, 255, 0.2), transparent);
}

/* Customized interactive checkbox styles */
.custom-checkbox {
  appearance: none;
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 9px;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.custom-checkbox:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.custom-checkbox:checked::after {
  content: '\2714';
  font-size: 11px;
  color: white;
  position: absolute;
  top: 1px;
  left: 3px;
}

/* --- DARK MODE CORE OVERRIDES --- */
.dark {
  background-color: #070a13;
  color: #f1f5f9;
}

.dark body {
  background-color: #070a13;
  color: #f1f5f9;
}

.dark .bg-white {
  background-color: #0b0f19 !important;
}

.dark .bg-slate-50 {
  background-color: #080c14 !important;
}

.dark .bg-slate-50\/50 {
  background-color: rgba(8, 12, 20, 0.5) !important;
}

.dark .text-slate-900 {
  color: #ffffff !important;
}

.dark .text-slate-800 {
  color: #f1f5f9 !important;
}

.dark .text-slate-700 {
  color: #cbd5e1 !important;
}

.dark .text-gray-700 {
  color: #cbd5e1 !important;
}

.dark .text-gray-600 {
  color: #94a3b8 !important;
}

.dark .text-gray-500 {
  color: #64748b !important;
}

.dark .border-slate-100 {
  border-color: #1e293b !important;
}

.dark .border-slate-200 {
  border-color: #1e293b !important;
}

.dark .border-slate-200\/60 {
  border-color: rgba(30, 41, 59, 0.6) !important;
}

.dark .border-slate-200\/80 {
  border-color: rgba(30, 41, 59, 0.8) !important;
}

.dark .bg-slate-100 {
  background-color: #1e293b !important;
}

.dark .hover\:bg-slate-200:hover {
  background-color: #334155 !important;
}

.dark .text-slate-600 {
  color: #94a3b8 !important;
}

.dark .premium-glass {
  background: rgba(11, 15, 25, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(255, 255, 255, 0.01) !important;
}

.dark .premium-glass-light {
  background: rgba(11, 15, 25, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Modal overlay fixes in dark mode */
.dark .modal-box {
  background: #0b0f19 !important;
  border-color: #1e293b !important;
}

.dark input, .dark select, .dark textarea {
  background-color: #070a13 !important;
  border-color: #1e293b !important;
  color: #f1f5f9 !important;
}

/* Tooltip and dropdown hover fixes */
.dark .hover\:text-slate-900:hover {
  color: #ffffff !important;
}

/* Custom checkbox in dark mode */
.dark .custom-checkbox {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .custom-checkbox:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* --- 3D PERSPECTIVE SYSTEM STYLES --- */
.grid-3d {
  perspective: 800px;
  perspective-origin: 50% 100%;
}

.grid-3d-inner {
  position: absolute;
  top: 0;
  left: -50%;
  right: -50%;
  height: 200%;
  background-image: linear-gradient(rgba(0, 85, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 85, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(70deg);
  transform-origin: center top;
  animation: gridScroll 45s linear infinite;
}

.dark .grid-3d-inner {
  background-image: linear-gradient(rgba(0, 85, 255, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 85, 255, 0.08) 1px, transparent 1px);
}

@keyframes gridScroll {
  0% { transform: rotateX(70deg) translateY(0); }
  100% { transform: rotateX(70deg) translateY(50px); }
}

/* 3D Bevel Button Presses */
.btn-primary, .btn-accent {
  position: relative;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease-spring) !important;
  transform-style: preserve-3d;
}

.btn-primary {
  box-shadow: 0 4px 0 #0044cc, 0 10px 20px -5px rgba(0, 85, 255, 0.25) !important;
}

.btn-primary:active {
  transform: translateY(3px) scale(0.98) !important;
  box-shadow: 0 1px 0 #0044cc, 0 5px 10px -5px rgba(0, 85, 255, 0.25) !important;
}

.btn-accent {
  box-shadow: 0 4px 0 #d97706, 0 10px 20px -5px rgba(255, 179, 0, 0.25) !important;
}

.btn-accent:active {
  transform: translateY(3px) scale(0.98) !important;
  box-shadow: 0 1px 0 #d97706, 0 5px 10px -5px rgba(255, 179, 0, 0.25) !important;
}


