/* =======================================
   CSS Variables
   ======================================= */
:root {
  --primary: #00d9ff;

  --primary-dark: #00b8d9;

  --secondary: #6366f1;

  --accent: #f59e0b;

  --dark: #0f172a;

  --dark-light: #1e293b;

  --text: #334155;

  --text-light: #64748b;

  --white: #ffffff;

  --gray-50: #f8fafc;

  --gray-100: #f1f5f9;

  --success: #10b981;

  --warning: #f59e0b;

  --error: #ef4444;

  --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #6366f1 100%);

  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   Navigation (Grid Method - Perfect Center)
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: 80px; /* Slightly taller for better spacing */
  display: flex; /* Flex is used to center the container vertically */
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* THE MAGIC FIX */
.nav-content {
  display: grid;
  /* 1fr (Logo side), auto (Center links), 1fr (Button side) */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

/* 1. Left Side: Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start; /* Pushes logo to the far left */
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: #333;
  white-space: nowrap; /* Prevents text breaking */
}

/* 2. Center: Nav Links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center; /* Forces this to the exact center of the grid */
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

/* 3. Right Side: Button */
.btn-primary {
  justify-self: end; /* Pushes button to the far right */
  padding: 0.7rem 1.8rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Responsive Hide */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  /* When links hide, push button to right manually */
  .nav-content {
    display: flex;
    justify-content: space-between;
  }
}
/* ========================================
   Hero Section - Responsive Logic
   ======================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Takes full viewport height */
  padding-top: 70px; /* EXACT match to Navbar height to prevent overlap */
  background-color: #ffffff; /* Dark background to frame images */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  align-items: center; /* Centers vertically */
  justify-content: center; /* Centers horizontally */
  transition: opacity 0.5s ease-in-out;
  background-color: #ffffff;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* THE FIX: 
   Limit image height to 85% of the container. 
   This leaves 15% space at the bottom explicitly for the Dots.
*/
.carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85%;
  object-fit: contain;
  margin-bottom: 20px; /* Extra push up from bottom */
}

/* ========================================
   Controls (Buttons & Dots)
   ======================================== */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20; /* Higher than slide */
  transition: var(--transition);
}

.carousel-btn:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.carousel-btn.prev {
  left: 20px;
}
.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 25px; /* Fixed distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 30; /* Highest Z-index to ensure visibility */
  padding: 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3); /* Slight subtle background for contrast */
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: #ff0000; /* Brand Color */
  transform: scale(1.2);
}

/* ========================================
   MOBILE & TABLET RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
  /* Navbar text smaller on mobile */
  .logo-text {
    font-size: 1rem;
  }

  /* On mobile, screens are tall. 
       We restrict height further to 75% to ensure 
       dots and buttons have plenty of breathing room.
    */
  .carousel-slide img {
    max-height: 75%;
  }

  /* Move buttons to bottom corners or make smaller to avoid covering image */
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    background: rgba(
      0,
      0,
      0,
      0.5
    ); /* Darker bg for better visibility on mobile */
  }

  .carousel-btn.prev {
    left: 10px;
  }
  .carousel-btn.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 15px;
    gap: 8px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

/* ========================================
   Stats Section
   ======================================== */

.stats {
  padding: 4rem 0;
  background: var(--gradient-dark);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========================================
   Section Styles
   ======================================== */

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* ========================================
   Features Section
   ======================================== */

.features {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

.feature-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   Video Section
   ======================================== */

.video-section {
  padding: 80px 0;
  background: #f8fafc; /* Light subtle background */
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px; /* For a slight 3D effect if desired */
}

.video-wrapper {
  position: relative;
  padding: 10px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 5px solid rgb(255, 0, 0);
  overflow: hidden;
}

.styled-video {
  width: 100%;
  display: block;
  border-radius: 16px; /* Slightly smaller than wrapper */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

/* Hover effect to make it interactive */
.video-wrapper:hover .styled-video {
  transform: scale(1.01);
}

/* Customizing the Video section header */
.section-title {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 10px;
  font-weight: 800;
}

/* ========================================
   How It Works
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
}

.step-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.step-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ========================================
   Infographic Section
   ======================================== */

.infographic {
  background: var(--gradient-primary);
  color: var(--white);
}

.infographic .section-title {
  color: var(--white);
}

.infographic-container {
  max-width: 1000px;
  margin: 0 auto;
}

.infographic-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-2xl);
}

/* ========================================
   Perfect For Section
   ======================================== */

.perfect-for {
  background: var(--gray-50);
}

.perfect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.perfect-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  border: 2px solid transparent;
}

.perfect-card:hover {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.perfect-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.perfect-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.perfect-card p {
  color: var(--text-light);
}

/* ========================================
   Disclaimer Section
   ======================================== */

.disclaimer {
  background: var(--warning);
  color: var(--white);
  padding: 3rem 0;
}

.disclaimer-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.disclaimer-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.disclaimer-text {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* ========================================
   Download Section
   ======================================== */

.download {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 6rem 0;
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.download-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.download-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.download-features {
  display: grid;
  gap: 1rem;
}

.download-feature {
  font-size: 1.1rem;
  padding-left: 1.5rem;
  position: relative;
}

.download-feature::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.download-qr {
  text-align: center;
}

.qr-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  display: inline-block;
  box-shadow: var(--shadow-2xl);
  margin-bottom: 2rem;
}

.qr-code {
  width: 350px;
  height: 200px;
  margin: 0 auto;
}

.qr-text {
  color: var(--dark);
  font-weight: 600;
  margin-top: 1rem;
}

.store-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.store-img-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge {
  height: 60px; /* Adjust this height to fit your design */
  width: auto;
  display: block;
  border-radius: 8px; /* Standard for store badges */
}

/* Hover effect */
.store-img-link:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .store-badge {
    height: 50px; /* Slightly smaller on phones */
  }
  .store-buttons {
    gap: 10px;
  }
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--dark-light);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  opacity: 0.8;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* ========================================
   Scroll Animations
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .download-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .steps-grid,
  .perfect-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .store-buttons {
    flex-direction: column;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .navbar,
  .carousel-btn,
  .carousel-dots {
    display: none;
  }
}
