/*=============================================
=            Global Styles            =
=============================================*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

:root {
  --primary-color: #ff6600;
  --nav-text-color: #070707;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem; /* Default font size for the body */
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

/*=============================================
=            Utility Classes            =
=============================================*/
.flex {
  display: flex;
}

.popins{
     font-family: "Poppins", sans-serif;
}

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

.justify-end {
  justify-content: end;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 8px;
}

.flex-wrap {
  flex-wrap: wrap;
}

.relative {
  position: relative;
}

.text-white {
  color: white;
}

#nav-only {
  flex-direction: center  ;}

/*=============================================
=            Header & Navigation            =
=============================================*/
header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  padding: 10px 60px;
  position: fixed;
  top: 0px;
  background-color: white;
  width: 100%;
  z-index: 999;
  gap: 55px;
}

h1 {
  color: var(--primary-color);
}

.nav {
  margin-left: 20px;
}

.nav-item {
  color: var(--nav-text-color);
  padding: 0.8rem;
  transition-duration: 0.3s;
  font-size: 1.4rem;
}

.nav-item:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.close-icon {
  display: none;
}



/*=============================================
=                    Hero                    =
=============================================*/
.hero {
  background-image: url("./assets/Hero.png");
  height: 90vh;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.avatar {
  height: 38px;
  border-radius: 100%;
  border: 2px white solid;
}

.avatar-1 {
  position: absolute;
  z-index: 10;
}

.avatar-2 {
  position: absolute;
  z-index: 20;
  left: 30px;
}

.avatar-3 {
  position: absolute;
  z-index: 30;
  left: 60px;
}

.avatar-container {
  top: 200px;
  left: 150px;
  position: relative;
  display: inline-block;
}

.badge {
  background-color: #f5f7f9;
  position: absolute;
  left: 90px;
  white-space: nowrap;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 40px;
}

.title {
  margin-top: 50px;
  font-weight: 600;
  font-size: 60px;
  margin-bottom: 132px;
}

.sub-title {
  font-weight: 500;
  margin-bottom: 20px;
}

/*=============================================
=            Product Preview                  =
=============================================*/
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 30px;
}

#main-img {
  width: 100%;
}

.image-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.preview {
  padding: 20px;
  height: 100px;
  object-fit: contain;
  background-color: #eef2ff;
  border-radius: 10px;
}

.active {
  background-color: #7e2a0c;
}

/*=============================================
=            Product Details                  =
=============================================*/

.product-details {
  margin-top: 160px;
}

.product-name {
  font-size: 40px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 8px;
}

.vector{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap:15px;
    margin-top: 15px;
}

.active-card{
  border: 2px solid var(--primary-color);
  border-radius: 8px;
}

/* Accordion */

.accordion {
  border-top: 1px solid #f2d6c0;
  border-bottom: 1px solid #f2d6c0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  font-family: sans-serif;
}

.accordion-item {
  border-bottom: 1px solid #f2d6c0;
}

.accordion-header {
  background: #f9f9f9;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1em;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1em;
  color: #555;
}

.accordion-content p {
  margin: 1em 0;
}

.accordion-item.active .accordion-content {
  background-color: white;
  max-height: 200px; /* Adjust as needed */
}



.accordion-item.active .accordion-header {
  background-color: #eeeeee;
}

.accordion-header i {
  transition: transform 0.3s ease;
}

.accordion-item.active i {
  transform: rotate(180deg);
}


/*=============================================
=            Buttons & Animations            =
=============================================*/
.primary-btn {
  padding: 12px 22px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  border-radius: 66px;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  overflow: hidden;
  white-space: nowrap;
}

.primary-btn:hover {
  background-color: #e65c00;
}

.primary-btn:hover i {
  animation: fadeAndMove 0.5s ease-in-out;
}

@keyframes fadeAndMove {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0;
    transform: translateX(10px);
  }
  51% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/*=============================================
=            Media Queries            =
=============================================*/
@media (max-width: 1220px) {
  html {
    font-size: 50%;
  }
  header {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: white;
    padding-top: 60px;
    padding-left: 0; /* Remove default browser padding */
    margin-left: 0; /* Reset desktop margin */
    z-index: 1000;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .fa-bars {
    display: none;
  }

  .hamburger.active .close-icon {
    display: block;
  }

  .nav-item {
    padding: 15px;
  }

  h1 {
    margin-left: 10px;
  }

  .avatar-container {
    left: 20px;
  }
  .title {
    font-size: 40px;
  }
  .product {
    grid-template-columns: 1fr;
  }
  .preview {
  padding: 12px;
  height: 60px;
}
}
