html {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #0b0b0b;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  max-width: 100wh;
  height: 100vh;
  color: white;
  overflow-x: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0b0b0b 0%, #1a1a2e 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 90%;
}

#hero canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.icon {
  width: 120px;
  height: 120px;
  border-radius: 25px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 30px rgba(0, 255, 153, 0.4);
  animation: float 3s ease-in-out infinite;
  object-fit: contain;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

#hero h1 {
  margin-top: 30px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 255, 153, 0.3);
}

#hero p {
  color: #e8ebe8;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.play-btn {
  display: inline-block;
  margin-top: 30px;
  transition: transform 0.3s ease;
}

.play-btn img {
  width: clamp(150px, 40vw, 200px);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.play-btn:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.scroll-down {
  margin-top: 50px;
  font-size: 2.5rem;
  padding: 20px;
  border-radius: 100%;
  cursor: pointer;
  color: #00ff99;
  animation: bounce 1.5s infinite;
  user-select: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Feature Sections */
section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 100px) 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: clamp(20px, 5vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 60vh;
}

section:nth-child(even) {
  flex-direction: row-reverse;
  background: linear-gradient(135deg, #111 0%, #0f0f0f 100%);
}

section img {
  width: 100%;
  max-width: 350px;
  min-width: 250px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 255, 128, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: cover;
}

section img:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0, 255, 128, 0.4);
}

.text {
  flex: 1;
  min-width: 280px;
  max-width: 550px;
  padding: 20px;
}

.text h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #00ff99;
  margin-bottom: 20px;
  font-weight: 600;
}

.text p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #eaeaea;
  line-height: 1.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #0f0f0f 0%, #0b0b0b 100%);
  color: #aaa;
  font-size: clamp(0.85rem, 2vw, 1rem);
  border-top: 1px solid rgba(0, 255, 153, 0.1);
}

footer span {
  color: #00ff99;
  font-weight: 600;
}

/* AOS Custom Animations */
[data-aos] {
  transition-property: transform, opacity !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Responsive Design */
@media (max-width: 700px) {
  section {
    flex-direction: column !important;
    text-align: center;
    padding: 50px 15px;
  }

  section:nth-child(even) {
    flex-direction: column !important;
  }

  section img {
    max-width: 100%;
    min-width: unset;
  }

  .text {
    max-width: 100%;
  }

  #hero {
    min-height: 100svh;
    height: 100svh;
  }

  .icon {
    width: 100px;
    height: 100px;
  }

  .scroll-down {
    font-size: 2rem;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 10px;
    min-height: auto;
  }

  .icon {
    width: 90px;
    height: 90px;
  }

  section img {
    border-radius: 15px;
  }

  .text h2 {
    margin-bottom: 15px;
  }
}

/* Enhance contrast for readability */
@media (prefers-contrast: high) {
  body {
    background-color: #000;
  }

  .text p {
    color: #fff;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
