@font-face {
  font-family: 'MyFont'; 
  src: url('fonts/SourceSans3-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'MyFont'; 
  src: url('fonts/SourceSans3-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'MyFont'; 
  src: url('fonts/SourceSans3-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'MyFont';
  src: url('fonts/SourceSans3-Bold.ttf') format('truetype');
  font-weight: 600;
}

html, body{
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  width: 100vw;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(
    circle at 40% 40%, 
    #0d1e26,
    #0a1b1f,
    #060d10
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

header {
  display: flex;
  padding: 15px 0px;
    font-family: MyFont;
  background-color: transparent;
  backdrop-filter: blur(100px);
  position: fixed;
  width: 100vw;
  top: 0px;
  z-index: 999;
}

header img {
  max-width: 28px;
  max-height: auto;
  padding-left: 10px;
  padding-bottom: 10px;
}

header nav {
  display: flex;
  justify-content: center;
  gap: 150px;
  width: calc(100% - 150px);
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  font-size: 27px;
  left: 0px;
}

main {
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: MyFont;
  left: 0px;
}

.hero {
  margin-top: 200px;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: center;

}

.main-pic{
  width: 70%;
  max-height: auto;
  padding-top: 70px;
  filter: drop-shadow(0 0px 50px rgba(255, 255, 255, 0.219));
  padding-left: -20px;
  position: absolute;
  transform-origin: center center;

}

.main-pic.visible {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.sec1 {
    height: 100vh;
  width: 100vw;
  margin-top: 350px;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sec1 h2 {
  font-size: 75px;
  font-weight: 400;
}

.box1 {
  display: flex;
  background-color: rgba(255, 255, 255, 0.226);
  font-size: 40px;
  width: 300px;
  align-items: center;
  justify-content: center;
  border-radius: 70px;
  max-height: 80px;
}

.product-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
}

.color-picker {
  display: flex;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.226);
  padding: 10px;
  border-radius: 27px;
  position: absolute;
  top: 195%;
  left: 68%;
}

.color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active {
  border: 2px solid rgb(255, 255, 255);
}

.product-info {
  max-width: 600px;
  color: white;
  text-align: left;
  padding: 45px;
  position: absolute;
  right: 57%;
  background-color: rgba(255, 255, 255, 0.226);
  border-radius: 40px;
  font-family: MyFont;
}

.product-info h2 {
  font-size: 70px;
  margin-bottom: 20px;
}

.product-info p {
  font-size: 30px;
  line-height: 1.5;
}

.product-info,
.color-picker {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-info.visible,
.color-picker.visible {
  opacity: 1;
  transform: translateY(0);
}

.box2 {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  text-align: center;
  padding: 40px;

}

.box2 h2 {
  font-size: 100px;
  font-weight: 500;
  z-index: 2;
  margin-bottom: 800px;
  width: 55%;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.box2 h2.visible {
  opacity: 1;
  transform: translateY(0);
}

.box2 img.pfp {
  top: 70%;
  position: absolute;
  transform: translateY(-50%);
  z-index: 998;
  transition: transform 0.5s ease-out;
  filter: drop-shadow(0 0px 50px rgba(255, 255, 255, 0.219));
}

.box2 p {
  max-width: 73%;
  font-size: 35px;
  top: 135%;
  z-index: 2;
  position: absolute;
  color: rgb(204, 204, 204);
  opacity: 0;
  transform: translateY(-10%);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.box2 p.visible {
  opacity: 1;
  transform: translateY(0);
}

.box3 {
  height: 200vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-top: 900px;
  overflow: hidden;
  padding-top: 900px;
  left: 0px;
  padding-left: 0;
  margin-left: 0;

}

.box3-text {
  max-width: 470px;
  text-align: left;
    opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.box3-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.box3-text h2 {
  font-size: 45px;
  margin-bottom: 25px;
  font-weight: 500;
}

.box3-text p b {
  color: white;
  font-weight: 700;
  font-size: 1.08em;
}

.box3-text p {
  font-size: 22px;
  line-height: 1.6; 
  color: #ccc;
  margin-top: 0;
  margin-bottom: 0;
}

.box2-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.box3-img {
  position: absolute;
  top: 50%;
  left: 50%;
width: 150%;
height: auto;
  transform: translate(-50%, -50%);
  z-index: -1; 
  object-fit: contain;
  display: block;
    margin: 0;
  padding: 0;

  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

.box3-text-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 40px;
  z-index: 1;

}

.spatial-audio-icon-center {
  display: flex;
  justify-content: left;
  margin-bottom: 12px;
}



.adaptive-eq-icon-center {
  display: flex;
  margin-bottom: 12px;
}

.box3-header {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 100%;
  align-items: center ;
    opacity: 0;
  transform: translateX(-50%) translateY(20px); 
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.box3-header.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.box3-header h2 {
  font-size: 105px;
  margin-bottom: 25px;
  font-weight: 600;
}

.box3-header p {
  font-size: 27px;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  max-width: 60%;
  text-align: center;
  line-height: 1.3;
}

.why-apple {
  background: transparent;
  padding: 200px 40px;
  padding-bottom: 400px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.why-apple-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.why-apple-header h2 {
  font-size: 50px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding-bottom: 70px;
  max-width: 600px;
}

.why-apple-header a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: rgba(255, 255, 255, 0.267);
  border-radius: 25px;
  padding: 30px;
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 320px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 30px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: #cdcdd6;
  font-size: 16px;
}

.plus {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: 600;
  color: white;
  background: #232324;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background:   #ffffff31;
  color: #fff;
  padding: 70px;
  border-radius: 16px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: fadeIn 0.3s ease;
  font-family: MyFont;
  backdrop-filter: blur(50px);

}

.popup-content h3 {
  font-size: 50px;
  margin-bottom: 20px;
}

.popup-content p {
  font-size: 30px;
  line-height: 1.5;
  color: #ccc;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: #aaa;
}

.popup-close:hover {
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
