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

:root {
  --primary: #ff5e14;
  --secondary: #ff9c42;
  --bg: #ffffff;
  --text: #333333;
  --dark-bg: #121212;
  --dark-text: #eaeaea;
}

body.dark {
  --bg: var(--dark-bg);
  --text: var(--dark-text);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

a { text-decoration: none; color: inherit; }

header {
  background: url('https://images.unsplash.com/photo-1571019613914-85f342c38aa6') center/cover;
  color: white;
  padding: 30px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

header h1, .tagline {
  position: relative;
  z-index: 1;
}

nav {
  background: #111;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
}

nav a {
  color: white;
  padding: 15px 25px;
  transition: transform 0.3s ease;
}

nav a:hover {
  background: var(--primary);
  border-radius: 5px;
  transform: scale(1.1);
}

.btn-login, .btn-signup {
  margin-left: 15px;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  transition: background 0.3s, color 0.3s;
}

.btn-signup {
  background: var(--primary);
  color: white;
}

.btn-login:hover, .btn-signup:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.btn {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 10px;
}

.features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-card {
  flex: 1 1 250px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

body.dark .feature-card {
  background: #1e1e1e;
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

.visitor-counter {
  font-size: 0.8rem;
  margin-top: 10px;
  color: #ccc;
  text-shadow: 1px 1px 1px #000;
}

/* WhatsApp Button */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 20px;
}

/* Dark mode toggle */
.toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 15px;
  background: #111;
  color: white;
  cursor: pointer;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

body.dark .contact-section {
  background: #121212;
}

.contact-subtitle {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #666;
}

body.dark .contact-subtitle {
  color: #bbb;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Contact Info Cards */
.contact-info {
  display: grid;
  gap: 20px;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

body.dark .info-card {
  background: #1e1e1e;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.info-card h3 {
  margin-bottom: 5px;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

body.dark .contact-form {
  background: #1e1e1e;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: inherit;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #888;
  font-size: 0.9rem;
  transform: translateY(-50%);
  pointer-events: none;
  transition: 0.3s;
  background: white;
  padding: 0 5px;
}

body.dark .form-group label {
  background: #1e1e1e;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  top: -8px;
  font-size: 0.75rem;
  color: var(--primary);
}

.btn.full {
  width: 100%;
  text-align: center;
}

/* =========================
   SHARED
========================= */
.section-subtitle {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #666;
}

body.dark .section-subtitle {
  color: #bbb;
}

/* =========================
   GALLERY
========================= */
.gallery-section {
  background: #f7f7f7;
}

body.dark .gallery-section {
  background: #181818;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1100px;
  margin: auto;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* =========================
   EVENTS
========================= */
.events-section {
  background: #ffffff;
}

body.dark .events-section {
  background: #121212;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.event-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s;
}

body.dark .event-card {
  background: #1e1e1e;
}

.event-card:hover {
  transform: translateY(-8px);
}

.event-date {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
}

.btn.small {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* =========================
   PRODUCTS
========================= */
#products {
  background: #f7f7f7;
}

body.dark #products {
  background: #181818;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

body.dark .product-card {
  background: #1e1e1e;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.product-card h3 {
  margin-bottom: 10px;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cart-icon {
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
}
/* =========================
   MOBILE RESPONSIVE
========================= */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-links a {
  color: white;
  margin-left: 20px;
}

/* ✅ ADD THIS HERE */
section {
  overflow-x: hidden;
}

/* MOBILE MENU */
@media (max-width: 768px) {
  img {
    max-width: 100%;
  }
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #111;
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    border-top: 1px solid #222;
    margin: 0;
  }

  header h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 40px 15px;
  }

  .features,
  .events-grid,
  .gallery-grid,
  .contact-container {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  .feature-card,
  .event-card {
    width: 100%;
  }

  .whatsapp {
    bottom: 15px;
    right: 15px;
  }

  .toggle {
    bottom: 15px;
    left: 15px;
  }
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Swipe Gallery */
.swipe-gallery {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.swipe-gallery img {
  width: 90vw;             /* responsive to screen width */
  max-width: 320px;        /* prevents huge images */
  height: auto;
  border-radius: 12px;
  scroll-snap-align: center;
  flex-shrink: 0;
  object-fit: cover;
}


.swipe-gallery::-webkit-scrollbar {
  display: none;
}

/* Bottom Navigation */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 1000;
  }

  .bottom-nav a {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
  }

  body {
    padding-bottom: 60px;
  }
}

/* Sticky Call/WhatsApp */
.sticky-contact {
  display: none;
}

@media (max-width: 768px) {
  .sticky-contact {
    display: flex;
    position: fixed;
    bottom: 60px;
    left: 10px;
    right: 10px;
    gap: 10px;
    z-index: 1000;
  }

  .sticky-contact a {
    flex: 1;
    text-align: center;
    padding: 14px;
    border-radius: 30px;
    font-weight: bold;
    color: white;
    text-decoration: none;
  }

  .call-btn {
    background: #007bff;
  }

  .wa-btn {
    background: #25D366;
  }
}

/* Mobile CTA */
@media (min-width: 769px) {
  .mobile-cta {
    display: none;
  }
}

.mobile-cta {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.mobile-cta a {
  display: inline-block;
  margin-top: 15px;
  background: white;
  color: #ff4b2b;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
}

@media (max-width: 480px) {
  .mobile-cta {
    padding: 30px 15px;
  }

  .mobile-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .visitor-counter {
    margin-top: 5px;
    font-size: 0.9rem;
  }
}

