/* ========================================
   FRUIT SLOTS FESTIVAL — Promo Website
   ======================================== */

:root {
  /* Colors: Primary */
  --color-green-deep: #1E6B2A;
  --color-green-leaf: #2FA84F;
  --color-lime: #8EDB3F;
  --color-gold: #F6C445;
  --color-cream: #FFF2A8;

  /* Colors: Accent / Fruit */
  --color-red: #E94F37;
  --color-orange: #FF8C42;
  --color-yellow: #F9E547;
  --color-blue: #2D7FF9;
  --color-violet: #7C4DFF;

  /* Colors: Surfaces */
  --color-board-dark: #12351A;
  --color-board-shadow: #214A25;
  --color-brown: #3A2A12;
  --color-white: #FFFFFF;
  --color-pale: #E8F5D0;

  /* Semantic */
  --color-primary: var(--color-green-leaf);
  --color-primary-dark: var(--color-green-deep);
  --color-secondary: var(--color-gold);
  --color-accent: var(--color-orange);
  --color-surface: var(--color-board-dark);
  --color-surface-alt: var(--color-board-shadow);
  --color-text-heading: var(--color-white);
  --color-text-body: var(--color-pale);
  --color-text-highlight: var(--color-cream);
  --color-cta: var(--color-orange);
  --color-cta-hover: #FF9F5C;

  /* Typography */
  --font-display: 'Lilita One', cursive;
  --font-body: 'Nunito', sans-serif;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Motion */
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 520ms;
  --easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-board-dark);
  color: var(--color-text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text-heading);
  line-height: 1.15;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--color-gold);
  text-shadow: 3px 3px 0 var(--color-green-deep), 0 0 20px rgba(246,196,69,0.5);
  -webkit-text-stroke: 1px var(--color-green-deep);
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-shadow: 2px 2px 0 var(--color-board-dark);
}

.accent-label {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  font-size: 0.875rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gold), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Navigation ---- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--duration-base) var(--easing-smooth),
              backdrop-filter var(--duration-base) var(--easing-smooth);
  padding: 1rem 0;
}

.nav-fixed.scrolled {
  background: rgba(18, 53, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  color: var(--color-pale);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color var(--duration-fast) var(--easing-smooth);
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--duration-base) var(--easing-smooth);
}

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

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  background: url('images/hero_bg.webp') center/cover no-repeat, linear-gradient(180deg, #12351A 0%, #1E6B2A 40%, #2FA84F 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,53,26,0.3) 0%, rgba(18,53,26,0.6) 50%, rgba(18,53,26,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Bunting Flags ---- */
.bunting {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 3;
  overflow: hidden;
}

.bunting svg { width: 100%; height: 60px; }

/* ---- Cards ---- */
.feature-card {
  background: rgba(18, 53, 26, 0.85);
  border: 1px solid rgba(47, 168, 79, 0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--duration-base) var(--easing-smooth),
              border-color var(--duration-base) var(--easing-smooth),
              box-shadow var(--duration-base) var(--easing-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 196, 69, 0.5);
  box-shadow: 0 8px 32px rgba(246, 196, 69, 0.15);
}

/* ---- Buttons ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #2FA84F 0%, #1E6B2A 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(246, 196, 69, 0.4);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(246, 196, 69, 0.3);
  transition: transform var(--duration-fast) var(--easing-bounce),
              box-shadow var(--duration-fast) var(--easing-smooth);
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(246, 196, 69, 0.5);
}

.btn-cta:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing-smooth),
              border-color var(--duration-fast) var(--easing-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---- Device Mockup (Screenshot Carousel) ---- */
.device-frame {
  position: relative;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(246, 196, 69, 0.3);
  background: #111;
}

.device-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Swiper Custom ---- */
.swiper-pagination-bullet {
  background: var(--color-gold) !important;
  opacity: 0.4;
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-gold) !important;
  --swiper-navigation-size: 28px;
}

/* ---- Wavy Divider ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- CTA Section ---- */
.cta-section {
  background: url('images/cta_bg.webp') center/cover no-repeat, linear-gradient(180deg, #1E6B2A, #12351A);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 53, 26, 0.7);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-brown);
}

.footer a {
  color: var(--color-pale);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer a:hover { color: var(--color-gold); }

/* ---- Privacy Button (required) ---- */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem 1.5rem;
  background: linear-gradient(to top, var(--color-board-dark) 60%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
}

.privacy-accept-btn.hidden {
  display: none;
}

.accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, #2FA84F 0%, #1E6B2A 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  border: 2px solid rgba(246, 196, 69, 0.5);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(246, 196, 69, 0.3);
  text-align: center;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius-sm);
}

/* ---- Forms ---- */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(47, 168, 79, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--duration-fast) var(--easing-smooth);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-gold);
}

.form-input::placeholder { color: rgba(232, 245, 208, 0.4); }

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

/* ---- Sparkle Particles ---- */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: 1; transform: translateY(-10px) scale(1); }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: sparkle 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Bunting Animation ---- */
@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

.bunting-flag {
  animation: sway 3s ease-in-out infinite alternate;
  transform-origin: top center;
}

/* ---- Legal Pages ---- */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-white);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-pale);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--color-gold);
  text-decoration: underline;
  text-decoration-color: rgba(246, 196, 69, 0.3);
  transition: text-decoration-color var(--duration-fast);
}

.legal-content a:hover {
  text-decoration-color: var(--color-gold);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(18, 53, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.mobile-menu a:hover { color: var(--color-gold); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-title {
    -webkit-text-stroke: 0;
  }

  .device-frame {
    max-width: 200px;
  }
}

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-green-leaf), var(--color-gold), var(--color-orange));
  z-index: 101;
  transition: width 100ms linear;
}
