/* ==========================================================================
   English With Emrose — Premium Stylesheet & Animations
   ========================================================================== */

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

:root {
  --font-bangla: 'Hind Siliguri', sans-serif;
  --font-heading: 'Baloo Da 2', 'Hind Siliguri', cursive;
  --font-en: 'Plus Jakarta Sans', sans-serif;

  --navy-dark: #071E33;
  --navy-primary: #0A2C4E;
  --navy-light: #0E3A66;
  --sun-gold: #F9D949;
  --sun-deep: #F2C400;
  --cyan-bright: #22C3E6;
  --crimson-red: #E4002B;
  --bc-purple: #2A0A5A;
  --emerald-green: #10B981;
  --ice-bg: #F4FAFC;
  --ice-card: #FFFFFF;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-bangla);
}

body {
  background-color: var(--ice-bg);
  color: #1a232f;
  overflow-x: hidden;
  selection-background-color: #F9D949;
  selection-color: #071E33;
}

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

.font-en {
  font-family: var(--font-en);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #edf6f8;
}
::-webkit-scrollbar-thumb {
  background: #cbdfe5;
  border-radius: 999px;
  border: 2px solid #edf6f8;
}
::-webkit-scrollbar-thumb:hover {
  background: #0E3A66;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 238, 241, 0.75);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card-dark {
  background: rgba(10, 44, 78, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dynamic Highlighters */
.hl-yellow {
  background: linear-gradient(transparent 58%, rgba(249, 217, 73, 0.75) 58%, rgba(249, 217, 73, 0.75) 92%, transparent 92%);
  padding: 0 0.2em;
  display: inline-block;
  border-radius: 4px;
}

.hl-cyan {
  background: linear-gradient(transparent 58%, rgba(34, 195, 230, 0.4) 58%, rgba(34, 195, 230, 0.4) 92%, transparent 92%);
  padding: 0 0.2em;
  display: inline-block;
  border-radius: 4px;
}

/* Grid Patterns & Ambient Backgrounds */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(14, 58, 102, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 58, 102, 0.04) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(14, 58, 102, 0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Keyframe Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-0.8deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 217, 73, 0.6);
  }
  50% {
    box-shadow: 0 0 25px 6px rgba(249, 217, 73, 0.25);
  }
}

@keyframes pulseRed {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.75;
  }
}

@keyframes marqueeSlow {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite;
}

.animate-pulse-dot {
  animation: pulseRed 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeSlow 32s linear infinite;
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in,
.reveal-left.in,
.reveal-right.in,
.reveal-zoom.in {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Interactive Hover Cards with 3D Depth */
.card-hover {
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(10, 44, 78, 0.15), 0 10px 15px -8px rgba(10, 44, 78, 0.08);
}

/* Premium Button Hover */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.btn-premium:hover::after {
  animation: shimmer 0.85s ease-in-out;
}
.btn-premium:hover {
  transform: translateY(-2px);
}

/* Accordion Smooth Expand */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  opacity: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Lightbox Modal */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.show {
  opacity: 1;
  visibility: visible;
}

