/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

/* Dark theme */
.dark-theme {
  background-color: #0a0a0a;
  color: #ffffff;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Container */
.container {
  width: 100%;
  height: 100%;
}

/* Full screen sections */
.full-screen-section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Media container */
.media-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.media-container picture, /* Added picture element */
.media-container img, 
.media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

.media-container:hover img,
.media-container:hover video {
  transform: scale(1.02);
}

/* Play button overlay */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: rgba(255, 0, 255, 0.7);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  scroll-snap-align: start;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(255, 0, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6);
  letter-spacing: 2px;
  font-weight: 800;
  animation: glow 3s ease-in-out infinite alternate;
}

.hero p {
  font-size: 1.8rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
}

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





/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Transitions and Animations */
.full-screen-section {
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.8s ease-out,
              filter 0.8s ease-out,
              perspective 1s ease-out;
  will-change: transform, opacity, filter, perspective;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.full-screen-section:hover .media-container {
  transform: scale(1.05) translateZ(20px);
  /* filter: brightness(1.1) contrast(1.05); */
}

.media-container {
  transition: transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000),
              filter 0.8s ease-out;
  will-change: transform, filter;
  transform-style: preserve-3d;
}

/* Text animations */
h1, h2, h3, p {
  transition: transform 0.5s ease, opacity 0.5s ease;
  will-change: transform, opacity;
}

/* Add animation to hero elements */
.hero h1 {
  animation: float 6s ease-in-out infinite alternate,
             glow 3s ease-in-out infinite alternate;
}

.hero p {
  animation: float 8s ease-in-out infinite alternate-reverse;
}

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



/* Media queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .full-screen-section:hover .media-container {
    transform: scale(1.01);
  }
}
