/* Video Error Message Style */
.video-error-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
}

.video-error-message p {
  margin: 5px 0;
  font-size: 16px;
  color: #ddd;
}

.video-error-message p:first-child {
  font-size: 20px;
  color: #0ff;
  margin-bottom: 10px;
}

/* Viewport Height Variable */
:root {
  --vh: 1vh;
}

/* Viewport Height Usage */
#top, #footer {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

/* Responsive - Basic */
@media screen and (max-width: 768px) {
  .logo-container {
    width: 90%;
  }
  
  .title-logo {
    width: 90%;
  }
  
  .music-control {
    bottom: 15px;
    right: 15px;
  }
  
  .music-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 480px) {
  .logo-container {
    width: 95%;
  }
  
  .title-logo {
    width: 95%;
  }
  
  .music-control {
    bottom: 15px;
    right: 15px;
  }
  
  .music-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

/* Landscape Orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .logo-container {
    width: 60%;
  }
  
  .title-logo {
    width: 70%;
  }
}

/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Rajdhani:wght@300;400;500&family=Exo:wght@200;400&family=Syncopate&family=Audiowide&display=swap');

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  font-family: "Helvetica Neue", sans-serif;
  background: black;
  overflow: hidden;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  height: 60px;
}

.logo {
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-family: 'Orbitron', 'Rajdhani', 'Exo', sans-serif;
  width: auto;
  max-width: none;
  white-space: normal;
  overflow: visible;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 5px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  display: block;
}

nav ul li a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Main Content Structure */
main {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  position: relative;
  top: 0;
  margin-top: 0;
  padding-top: 0;
}

section {
  scroll-snap-align: start;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* Top Section Style */
#top { 
  height: 100%;
  padding: 0;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #000;
  overflow: hidden;
  padding-top: 0;
}

/* Video Background - FIXED */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Background Video - CRITICAL FIX */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.fallback-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('background.jpg') center/cover no-repeat;
  z-index: 1;
  display: none;
}

/* Particle Effects */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 8s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}

/* Hero Content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  z-index: 5;
}

/* Logo Style */
.logo-container {
  width: 80%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.title-logo {
  width: 100%;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
  animation: logoFloat 4s ease-in-out infinite alternate, logoGlow 3s ease-in-out infinite alternate;
}

/* Logo Float Animation */
@keyframes logoFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* Logo Glow Animation */
@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
    opacity: 0.8;
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 25px rgba(0, 255, 255, 0.3));
    opacity: 0.9;
  }
}

/* Music Control Button */
.music-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  transition: all 0.3s ease;
}

.music-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.7);
  color: #0ff;
  border-radius: 50px;
  padding: 8px 15px;
  font-size: 0.8rem;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:active {
  transform: scale(0.95);
  background: rgba(0, 255, 255, 0.2);
}

/* Music ON Animation */
@keyframes musicPulse {
  0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.3); }
  50% { box-shadow: 0 0 12px rgba(0, 255, 255, 0.6); }
  100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.3); }
}

.music-btn.playing {
  animation: musicPulse 2s infinite;
  background: rgba(0, 255, 255, 0.2);
}

/* ON/OFF Icon Display Control */
.music-icon-on, .music-icon-off {
  transition: opacity 0.3s ease;
}

.music-btn:not(.playing) .music-icon-on {
  display: none;
}

.music-btn.playing .music-icon-off {
  display: none;
}

/* Manual Links Section */
#manual-links {
  width: 100%;
  height: 100vh;
  background-color: #121212;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.manual-links-content {
  width: 95%;
  max-width: 1300px;
  height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  box-sizing: border-box;
  text-align: center;
  gap: 40px;
}

/* Section Title */
.section-title {
  color: #fff;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 6px;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

/* Manual Button Container */
.manual-buttons {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

/* Manual Button */
.manual-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 30, 40, 0.9));
  border: 2px solid rgba(0, 255, 255, 0.5);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.manual-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.manual-btn:hover::before {
  left: 100%;
}

.manual-btn:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(0, 255, 255, 0.9);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.6), 0 0 80px rgba(0, 255, 255, 0.3);
}

.manual-btn:active {
  transform: translateY(-5px) scale(1.02);
}

/* Button Icon */
.btn-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

/* Button Text */
.btn-text {
  color: #fff;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* Button Subtitle */
.btn-subtitle {
  color: #0ff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Footer Links */
.footer-links {
  margin: 0;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.footer-links a {
  color: #aaa;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0ff;
}

/* Copyright */
.copyright {
  color: #666;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  margin-top: 10px;
}


/* Responsive - Manual Section */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    letter-spacing: 4px;
  }
  
  .manual-links-content {
    padding: 15px 0;
    gap: 30px;
  }
  
  .manual-buttons {
    gap: 30px;
    max-width: 100%;
  }
  
  .manual-btn {
    width: 250px;
    height: 180px;
  }
  
  .btn-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .btn-text {
    font-size: 1.4rem;
  }
  
  .btn-subtitle {
    font-size: 0.85rem;
  }
  
  .footer-links {
    padding-top: 15px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }
  
  .manual-links-content {
    padding: 10px 0;
    gap: 25px;
  }
  
  .manual-buttons {
    flex-direction: column;
    gap: 25px;
  }
  
  .manual-btn {
    width: 90%;
    max-width: 280px;
    height: 160px;
  }
  
  .btn-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
  
  .btn-text {
    font-size: 1.3rem;
  }
  
  .btn-subtitle {
    font-size: 0.8rem;
  }
  
  .footer-links {
    gap: 15px;
    padding-top: 10px;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
}

/* Responsive - Trailer Section */
@media screen and (max-width: 992px) {
  #footer {
    padding: 80px 0 50px;
  }
  
  .section-title {
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 30px;
  }
  
  .trailer-description p {
    font-size: 1.1rem;
  }
  
  .trailer-release-date {
    font-size: 1.3rem;
  }
  
  .video-wrapper {
    max-width: 700px;
  }
}

@media screen and (max-width: 768px) {
  #footer {
    padding: 70px 0 40px;
  }
  
  .section-title {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
  }
  
  .trailer-description {
    margin: 25px 0 40px;
  }
  
  .trailer-description p {
    font-size: 1rem;
  }
  
  .trailer-release-date {
    font-size: 1.2rem;
  }
  
  .footer-nav ul {
    gap: 15px;
  }
  
  .footer-nav ul li a {
    font-size: 14px;
  }
  
  .video-wrapper {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  #footer {
    padding: 60px 0 30px;
  }
  
  .section-title {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }
  
  .trailer-description {
    margin: 20px 0 30px;
  }
  
  .trailer-description p {
    font-size: 0.9rem;
  }
  
  .trailer-release-date {
    font-size: 1.1rem;
  }
  
  .footer-nav {
    padding: 15px 0;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-nav ul li a {
    font-size: 13px;
    padding: 8px;
    display: inline-block;
  }
  
  .copyright {
    font-size: 12px;
    margin-top: 15px;
  }
}
