/* =========================================
   BTL ENTERPRISES — Premium Design System v2
   Color: Emerald (#013e37) & Champagne Gold (#ffefb3)
   Fonts: Space Grotesk (display) + Plus Jakarta Sans (body)
   ========================================= */

/* --- Design Tokens --- */
:root {
  /* Brand Colors — Emerald & Gold */
  --bg-dark: #013e37;
  --bg-darker: #012e29;
  --bg-darkest: #01231f;
  --bg-card: #024d44;
  --bg-card-hover: #035c52;
  --bg-glass: rgba(1, 62, 55, 0.85);
  --bg-glass-strong: rgba(1, 62, 55, 0.95);

  --accent-gold: #ffefb3;
  --accent-gold-bright: #fde047;
  --accent-gold-dim: rgba(255, 239, 179, 0.6);

  --border-light: rgba(255, 239, 179, 0.10);
  --border-medium: rgba(255, 239, 179, 0.22);
  --border-hover: rgba(255, 239, 179, 0.40);

  --text-primary: #f0fdf4;
  --text-secondary: #a7c4bc;
  --text-muted: #6b9989;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 0 40px rgba(255, 239, 179, 0.12);
  --shadow-glow: 0 0 60px rgba(255, 239, 179, 0.08);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 239, 179, 0.25);
  color: #fff;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Glass Header --- */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.15);
}

/* --- Typography --- */
.heading-display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.heading-section {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-card {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffefb3 0%, #fde047 40%, #ffefb3 80%, #fde047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmerGold 4s linear infinite;
}

@keyframes shimmerGold {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.label-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  color: var(--bg-darkest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(255, 239, 179, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(255, 239, 179, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 239, 179, 0.06);
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 239, 179, 0.12);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 239, 179, 0.12);
}

/* --- Cards --- */
.card-premium {
  background: linear-gradient(145deg, var(--bg-card), rgba(2, 77, 68, 0.6));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  backdrop-filter: blur(12px);
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 239, 179, 0.03), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card-premium:hover {
  border-color: var(--border-medium);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.card-premium:hover::after {
  opacity: 1;
}

.card-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  transition: all 0.4s var(--ease-out-expo);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

/* --- Section Styles --- */
.section-dark {
  background: var(--bg-darker);
}

.section-darker {
  background: var(--bg-darkest);
}

/* Gold divider line */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-dim), transparent);
  border: none;
  margin: 0;
}

/* Decorative SVG wave section separator */
.section-wave {
  position: relative;
}

.section-wave::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-dark);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

/* --- Mega Menu --- */
.megamenu-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(900px, 90vw);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s var(--ease-out-expo);
}

.nav-item-has-megamenu:hover .megamenu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.4s var(--ease-spring);
  text-decoration: none;
  animation: floatBounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Badge/Tag --- */
.badge-accent {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  background-color: rgba(255, 239, 179, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 239, 179, 0.15);
}

/* --- Mobile Navigation Drawer --- */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-darkest);
  border-left: 1px solid var(--border-light);
  z-index: 2000;
  transition: right 0.4s var(--ease-out-expo);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transition: all 0.9s var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: none !important;
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.92);
}

/* Stagger delays for sequential grid items */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
.stagger-7 { transition-delay: 0.56s; }
.stagger-8 { transition-delay: 0.64s; }

/* =========================================
   HERO ENTRANCE ANIMATIONS (page load)
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 15px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

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

.hero-animate-title {
  animation: fadeInUp 1.1s var(--ease-out-expo) 0.1s forwards;
  opacity: 0;
}

.hero-animate-subtitle {
  animation: fadeInUp 1.1s var(--ease-out-expo) 0.35s forwards;
  opacity: 0;
}

.hero-animate-buttons {
  animation: fadeInUp 1.1s var(--ease-out-expo) 0.55s forwards;
  opacity: 0;
}

.hero-animate-pills {
  animation: fadeInUp 1.1s var(--ease-out-expo) 0.75s forwards;
  opacity: 0;
}

/* Hero floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-1 {
  top: 15%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,239,179,0.08) 0%, transparent 70%);
  animation-delay: 0s;
  animation-duration: 10s;
}

.hero-orb-2 {
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253,224,71,0.06) 0%, transparent 70%);
  animation-delay: -3s;
  animation-duration: 12s;
}

.hero-orb-3 {
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,239,179,0.04) 0%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 9s;
}

/* Hero geometric decoration */
.hero-geo {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  animation: rotateSlow 60s linear infinite;
}

/* =========================================
   STAT COUNTER ANIMATION
   ========================================= */
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* =========================================
   FOOTER PREMIUM
   ========================================= */
.footer-premium {
  background: var(--bg-darkest);
  position: relative;
}

.footer-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-dim), transparent);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 239, 179, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: all 0.35s var(--ease-out-expo);
  text-decoration: none;
}

.footer-social-icon:hover {
  background: rgba(255, 239, 179, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 239, 179, 0.15);
}

/* =========================================
   PAGE BANNER HEADER
   ========================================= */
.page-banner {
  background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-darker) 100%);
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-dim), transparent);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .heading-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .heading-section {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  .card-premium {
    padding: 1.5rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* =========================================
   UTILITY ANIMATIONS
   ========================================= */
.animate-pulse-slow {
  animation: pulseGlow 4s infinite ease-in-out;
}

.animate-float {
  animation: floatBounce 3s ease-in-out infinite;
}
