@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

* {
  box-sizing: border-box;
  user-select: none;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

h2 {
  font-size: clamp(1rem, 6vw, 10rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  margin-right: -0.5em;
  width: 90vw;
  max-width: 1200px;
  text-transform: none;
}

header {
  position: fixed;
  width: 100%;
  z-index: 3;
}

section {
  height: 100%;
  width: 100%;
  top: 0;
  position: fixed;
  visibility: hidden;
}
section .outer,
section .inner {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
}
section .bg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  background-size: cover;
  background-position: center;
}
section .bg h2 {
  z-index: 999;
}
section .bg .clip-text {
  overflow: hidden;
}

.first .bg {
  background-color: #020617;
  /* Fade to black earlier (70%) to ensure bottom edge is solid dark */
  background-image: radial-gradient(circle at 50% 20%, #172554 0%, #020617 70%, #020617 100%);
}

.preview-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10;
  animation: bounce 1.5s infinite;
  pointer-events: none;
}

.preview-hint i.arrow {
  margin-top: 5px;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  color: white;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Hero Section Styling */
.hero-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
}

.hero-left .section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 25px 0 !important;
  text-align: left !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  color: white !important;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  padding: 60px 40px;
  gap: 60px;
}

.hero-left {
  flex: 1;
  min-width: 300px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 25px 0;
  text-align: left;
  width: auto;
  max-width: none;
  margin-right: 0;
  color: white !important;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.6;
  margin: 0 0 30px 0;
  opacity: 0.95;
  color: white;
}

.hero-btn {
  background-color: #6366f1;
  color: #000;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.hero-btn:hover {
  background-color: #fff;
  transform: scale(1.05);
}

.hero-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-img-main {
  width: 100%;
  height: auto;
  max-width: 550px;
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-content {
    padding: 40px 30px;
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

    .hero-img-main {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    padding: 120px 20px 30px 20px; /* Added top padding to clear fixed header */
    gap: 40px;
    justify-content: center;
  }

  .hero-left {
    min-width: auto;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
  }

  .hero-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  .hero-right {
    min-width: auto;
    width: 100%;
  }

  .hero-img-main {
    max-width: 680px;
    width: 90%;
    margin-top: 10px;
  }
}

.second .bg {
  background-color: #020617;
  /* Original Radial style but strictly contained to ensure black bottom */
  background-image: radial-gradient(circle at 80% 50%, #312e81 0%, #020617 60%, #020617 100%);
}

.third .bg {
  background-color: #020617;
}

.fourth .bg {
  background-color: #590925;
}

.fifth .bg {
  background-color: #020617;
  background-image: radial-gradient(circle at 50% 100%, #1e293b 0%, #020617 100%);
}

h2 * {
  will-change: transform;
}

/* --- Mobile Scroll Reset (No GSAP) --- */
@media (max-width: 1024px) {
  /* Reset Fixed Positioning for Sections */
  /* Ensure header doesn't cover content if it's fixed */
  section {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 1 !important;
  }

  /* Keep hero section full screen */
  section.first, section.first .bg {
    min-height: 100vh !important;
  }

  /* Reset GSAP structural divs */
  section .outer,
  section .inner {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
    transform: none !important; /* clear GSAP transforms */
  }

  section .bg {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    transform: none !important;
    padding: 3rem 0;
  }

  /* Specific section padding to reduce gaps */
  section.second .bg {
      padding-top: 4rem;
      padding-bottom: 2rem;
  }
  
  section.third .bg {
      padding-top: 2rem;
      padding-bottom: 3rem;
  }

  /* Ensure text is visible */
  .section-heading,
  .hero-title, 
  .hero-content,
  .feature-content,
  .steps-content,
  .why-content,
  .hero-left,
  .hero-right {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  /* Hide the scroll hint arrow on mobile */
  .preview-hint {
    display: none !important;
  }
}
