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

:root {
  --primary-blue: #0f2942;
  --primary-blue-rgb: 15, 41, 66;
  --accent-orange: #ff7a00;
  --accent-orange-rgb: 255, 122, 0;
  --trust-green: #10b981;
  --trust-green-rgb: 16, 185, 129;
  
  --font-headings: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: #fafbfc;
  color: #1e293b;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid #f8fafc;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Cards & Panels */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.015), 
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    0 10px 40px -10px rgba(var(--primary-blue-rgb), 0.04);
}

.glass-card-dark {
  background: rgba(15, 41, 66, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.05),
    0 20px 50px -10px rgba(0, 0, 0, 0.3);
}

/* Premium Glass Navbar */
.glass-header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 4px 20px -5px rgba(var(--primary-blue-rgb), 0.05),
    0 1px 0 rgba(226, 232, 240, 0.8);
  border-bottom-color: rgba(226, 232, 240, 0.5);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Grid overlay background pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.25) 1px, transparent 1px);
}

/* Elegant Text Fills */
.text-gradient-primary {
  background: linear-gradient(135deg, #0f2942 0%, #1e40af 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #ff7a00 0%, #f97316 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 70%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #1e40af 0%, #0f2942 60%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Micro-animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

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

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Custom Interactive Card Styles */
.premium-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 60px -15px rgba(var(--primary-blue-rgb), 0.08),
    0 15px 30px -10px rgba(var(--primary-blue-rgb), 0.04);
}

.premium-card:hover::before {
  background: linear-gradient(135deg, rgba(var(--accent-orange-rgb), 0.6), rgba(var(--primary-blue-rgb), 0.1));
}

/* Floating WhatsApp / Contact design */
.floating-btn {
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 16px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-btn:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 
    0 20px 35px -5px rgba(0, 0, 0, 0.15),
    0 10px 20px -8px rgba(0, 0, 0, 0.1);
}

/* Input Fields Glow Focus */
.input-premium {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-premium:focus {
  background: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 
    0 0 0 4px rgba(var(--accent-orange-rgb), 0.15),
    0 4px 12px -2px rgba(var(--accent-orange-rgb), 0.05);
}

/* Sub-nav Dropdown Animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up-fade {
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* SVG waves style styling */
.svg-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.svg-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
}

/* Glow dots */
.glow-dot-orange {
  box-shadow: 0 0 20px 5px rgba(var(--accent-orange-rgb), 0.4);
}

.glow-dot-blue {
  box-shadow: 0 0 20px 5px rgba(var(--primary-blue-rgb), 0.3);
}

.glow-dot-green {
  box-shadow: 0 0 20px 5px rgba(var(--trust-green-rgb), 0.4);
}

/* Full Mobile Responsiveness & Animated Hamburger Menu */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
}

/* Animated Mobile Hamburger Overlay & Off-Canvas Drawer */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  display: flex;
  justify-content: flex-end;
}

#mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Off-canvas Mobile Drawer Slide-in Animation */
#mobile-menu > div {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#mobile-menu.is-open > div {
  transform: translateX(0);
}

/* Staggered Navigation Link Entrance */
#mobile-menu .mobile-nav-link,
#mobile-menu #courses-mobile-trigger,
#mobile-menu .mt-auto {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#mobile-menu.is-open .mobile-nav-link,
#mobile-menu.is-open #courses-mobile-trigger,
#mobile-menu.is-open .mt-auto {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for mobile drawer links */
#mobile-menu.is-open nav > a:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu.is-open nav > a:nth-child(2) { transition-delay: 0.12s; }
#mobile-menu.is-open nav > div:nth-child(3) { transition-delay: 0.16s; }
#mobile-menu.is-open nav > a:nth-child(4) { transition-delay: 0.20s; }
#mobile-menu.is-open nav > a:nth-child(5) { transition-delay: 0.24s; }
#mobile-menu.is-open nav > a:nth-child(6) { transition-delay: 0.28s; }
#mobile-menu.is-open nav > a:nth-child(7) { transition-delay: 0.32s; }
#mobile-menu.is-open .mt-auto { transition-delay: 0.36s; }

/* Hamburger Icon Rotation & Scale Micro-Animation */
#mobile-menu-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

#mobile-menu-btn i {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mobile-menu-btn.active i {
  transform: rotate(90deg) scale(1.15);
}

#mobile-menu-close-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
}

#mobile-menu-close-btn:hover {
  transform: rotate(90deg) scale(1.15);
}

/* Testimonial Card Animations & Bidirectional Dual-Row Marquee */
@keyframes marquee-scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.marquee-track-left {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll-left 36s linear infinite;
  will-change: transform;
}

.marquee-track-right {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll-right 36s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-track-left,
.marquee-container:hover .marquee-track-right {
  animation-play-state: paused;
}

.testimonial-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.08), transparent);
  transition: left 0.75s ease;
  pointer-events: none;
}

.testimonial-card:hover::before {
  left: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 45px -10px rgba(255, 122, 0, 0.15), 0 10px 25px -5px rgba(15, 41, 66, 0.08);
}

/* Responsive typography & element scale safeguards for small devices (320px - 480px) */
@media (max-width: 640px) {
  .hero-tab-btn {
    font-size: 10px;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  
  .glass-card, .premium-card {
    border-radius: 1.25rem;
  }
}
