/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  font-family: 'Unbounded', cursive;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Disable default scrollbars for immersive effect */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}
body::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
section {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 1s ease, opacity 1s ease;
  will-change: transform, opacity;
}
section.inactive {
  z-index: 0;
}
section.active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}
.hero {
  background: linear-gradient(135deg, #3333cb 0%, #00ddbb 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}
h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  z-index: 1;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease forwards;
}
p.subtitle {
  font-family: "Fustat", sans-serif;
  
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
  z-index: 1;
  animation: fadeInUp 1.5s ease forwards;
}
.btn-primary {
  background: #ff6f61;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(255,111,97,0.4);
  transition: all 0.3s ease;
  z-index: 1;
  animation: fadeInUp 2s ease forwards;
}
.btn-primary:hover {
  background: #ff4a3d;
  box-shadow: 0 15px 20px rgba(255,74,61,0.6);
  transform: translateY(-3px);
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Responsive */
@media (max-width: 768px), (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  p.subtitle {
    font-size: 1.2rem;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }
  section {
    position: static;
    height: auto;
    min-height: 100vh;
    width: 100%;
    overflow: visible;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  section.inactive, section.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .scroll-prompt {
    display: none !important;
  }
}

/* Additional styles for immersive scroll */
html, body {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

section.inactive {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

section.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

/* Background colors for sections */
.section2 {
  background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
  color: #fff;
}
.section3 {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  font-family: "Fustat", sans-serif;
}

.section4 {
  background: linear-gradient(135deg, #50e3c2 0%, #4a90e2 100%);
  color: white;
}

.section4 .btn-primary {
  position: relative;
  overflow: hidden;
  color: white;
}

.section4 .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-45deg);
  animation: shine 2.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* Scroll prompt styles */
.scroll-prompt {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  animation: bob 2s ease-in-out infinite;
  z-index: 10;
}
.scroll-prompt .arrow {
  font-size: 2rem;
  margin-bottom: 8px;
  animation: bob 2s ease-in-out infinite;
}

/* Bobbing animation */
@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pinch in/out animation keyframes */
@keyframes pinchIn {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}
@keyframes pinchOut {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

b{
  color: #ffc41d;
}
