/* Header container */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  animation: slideDown 0.6s ease-in-out;
  position: relative;
  z-index: 1000;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

/* Responsive Mobile Fix */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: center;  /* 👈 Center the header content */
    padding: 15px 5%;
  }

  .logo {
    justify-content: center; /* 👈 Horizontally center logo */
    width: 100%;
    text-align: center;
    margin-bottom: 10px; /* optional spacing below logo */
  }

  .logo img {
    margin: 0 auto;
  }

  .logo-text {
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .logo-text.visible {
    opacity: 1;
    visibility: visible;
  }

  nav {
    flex-direction: column;
    width: 100%;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    align-items: center; /* 👈 Center nav items if needed */
  }

  nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 5%;
  }
}


.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 8px 12px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover {
  color: #2c3e50;
  background-color: #f0f0f0;
  border-radius: 6px;
}

/* Mobile styles */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 5%;
  }

  .logo {
    width: 140%;
    justify-content: center; /* Center the logo */
    text-align: center; /* Optional: ensures text is centered if there is text in the logo */
  }

  .logo-text {
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .logo-text.visible {
    opacity: 1;
    visibility: visible;
  }

  nav {
    flex-direction: column;
    width: 100%;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }

  nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 5%;
  }
}

/* ===== Carousel Container ===== */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 3rem 5%;
  background: #f9f9f9;
}

/* ===== Carousel Slide Layout ===== */
.carousel-slide {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.carousel-slide.active {
  display: flex;
}

/* ===== Hero Section Animation Container ===== */
.hero {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpHero 1.2s ease-out forwards;
  animation-delay: 0.2s;
  width: 100%;
}

.hero-text {
  flex: 1;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.4s;
  min-width: 0;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.store-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-buttons img {
  max-width: 160px;
  height: auto;
  transition: transform 0.3s ease;
}

.store-buttons img:hover {
  transform: scale(1.05);
}

/* ===== Hero Image Section ===== */
.hero-image {
  flex: 1;
  text-align: center;
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 0.6s;
  min-width: 0;
}

.hero-image img {
  width: 100%;
  height: 300px;
  max-width: 300px;

  
}

/* ===== Animations ===== */
@keyframes fadeInUpHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Responsive Design ===== */
@media (min-width: 1024px) {
  .hero-image img {
    max-width: 750px; /* 👈 Big image on desktop */
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .store-buttons {
    justify-content: center;
  }

  .store-buttons img {
    max-width: 140px;
  }

  .hero-image img {
    max-width: 100vw; /* Ensures image fits screen width */
  }
}