/* 
  Custom styles that complement the Tailwind CDN 
  Strict constraint: No build steps required. 
*/

/* Prevent horizontal overflow on mobile (Safari) */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Smooth Scrolling globally */
html {
  scroll-behavior: smooth;
}

/* Glassmorphism utility for clean markup */
.glass-card {
  background: rgba(10, 17, 24, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Enhancing typography legibility on dark backgrounds */
.chapter-title {
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Reveal on Scroll Initial States */
.reveal-on-scroll {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.5, 0, 0, 1), transform 1s cubic-bezier(0.5, 0, 0, 1);
}

/* Specific reveal animations */
.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(-40px);
}

.fade-right {
  transform: translateX(40px);
}

/* Reveal Active State triggers class additions via JS */
.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Delay utilities to create cascading animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Styling scrollbar for unified dark theme */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #070c12; 
}
::-webkit-scrollbar-thumb {
  background: #121d27; 
  border-radius: 10px;
  border: 2px solid #070c12;
}
::-webkit-scrollbar-thumb:hover {
  background: #13daec; 
}

/* Remove defaults from inputs and textareas */
input:focus, textarea:focus {
  outline: none;
}
