html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh; 
  overflow: auto; 
  font-family: 'Ninja Naruto', Arial, sans-serif;
  background: url(../img/bg.jpg) no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: clamp(60px, 10vh, 80px) clamp(15px, 4vw, 20px) clamp(20px, 5vh, 40px);
}

/* Responsive Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: clamp(200px, 50vw, 220px);
  height: 100vh;
  background-color: rgba(26, 26, 26, 0.95);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
  padding-top: clamp(50px, 8vh, 60px);
  z-index: 1000;
  overflow-y: auto;
  transition: left 0.3s ease;
}

.sidebar.active {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: clamp(8px, 2vh, 10px) 0;
}

.sidebar a {
  display: block;
  padding: clamp(10px, 2vh, 12px) clamp(15px, 4vw, 20px);
  color: #ff9900;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  transition: all 0.3s ease;
}

.sidebar a:hover {
  background-color: #333;
  padding-left: clamp(20px, 6vw, 30px);
  color: #ffb84d;
}

/* Responsive Hamburger */
.hamburger {
  position: fixed;
  top: clamp(10px, 2vh, 15px);
  left: clamp(10px, 2vw, 15px);
  font-size: clamp(20px, 5vw, 30px);
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid #ff9900;
  color: #ff9900;
  padding: clamp(6px, 2vw, 10px) clamp(8px, 2vw, 12px);
  border-radius: 6px;
  z-index: 1001;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(255, 153, 0, 0.2);
  color: #ffb84d;
  transform: scale(1.05);
}

/* Loading Screen Styles - Fixed and Fully Responsive */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  padding: clamp(10px, 3vw, 20px);
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  text-align: center;
  color: #ff9900;
  width: 100%;
  max-width: 400px;
}

/* Responsive Shuriken Design */
.shuriken-container {
  position: relative;
  width: clamp(80px, 20vw, 150px);
  height: clamp(80px, 20vw, 150px);
  margin: 0 auto clamp(20px, 5vh, 30px);
}

.shuriken-image {
  width: 100%;
  height: 100%;
  animation: shurikenSpin 1.5s linear infinite;
  filter: drop-shadow(0 0 clamp(15px, 4vw, 25px) rgba(255, 153, 0, 0.9))
          drop-shadow(0 0 clamp(30px, 8vw, 50px) rgba(255, 153, 0, 0.7));
}

/* Loading Dots - Fully Responsive */
.loading-dots {
  font-size: clamp(1.5em, 6vw, 3.5em);
  letter-spacing: clamp(0.1em, 1vw, 0.2em);
}

.loading-dots span {
  animation: dotPulse 1.8s ease-in-out infinite;
  color: #ffb84d;
  text-shadow: 0 0 clamp(8px, 2vw, 12px) rgba(255, 184, 77, 0.8);
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.4s; }
.loading-dots span:nth-child(3) { animation-delay: 0.8s; }

/* Enhanced Animations */
@keyframes shurikenSpin {
  from { 
    transform: rotate(0deg);
    filter: drop-shadow(0 0 clamp(15px, 4vw, 25px) rgba(255, 153, 0, 0.9))
            drop-shadow(0 0 clamp(30px, 8vw, 50px) rgba(255, 153, 0, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 clamp(20px, 5vw, 35px) rgba(255, 153, 0, 1))
            drop-shadow(0 0 clamp(40px, 10vw, 70px) rgba(255, 153, 0, 0.9));
  }
  to { 
    transform: rotate(360deg);
    filter: drop-shadow(0 0 clamp(15px, 4vw, 25px) rgba(255, 153, 0, 0.9))
            drop-shadow(0 0 clamp(30px, 8vw, 50px) rgba(255, 153, 0, 0.7));
  }
}

@keyframes dotPulse {
  0%, 80%, 100% { 
    opacity: 0.4;
    transform: scale(1);
  }
  40% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Responsive Hero Section */
.hero {
  text-align: center;
  padding: clamp(15px, 4vh, 20px);
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  color: #ff9900;
  margin-bottom: clamp(5px, 2vh, 10px);
  text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.hero-subtext {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: #fff;
  margin-bottom: clamp(12px, 3vh, 15px);
}

.hero .btn {
  background-color: #ff9900;
  color: #fff;
  padding: clamp(6px, 2vh, 8px) clamp(12px, 4vw, 16px);
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  display: inline-block;
}

.hero .btn:hover {
  background-color: #cc7a00;
  transform: scale(1.05);
}

/* Responsive Video Section */
.video {
  text-align: center;
  padding: clamp(20px, 6vh, 40px) clamp(10px, 2vw, 10px);
}

.video h2 {
  margin-bottom: clamp(8px, 2vh, 10px);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.video iframe,
.video video {
  width: clamp(280px, 90vw, 600px);
  height: clamp(180px, 40vw, 300px);
  border-radius: 8px;
}

/* Responsive Quote Section */
.quote {
  font-style: italic;
  text-align: center;
  margin: clamp(15px, 4vh, 20px) clamp(10px, 3vw, 10px);
  font-size: clamp(1rem, 4vw, 1.375rem);
  color: #ffd700;
  padding: 0 clamp(10px, 5vw, 20px);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Responsive Footer */
.footer {
  background-color: rgba(26, 26, 26, 0.95);
  text-align: center;
  padding: clamp(6px, 2vh, 8px) 0;
  font-size: clamp(0.7rem, 2.5vw, 0.875rem);
  color: white;
  margin-top: auto;
  border-top: 1px solid rgba(255, 153, 0, 0.3);
}

.footer .social-icons {
  margin-top: clamp(8px, 2vh, 10px);
}

.footer .social-icons a {
  margin: 0 clamp(6px, 2vw, 12px);
  color: #ff9900;
  text-decoration: none;
  font-size: clamp(14px, 4vw, 20px);
  padding: clamp(6px, 1.5vh, 8px);
  border-radius: 4px;
  background-color: rgba(255, 153, 0, 0.1);
  display: inline-block;
  transition: all 0.3s ease;
}

.footer .social-icons a:hover {
  color: #ffb84d;
  background-color: rgba(255, 153, 0, 0.2);
  transform: scale(1.1);
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
  .main-content {
    padding: 70px 15px 20px;
  }
  
  .sidebar {
    width: 250px;
  }
  
  .video iframe,
  .video video {
    height: clamp(160px, 35vw, 250px);
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 200px;
  }
  
  .video iframe,
  .video video {
    width: 95vw;
    height: clamp(140px, 30vw, 200px);
  }
  
  .hamburger {
    font-size: 18px;
    padding: 6px 8px;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .sidebar {
    width: 180px;
  }
  
  .hero-title {
    font-size: 1.3rem;
  }
  
  .quote {
    font-size: 0.9rem;
  }
  
  .hamburger {
    font-size: 16px;
    padding: 5px 7px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .main-content {
    padding: 50px 15px 20px;
  }
  
  .hero {
    padding: 10px;
  }
  
  .video {
    padding: 15px 10px 5px;
  }
  
  .video iframe,
  .video video {
    height: clamp(120px, 25vh, 200px);
  }
  
  .shuriken-container {
    width: clamp(60px, 15vw, 100px);
    height: clamp(60px, 15vw, 100px);
    margin-bottom: 15px;
  }
  
  .loading-dots {
    font-size: clamp(1.2em, 4vw, 2em);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .shuriken-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}