
.main-section{
  background-image: url('./images/headphones_hero_1.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100vh;
  color: white; 
}
nav ul  a{
  text-decoration: none;
  color: white;
  
}
nav ul{
  display: flex;
  justify-content: space-around;
  align-items: center;  /* Vertically centers items */
  list-style-type: none;
  padding: 32px;
  margin: 0;
  
}
/* Base nav layout */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  width: 120px;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Navigation links (desktop view) */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* MOBILE VIEW */
@media all and (max-width: 750px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: rgba(7, 22, 40, 0.95);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    gap: 15px;
  }

  .nav-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Transform the hamburger into an X when active */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

.main-list{
  display: flex;
  gap: 20px;
  }
main{
  padding-top: 120px;
  text-align: center;
}
nav ul img {
  width: 150px;
}
.main-p{
  text-align: center;
  max-width: 400px;
  margin: 40px auto 0;  
}
.second-section {
  float: left;
  width: 15%;
  text-align: center;
  padding-left: 100px;
}
.third-section{
  clear: both;
  background-image: url(./images/headphones_hero_2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 85vh;
  padding-top: 30px;
  color: white;
}
.rating-section{
  float: left;
  width: 175px;
  height: 175px;
  margin: 0 40px;  /* Spacing between pentagons */
  background-image: url(./images/pentagone.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  text-align: center;
  padding-top: 60px;  /* Pushes text down */
  box-sizing: border-box;
  margin-left: 88px;
  margin-top: 25px;
}
.form{
  max-width: 335px;
  margin: 0 auto;
  text-align: left;
}
label {
  display: block;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 500;
}
input{
  width: 85%;
  /* padding: 5px 0; */
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}
.form-button{
  display: block;
  margin: 0 auto;
  margin-top: 32px;
  text-align: center;
}
footer{
  clear: both;
  background-color: rgba(7, 22, 40);
  padding-bottom: 10px;
}
.footer{
    float: left;
    width: 100%;
    padding: 50px 45px 40px 55px;
}
.footer1{
    float: right;
    width: 15%;
    padding-left: 164px;
}
.fa-brands{
  background-color: antiquewhite;
  border-radius: 50%;
  padding: 5px;
}
footer img{
  width: 120px;
}
.smile{
  color: gray;
}
footer p {
  text-align: center;
}

@media all and (max-width: 750px) {
  nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .main-list {
    display: none; /* hides menu if you plan to add a hamburger later */
  }

  main {
    padding-top: 60px;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
  }

  .second-section {
    float: none;
    width: 100%;
    padding: 20px 0;
  }

  .third-section {
    height: auto;
    padding: 40px 20px;
  }

  .rating-section {
    float: none;
    margin: 20px auto;
    width: 120px;
    height: 120px;
    padding-top: 40px;
    background-size: contain;
  }

  form {
    width: 90%;
    margin: 0 auto;
  }

  input {
    width: 100%;
  }

  footer {
    text-align: center;
  }

  .footer,
  .footer1 {
    float: none;
    width: 100%;
    padding: 10px 0;
  }

  .footer1 {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .fa-brands {
    background-color: transparent;
  }
}
