@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* =====================================================================
   KLARICE ACADEMY — SOPHISTICATED NOCTURNAL GRADIENT SYSTEM
   Atmospheric Educational Architecture Inspired by Official Emblem:
   • Midnight: #0B0712
   • Deep Plum: #120916
   • Plum: #1B0B1D
   • Burgundy Plum: #260D24
   • Deep Violet: #160D27
   • Midnight Indigo: #0B1020
   • Almost-Black Footer: #08040B
   
   Subtle Accent Lights:
   • Magenta: #FF2BB5
   • Violet: #C83DFF
   • Indigo: #6D5CFF
   ===================================================================== */

:root {
  /* Nocturnal Base Palette */
  --bg-midnight: #0B0712;
  --bg-deep-plum: #120916;
  --bg-plum: #1B0B1D;
  --bg-burgundy-plum: #260D24;
  --bg-deep-violet: #160D27;
  --bg-midnight-indigo: #0B1020;
  --bg-footer-dark: #08040B;

  /* Legacy aliases mapped gracefully */
  --bg-primary: var(--bg-midnight);
  --bg-darker: var(--bg-deep-plum);
  
  /* Adaptive Glass Layers */
  --bg-card: rgba(255, 255, 255, 0.032);
  --bg-card-hover: rgba(255, 255, 255, 0.058);
  --bg-surface: rgba(255, 255, 255, 0.04);
  
  /* Accent Light Tones */
  --accent-magenta: #FF2BB5;
  --accent-violet: #C83DFF;
  --accent-indigo: #6D5CFF;
  
  /* Brand Constants */
  --navy-blue: #1825D8;
  --violet: #6A20F0;
  --magenta: #F20BC8;
  --pink-accent: #FF0BCB;
  
  --text-white: #F8F5F7;
  --text-muted: #D1B8C5;
  --text-dim: #9C8898;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(200, 61, 255, 0.35);
  --border-seam: rgba(255, 255, 255, 0.05);
  
  --gradient-brand: linear-gradient(135deg, #1825D8 0%, #6A20F0 35%, #C83DFF 70%, #FF2BB5 100%);
  --gradient-hover: linear-gradient(135deg, #2432e6 0%, #7d35ff 35%, #d45aff 70%, #ff42c0 100%);
  --gradient-text: linear-gradient(135deg, #FFA8EC 0%, #FF2BB5 45%, #C83DFF 80%, #9B8CFF 100%);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-white);
  background-color: var(--bg-midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Starfield & Ambient Glow Canvas */
#cosmic-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* =====================================================================
   ATMOSPHERIC SECTION FLOW SYSTEM
   Visual flow: Midnight → Plum → Burgundy Plum → Violet Plum → 
                Midnight Indigo → Deep Plum → Almost-black Footer
   ===================================================================== */
.bg-flow-midnight {
  background-color: var(--bg-midnight);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(200, 61, 255, 0.10), transparent),
    radial-gradient(ellipse 70% 45% at 90% 50%, rgba(109, 92, 255, 0.08), transparent);
}

.bg-flow-plum {
  background-color: var(--bg-plum);
  background-image: 
    radial-gradient(ellipse 80% 55% at 15% 30%, rgba(255, 43, 181, 0.075), transparent),
    radial-gradient(ellipse 70% 45% at 85% 75%, rgba(200, 61, 255, 0.06), transparent);
}

.bg-flow-burgundy-plum {
  background-color: var(--bg-burgundy-plum);
  background-image: 
    radial-gradient(ellipse 85% 50% at 50% 0%, rgba(255, 43, 181, 0.08), transparent),
    radial-gradient(ellipse 75% 55% at 80% 60%, rgba(109, 92, 255, 0.065), transparent);
}

.bg-flow-violet {
  background-color: var(--bg-deep-violet);
  background-image: 
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(109, 92, 255, 0.10), transparent),
    radial-gradient(ellipse 70% 45% at 80% 70%, rgba(200, 61, 255, 0.085), transparent);
}

.bg-flow-indigo {
  background-color: var(--bg-midnight-indigo);
  background-image: 
    radial-gradient(ellipse 90% 55% at 50% 15%, rgba(109, 92, 255, 0.11), transparent),
    radial-gradient(ellipse 70% 45% at 15% 85%, rgba(200, 61, 255, 0.065), transparent);
}

.bg-flow-deep-plum {
  background-color: var(--bg-deep-plum);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 43, 181, 0.085), transparent),
    radial-gradient(ellipse 70% 45% at 80% 25%, rgba(200, 61, 255, 0.06), transparent);
}

.bg-flow-footer {
  background-color: var(--bg-footer-dark);
  background-image: 
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(109, 92, 255, 0.05), transparent);
}

/* Subtle, organic section seam transitions */
.section-seam {
  border-bottom: 1px solid var(--border-seam);
  position: relative;
}

.section-seam::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 61, 255, 0.22) 30%, rgba(255, 43, 181, 0.28) 50%, rgba(109, 92, 255, 0.22) 70%, transparent);
  pointer-events: none;
}

/* Atmospheric Glow Accents */
.atmospheric-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.atmospheric-glow-magenta {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 43, 181, 0.12) 0%, rgba(200, 61, 255, 0.04) 50%, transparent 70%);
}

.atmospheric-glow-violet {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(200, 61, 255, 0.13) 0%, rgba(109, 92, 255, 0.05) 50%, transparent 70%);
}

.atmospheric-glow-indigo {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(109, 92, 255, 0.12) 0%, rgba(24, 37, 216, 0.05) 50%, transparent 70%);
}

/* Hero Watermark & Ring Motif */
.hero-watermark {
  font-family: 'Playfair Display', Georgia, serif;
  position: absolute;
  font-size: clamp(6rem, 16vw, 15rem);
  font-style: italic;
  font-weight: 700;
  color: rgba(255, 43, 181, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: 8%;
  left: -2%;
  white-space: nowrap;
}

.orbital-ring {
  position: absolute;
  border: 1px dashed rgba(200, 61, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  animation: orbitRotate 70s linear infinite;
}

.orbital-ring-1 {
  width: 650px;
  height: 650px;
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
}

.orbital-ring-2 {
  width: 450px;
  height: 450px;
  top: 20%;
  left: -100px;
  border-color: rgba(109, 92, 255, 0.11);
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =====================================================================
   HERO CELESTIAL PLANETARY SYSTEM
   Subtle, futuristic space background effect inspired by reference style.
   Dimmed, low-contrast blue glowing planets with delicate gold orbital rings.
   Never overlaps readable text or CTA elements.
   ===================================================================== */
.hero-planetary-system {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  user-select: none;
}

/* Individual planet wrappers */
.hero-planet {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
  opacity: 0.65;
  transition: opacity 0.5s ease;
  will-change: transform;
}

/* Planet 1: Ringed Azure Giant - Top-Left Margin (Safe from eyebrow/title) */
.hero-planet-1 {
  top: 6%;
  left: 2.5%;
  width: 54px;
  height: 54px;
  animation: planetOrbitMotion1 46s ease-in-out infinite alternate;
}

/* Planet 2: Sapphire Pebble - Top-Center Gap (Between text & image columns) */
.hero-planet-2 {
  top: 4.5%;
  left: 47%;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.45));
  animation: planetOrbitMotion2 38s ease-in-out infinite alternate;
}

/* Planet 3: Golden-Ringed Blue Giant - Top-Right Outer Margin */
.hero-planet-3 {
  top: 5.5%;
  right: 2.8%;
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 0 14px rgba(37, 99, 235, 0.42));
  animation: planetOrbitMotion3 56s ease-in-out infinite alternate;
}

/* Planet 4: Deep Cyan Gas Dwarf - Far-Right Mid Margin (Past photo card) */
.hero-planet-4 {
  top: 52%;
  right: 1.5%;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  animation: planetOrbitMotion4 42s ease-in-out infinite alternate;
}

/* Planet 5: Ice Blue Ringed World - Bottom-Left Margin (Below stats, far left) */
.hero-planet-5 {
  bottom: 7%;
  left: 2.5%;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.35));
  animation: planetOrbitMotion5 50s ease-in-out infinite alternate;
}

/* Planet 6: Electric Blue Spark - Bottom Center Gap */
.hero-planet-6 {
  bottom: 4%;
  left: 38%;
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 7px rgba(129, 140, 248, 0.5));
  animation: planetOrbitMotion6 34s ease-in-out infinite alternate;
}

/* Planet 7: Midnight Indigo Orb - Bottom-Right Margin */
.hero-planet-7 {
  bottom: 6%;
  right: 3.2%;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
  animation: planetOrbitMotion7 48s ease-in-out infinite alternate;
}

/* Smooth, subtle curved orbital drifting animations */
@keyframes planetOrbitMotion1 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(12px, -8px, 0) rotate(2deg); }
  66% { transform: translate3d(-6px, 10px, 0) rotate(-1deg); }
  100% { transform: translate3d(-10px, -6px, 0) rotate(3deg); }
}

@keyframes planetOrbitMotion2 {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-10px, 8px, 0); }
  100% { transform: translate3d(8px, -6px, 0); }
}

@keyframes planetOrbitMotion3 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  40% { transform: translate3d(-14px, 10px, 0) rotate(-2.5deg); }
  80% { transform: translate3d(8px, -12px, 0) rotate(2deg); }
  100% { transform: translate3d(12px, 6px, 0) rotate(-1deg); }
}

@keyframes planetOrbitMotion4 {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-8px, -10px, 0); }
  100% { transform: translate3d(6px, 12px, 0); }
}

@keyframes planetOrbitMotion5 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  45% { transform: translate3d(10px, -12px, 0) rotate(2deg); }
  100% { transform: translate3d(-8px, 8px, 0) rotate(-2deg); }
}

@keyframes planetOrbitMotion6 {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -8px, 0); }
  100% { transform: translate3d(-6px, 6px, 0); }
}

@keyframes planetOrbitMotion7 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-12px, -10px, 0) rotate(3deg); }
  100% { transform: translate3d(10px, 8px, 0) rotate(-2deg); }
}

/* Responsive Behavior for Hero Planets */
/* Tablet: 768px - 1023px: 4 planets, scaled down ~15%, strictly in outer edges */
@media (max-width: 1023px) {
  .hero-planet-2,
  .hero-planet-6,
  .hero-planet-7 {
    display: none !important;
  }
  .hero-planet-1 {
    top: 3%;
    left: 2%;
    width: 42px;
    height: 42px;
  }
  .hero-planet-3 {
    top: 3%;
    right: 2%;
    width: 52px;
    height: 52px;
  }
  .hero-planet-4 {
    top: 55%;
    right: 1.5%;
    width: 22px;
    height: 22px;
  }
  .hero-planet-5 {
    bottom: 3%;
    left: 2%;
    width: 36px;
    height: 36px;
  }
}

/* Mobile: < 768px: only 3 very small planets placed strictly in peripheral edge margins */
@media (max-width: 767px) {
  .hero-planet-1,
  .hero-planet-2,
  .hero-planet-5,
  .hero-planet-6,
  .hero-planet-7 {
    display: none !important;
  }
  .hero-planet-3 {
    top: 2%;
    right: 3%;
    width: 32px;
    height: 32px;
    opacity: 0.55;
  }
  .hero-planet-4 {
    top: 48%;
    left: 1.5%;
    right: auto;
    width: 16px;
    height: 16px;
    opacity: 0.5;
  }
  .hero-planet-mobile-bottom {
    display: block !important;
    bottom: 2%;
    right: 3%;
    width: 20px;
    height: 20px;
    opacity: 0.5;
  }
}

@media (min-width: 768px) {
  .hero-planet-mobile-bottom {
    display: none !important;
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-planet {
    animation: none !important;
  }
}


/* Watermark text for Hero */
.hero-watermark {
  font-family: 'Playfair Display', Georgia, serif;
  position: absolute;
  font-size: clamp(6rem, 16vw, 15rem);
  font-style: italic;
  font-weight: 700;
  color: rgba(242, 11, 200, 0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: 8%;
  left: -2%;
  white-space: nowrap;
}

/* Button styles */
.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 0.75rem 1.85rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -4px rgba(242, 11, 200, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(255, 11, 203, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.75rem 1.85rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(242, 11, 200, 0.15);
  border-color: var(--pink-accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(242, 11, 200, 0.25);
}

.btn-ghost-dark {
  background: rgba(34, 10, 20, 0.7);
  color: var(--text-white);
  border: 1px solid rgba(242, 11, 200, 0.25);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.btn-ghost-dark:hover {
  background: rgba(242, 11, 200, 0.2);
  border-color: var(--pink-accent);
  transform: translateY(-2px);
  color: #fff;
}

/* Card aesthetics (Adaptive Nocturnal Glass) */
.card-cosmic {
  background: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-cosmic:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.75), 0 0 24px -4px rgba(200, 61, 255, 0.18);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

/* Mouse-following radiant aura inside cards */
.card-cosmic::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 61, 255, 0.12) 0%, rgba(109, 92, 255, 0.05) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card-base {
  background: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-base:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 18px 40px -6px rgba(0, 0, 0, 0.65), 0 0 20px -4px rgba(200, 61, 255, 0.16);
  background: var(--bg-card-hover);
}

/* Navigation Links */
.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--pink-accent);
  font-weight: 600;
}

/* Badge styles */
.badge-category {
  background: rgba(106, 32, 240, 0.25);
  color: #C4B5FD;
  border: 1px solid rgba(106, 32, 240, 0.45);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-cert {
  background: rgba(242, 11, 200, 0.2);
  color: #FF8CF0;
  border: 1px solid rgba(242, 11, 200, 0.4);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.badge-sslcm {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-purple {
  background: rgba(106, 32, 240, 0.2);
  color: #DDD6FE;
  border: 1px solid rgba(106, 32, 240, 0.4);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Quick Spec Cards */
.spec-card {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.spec-card:hover {
  border-color: var(--accent-violet);
  background: rgba(255, 255, 255, 0.06);
}

.spec-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-magenta);
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-white);
}

/* Accordion transition */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
}

.faq-content.open {
  max-height: 500px;
}

/* Modal styles */
.modal-overlay {
  background-color: rgba(8, 4, 11, 0.88);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #120916;
  border: 1px solid rgba(200, 61, 255, 0.25);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B0712;
}
::-webkit-scrollbar-thumb {
  background: #260D24;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3B1538;
}

/* Reveal Animations */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.93);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[data-reveal] {
  opacity: 0;
}

[data-reveal].revealed {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

[data-reveal="up"].revealed { animation-name: revealUp; }
[data-reveal="scale"].revealed { animation-name: revealScale; }
[data-reveal="left"].revealed { animation-name: revealLeft; }
[data-reveal="right"].revealed { animation-name: revealRight; }

/* Staggered children animation delays */
[data-reveal-stagger] > * {
  opacity: 0;
}

[data-reveal-stagger].revealed > * {
  animation-name: revealUp;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

[data-reveal-stagger].revealed > *:nth-child(1) { animation-delay: 0.05s; }
[data-reveal-stagger].revealed > *:nth-child(2) { animation-delay: 0.12s; }
[data-reveal-stagger].revealed > *:nth-child(3) { animation-delay: 0.19s; }
[data-reveal-stagger].revealed > *:nth-child(4) { animation-delay: 0.26s; }
[data-reveal-stagger].revealed > *:nth-child(5) { animation-delay: 0.33s; }
[data-reveal-stagger].revealed > *:nth-child(6) { animation-delay: 0.40s; }
[data-reveal-stagger].revealed > *:nth-child(7) { animation-delay: 0.47s; }
[data-reveal-stagger].revealed > *:nth-child(8) { animation-delay: 0.54s; }

/* Back-to-Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(242, 11, 200, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background: var(--gradient-hover);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 14px 32px -4px rgba(255, 11, 203, 0.6);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 41;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px -2px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 12px 28px -2px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.25);
  animation: whatsappPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0; }
}

.whatsapp-float .wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #260B15;
  color: #FFFFFF;
  border: 1px solid rgba(242, 11, 200, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #220A14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(242, 11, 200, 0.15);
  border-top-color: #6A20F0;
  border-right-color: #FF0BCB;
  animation: preloaderSpin 0.8s linear infinite;
}

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

.preloader-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  text-align: center;
}

.preloader-text span {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--pink-accent);
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}

/* =====================================================================
   ARTICLE / BLOG HUB — FILTER TABS & ARTICLE STYLES
   ===================================================================== */

/* Category filter tabs on the blog hub */
.article-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #D1B8C5;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.article-filter-tab:hover {
  border-color: rgba(255,43,181,0.25);
  color: #fff;
  background: rgba(255,43,181,0.06);
}

.article-filter-tab.active {
  border-color: rgba(255,43,181,0.4);
  background: rgba(255,43,181,0.12);
  color: #FF2BB5;
}

/* Article prose content styling */
.article-prose p,
.article-prose div {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.75;
}

.article-prose strong {
  color: #F8F5F7;
  font-weight: 600;
}

/* Line-clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article card transition */
.article-card {
  transition: transform 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
}
