/* =============================================
   GuideSL — Coming Soon | Natural Sri Lanka Theme
   ============================================= */

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

:root {
  /* Nature Palette */
  --gold:        #f59e0b;
  --gold-light:  #fcd34d;
  --gold-dark:   #d97706;
  --amber:       #f97316;
  --teal:        #0d9488;
  --teal-light:  #14b8a6;

  /* Forest Greens */
  --forest-dark:  #071a0e;
  --forest-deep:  #0b2213;
  --forest-mid:   #0f2d18;
  --forest-green: #134d22;
  --leaf:         #1a6b2e;

  /* Warm Naturals */
  --bark:       #3d2b1f;
  --sand:       #d4a96a;
  --cream:      #fef3dc;
  --white:      #ffffff;

  /* Glass — warm tinted */
  --glass:        rgba(255, 243, 210, 0.05);
  --glass-warm:   rgba(245, 158, 11, 0.08);
  --glass-green:  rgba(20, 107, 46, 0.12);
  --glass-border: rgba(212, 169, 106, 0.18);
  --glass-border-green: rgba(20, 107, 46, 0.25);

  --shadow:     0 25px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--forest-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─────────────────────────────────────────────
   BACKGROUND — Deep Jungle with Ambient Light
   ───────────────────────────────────────────── */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    /* Top-left: soft morning sunlight filtering through canopy */
    radial-gradient(ellipse 70% 60% at 5% 0%,   rgba(245, 158, 11, 0.18) 0%, transparent 65%),
    /* Bottom-right: golden sunset glow */
    radial-gradient(ellipse 60% 55% at 95% 100%, rgba(249, 115, 22, 0.15) 0%, transparent 60%),
    /* Center: deep jungle heart */
    radial-gradient(ellipse 80% 70% at 50% 55%,  rgba(13, 77, 34, 0.35)  0%, transparent 70%),
    /* Far right: teal ocean shimmer */
    radial-gradient(ellipse 40% 40% at 90% 40%,  rgba(13, 148, 136, 0.12) 0%, transparent 60%),
    /* Base forest floor gradient */
    linear-gradient(170deg, #071a0e 0%, #0b2213 35%, #0d1e10 65%, #070f08 100%);
}

/* Grain / natural texture overlay */
.bg-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
}

/* Canopy vignette — dark edges like looking up through trees */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(4, 10, 6, 0.65) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────────────────
   PARTICLES — Fireflies / Pollen / Dust Motes
   ───────────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: firefly ease-in-out infinite;
  opacity: 0;
}

@keyframes firefly {
  0%   { transform: translateY(0)   translateX(0)   scale(0.5); opacity: 0;   }
  20%  { opacity: 1; }
  50%  { transform: translateY(-60px) translateX(30px)  scale(1);   opacity: 0.9; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(-120px) translateX(-20px) scale(0.3); opacity: 0; }
}

/* ─────────────────────────────────────────────
   FLOATING EMOJIS — Gentle Canopy Sway
   ───────────────────────────────────────────── */
.float-el {
  position: fixed;
  font-size: 1.8rem;
  opacity: 0.1;
  animation: canopy-sway ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  filter: blur(0.5px);
}

.float-1 { top: 8%;  left: 4%;   animation-duration: 9s;  animation-delay: 0s;   }
.float-2 { top: 15%; right: 6%;  animation-duration: 12s; animation-delay: 1.2s; }
.float-3 { bottom: 28%; left: 3%; animation-duration: 10s; animation-delay: 2.4s; }
.float-4 { top: 55%; right: 4%;  animation-duration: 14s; animation-delay: 0.6s; }
.float-5 { bottom: 12%; right: 9%; animation-duration: 11s; animation-delay: 3.1s; }
.float-6 { top: 72%; left: 6%;   animation-duration: 13s; animation-delay: 1.8s; }

@keyframes canopy-sway {
  0%, 100% { transform: translateY(0)    rotate(-4deg) scale(1);    }
  33%       { transform: translateY(-18px) rotate(3deg)  scale(1.05); }
  66%       { transform: translateY(-10px) rotate(-2deg) scale(0.97); }
}

/* ─────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* Subtle root/vine decorative line */
.container::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent,
    rgba(212, 169, 106, 0.12) 15%,
    rgba(245, 158, 11, 0.1)   50%,
    rgba(20, 107, 46, 0.12)   85%,
    transparent
  );
  pointer-events: none;
  z-index: -1;
}

/* ─────────────────────────────────────────────
   HEADER / LOGO
   ───────────────────────────────────────────── */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  animation: slideDown 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.45));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.logo-icon:hover { transform: scale(1.12) rotate(-6deg); }

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 11px;
}

.logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}

.badge {
  background: var(--glass-green);
  border: 1px solid var(--glass-border-green);
  backdrop-filter: blur(14px);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(200, 240, 200, 0.8);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────── */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

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

.tag-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  padding: 0.45rem 1.25rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(252, 211, 77, 0.9);
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.8); transform: scale(1); }
  50%       { box-shadow: 0 0 0 7px rgba(245,158,11,0); transform: scale(1.25); }
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0,0,0,0.6), 0 0 80px rgba(245,158,11,0.08);
}

.title-italic {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 0.1em;
}

.subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.12rem);
  font-weight: 400;
  color: rgba(220, 240, 220, 0.55);
  line-height: 1.8;
  max-width: 580px;
}

.subtitle strong {
  color: rgba(220, 240, 220, 0.9);
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   FEATURE PILLS — Leaf-like organic style
   ───────────────────────────────────────────── */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 640px;
  margin-top: 0.4rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--glass-green);
  border: 1px solid var(--glass-border-green);
  backdrop-filter: blur(12px);
  /* Slightly asymmetric radius = organic leaf feel */
  border-radius: 6px 20px 20px 6px;
  padding: 0.48rem 1.15rem 0.48rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(195, 235, 195, 0.8);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}

.feature-pill:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  border-radius: 20px 6px 6px 20px;
  transform: translateY(-3px) scale(1.03);
  color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.feature-icon { font-size: 1rem; }

/* ─────────────────────────────────────────────
   COUNTDOWN — Bamboo / Stone tablet style
   ───────────────────────────────────────────── */
.countdown-section {
  text-align: center;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

.countdown-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 220, 200, 0.4);
  margin-bottom: 1.75rem;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  /* Warm earthy glass */
  background: linear-gradient(160deg,
    rgba(255, 243, 210, 0.06) 0%,
    rgba(13, 77, 34, 0.15)   100%
  );
  border: 1px solid rgba(212, 169, 106, 0.2);
  border-bottom: 2px solid rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 1.6rem 1.9rem;
  min-width: 105px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s;
}

/* Warm top shimmer — like sunlight on stone */
.time-block::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(252, 211, 77, 0.4), transparent);
}

/* Inner warm glow */
.time-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.time-block:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(245,158,11,0.35);
  border-bottom-color: rgba(245,158,11,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(245,158,11,0.1);
}

.time-number {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(160deg, var(--cream) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.18s ease;
  position: relative;
  z-index: 1;
}

.time-number.flip { transform: scale(1.18); }

.time-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 220, 160, 0.45);
  position: relative;
  z-index: 1;
}

.time-sep {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  animation: blink 1s step-end infinite;
  margin-bottom: 1.6rem;
  text-shadow: 0 0 20px rgba(245,158,11,0.5);
}

@keyframes blink {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.1; }
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;
  padding-top: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(180, 210, 180, 0.25);
  letter-spacing: 0.03em;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(180, 210, 180, 0.15);
}

/* ─────────────────────────────────────────────
   DIVIDER — Root line between sections
   ───────────────────────────────────────────── */
.countdown-section::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: 0 auto 2rem;
  background: linear-gradient(to right, transparent, rgba(245,158,11,0.4), transparent);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .countdown { gap: 0.35rem; }

  .time-block {
    padding: 1.1rem 1rem;
    min-width: 70px;
    border-radius: 10px;
  }

  .time-sep { font-size: 1.4rem; }

  .header { flex-direction: row; justify-content: space-between; }

  .feature-pill { border-radius: 8px 16px 16px 8px; }
}

@media (max-width: 380px) {
  .time-block { padding: 0.9rem 0.65rem; min-width: 58px; }
  .time-sep   { font-size: 1.1rem; margin-bottom: 1rem; }
}
