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

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  padding-top: 90px;
  /* background-color: black; */
}

/* ----------------------------------------------------navbar---------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  height: 90px;
  padding: 1rem;
  background-color: #3F51B5 ;
  /* border-radius: 0 0 15px 15px; */
}

/* ---------------------------------------------Hamburger Menu-------------------------- */
.menu-button {
  position: fixed;
  top: 29px;
  right: 25px;
  z-index: 1002;
  cursor: pointer;
}

.bar {
  width: 32px;
  height: 3px;
  margin: 6px 0;
  background: black;
  border-radius: 4px;
  transition: 0.3s;
}

.menu-button.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-button.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-button.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* -------------------------------------------Side Menu------------------------------- */
.side-menu {
  position: fixed;
  top: 90px; /* Start below the navbar */
  right: -100%;
  width: 70%;
  max-width: 320px;
  height: calc(100% - 90px); /* Adjust height for navbar */
  background-color: #3F51B5;
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 2rem 1rem;
}

.side-menu.open {
  right: 0;
}

.menu-list {
  list-style: none;
}

.menu-list li {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.menu-list a {
  color: white;
  text-decoration: none;
  /* z-index: 1005; */
}

.has-submenu > a::after {
  content: " ▼";
  font-size: 0.8rem;
}

.submenu {
  display: none;
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu a {
  font-size: 1rem;
}

/* --------------------------------- 3D CAROUSEL STYLES ----------------------------- */
.swiper {
  width: 90%;
  max-width: 1000px;
  padding-top: 50px;
  padding-bottom: 50px;
  margin-top: 10px;
  border-radius: 20px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  /* height: auto; */
  border-radius: 20px;
  overflow: hidden;
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); */
  transition: transform 0.3s;
  /* border: 1px solid green; */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* border:  1px solid red; */
  border-radius: 20px;
}


/* -------------------------------------menu-section------------------------------ */
/* Responsive adjustments */
@media (max-width: 600px) {
  .side-menu {
    width: 65%;
    max-width: none;
    padding: 1.5rem 0.5rem;
  }
  .navbar {
    padding: 0.5rem;
    height: 70px;
  }
  .side-menu {
    top: 70px;
    height: calc(100% - 70px);
  }
  body {
    padding-top: 70px;
  }
}

@media (min-width: 1024px) {
  .first-part {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #f8f8f8;
    padding: 40px 0;
  }
  .part-content {
    max-width: 600px;
    text-align: center;
    padding: 40px;
    /* background: #fff; */
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    /* opacity: transparent; */
    /* border: 1px solid red; */
    margin-bottom: 50px;
  }
  .part-content p {
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: bold;
  }
  .btn {
    font-size: 1.1rem;
    padding: 12px 32px;
    border-radius: 8px;
  }
}

/* ---------------------------------------------first-part-------------------------------- */

.first-part{
  height: 90vh;
  width: auto;
  /* border:  1px solid red; */
  background-image: url(banner.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* background-color: #454747; */
}
.part-content{
  /* border: 1px solid red; */
  height: 100%;
  display: flex;
  /* justify-content: center; */
  align-items: left;
  flex-direction: column;
  padding: 10px 45px 10px 45px ;
}
.part-content > p:nth-child(1) {
  font-size: 50px;
  font-weight: 900;
  margin-top: 9rem;
}

.part-content > p:nth-child(2) {
  font-size: 25px;
  /* font-weight: 200; */
  margin-top: 20px;
}

.part-content > p:nth-child(3) {
  font-size: 19px;
  margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .part-content > p:nth-child(1) {
    font-size: 40px;
    margin-top: 6rem;
  }
  .part-content > p:nth-child(2) {
    font-size: 20px;
    margin-top: 16px;
  }
  .part-content > p:nth-child(3) {
    font-size: 16px;
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .part-content > p:nth-child(1) {
    font-size: 32px;
    margin-top: 4rem;
  }
  .part-content > p:nth-child(2) {
    font-size: 18px;
    margin-top: 12px;
  }
  .part-content > p:nth-child(3) {
    font-size: 14px;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .part-content > p:nth-child(1) {
    font-size: 3rem;
    margin-top: 8rem;
    /* color: white; */
  }
  .part-content > p:nth-child(2) {
    font-size: 20px;
    margin-top: 1rem;
    /* color: white; */
  }
  .part-content > p:nth-child(3) {
    font-size: 17px;
    margin-bottom: 1rem;
    /* color: white; */
  }
}

.second-part-heading{
  /* border: 1px solid red; */
   text-align: center;
   font-size: 50px;
   margin-top: 10px;
}
/* --------------------------------------------second-part--------------------------------- */
    .slider-heading {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 20px;
      /* border: 4px solid blue; */

    }

    .slider-track {
      display: flex;
      overflow-x: auto;
      gap: 20px;
      scroll-snap-type: x mandatory;
      padding: 10px;
      scroll-behavior: smooth;
      /* border: 1px solid red; */
      margin-bottom: 20px;
    }

    .slider-track::-webkit-scrollbar {
      display: none;
    }

    .slider-track {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .card {
      flex-shrink: 0;
      scroll-snap-align: start;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      min-width: 250px;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: transform 0.3s ease;
    }

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

    .card img {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      margin-top: 10px;
    }

    .card-content {
      padding: 16px;
      text-align: center;
    }

    .card-content h3 {
      margin: 0;
      font-size: 1.1rem;
    }

    @media (max-width: 600px) {
  .card {
    min-width: 180px;
  }

  .card img {
    width: 150px;
    height: 150px;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .slider-track {
    gap: 15px;
    padding: 5px;
  }

  .slider-heading {
    font-size: 1.5rem;
  }
}

/* ---------------------------------------third-part--------------- */
.third-part{
  height: 50vh;
  /* border: 1px solid green; */
}

    .slider-track2 {
      display: flex;
      overflow-x: auto;
      gap: 20px;
      scroll-snap-type: x mandatory;
      padding: 10px;
      scroll-behavior: smooth;
      /* border: 1px solid red; */
      margin-bottom: 20px;
    }

    .slider-track2::-webkit-scrollbar {
      display: none;
    }

    .slider-track2 {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
/* ---------------------------------------------------------fourth-part------------------------------------ */
.fourth{
  /* border: 1px solid red; */
  height: auto;
  text-align: center;
  font-size: 50px ;
  margin-bottom: 20px;
  margin-top: 20px;
  font-weight: bold;
}


.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Product Card */
.product-card {
  width: 100%;
  max-width: 250px;
  flex: 1 1 calc(25% - 20px); /* Default: 4 per row with gap */
  box-sizing: border-box;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  font-family: 'Segoe UI', sans-serif;
  transition: transform 0.3s;
}

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

.product-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.product-info {
  padding: 16px;
  text-align: center;
}

.product-title {
  font-size: 18px;
  margin: 10px 0 5px;
}

.product-price {
  color: #2ecc71;
  font-weight: bold;
  margin-bottom: 8px;
}

.product-rating {
  color: #f1c40f;
  margin-bottom: 12px;
  font-size: 16px;
}

.add-to-cart {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: #2980b9;
}

/* Tablet: 2-3 cards per row */
@media (max-width: 992px) {
  .product-card {
    flex: 1 1 calc(33.33% - 20px);
  }
}

/* Mobile: exactly 2 cards per row */
@media (max-width: 600px) {
  .product-card {
    flex: 1 1 calc(50% - 20px);
  }
  .product-image img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
  }
}

/* <!-- ------------------------------------fifth-part----------------------- --> */
.fifth-part {
  /* border: 5px solid red; */
  padding: 50px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

.grid-item {
  position: relative;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item1 { background: #ff4c4c; }
.item2 { background: #e0ffee; color: #222; }
.item3 {
  background: #00db76;
  grid-row: span 2; /* make it tall like item4 */
}
.item4 {
  background: #0b2c45;
  grid-column: span 2; /* wide */
}

.grid-item h2 {
  margin: 10px 0 5px;
  font-size: 24px;
}

.grid-item p {
  font-size: 16px;
}

.product-img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
}

.btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  align-self: start;
}

.btn:hover {
  background-color: #333;
}

/* Responsive for mobile - keep as is */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .item3,
  .item4 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ----------------------- Desktop specific adjustment to reduce layout size -------------------- */
@media (min-width: 1024px) {
  .fifth-part {
    padding: 30px 100px; /* reduce padding horizontally */
  }

  .grid-container {
    max-width: 1000px;
    margin: 0 auto; /* center horizontally */
    gap: 16px; /* slightly less gap */
  }

  .grid-item {
    padding: 15px; /* less padding inside items */
  }

  .grid-item h2 {
    font-size: 20px; /* slightly smaller heading */
  }

  .grid-item p {
    font-size: 14px; /* smaller paragraph */
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

/* ------------------------------------------footer---------------------------------------- */
.site-footer {
  background: url('layered-steps-haikei.png') no-repeat center;
  background-size: cover;
  color: white;
  padding: 60px 20px 30px;
  font-family: 'Arial', sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #dddddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ffffff;
}

.social-icons a {
  margin-right: 10px;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #ff66ff;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #cccccc;
}
.footer-content {
  backdrop-filter: blur(8px);
  background-color: rgba(212, 130, 236, 0.4); /* optional for darker glass */
  padding: 40px;
  border-radius: 10px;
}
.site-footer {
  background: 
    linear-gradient(rgba(10, 10, 9, 0.7), rgba(0,0,0,0.7)),
    url('layered-steps-haikei.png') no-repeat center;
  background-size: cover;
  color: white;
  padding: 60px 20px 30px;
}
