html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh; 
  overflow: auto; 
  font-family: 'Ninja Naruto', Arial, sans-serif;
  background: url(../img/kagebg.webp) 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: 80px 20px 40px;
  max-width: 100%;
}

/* All p tags - Responsive Typography */
p {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(16px, 2.5vw, 18px);
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Sidebar - ORIGINAL UNCHANGED */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 220px;
  height: 100vh;
  background-color: rgba(26, 26, 26, 0.95);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
  padding-top: 60px;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 10px 0;
}

.sidebar a {
  display: block;
  padding: 12px 20px;
  font-size: medium;
  color: #ff9900;
  text-decoration: none;
  font-weight: bold;
}

.sidebar a:hover {
  background-color: #333;
  padding-left: 30px;
  color: #ffb84d;
}

/* Hamburger - ORIGINAL UNCHANGED */
.hamburger {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 30px;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid #ff9900;
  color: #ff9900;
  padding: 10px 12px;
  border-radius: 6px;
  z-index: 1001;
  cursor: pointer;
}

.hamburger:hover {
  background-color: rgba(255, 153, 0, 0.2);
  color: #ffb84d;
}


/* 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);
  }
}


/* Introduction Section */
.intro-section {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(102, 51, 0, 0.8) 100%);
  border: 2px solid #ff9900;
  border-radius: 15px;
  padding: clamp(30px, 8vw, 60px) clamp(20px, 5vw, 40px);
  margin: 40px auto 80px;
  max-width: 1000px;
  width: 95%;
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3);
  text-align: center;
}

.intro-section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff9900, #ffb84d, #ff9900);
  border-radius: 17px;
  z-index: -1;
  opacity: 0.7;
}

.intro-section h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #fff;
  text-shadow: 2px 2px 4px rgba(255, 153, 0, 0.8);
  margin-bottom: 30px;
  position: relative;
  word-wrap: break-word;
}

.intro-section h1::after {
  content: "👑";
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 10px;
  color: #ff9900;
}

.dramatic-quote {
  background-color: rgba(0, 0, 0, 0.6);
  border-left: 5px solid #ff9900;
  border-right: 5px solid #ff9900;
  padding: clamp(15px, 4vw, 30px);
  margin: 40px 0;
  border-radius: 10px;
  position: relative;
}

.dramatic-quote p {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 600;
  line-height: 1.8;
  color: #ffb84d;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.intro-section > p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #f0f0f0;
  text-align: center;
  margin: 30px 0 0;
  line-height: 1.7;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Village Sections */
.village-section {
  margin: 80px auto;
  max-width: 1200px;
  width: 95%;
}

.village-header {
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(51, 25, 0, 0.8) 100%);
  border: 2px solid #ff9900;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 30px);
  position: relative;
}

.village-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9900, #ffb84d, #ff9900);
  border-radius: 12px 12px 0 0;
}

.village-header h2 {
  color: #ff9900;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  word-wrap: break-word;
}

.village-header p {
  color: #ffb84d;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 0;
  font-style: italic;
}

/* Village Lore Section */
.village-lore {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(51, 25, 0, 0.8) 100%);
  border-left: 4px solid #ff9900;
  padding: clamp(20px, 4vw, 30px);
  margin: 30px 0 50px 0;
  border-radius: 8px;
  line-height: 1.8;
}

.village-lore p {
  margin: 0;
  font-style: italic;
  color: #ffb84d;
  font-size: clamp(16px, 2.5vw, 18px);
  text-align: center;
  font-weight: 500;
}

/* Kage Grid - Responsive */
.kage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 30px);
  margin: 40px 0;
  padding: 0 10px;
}

.kage-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95) 0%, rgba(51, 25, 0, 0.9) 100%);
  border: 2px solid #ff9900;
  border-radius: 15px;
  padding: clamp(20px, 4vw, 30px);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.kage-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff9900, transparent, #ff9900);
  border-radius: 17px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.kage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 153, 0, 0.4);
}

.kage-card:hover::before {
  opacity: 0.3;
}

.kage-card img {
  width: clamp(90px, 18vw, 120px);
  height: clamp(90px, 18vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #ff9900;
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
  align-self: center;
}

.kage-card h3 {
  color: #ff9900;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin: 15px 0 5px;
  font-weight: bold;
}

.kage-card h4 {
  color: #ffb84d;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin: 5px 0 15px;
  font-style: italic;
}

.kage-card p {
  color: #f0f0f0;
  line-height: 1.6;
  margin: 15px 0 20px;
  font-size: clamp(14px, 2.2vw, 16px);
  flex: 1;
}

.kage-ability {
  background-color: rgba(255, 153, 0, 0.2);
  border: 1px solid #ff9900;
  border-radius: 25px;
  padding: 8px 15px;
  color: #ffb84d;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
  max-width: 100%;
  word-wrap: break-word;
}

/* Kage Reason Section */
.kage-reason {
  background-color: rgba(0, 0, 0, 0.4);
  border-top: 2px solid #ff9900;
  padding: 15px;
  margin-top: auto;
  border-radius: 0 0 8px 8px;
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.5;
  color: #f0f0f0;
  text-align: left;
}

.kage-reason strong {
  color: #ff9900;
  display: block;
  margin-bottom: 8px;
  font-size: clamp(11px, 1.8vw, 13px);
}

/* Key Moments Section */
.moments-section {
  margin: 100px auto;
  max-width: 1200px;
  width: 95%;
}

.moments-section h2 {
  text-align: center;
  color: #ff9900;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 50px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 30px);
  padding: 0 10px;
}

.moment-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(51, 25, 0, 0.8) 100%);
  border: 2px solid #ff9900;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 30px);
  text-align: center;
  transition: transform 0.3s;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.moment-card:hover {
  transform: scale(1.05);
}

.moment-icon {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.moment-card h3 {
  color: #ff9900;
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  margin: 0 0 15px 0;
}

.moment-card p {
  color: #f0f0f0;
  line-height: 1.6;
  margin: 0;
  font-size: clamp(14px, 2.2vw, 16px);
}

/* Quotes Section */
.quotes-section {
  margin: 100px auto;
  max-width: 1000px;
  width: 95%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(102, 51, 0, 0.8) 100%);
  border: 2px solid #ff9900;
  border-radius: 15px;
  padding: clamp(30px, 6vw, 50px) clamp(20px, 4vw, 40px);
}

.quotes-section h2 {
  text-align: center;
  color: #ff9900;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 40px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.quotes-container {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.quote-item {
  background-color: rgba(0, 0, 0, 0.5);
  border-left: 4px solid #ff9900;
  padding: clamp(15px, 3vw, 25px);
  border-radius: 8px;
  position: relative;
}

.quote-item p {
  color: #f0f0f0;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.quote-item cite {
  color: #ffb84d;
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: bold;
  display: block;
  text-align: right;
}

/* Footer */
.footer {
  background-color: rgba(26, 26, 26, 0.95);
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  color: white;
  margin-top: auto;
  border-top: 1px solid rgba(255, 153, 0, 0.3);
}

.footer .social-icons {
  margin-top: 10px;
}

.footer .social-icons a {
  margin: 0 12px;
  color: #ff9900;
  text-decoration: none;
  font-size: 20px;
  padding: 8px;
  border-radius: 4px;
  background-color: rgba(255, 153, 0, 0.1);
  display: inline-block;
}

.footer .social-icons a:hover {
  color: #ffb84d;
  background-color: rgba(255, 153, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .intro-section {
    padding: 40px 20px;
    margin: 20px auto 40px;
  }
  
  .village-section {
    margin: 60px auto;
  }
  
  .kage-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 5px;
  }
  
  .moments-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 50px 10px 20px;
  }
  
  .kage-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
  }
  
  .kage-card {
    min-height: 350px;
    padding: 15px;
  }
  
  .village-section {
    margin: 40px auto;
  }
  
  .intro-section {
    margin: 20px auto 40px;
  }
}

@media (max-width: 320px) {
  .kage-card {
    min-height: 300px;
    padding: 12px;
  }
  
  .kage-card img {
    width: 80px;
    height: 80px;
  }
  
  .village-header,
  .village-lore,
  .intro-section {
    padding: 15px;
  }
}