* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #fdf6ff;
  color: #333;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}


/* ================= HEADER ================= */

header {
  padding: 15px 40px;
  background: #2b2d5b;
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 110px;

  display: flex;
  align-items: center;

  transition: transform 0.35s ease, box-shadow 0.3s ease;
  will-change: transform;
}

section {
  scroll-margin-top: 130px; /* header height + breathing space */
}

header.hide {
  transform: translateY(-100%);
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 85px;
  transition: transform 0.3s ease;
}

header.scrolled .logo img {
  transform: scale(0.7);
}

.logo img:hover {
  transform: scale(1.08) rotate(-2deg);
}

@media (max-width: 768px) {
  .logo img {
    height: 55px;
  }
}

nav ul {
  display: flex;
  gap: 25px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #ffcb05;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1100;
  }

  nav.nav-menu {
    position: fixed;
    top: 110px;
    left: 0;
    width: 100vw;
    background: #2b2d5b;

    display: none;                 /* 🔥 hidden by default */
    transform: translateY(0);
    z-index: 1000;
  }

  nav.nav-menu.active {
    display: block;                /* 🔥 shown on click */
  }

  nav.nav-menu ul {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
  }
}


body.menu-open {
  overflow: hidden;
}

/* ================= HERO ================= */

.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, #ffcb05, #ff6b81);
  color: #2b2b52;
  position: relative;
  overflow: hidden;
  font-size: 18px;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/noice.png");
  opacity: 0.05;
  pointer-events: none;
}


.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hero button {
  padding: 12px 25px;
  background: #2b2b52;
  box-shadow: 0 12px 30px rgba(43,43,82,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.hero button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(43,43,82,0.4);
}

.hero-content {
  animation: heroFadeUp 0.8s ease forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= PRODUCTS ================= */

.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

/* ---- Carousel Wrapper ---- */
.carousel-wrapper {
  position: relative;
  overflow: visible; /* 🔥 allow arrows */
}

/* ---- Product Grid (NORMAL MODE) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 25px;
}

/* ---- Product Grid (CAROUSEL MODE) ---- */
.product-grid.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.product-grid.carousel::-webkit-scrollbar {
  display: none;
}

.product-grid.carousel .product {
  flex: 0 0 240px; /* controls visible cards */
}

/* ---- Product Card ---- */
.product {
  background: white;
  padding: 14px;
  border-radius: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.product p {
  font-size: 13px;
  color: #555;
}

.product-btn {
  margin-top: auto;
  padding: 8px 14px;
  background: #2b2b52;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.product:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}

/* ================= CAROUSEL ARROWS ================= */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2b2d5b;
  color: white;
  border: none;

  display: none; /* hidden by default */

  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* Show arrows ONLY when carousel active */
.carousel-wrapper.carousel-active .carousel-btn {
  display: flex;
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .carousel-btn.prev {
    left: 5px;
  }
  .carousel-btn.next {
    right: 5px;
  }
}

/* ================= ABOUT ================= */

.about {
  position: relative;

  background-image: url("assets/about-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 80px 20px;
}


.about-content {
  position: relative; /* 🔥 required */
  z-index: 1;

  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}


.about h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.about-tagline {
  font-size: 18px;
  font-weight: bold;
  color: #2b2b52;
  margin-bottom: 20px;
}

.about p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature {
  background: rgba(255,255,255,0.6);
  padding: 25px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.feature h4 {
  margin: 12px 0 8px;
  color: #2b2b52;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ================= CONTACT ================= */

.contact {
  padding: 100px 20px;
  background: linear-gradient(135deg, #fdf6ff, #fff);
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: #2b2b52;
}

.contact-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Form card */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;

  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Inputs */
.form-group {
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;

  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: none;
  min-height: 120px;
}

/* Focus state (VERY important) */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2b2b52;
  box-shadow: 0 0 0 3px rgba(43,43,82,0.15);
}

/* Button */
.contact-form button {
  width: 100%;
  padding: 14px;
  background: #2b2b52;
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;

  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(43,43,82,0.35);
}

/* Status text */
#messageStatus {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.contact-note {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
  text-align: center;
  opacity: 0.85;
}

.hidden {
  display: none;
}

.thank-you {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;

  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  animation: fadeInUp 0.5s ease forwards;
}

.thank-you h3 {
  font-size: 24px;
  color: #2b2b52;
  margin-bottom: 10px;
}

.thank-you p {
  font-size: 15px;
  color: #555;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 15px;
  background: #2b2b52;
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}