/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font loading optimization */
@font-face {
  font-family: 'Playfair Display';
  font-display: swap;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  touch-action: none; /* Prevent touch scrolling on mobile */
}

body {
  font-family: 'Playfair Display', 'Times New Roman', Times, serif;
  line-height: 1.6;
  color: #ffffff;
  background: #000000;
  min-height: 100vh;
  overflow: hidden; /* Prevent all scrolling */
  touch-action: none; /* Prevent touch scrolling on mobile */
  -webkit-overflow-scrolling: touch; /* Disable momentum scrolling */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: #ffffff;
  text-decoration: none;
}

/* Mode Toggle */
.mode-toggle {
  display: flex;
  align-items: center;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.toggle-btn.audio-off {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.toggle-btn.audio-off:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* Main Content */
.main-content {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-container {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  background: transparent;
  text-align: center;
  transition: all 0.5s ease;
}

.quote-content {
  margin-bottom: 2rem;
}

.quote-text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #ffffff;
  font-style: normal;
  margin-bottom: 1.5rem;
  position: relative;
  font-weight: 400;
  letter-spacing: 2px;
}


/* Audio Container */
.audio-container {
  margin-top: 2rem;
  padding: 1rem;
  background: transparent;
  border-radius: 15px;
}

.audio-container.hidden {
  display: none;
}

.audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.audio-btn {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,0.7);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.audio-btn.playing {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.audio-btn.playing:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pause-icon {
  display: none;
}

.audio-btn.playing .play-icon {
  display: none;
}

.audio-btn.playing .pause-icon {
  display: block;
}

/* SVG icon styling */
.play-icon svg,
.pause-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Error state */
.quote-container.error .quote-text {
  color: #ff6b6b;
  font-style: italic;
}

/* Navigation */
.navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
}

.navigation .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-btn {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.4);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn:disabled {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  transform: none;
}

.nav-indicator {
  display: none;
}

/* Transitions */
.quote-container.transitioning {
  transform: translateY(-20px);
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .main-content {
    padding-top: 140px;
    padding-bottom: 120px;
  }
  
  .quote-container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .quote-text {
    font-size: 1.4rem;
    letter-spacing: 2px;;
  }
  
  .navigation .container {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .quote-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
/* button:focus,
.toggle-btn:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
} */

