/* ==========================================================================
   Tribute Site - Santharam Farewell
   Cinematic Premium Design System
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Cinzel', serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Color Palette */
  --bg-dark: #06040a;
  --bg-dark-rgb: 6, 4, 10;
  
  --purple-glow: #8b5cf6;
  --purple-glow-rgb: 139, 92, 246;
  --purple-dark: #4c1d95;

  --gold-glow: #fbbf24;
  --gold-glow-rgb: 251, 191, 36;
  --gold-dark: #b45309;

  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dimmed: rgba(255, 255, 255, 0.45);

  --glass-bg: rgba(15, 11, 28, 0.45);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-glow: rgba(139, 92, 246, 0.15);

  /* Transitions */
  --transition-slow: 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-primary);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
}

/* --- Canvases for Particles & FX --- */
#particle-canvas, #fx-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#fx-canvas {
  z-index: 15; /* Sits on top of content for fireworks/confetti */
}

/* --- Ambient Background Glows --- */
.ambient-glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  transition: all 4s ease-in-out;
  mix-blend-mode: screen;
}

.ambient-glow.bg-purple {
  background: radial-gradient(circle, rgba(var(--purple-glow-rgb), 0.8) 0%, rgba(0,0,0,0) 70%);
  top: -20%;
  left: -10%;
  animation: floatGlowPurple 25s infinite alternate ease-in-out;
}

.ambient-glow.bg-gold {
  background: radial-gradient(circle, rgba(var(--gold-glow-rgb), 0.6) 0%, rgba(0,0,0,0) 70%);
  bottom: -20%;
  right: -10%;
  animation: floatGlowGold 20s infinite alternate ease-in-out;
}

/* --- Glassmorphism Base --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37),
              inset 0 0 32px 0 rgba(255, 255, 255, 0.02);
  border-radius: 20px;
}

/* --- Start Overlay (Autoplay Activator) --- */
.section-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.section-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.start-container {
  text-align: center;
  max-width: 600px;
  padding: 40px;
  position: relative;
  z-index: 10;
}

.glowing-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(var(--purple-glow-rgb), 0.3) 0%, rgba(var(--gold-glow-rgb), 0.05) 50%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  animation: pulseOrb 4s infinite alternate ease-in-out;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.welcome-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}

.start-btn {
  background: transparent;
  border: 1px solid rgba(var(--gold-glow-rgb), 0.5);
  padding: 16px 36px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(var(--gold-glow-rgb), 0.15),
              inset 0 0 10px rgba(var(--gold-glow-rgb), 0.05);
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.7s ease;
}

.start-btn:hover {
  border-color: var(--gold-glow);
  box-shadow: 0 0 35px rgba(var(--gold-glow-rgb), 0.35),
              0 0 10px rgba(var(--purple-glow-rgb), 0.2);
  transform: translateY(-2px);
}

.start-btn:hover::before {
  left: 100%;
}

.start-btn:active {
  transform: translateY(1px);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: transform var(--transition-fast);
}

.start-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* --- Control Panels --- */

/* Audio Panel */
.audio-control-panel {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100;
  transition: opacity var(--transition-fast);
}

.music-info-panel {
  position: fixed;
  bottom: 28px;
  left: 30px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 6, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  backdrop-filter: blur(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.music-info-panel a {
  color: var(--gold-glow);
  text-decoration: none;
  font-weight: 600;
}

.music-info-panel a:hover {
  color: #fff;
}

/* Autoplay Control Panel (Top Left Corner) */
.autoplay-control-panel {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
  transition: opacity var(--transition-fast);
}

.control-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: rgba(10, 6, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.control-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.control-btn:hover {
  color: var(--text-white);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(var(--purple-glow-rgb), 0.25);
}

#play-pause-btn {
  color: var(--gold-glow);
  background: rgba(255, 255, 255, 0.05);
}

#play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(var(--gold-glow-rgb), 0.35);
}

.hidden {
  display: none !important;
}

/* Audio wave animation */
.audio-icon.playing .bar {
  animation: bounceBar 1.2s infinite ease-in-out;
  transform-origin: bottom;
}

.audio-icon.playing .bar:nth-child(1) { animation-delay: 0.1s; }
.audio-icon.playing .bar:nth-child(2) { animation-delay: 0.3s; }
.audio-icon.playing .bar:nth-child(3) { animation-delay: 0.0s; }
.audio-icon.playing .bar:nth-child(4) { animation-delay: 0.4s; }

/* --- Scene Container & Layouts --- */
#scene-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
}

.scene-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  z-index: 10;
  overflow: hidden;
}

.scene-section.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 20;
}

.content-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.content-wrapper.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

/* Headers */
.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 50%, var(--purple-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title.text-gold {
  background: linear-gradient(135deg, #fff 50%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 1px;
}

.text-center {
  text-align: center;
}

/* --- SECTION 1: INTRO SCENE --- */
#intro-scene {
  background-color: #030206; /* Completely dark background initially */
}

.intro-titles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cinematic-title {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 2s ease, transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-section.active .cinematic-title.animate-in {
  opacity: 1;
  transform: scale(1);
}

.cinematic-subtitle {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease 0.8s, transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.scene-section.active .cinematic-subtitle.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.glow-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-glow) 65%, var(--purple-glow) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGlowText 6s infinite alternate;
  text-shadow: 0 0 40px rgba(var(--purple-glow-rgb), 0.2);
}

/* --- Cursive Characters Animated Writing --- */
.cursive-word {
  display: inline-block;
  white-space: nowrap;
}

.cursive-space {
  display: inline-block;
  white-space: pre;
}

.cursive-char {
  display: inline-block;
  font-family: 'Great Vibes', cursive;
  opacity: 0;
  transform: translateY(15px) scale(0.65) rotate(-6deg);
  filter: blur(5px);
  animation: cursiveWrite 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  background: linear-gradient(135deg, var(--gold-glow), #ffffff, var(--purple-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes cursiveWrite {
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: blur(0);
    text-shadow: 0 0 10px rgba(var(--gold-glow-rgb), 0.35), 
                 0 0 25px rgba(var(--purple-glow-rgb), 0.2);
  }
}

/* Prevent cursive word breaks */
#intro-main-title, 
#ending-cursive-title {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

/* Adjust title elements for cursive style */
.intro-titles .main-title {
  font-family: 'Great Vibes', cursive !important;
  text-transform: none !important; /* Cursive must not be uppercase */
  font-size: clamp(3.2rem, 7.5vw, 6.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  line-height: 1.1 !important;
  margin-bottom: 8px !important;
}

.ending-sub-title, 
#ending-cursive-title {
  font-family: 'Great Vibes', cursive !important;
  text-transform: none !important;
  font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
  font-weight: 400 !important;
  color: var(--gold-glow) !important;
  text-shadow: 0 0 15px rgba(var(--gold-glow-rgb), 0.4) !important;
  margin-top: 15px !important;
  letter-spacing: 1px !important;
}

/* ==========================================================================
   SECTION 2: PHARMA SITE MEMORIES (SPLIT SHOWCASE)
   ========================================================================== */
.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
  min-height: 62vh;
  position: relative;
  z-index: 5;
}

/* Left side: Refined text content cards */
.showcase-text-side {
  padding: 45px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 380px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              inset 0 0 24px rgba(var(--purple-glow-rgb), 0.05);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.showcase-text-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-glow), var(--gold-glow));
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(var(--gold-glow-rgb), 0.12);
  border: 1px solid rgba(var(--gold-glow-rgb), 0.25);
  color: var(--gold-glow);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.3;
  margin: 5px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-wrapper {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--purple-glow);
  margin: 10px 0;
}

.showcase-quote {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--gold-glow);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.showcase-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Right side: Synchronized floating image showcase */
.showcase-image-side {
  padding: 14px;
  border-radius: 24px;
  box-shadow: 0 25px 55px rgba(0,0,0,0.55),
              inset 0 0 30px rgba(255,255,255,0.02);
  animation: floatShowcaseFrame 6s infinite alternate ease-in-out;
  transition: all 0.5s ease;
  overflow: hidden;
  position: relative;
}

.image-inner-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.image-inner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.image-inner-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bg-dark-rgb), 0.6) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}

/* Animations for transitioning content */
.showcase-fade-out {
  opacity: 0.15 !important;
  transform: translateY(-8px) scale(0.98);
}

.showcase-img-fade-out {
  opacity: 0.15 !important;
  transform: scale(1.05);
}

@keyframes floatShowcaseFrame {
  0% { transform: translateY(0) rotate(0.5deg); }
  100% { transform: translateY(-12px) rotate(-0.5deg); }
}

/* Background floating emojis */
.emoji-bg-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  filter: blur(0.5px);
  pointer-events: none;
  animation: floatEmoji 12s linear infinite;
}

/* --- SECTION 4: MEMORY CINEMATIC --- */
.cinematic-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cinematic-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.cinematic-slide.active {
  opacity: 1;
}

.cinematic-slide.kenburns {
  animation: kenBurnsAnimation 20s infinite alternate ease-in-out;
}

.cinematic-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(10, 6, 20, 0.4) 0%, rgba(var(--bg-dark-rgb), 0.95) 85%);
  z-index: 2;
}

.cinematic-quote-container {
  max-width: 850px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 20px;
}

.cinematic-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.8vw, 2.2rem); /* highly responsive, prevents wrapping offscreen */
  font-style: italic;
  line-height: 1.5;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.scene-section.active .cinematic-quote {
  opacity: 1;
  transform: translateY(0);
}

.cinematic-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-glow);
  text-shadow: 0 0 12px rgba(var(--gold-glow-rgb), 0.45);
  margin-bottom: -5px;
  text-align: center;
  opacity: 0.85;
}

.cinematic-quote-author {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-glow);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.5s ease 0.6s, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scene-section.active .cinematic-quote-author {
  opacity: 1;
  transform: translateY(0);
}

/* --- SECTION 5: FINAL ENDING SCENE --- */
.ending-glow-box {
  padding: 50px;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(var(--purple-glow-rgb), 0.08) 0%, rgba(0,0,0,0) 80%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5),
              inset 0 0 30px rgba(var(--purple-glow-rgb), 0.05);
  margin-bottom: 40px;
  max-width: 900px;
  backdrop-filter: blur(10px);
}

.ending-main-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1.3;
  margin-bottom: 25px;
}

.ending-sub-title {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-glow);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.replay-btn {
  background: linear-gradient(135deg, rgba(var(--purple-glow-rgb), 0.3), rgba(var(--gold-glow-rgb), 0.1));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.replay-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-glow);
  box-shadow: 0 0 25px rgba(var(--gold-glow-rgb), 0.25);
  background: linear-gradient(135deg, rgba(var(--purple-glow-rgb), 0.4), rgba(var(--gold-glow-rgb), 0.2));
}

.replay-btn:active {
  transform: translateY(1px);
}

.replay-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.6s ease;
}

.replay-btn:hover .replay-icon {
  transform: rotate(-360deg);
}

/* --- KEYFRAME ANIMATIONS --- */

@keyframes bounceBar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@keyframes floatGlowPurple {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.95); }
}

@keyframes floatGlowGold {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -10%) scale(1.15); }
  100% { transform: translate(5%, 5%) scale(0.9); }
}

@keyframes pulseOrb {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

@keyframes shineGlowText {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes floatEmoji {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@keyframes kenBurnsAnimation {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -1%); }
}

@media (max-width: 992px) {
  .split-showcase {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
  }

  .showcase-text-side {
    min-height: auto;
    padding: 30px;
  }

  .cinematic-title {
    font-size: 3.5rem;
  }

  .cinematic-quote {
    font-size: 2.2rem;
  }
  
  .ending-main-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .welcome-title {
    font-size: 2rem;
  }
  
  .cinematic-title {
    font-size: 2.4rem;
  }
  
  .cinematic-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .showcase-text-side {
    padding: 24px;
  }

  .showcase-quote {
    font-size: 1.45rem;
  }

  .cinematic-quote {
    font-size: 1.6rem;
  }

  .ending-main-title {
    font-size: 1.6rem;
  }
  
  .ending-glow-box {
    padding: 24px;
  }
}
