* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}


/* GENERAL MOBILE CLEANUP */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* HERO FIX */
  .hero-modern h1 {
    font-size: 32px;
  }

  .hero-modern p {
    font-size: 14px;
  }

  /* SECTION SPACING */
  .features,
  .products,
  .cta {
    padding: 40px 20px;
  }

  /* GRID FIX */
  .feature-grid,
  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .product-card {
    width: 90%;
  }

  /* FOOTER FIX */
  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* QUICK HIGHLIGHTS */
  .quick-highlights {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 768px) {

  .navbar {
    flex-direction: row !important; /* IMPORTANT */
    justify-content: space-between;
    align-items: center;
  }

  .menu-icon {
    display: block;
    font-size: 28px;
    color: white;
    z-index: 10001;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
   
  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .feature-grid,
  .product-grid,
  .footer-grid {
    flex-direction: column;
    align-items: center;
  }

  .stats {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .feature-grid,
  .product-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}
/* HERO MOBILE FIX */
@media (max-width: 768px) {

  .hero-modern {
    min-height: auto;
    padding: 60px 20px;
  }

  .hero-modern h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .hero-modern p {
    font-size: 15px;
    padding: 0 10px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .hero-bg-glow {
    width: 300px;
    height: 300px;
    filter: blur(50px);
    top: -100px;
  }
}

/* ===== PREMIUM MOBILE MENU ===== */
@media (max-width: 768px) {

  .menu-icon {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;

    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;

    transition: 0.4s ease-in-out;
    z-index: 9998;
  }

  .nav-links.show {
    right: 0;
  }

  .close-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a,
  .nav-links button {
    width: 80%;
    text-align: center;
  }
}
/* MOBILE */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .stats,
  .quick-highlights {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cta-premium h2 {
    font-size: 28px;
  }

  .cta-premium p {
    font-size: 15px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .cta-badges {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}