@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');

:root {
  --Off-white: hsl(36, 100%, 99%);
  --Grayish-blue: hsl(233, 8%, 79%); 
  --Dark-grayish-blue: hsl(236, 13%, 42%); 
  --Very-dark-blue: hsl(240, 100%, 5%);
  --Soft-orange: hsl(35, 77%, 62%); 
  --Soft-red: hsl(5, 85%, 63%);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  text-transform: capitalize;
  transition: .2s linear;
}

html,body {
  font-size: 62.5%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}

ul {
  list-style: none;
}

a {
  cursor: pointer;
  font-size: 1.8rem;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.btn {
  font-size: 1.5rem;
  display: inline-block;
  color: var(--Off-white);
  background-color: var(--Soft-red);
  padding: 1.8rem 2.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.btn:hover {
  background-color: var(--Very-dark-blue);
  color: var(--Off-white);
}

/* header section */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--Grayish-blue);
  background-color: var(--Off-white);
}

header .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  width: 6.4rem;
}

header .nav-bar ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4.1rem;
}

header .nav-bar ul li a {
  color: var(--Dark-grayish-blue);
}

header .nav-bar ul li a:hover {
  color: var(--Soft-red);
}

header .menu-btn {
  display: none;
}

header .menu-btn-close {
  display: none;
}

header .overlay {
  display: none;
  opacity: 0;
}

/* main section */
.main {
  margin-top: 12rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

main .left-column {
  flex: 2;
}

main .left-column .main-img img {
  width: 100%;
}

main .left-column .main-content {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

main .left-column .main-content h1 {
  flex: 1;
  font-size: 5.5rem;
}

main .left-column .main-content .main-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

main .left-column .main-content .main-text p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--Dark-grayish-blue);
}

main .right-column {
  flex: 1;
  padding: 3rem;
  background-color: var(--Very-dark-blue);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

main .right-column h2 {
  color: var(--Soft-orange);
  font-size: 4.2rem;
}

main .right-column .new-container {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

main .right-column .new-container .new-line {
  width: 100%;
  height: 1px;
  border-bottom: 1px solid var(--Grayish-blue);
}

/* main .right-column .new-container .new {
  border-bottom: 1px solid var(--Grayish-blue);
  padding-bottom: 2rem;
} */

main .right-column .new-container .new:last-child {
  border-bottom: none;
}

main .right-column .new-container .new h3 {
  color: var(--Off-white);
  font-size: 2.4rem;
  cursor: pointer;
}

main .right-column .new-container .new h3:hover {
  color: var(--Soft-orange);
}

main .right-column .new-container .new p {
  color: var(--Grayish-blue);
  font-size: 1.6rem;
  margin-top: 1rem;
}

/* product section */
.product-area {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-area .product-card {
  display: flex;
  flex-basis: 350px;
  gap: 1.5rem;
}

.product-card .product-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  width: 25%;
}

.product-card .gray {
  font-size: 3rem;
  color: var(--Grayish-blue);
  font-weight: 800;
}

.product-card h3 {
  font-size: 1.8rem;
}

.product-card p {
  font-size: 1.4rem;
  color: var(--Dark-grayish-blue);
}


/* media queries */
@media (max-width: 1024px) {
  .product-area {
      gap: 2.5rem;
    }
}

@media (max-width: 768px) {
  header .menu-btn {
    display: inline-block;
  }

  header .nav-bar {
    height: 100vh;
    width: 70%;
    position: absolute;
    top: 0;
    right: -100%;
    background-color: var(--Off-white);
    z-index: 150;
  }

  header .nav-bar.active {
    right: 0;
  }

  header .overlay.active {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vh;
    opacity: .4;
    background-color: var(--Very-dark-blue);
  }

  header .nav-bar ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    margin-top: 18rem;
  }

  header .menu-btn {
    cursor: pointer;
  }

  header .menu-btn-close {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 180;
    cursor: pointer;
  }

  header .menu-btn-close.active {
    display: block;
  }

  /* main section */
  .main {
    flex-direction: column;
  }

  main .left-column .main-content {
    flex-direction: column;
  }
  
  .btn {
    margin-top: 2rem;
  }

  main .left-column .main-content {
    margin-top: 1.5rem;
    gap: 1.5rem;
  }

  main .left-column .main-content h1 {
    font-size: 4.2rem;
  }

  main .right-column .new-container {
    gap: 2rem;
  }
  /* product section */
  .product-area {
    gap: 2.5rem;;
  }

}
