/* ==========================================================================
   Sri Siddhavana Gurukula - Ultra-Modern 3D White Theme CSS
   ========================================================================== */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-subtle: #F5F3EF;
  --color-terracotta: #9A3412;
  --color-terracotta-dark: #7C2D12;
  --color-terracotta-light: #C2410C;
  --color-saffron: #D97706;
  --color-saffron-light: #F59E0B;
  --color-forest: #166534;
  --color-forest-dark: #14532D;
  --color-gold: #B45309;
  --color-gold-light: #FBBF24;
  --color-charcoal: #1E293B;
  --color-muted: #64748B;
  --border-gold-subtle: rgba(180, 83, 9, 0.18);
  --shadow-3d-card: 0 10px 30px -10px rgba(154, 52, 18, 0.08), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
  --shadow-3d-hover: 0 25px 45px -12px rgba(154, 52, 18, 0.18), 0 10px 20px -5px rgba(0, 0, 0, 0.06);
}

/* Force Clean White Canvas */
body {
  background-color: var(--bg-primary);
  color: var(--color-charcoal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  selection-background-color: var(--color-saffron);
  selection-color: #FFFFFF;
}

/* Subtle Architectural Grid on White Background */
.bg-subtle-grid {
  background-color: #FFFFFF;
  background-image: 
    radial-gradient(circle, rgba(180, 83, 9, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(241, 245, 249, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 245, 249, 0.6) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
}

/* Ultra-Modern 3D Perspective Card */
.card-3d-wrap {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.card-3d {
  background: #FFFFFF;
  border: 1px solid var(--border-gold-subtle);
  border-radius: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-3d-card);
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow: var(--shadow-3d-hover);
  border-color: rgba(217, 119, 6, 0.45);
}

.card-3d-inner {
  transform: translateZ(25px);
}

/* 3D Glassmorphism on White */
.glass-white {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(180, 83, 9, 0.15);
}

.glass-floating-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(180, 83, 9, 0.15);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Hero Section Modern 3D Canvas Background */
#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Video Modern Drawing Frame Container */
.drawing-video-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(154, 52, 18, 0.15), 0 0 0 1px rgba(180, 83, 9, 0.2);
  background: #FFFFFF;
}

.drawing-overlay-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
}

/* Custom Elegant Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-terracotta);
}

/* Subtle Shimmer Animation */
@keyframes shimmerGold {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-gold-text {
  background: linear-gradient(90deg, #7C2D12 0%, #D97706 40%, #B45309 60%, #7C2D12 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerGold 6s linear infinite;
}

/* Modern Drawing Image Container */
.drawing-frame {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s ease;
}

.drawing-frame:hover {
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 15px 35px -10px rgba(154, 52, 18, 0.12);
}

.drawing-frame img, .drawing-frame svg {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.drawing-frame:hover img, .drawing-frame:hover svg {
  transform: scale(1.03);
}

/* Routine Timeline Button Active State Text Contrast */
.routine-btn {
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1E293B;
}

.routine-btn .time-label {
  color: #B45309;
  transition: color 0.2s ease;
}

.routine-btn .title-label {
  color: #1E293B;
  transition: color 0.2s ease;
}

.routine-btn:hover {
  background: #FEF3C7;
  border-color: #FCD34D;
}

.routine-btn.active {
  background: #9A3412 !important;
  border-color: #9A3412 !important;
  box-shadow: 0 10px 20px -5px rgba(154, 52, 18, 0.35) !important;
}

.routine-btn.active .time-label {
  color: #FDE68A !important; /* Bright Gold on Dark Terracotta */
  font-weight: 800 !important;
}

.routine-btn.active .title-label {
  color: #FFFFFF !important; /* Pure White on Dark Terracotta */
  font-weight: 700 !important;
}

/* Cinematic Video Caption Overlay */
.video-caption-container {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  width: 90%;
  max-width: 680px;
  pointer-events: none;
}

.video-caption-pill {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hero Cinematic Video Overlay & Typography (Matches Attachment) */
.hero-title-glow {
  text-shadow: 0 0 45px rgba(232, 197, 71, 0.45), 0 4px 24px rgba(0, 0, 0, 0.90);
  letter-spacing: 0.035em;
}

.hero-subtext-glow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.90);
}

.hero-video-gradient {
  background: radial-gradient(ellipse at center, rgba(19, 38, 31, 0.35) 0%, rgba(13, 26, 21, 0.75) 100%);
}

/* Hero Screen Fit Architecture (Guarantees Full Viewport Fit Without Scrolling) */
.hero-screen-fit {
  height: calc(100vh - 118px);
  min-height: 560px;
  max-height: 940px;
}

@media (max-width: 640px) {
  .hero-screen-fit {
    height: auto;
    min-height: calc(100dvh - 118px);
  }
}

