/* Responsive Styles */

/* Mobile First Approach */

/* Small devices (phones, less than 640px) */
@media (max-width: 639px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-tagline {
    font-size: var(--font-size-base);
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-image {
    width: 100%;
    height: 280px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: var(--spacing-md);
  }

  .nav-link {
    font-size: var(--font-size-xs);
  }
}

/* Medium devices (tablets, 640px to 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 768px and up) */
@media (min-width: 768px) {
  .hero {
    padding: var(--spacing-4xl) 0;
  }

  .highlight-content {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-text {
    order: 1;
  }

  .highlight-image {
    order: 2;
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Extra large devices (large desktops, 1024px and up) */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-2xl);
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: var(--font-size-4xl);
  }
}

/* Mobile horizontal scrolling for highlight image */
@media (max-width: 767px) {
  .highlight-image {
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    margin: 0;
  }

  .highlight-image::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }

  .highlight-image img {
    width: auto;
    height: 300px; /* Adjust height as needed */
    max-width: none;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

   .feature-card {
      width: 100% !important;
      max-width: 100% !important;
      padding: var(--spacing-lg) !important;
      margin: 0 !important;
    }

    .feature-icon {
      width: 100% !important;
      height: 80px !important;
      margin: 0 auto var(--spacing-md) !important;
    }

    .features-grid {
      gap: var(--spacing-lg) !important; /* Reduce gap on mobile */
      padding: 0 var(--spacing-sm) !important; /* Add some container padding */
    }
}

/* Platform-specific display logic */
.download-card[data-platform="android"],
.download-card[data-platform="ios"] {
  display: flex;
}

/* Hide iOS on Android devices */
@media (max-width: 767px) {
  body.platform-android .download-card[data-platform="ios"] {
    display: none;
  }

  body.platform-ios .download-card[data-platform="android"] {
    display: none;
  }

  body.platform-android .download-grid,
  body.platform-ios .download-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Print styles */
@media print {
  .header,
  .theme-toggle,
  .download-section,
  .footer {
    display: none;
  }

  body {
    background-color: #FFFFFF;
    color: #000000;
  }
}