/* variables */
:root {
  --bg-color: #f5ece4;
  --primary-color: #734425;
  --secondary-color: #c26819;
  --black: #2e2e2e;
  --heading-font: "Outfit", sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--black);
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.btn {
  color: #fff;
  padding: 8px 20px;
  font-weight: 500;
}

/* Responsive button styles */
@media (max-width: 768px) {
  .btn {
    padding: 10px 18px;
    font-size: 14px;
    display: inline-block;
    text-align: center;
  }
}

.radius {
  border-radius: 10px;
}

a {
  text-decoration: none;
  display: inline-block;
}

img {
  width: 100%;
}

.w-full {
  width: calc(100vw - 10rem) !important;
  max-width: 1440px;
  margin: auto;
}

/* Responsive base styles */
@media (max-width: 768px) {
  .w-full {
    width: calc(100vw - 2rem) !important;
    padding: 0 1rem;
  }

  body {
    font-size: 16px;
  }

  #main {
    overflow-x: hidden;
  }
}

/* for all headings */
.heading {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 6.5vw;
  color: var(--primary-color);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.4rem;
}

/* Responsive heading styles */
@media (max-width: 768px) {
  .heading {
    font-size: 8vw;
    margin-bottom: 1rem;
  }
}

/* local properties */

/* header */

header {
  padding: 1rem 0;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 1;
}

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

header .logo {
  max-width: 132px;
}

header .btn {
  background-color: var(--secondary-color);
}

/* Responsive header styles */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 0;
  }

  header .logo {
    max-width: 100px;
  }

  header .btn {
    padding: 6px 16px;
    font-size: 14px;
  }
}

#main {
  overflow: hidden;
}

#headphone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2.2%;
  width: 40vw;
  max-width: 660px;
  filter: drop-shadow(8px 35px 6px #00000025);
  will-change: transform;
  z-index: 9;
}

/* Responsive headphone image */
@media (max-width: 768px) {
  #headphone {
    width: 60vw;
    max-width: 300px;
    top: 8%;
    position: relative;
    left: 0;
    transform: none;
    margin: 0 auto;
    display: block;
  }
}

/* section 1 */

#section1 {
  height: 100vh;
  width: 60vw;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#section1 h1 {
  font-size: 11.5vw;
  line-height: 0.85;
  margin-bottom: 0;
}

/* Responsive section 1 */
@media (max-width: 768px) {
  #section1 {
    width: 90vw;
    height: 60vh;
    padding-top: 10vh;
  }

  #section1 h1 {
    font-size: 15vw;
    line-height: 0.9;
  }
}

/* section 2 */

#section2 {
  min-height: 100vh;
  padding-top: 4vw;
}

#section2 .btn {
  background-color: var(--black);
  margin-top: 1.8rem;
}

#section2 .content-wrapper {
  max-width: 500px;
}

.feature-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 8vw;
}

.feature-box {
  border: 2px solid var(--black);
  padding: 1.2vw 1.4vw;
}

.feature-name {
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

/* Responsive section 2 */
@media (max-width: 768px) {
  #section2 {
    padding-top: 8vw;
  }

  .feature-wrapper {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 6vw;
  }

  .feature-box {
    padding: 4vw 5vw;
  }

  .feature-name {
    font-size: 1.2rem;
  }
}

/* section 3 */

#section3 {
  min-height: 100vh;
  padding-top: 4vw;
  padding-bottom: 4vw;
}

#section3 .content-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

#section3 .heading {
  font-size: clamp(2rem, 12.5vw, 13.5rem);
  text-align: center;
  text-wrap: balance;
  margin-bottom: 3vw;
}

#section3 video {
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 30px #73442536;
}

#section3 .content {
  max-width: 500px;
  margin-left: auto;
}

#section3 p {
  margin-top: 1rem;
}

/* Responsive section 3 */
@media (max-width: 768px) {
  #section3 {
    padding-top: 6vw;
    padding-bottom: 6vw;
  }
  .content p {
    display: block;
  }
  #section3 .heading {
    font-size: clamp(1.8rem, 10vw, 8rem);
    margin-bottom: 4vw;
  }

  #section3 .content-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  #section3 .content {
    margin-left: 0;
  }

  #section3 video {
    max-width: 100%;
  }
}

/* section 4 */

#section4 {
  min-height: 100vh;
  position: relative;
}

#section4 img {
  border: 10px solid #fff;
  box-shadow: 0 0 30px #73442536;
  position: absolute;
}

#section4 .img1 {
  max-width: 260px;
  top: 12%;
  left: 3%;
  transform: rotate(15deg);
}

#section4 .img2 {
  max-width: 470px;
  right: 4%;
  top: 22%;
  transform: rotate(14deg);
}

#section4 .img3 {
  max-width: 340px;
  left: 10%;
  bottom: 12%;
  transform: rotate(-12deg);
}

/* Responsive section 4 */
@media (max-width: 768px) {
  #section4 {
    min-height: auto;
    position: static;
    padding: 4vw 0;
  }

  #section4 img {
    position: static;
    transform: none !important;
    margin: 1rem auto;
    display: block;
    max-width: 80% !important;
    border: 5px solid #fff;
  }

  #section4 .img1,
  #section4 .img2,
  #section4 .img3 {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
}

/* section 5 */

#section5 {
  text-align: center;
  padding-top: 4vw;
  padding-bottom: 8vw;
  min-height: 94vh;
}

#section5 .product-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}

#section5 img {
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(6px 15px 5px #00000018);
}

/* Hide middle product image on desktop but ensure text visibility */
@media (min-width: 991px) {
  #section5 .product:nth-child(2) img {
    opacity: 0;
    pointer-events: none;
  }

  #section5 .product:nth-child(2) .name,
  #section5 .product:nth-child(2) .price {
    opacity: 1;
    visibility: visible;
    display: block;
  }
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
}

.product .name {
  font-size: 24px;
  font-weight: 500;
}

.product .price {
  font-size: 24px;
  font-weight: 700;
}

/* Responsive section 5 */
@media (max-width: 768px) {
  #section5 {
    padding-top: 6vw;
    padding-bottom: 10vw;
  }

  #section5 .product-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
  }

  #section5 img {
    max-width: 250px;
  }

  .product .name {
    font-size: 20px;
  }

  .product .price {
    font-size: 20px;
  }
}

/* section 6 */

#section6 {
  min-height: 100vh;
  display: flex;
  align-items: start;
  gap: 5vw;
  padding-bottom: 8vw;
}

#section6 img {
  box-shadow: 0 0 30px #73442536;
}

#section6 p {
  margin-bottom: 1rem;
}

/* Responsive section 6 */
@media (max-width: 768px) {
  #section6 {
    flex-direction: row;
    gap: 1.5rem;
    padding: 2rem;
    background: #f5ece4;
    border-radius: 15px;
    margin: 2rem 0;
    align-items: flex-start;
    min-height: auto;
  }

  #section6 img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  #section6 .content-wrapper {
    flex: 1;
    padding: 0;
    background: none;
    backdrop-filter: none;
    width: auto;
  }

  #section6 .heading {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
  }

  #section6 p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 0.8rem;
  }
}

/* footer */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 2px solid var(--primary-color);
}

footer .logo {
  max-width: 132px;
}

footer .social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  footer .logo {
    max-width: 100px;
  }

  footer .social img {
    width: 30px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 990px) {
  .w-full {
    width: calc(100vw - 4rem) !important;
    padding: 0 2rem;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .heading {
    font-size: 7vw;
  }

  /* Paragraph styling for tablets */
  p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
  }

  #section1 {
    width: 80vw;
  }

  #section1 h1 {
    font-size: 12vw;
  }

  /* Section 2 tablet styles */
  #section2 {
    padding-top: 6vw;
  }

  #section2 .content-wrapper {
    max-width: 600px;
  }

  #section2 p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .feature-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 6vw;
  }

  .feature-box {
    padding: 2vw 2.5vw;
  }

  .feature-detail {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Section 3 tablet styles */
  #section3 {
    padding-top: 6vw;
    padding-bottom: 6vw;
  }

  #section3 .content-wrapper {
    gap: 2.5rem;
  }

  #section3 p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 1rem;
  }

  #section3 .content {
    max-width: 450px;
  }

  /* Section 5 tablet styles */
  #section5 .product-section {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  #section5 img {
    max-width: 280px;
  }

  .product .name {
    font-size: 22px;
  }

  .product .price {
    font-size: 22px;
  }

  /* Section 6 tablet styles */
  #section6 {
    gap: 2rem;
    padding: 2.5rem;
    background: #f5ece4;
    border-radius: 15px;
    margin: 2rem 0;
    align-items: flex-start;
    min-height: auto;
  }

  #section6 img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  #section6 .content-wrapper {
    flex: 1;
    padding: 0;
    background: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  #section6 .heading {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
  }

  #section6 p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--black);
  }

  #headphone {
    width: 50vw;
    max-width: 400px;
  }
}
