/* Import Google Font: Orbitron */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap");

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Color Palette */
  --bg-dark: #0a0a0a; /* Almost black */
  --bg-card: #161616; /* Slightly lighter for cards */
  --primary-neon: #ff00ff; /* Neon Magenta */
  --secondary-neon: #00ffff; /* Electric Cyan */
  --text-white: #ffffff;
  --text-gray: #b3b3b3;

  /* Gradients */
  --gradient-main: linear-gradient(
    90deg,
    var(--secondary-neon),
    var(--primary-neon)
  );
  --gradient-text: linear-gradient(45deg, #fff, var(--secondary-neon));

  /* Spacing */
  --container-padding: 1.5rem;
  --max-width: 1200px;

  /* Fonts */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /*scroll-behavior: smooth;*/
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section Padding Utility */
.section-padding {
  padding: 80px 0;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-white);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

/* Neon Text Effect */
.neon-text {
  color: var(--primary-neon);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Gradient Text */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Badge Pill (e.g., "Live in Phuket") */
.badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--secondary-neon);
}

/* =========================================
   3. NAVIGATION (HEADER)
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px); /* Glass effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo .highlight {
  color: var(--primary-neon);
}

/* Mobile Menu (Hidden by default on desktop logic below) */
.nav-links {
  display: none; /* Hidden on mobile, shown via JS class */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  flex-direction: column;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  margin-bottom: 1.5rem;
  text-align: center;
}

.nav-links a:hover {
  color: var(--primary-neon);
}

.nav-cta {
  display: none; /* Hidden on mobile small screens */
}

.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-main);
  color: #000;
}

.btn-secondary {
  border: 2px solid var(--secondary-neon);
  color: var(--secondary-neon);
}

.btn-secondary:hover {
  background: var(--secondary-neon);
  color: #000;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh; /* Full screen height */
  display: flex;
  align-items: center;
  padding-top: 80px; /* Compensate for fixed header */
  overflow: hidden;
}

/* Background placeholder - Replace url with your party image */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1566737236500-c8ac43014a67?q=80&w=1470&auto=format&fit=crop")
    no-repeat center center/cover;
  z-index: -2;
}

/* Dark Overlay to make text pop */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), var(--bg-dark));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.lead-text {
  font-size: 1.1rem;
  max-width: 500px;
}

.hero-visual {
  text-align: center;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-height: 500px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
  transform: rotate(-5deg); /* Jaunty angle for the phone */
  border-radius: 20px;
}

/* App Store Buttons */
.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.store-btn {
  display: flex;
  align-items: center;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid #fff;
}

.store-btn:hover {
  background: transparent;
  color: #fff;
}

.store-btn i {
  font-size: 1.8rem;
  margin-right: 10px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-text span {
  font-size: 0.6rem;
}

.btn-text strong {
  font-size: 1rem;
}

/* =========================================
   5. LOCATIONS TICKER
   ========================================= */
.locations-ticker {
  background: #000;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 15px 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.locations-ticker .loc {
  color: var(--text-white);
  margin: 0 5px;
}

.locations-ticker .coming-soon {
  color: #555;
  margin-left: 10px;
}

/* =========================================
   6. APP SHOWCASE (ZIG-ZAG LAYOUT)
   ========================================= */
.showcase-row {
  display: flex;
  flex-direction: column; /* Mobile: Stack them */
  align-items: center;
  gap: 3rem;
  margin-bottom: 6rem; /* Space between rows */
}

.showcase-visual {
  position: relative;
  width: 100%;
  max-width: 350px;
}

/* The Glowing Phone Frame */
.phone-frame {
  border-radius: 30px; /* Rounded corners like iPhone */
  overflow: hidden;
  border: 4px solid #333;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.15); /* Subtle Neon Glow */
  transition: transform 0.4s ease;
}

.showcase-row:hover .phone-frame {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(255, 0, 255, 0.3); /* Bright glow on hover */
  border-color: #555;
}

.showcase-text {
  text-align: center; /* Center text on mobile */
}

.icon-badge {
  display: inline-block;
  font-size: 2rem;
  color: var(--primary-neon);
  background: rgba(255, 0, 255, 0.1);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.feature-bullets {
  margin-top: 1.5rem;
  text-align: left; /* Keep bullets aligned left even on mobile */
  display: inline-block; /* centers the block itself */
}

.feature-bullets li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: var(--text-white);
}

.feature-bullets i {
  color: var(--secondary-neon);
  margin-right: 10px;
}

/* DESKTOP LAYOUT (The Zig-Zag) */
@media (min-width: 992px) {
  .showcase-row {
    flex-direction: row; /* Side by side */
    justify-content: space-between;
    text-align: left; /* Reset text alignment */
  }

  /* Use this class to flip the order for 2nd and 4th items */
  .reverse-layout {
    flex-direction: row-reverse;
  }

  .showcase-text {
    width: 45%; /* Text takes up nearly half */
    text-align: left;
  }

  .showcase-visual {
    width: 45%;
  }
}

/* =========================================
   7. VENUE OWNERS
   ========================================= */
.venue-owner-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #111 0%, #220022 100%);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.venue-image img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.benefits-list li {
  margin-bottom: 10px;
  color: var(--text-white);
}

.benefits-list i {
  color: var(--primary-neon);
  margin-right: 10px;
}

/* =========================================
   8. TESTIMONIALS & CONTACT
   ========================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 16px;
}

.stars {
  color: #ffd700; /* Gold */
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.user-info {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.user-info img {
  border-radius: 50%;
  margin-right: 10px;
}

.center-text {
  text-align: center;
}

.centered {
  justify-content: center;
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  font-size: 1.5rem;
  margin: 0 10px;
  color: var(--text-gray);
}

.social-links a:hover {
  color: var(--secondary-neon);
}

footer {
  border-top: 1px solid #222;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

.footer-links a {
  margin: 0 10px;
  color: #666;
}

/* =========================================
   9. MEDIA QUERIES (Desktop)
   ========================================= */
@media (min-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  /* Navigation Desktop */
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    width: auto;
  }
  .nav-links li {
    margin: 0 1.5rem;
  }
  .nav-cta {
    display: inline-block;
  }

  /* Grid Layouts */
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   10. SCROLL ANIMATIONS
   ========================================= */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid items (optional polish) */
.features-grid .feature-card:nth-child(2) {
  transition-delay: 0.2s;
}
.features-grid .feature-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* =========================================
   PARTNER CAROUSEL
   ========================================= */
.carousel-container {
  width: 100%;
  overflow: hidden; /* Hide anything outside the box */
  position: relative;
  padding: 2rem 0;
}

/* Vignette Fade Effect on edges */
.carousel-container::before,
.carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.carousel-track {
  display: flex;
  width: max-content; /* Force it to be wide enough for all items */
  gap: 4rem; /* Space between logos */
  animation: scroll-left 30s linear infinite;
}

/* The Logo Box Styling */
.partner-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #555; /* Dimmed by default */
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s;
  cursor: default;
}

/* Hover Effect: Light up the logo when you mouse over it */
.partner-logo:hover {
  color: var(--primary-neon);
  text-shadow: 0 0 15px var(--primary-neon);
}

/* The Animation Keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Move it left by exactly 50% of the width (since we duplicated the list) */
    transform: translateX(-50%);
  }
}

/* Pause animation on hover (optional, easier to read) */
.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

/* =========================================
   LEGAL PAGES (Privacy & Terms)
   ========================================= */
.legal-hero {
  padding-top: 120px;
  padding-bottom: 40px;
  background: linear-gradient(to bottom, #111, var(--bg-dark));
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content {
  max-width: 800px; /* Narrower for better reading experience */
  margin: 0 auto;
  color: #ccc;
  font-size: 1rem;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: var(--text-white);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.legal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 0, 255, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen; /* Makes it glow over text */
  transition: transform 0.1s ease-out; /* Lag for smooth feel */
  display: none; /* Hidden by default (mobile) */
}

@media (min-width: 992px) {
  .cursor-glow {
    display: block; /* Only show on desktop */
  }
}

/* =========================================
   GLITCH ANIMATION
   ========================================= */
.glitch-effect {
  position: relative;
  display: inline-block;
}

.glitch-effect::before,
.glitch-effect::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
}

.glitch-effect::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-effect::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(30px, 9999px, 10px, 0);
  }
  5% {
    clip: rect(80px, 9999px, 90px, 0);
  }
  10% {
    clip: rect(10px, 9999px, 40px, 0);
  }
  15% {
    clip: rect(0, 0, 0, 0);
  } /* Pause */
  100% {
    clip: rect(0, 0, 0, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(60px, 9999px, 70px, 0);
  }
  5% {
    clip: rect(10px, 9999px, 20px, 0);
  }
  10% {
    clip: rect(0, 0, 0, 0);
  } /* Pause */
  100% {
    clip: rect(0, 0, 0, 0);
  }
}

/* =========================================
   BACK TO TOP BUTTON (Slide Up Animation)
   ========================================= */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;

  /* Glass/Neon Look */
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(5px);
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);

  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;

  /* HIDDEN STATE: Pushed down 100px (off-screen) */
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;

  /* The Slide Up Speed (0.5s is smooth) */
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy effect */
}

/* VISIBLE STATE: Slides up to position */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--primary-neon);
  color: #000;
  box-shadow: 0 0 20px var(--primary-neon);
  transform: translateY(-5px); /* Hover float */
}

/* =========================================
   MODAL POPUP (Glassmorphism)
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px); /* The blur effect */
  z-index: 10000; /* Must be highest */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; /* Click through when hidden */
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #111;
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--primary-neon);
  box-shadow: 0 0 40px rgba(255, 0, 255, 0.2);
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy pop */
  text-align: center;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: var(--primary-neon);
}

#m-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#m-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid #333;
}

#m-desc {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.modal-footer {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

.modal-footer p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   MOBILE & BUTTON FIXES
   ========================================= */

/* 1. The Feature Button Styling */
.btn-feature {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid var(--text-gray);
  color: var(--text-white);
  padding: 12px 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px; /* Sharper edges for "Lethal" look */
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* MOBILE DEFAULT: Full Width for easy tapping */
  width: 100%;
}

.btn-feature:hover {
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
  transform: translateY(-2px);
}

.btn-feature i {
  font-size: 0.8rem; /* Small arrow icon */
}

/* 2. Mobile Layout Adjustments */
@media (max-width: 768px) {
  /* Fix padding so it doesn't feel cramped */
  .section-padding {
    padding: 60px 0;
  }

  /* Ensure text is readable on small screens */
  p {
    font-size: 0.95rem;
  }

  /* Fix the Zig-Zag spacing on mobile */
  .showcase-row {
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Divider line */
    padding-bottom: 4rem;
  }

  .showcase-row:last-child {
    border-bottom: none;
  }

  /* Make phone images smaller on mobile so they don't dominate */
  .showcase-visual {
    max-width: 280px;
  }

  /* Align bullet points properly on mobile */
  .feature-bullets {
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.03); /* Subtle box background */
    padding: 1rem;
    border-radius: 8px;
  }
}

/* 3. Desktop Overrides */
@media (min-width: 992px) {
  .btn-feature {
    width: auto; /* Return to normal button size */
    padding: 10px 35px;
  }
}

/* 4. Fix Modal for Mobile Screens */
@media (max-width: 768px) {
  .modal-box {
    width: 95%; /* Take up full screen width */
    padding: 1.5rem;
    max-height: 90vh; /* Prevent it from being taller than screen */
    overflow-y: auto; /* Allow scrolling inside modal if text is long */
  }

  #m-title {
    font-size: 1.5rem;
  }

  #m-img {
    height: 180px; /* Smaller image on mobile */
  }

  .close-modal {
    top: 10px;
    right: 15px;
  }
}

/* =========================================
   FIX: FORCE VERTICAL STACKING
   ========================================= */
.showcase-text {
  /* Flexbox settings to force vertical stacking */
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* Mobile Default: Center everything */
  align-items: center;
  text-align: center;

  /* Ensure it takes up space */
  width: 100%;
}

/* Keep the desktop alignment correct */
@media (min-width: 992px) {
  .showcase-text {
    width: 45%; /* Restore width for Zig-Zag */
    text-align: left;
    align-items: flex-start; /* Align items to the left on Desktop */
  }
}

/* Ensure the button has space above it */
.btn-feature {
  margin-top: 2rem; /* Adds gap between list and button */
}

/* =========================================
   LOGO IMAGE STYLING
   ========================================= */
.nav-logo-img {
  height: 70px; /* Adjust this based on your actual logo shape */
  width: auto; /* Maintains aspect ratio */
  display: block;
  transition: transform 0.3s ease;
}

/* Optional: Hover effect */
.nav-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.5)); /* Neon glow on hover */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 40px; /* Slightly smaller on mobile */
  }
}

/* =========================================
   DIGITAL STATS COUNTERS
   ========================================= */
.stats-section {
  padding: 60px 0;
  background: #000;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  position: relative;
}

/* Optional: faint grid background for tech vibe */
.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(#1a1a1a 1px, transparent 1px),
    linear-gradient(90deg, #1a1a1a 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  z-index: 0;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-icon {
  font-size: 2rem;
  color: #555;
  margin-bottom: 1rem;
}

.counter {
  /* OLD: font-family: 'Courier New', Courier, monospace; */

  /* NEW: The Sci-Fi Look */
  font-family: "Orbitron", sans-serif;

  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;

  /* Make it glow harder */
  color: #fff;
  text-shadow: 0 0 10px var(--primary-neon), 0 0 20px var(--primary-neon),
    0 0 40px var(--primary-neon);

  /* Spacing for the digital feel */
  letter-spacing: 2px;
}

.stat-item p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin: 0;
}

.stat-divider {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #333, transparent);
}

/* Mobile Stack */
@media (max-width: 768px) {
  .stats-grid {
    flex-direction: column;
    gap: 3rem;
  }
  .stat-divider {
    width: 100px;
    height: 1px; /* Horizontal line on mobile */
    background: linear-gradient(to right, transparent, #333, transparent);
  }
  .counter {
    font-size: 3.5rem;
  }
}

/* Specific tweak for the stats text */
.stats-section .lead-text {
  font-family: "Orbitron", sans-serif; /* Reuse your sci-fi font if you imported it */
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}

.loader-content {
  /* This guarantees perfect centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.loading-bar {
  width: 0%;
  height: 2px;
  background: var(--primary-neon);

  /* Use margin to separate, but 'auto' keeps it safe */
  margin-top: 20px;

  animation: loadBar 2s ease forwards;
  box-shadow: 0 0 10px var(--primary-neon);
  border-radius: 2px;
}

@keyframes loadBar {
  0% {
    width: 0%;
  }
  100% {
    width: 200px;
  } /* or 100% of container */
}

/* =========================================
   PRELOADER LOGO STYLING
   ========================================= */
.preloader-logo {
  max-width: 250px; /* Good size for desktop */
  width: 60%; /* Good size for mobile */
  height: auto;
  margin-bottom: 2rem;

  /* The "Heartbeat" Animation */
  animation: logoPulse 1.5s infinite ease-in-out alternate;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.2));
    opacity: 0.8;
  }
  100% {
    transform: scale(1.05); /* Grow slightly */
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.6)); /* Glow brighter */
    opacity: 1;
  }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
  .preloader-logo {
    max-width: 180px;
  }
}
