/* ==========================================================================
   EduFlow Standalone Cloudflare Homepage Stylesheet
   Modern Glassmorphism, Cyber-SaaS Dark Obsidian Aesthetics & Advanced Animations
   ========================================================================== */

:root {
  --bg-obsidian: #06080e;
  --bg-surface: #0b101b;
  --bg-card: rgba(15, 23, 42, 0.65);
  
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-400: #818cf8;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-obsidian);
  color: #f1f5f9;
  min-height: 100vh;
  position: relative;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* --------------------------------------------------------------------------
   Ambient Glowing Orbs
   -------------------------------------------------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  top: -100px;
  left: 20%;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  top: 30%;
  right: -50px;
  animation-duration: 25s;
  animation-delay: -5s;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  bottom: 10%;
  left: -100px;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.08); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

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

/* --------------------------------------------------------------------------
   Typography & Gradients
   -------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 40%, #38bdf8 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 200% auto;
  animation: shimmerGradient 8s ease infinite;
}

@keyframes shimmerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --------------------------------------------------------------------------
   Glassmorphic Cards
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(99, 102, 241, 0.25), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

/* --------------------------------------------------------------------------
   Navigation Bar Glass
   -------------------------------------------------------------------------- */
#navbar.scrolled {
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Interactive Tab Switcher
   -------------------------------------------------------------------------- */
.preview-tab.active {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* --------------------------------------------------------------------------
   Form Styles
   -------------------------------------------------------------------------- */
.form-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  padding: 0.875rem 1.125rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-500);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-input::placeholder {
  color: #64748b;
}

select.form-input {
  cursor: pointer;
}

select.form-input option {
  background: #0f172a;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease forwards;
}

/* Scroll Reveal Elements */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06080e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
