/* ==========================================================================
   RUNAAL MUSIC ACADEMY & OJASWI WRITING ACADEMY
   Premium Cinematic Design System & Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Primary Midnight & Navy Tones */
  --color-bg-primary: #050B18;
  --color-bg-secondary: #0A1329;
  --color-bg-tertiary: #0F1C3F;
  --color-bg-card: rgba(13, 25, 52, 0.7);
  --color-bg-card-hover: rgba(18, 34, 70, 0.85);
  
  /* Gold Accents */
  --color-gold-light: #F6E27A;
  --color-gold: #D4AF37;
  --color-gold-dark: #AA820A;
  --color-gold-muted: #C5A059;
  --color-gold-gradient: linear-gradient(135deg, #F6E27A 0%, #D4AF37 50%, #8E6C18 100%);
  --color-gold-glow: rgba(212, 175, 55, 0.25);
  
  /* Burgundy & Wine Accents (Writing/Cinema) */
  --color-wine-dark: #3A0F1D;
  --color-wine: #5B182E;
  --color-wine-light: #8A2545;
  --color-wine-gradient: linear-gradient(135deg, #8A2545 0%, #5B182E 50%, #3A0F1D 100%);
  
  /* Warm Off-White / Ivory */
  --color-ivory: #FAF9F6;
  --color-ivory-muted: #E2DFD2;
  --color-cream: #F5F3EF;
  
  /* Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-gold: #ECC86B;
  
  /* Borders & Glassmorphism */
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-gold-subtle: rgba(212, 175, 55, 0.12);
  --border-glass: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(7, 16, 38, 0.75);
  --glass-blur: blur(16px);
  
  /* Shadows */
  --shadow-gold: 0 10px 30px -5px rgba(212, 175, 55, 0.18);
  --shadow-luxury: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 15px 35px rgba(2, 6, 16, 0.6);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--color-bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(91, 24, 46, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(26, 54, 115, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Utility Classes */
.font-serif-cinematic {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-heading {
  font-family: 'Cinzel', serif;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Gold Text Gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFF0A5 0%, #D4AF37 40%, #F3E5AB 70%, #AA820A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-wine {
  background: linear-gradient(135deg, #FF9EBB 0%, #D24D73 50%, #8A2545 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luxury Gold Borders & Accents */
.border-gold-glow {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.12);
}

.border-gold-glow:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #D4AF37 50%, transparent 100%);
}

.wine-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #8A2545 50%, transparent 100%);
}

/* Glassmorphic Container */
.glass-nav {
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.glass-card {
  background: rgba(10, 19, 41, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(14, 27, 58, 0.85);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
}

.glass-card-wine {
  background: rgba(25, 10, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(138, 37, 69, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-wine:hover {
  transform: translateY(-5px);
  background: rgba(35, 12, 28, 0.88);
  border-color: rgba(210, 77, 115, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(138, 37, 69, 0.25);
}

/* Film Clapper & Viewfinder Accents */
.viewfinder-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-gold);
}
.viewfinder-tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.viewfinder-tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.viewfinder-bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.viewfinder-br { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; }

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 9999px;
  color: #EF4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: blinkRec 1.2s infinite ease-in-out;
}

@keyframes blinkRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.85); }
}

/* Sound Wave Animation */
.sound-bar {
  display: inline-block;
  width: 3px;
  height: 16px;
  background-color: var(--color-gold);
  border-radius: 3px;
  margin: 0 1.5px;
  animation: soundBarWave 1.2s infinite ease-in-out alternate;
}
.sound-bar:nth-child(1) { animation-delay: 0.1s; height: 10px; }
.sound-bar:nth-child(2) { animation-delay: 0.4s; height: 22px; }
.sound-bar:nth-child(3) { animation-delay: 0.2s; height: 14px; }
.sound-bar:nth-child(4) { animation-delay: 0.6s; height: 26px; }
.sound-bar:nth-child(5) { animation-delay: 0.3s; height: 18px; }
.sound-bar:nth-child(6) { animation-delay: 0.5s; height: 12px; }

@keyframes soundBarWave {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1.4); opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050B18;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* Shimmer Button */
.btn-gold {
  position: relative;
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B89738 100%);
  color: #050B18;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
  filter: brightness(1.08);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.75s ease;
}

.btn-gold:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #F8FAFC;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #D4AF37;
  color: #F6E27A;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Lightbox Modal */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Timeline Glowing Line */
.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #D4AF37 0%, rgba(212, 175, 55, 0.3) 50%, #8A2545 100%);
}

@media (max-width: 768px) {
  .timeline-track {
    left: 24px;
  }
}

/* Artistic Background Ornaments */
.hero-glow-gold {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-glow-wine {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 24, 46, 0.16) 0%, rgba(91, 24, 46, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

/* Floating Action Button */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Filter Tab active state */
.tab-btn.active {
  background: linear-gradient(135deg, #D4AF37, #AA820A) !important;
  color: #050B18 !important;
  font-weight: 700 !important;
  border-color: #D4AF37 !important;
}

/* Animation utilities */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Continuous Running Image Marquee & Slideshow
   ========================================================================== */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1.5rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.5rem;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Slideshow Transitions */
.slide-item {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.96);
  position: absolute;
  inset: 0;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  position: relative;
}

.slide-dot.active {
  background: #D4AF37 !important;
  width: 2rem !important;
}
