/* ============================================
   SAMUEL KWAME BOAFO — BIRTHDAY WEBSITE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #8a6a1f;
  --cream: #fdf6e3;
  --dark: #1a1209;
  --dark-mid: #2d1f0a;
  --warm-brown: #3d2b0e;
  --text-light: #f5ead0;
  --text-muted: #b89a6a;
  --accent-red: #c0392b;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', sans-serif;
  --font-script: 'Dancing Script', cursive;
  
  /* Glass effect variables */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
  /* Enable hardware acceleration for smooth animations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.intro-active {
  overflow: hidden;
}

/* Enable GPU acceleration for 3D transforms */
.gallery-item,
.tribute-card,
.video-card,
.timeline-card,
.hero-name,
.sax-photo-wrap {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* ===== LIQUID GLASS BACKGROUND BLOBS ===== */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 20s ease-in-out infinite;
}

.liquid-blob:nth-child(1) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.4) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.liquid-blob:nth-child(2) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,201,122,0.3) 0%, transparent 70%);
  top: 40%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.liquid-blob:nth-child(3) {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(138,106,31,0.3) 0%, transparent 70%);
  bottom: -15%;
  left: 30%;
  animation-duration: 35s;
  animation-delay: -10s;
}

.liquid-blob:nth-child(4) {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(201,168,76,0.25) 0%, transparent 70%);
  top: 60%;
  left: -10%;
  animation-duration: 28s;
  animation-delay: -15s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9) rotate(180deg);
  }
  75% {
    transform: translate(40px, 60px) scale(1.05) rotate(270deg);
  }
}

/* ===== INTRO OVERLAY ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #0a0602 0%, #1a1209 50%, #0e0804 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.8s ease both;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  padding: 2rem;
  max-width: 100%;
  animation: scaleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.intro-image-wrap {
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  justify-content: center;
}

.intro-image {
  max-width: min(90vw, 800px);
  max-height: 50vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(201, 168, 76, 0.3);
  border: 3px solid var(--gold);
  animation: gentleGlow 3s ease-in-out infinite;
}

@keyframes gentleGlow {
  0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(201, 168, 76, 0.3); }
  50%      { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 120px rgba(201, 168, 76, 0.5); }
}

.intro-message {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold-light);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.intro-message-box {
  max-width: min(700px, 90vw);
  margin: 0 auto 2.5rem;
}

.intro-label {
  font-family: var(--font-script);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.intro-quote {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-light);
  font-style: italic;
  background: rgba(201, 168, 76, 0.08);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  border-radius: 0 12px 12px 0;
  text-align: left;
  quotes: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .intro-image {
    max-height: 40vh;
  }
  
  .intro-quote {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .intro-content {
    padding: 1.5rem 1rem;
  }
  
  .intro-image {
    max-height: 35vh;
  }
  
  .intro-quote {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

.intro-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.intro-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.6);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.18) 0%, transparent 70%),
    linear-gradient(160deg, #1a1209 0%, #2d1f0a 40%, #1a1209 100%);
  overflow: hidden;
  perspective: 1000px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
  transform: translateZ(-100px) scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10,6,2,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: fadeInUp 1.4s ease both;
  transform-style: preserve-3d;
}

.hero-pre {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  transform: translateZ(20px);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  text-shadow:
    0 0 60px rgba(201,168,76,0.4),
    0 4px 20px rgba(0,0,0,0.6);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  transform: translateZ(50px);
  transition: transform 0.3s ease;
}

.hero-name:hover {
  transform: translateZ(70px) scale(1.02);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
  color: var(--gold);
  font-size: 1rem;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-age-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.age-number {
  font-size: 1.4em;
}

.hero-cta {
  display: inline-block;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-cta:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title.light {
  color: var(--white);
}

.section-sub {
  font-family: var(--font-script);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-sub.light {
  color: var(--gold-light);
  opacity: 0.8;
}

/* ===== MESSAGE SECTION ===== */
.message-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-mid) 50%, var(--dark) 100%);
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.message-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.message-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.message-section .container {
  background: linear-gradient(135deg, 
    rgba(45,31,10,0.3), 
    rgba(26,18,9,0.4));
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 24px;
  padding: 3rem 2rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 1rem;
  display: block;
}

.quote-mark.closing {
  text-align: right;
  margin-top: 1rem;
  margin-bottom: 0;
}

.opening-message {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.9;
  color: var(--text-light);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  font-style: italic;
}

.opening-message strong {
  color: var(--gold-light);
  font-style: normal;
}

.message-sig {
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
  margin-top: 2rem;
}

/* ===== TIMELINE ===== */
.timeline-section {
  padding: 8rem 0;
  background: var(--dark);
  position: relative;
  z-index: 1;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2.5rem);
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s ease;
}

.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2.5rem);
  transform: translateX(40px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2), 0 0 20px rgba(201,168,76,0.4);
}

.timeline-card {
  background: linear-gradient(135deg, 
    rgba(45,31,10,0.6), 
    rgba(26,18,9,0.7));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 320px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(0deg);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.5s ease;
}

.timeline-card:hover::before {
  left: 100%;
}

.timeline-card:hover {
  border-color: rgba(201,168,76,0.6);
  background: linear-gradient(135deg, 
    rgba(45,31,10,0.7), 
    rgba(26,18,9,0.8));
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(201,168,76,0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.timeline-item.right .timeline-card:hover {
  /* Transform handled by JavaScript */
}

.timeline-year {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.timeline-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--dark-mid) 0%, #1e1408 100%);
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
  margin-bottom: 2rem;
  perspective: 1000px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gallery-item:hover {
  transform: perspective(1000px) translateZ(30px) scale(1.05) rotateZ(2deg) !important;
  box-shadow: 0 20px 60px rgba(201,168,76,0.3), 0 0 40px rgba(201,168,76,0.1);
  z-index: 10;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  padding: 1.5rem 1rem 0.8rem;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.placeholder {
  background: linear-gradient(135deg, rgba(45,31,10,0.6), rgba(26,18,9,0.8));
  border: 2px dashed rgba(201,168,76,0.25);
  cursor: default;
}

.placeholder:hover {
  transform: none;
  box-shadow: none;
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.placeholder-inner p {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
  padding: 0 1rem;
}

.gallery-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 1.5rem;
}

.gallery-hint code {
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ===== VIDEOS ===== */
.videos-section {
  padding: 8rem 0;
  background: var(--dark);
  position: relative;
  z-index: 1;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(45,31,10,0.6), 
    rgba(26,18,9,0.7));
  border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  position: relative;
}

.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(201,168,76,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.video-card:hover::before {
  opacity: 1;
}

.video-card:hover {
  border-color: rgba(201,168,76,0.5);
  background: linear-gradient(135deg, 
    rgba(45,31,10,0.7), 
    rgba(26,18,9,0.8));
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.5), 
    0 0 30px rgba(201,168,76,0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}

.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1209, #2d1f0a);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  gap: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.play-icon {
  width: 50px;
  height: 50px;
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
}

.video-placeholder p {
  font-size: 0.85rem;
  opacity: 0.6;
}

.video-info {
  padding: 1rem 1.2rem;
}

.video-info h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.video-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== TRIBUTES ===== */
.tributes-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, #1e1408 0%, var(--dark-mid) 100%);
  position: relative;
  z-index: 1;
}

.tributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tribute-card.full-width {
  grid-column: 1 / -1;
  max-width: 100%;
}

.tribute-card {
  background: linear-gradient(135deg, 
    rgba(26,18,9,0.6), 
    rgba(45,31,10,0.5));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg);
}

.tribute-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

.tribute-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tribute-card:hover::after {
  opacity: 1;
}

.tribute-card.featured {
  border-color: rgba(201,168,76,0.5);
  background: linear-gradient(135deg, 
    rgba(45,31,10,0.7), 
    rgba(61,43,14,0.6));
  transform: perspective(1000px) scale(1.02);
}

.tribute-card.featured::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.tribute-card:hover {
  border-color: rgba(201,168,76,0.6);
  background: linear-gradient(135deg, 
    rgba(26,18,9,0.7), 
    rgba(45,31,10,0.6));
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.5), 
    0 0 40px rgba(201,168,76,0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tribute-card.featured:hover {
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.6), 
    0 0 50px rgba(201,168,76,0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tribute-avatar {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.tribute-card blockquote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  quotes: none;
}

.tribute-card cite {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--gold);
  font-style: normal;
  display: block;
  margin-bottom: 0.3rem;
}

.tribute-name-placeholder {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ===== FINAL SECTION ===== */
.final-section {
  padding: 10rem 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark-mid) 0%, var(--dark) 100%);
  text-align: center;
  position: relative;
  z-index: 1;
}

.candle-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.candle {
  animation: flicker 2s ease-in-out infinite;
}

.candle:nth-child(2) { animation-delay: 0.3s; }
.candle:nth-child(3) { animation-delay: 0.6s; }
.candle:nth-child(4) { animation-delay: 0.9s; }
.candle:nth-child(5) { animation-delay: 1.2s; }

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.1) rotate(2deg); }
}

.final-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 0 60px rgba(201,168,76,0.3);
}

.final-title span {
  color: var(--gold);
  font-style: italic;
  display: block;
}

.final-message {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-light);
  line-height: 1.9;
  max-width: 650px;
  margin: 0 auto 3rem;
  font-style: italic;
}

.bible-verse {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, 
    rgba(201,168,76,0.08), 
    rgba(138,106,31,0.05));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.bible-verse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.verse-icon {
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.verse-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.9;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.verse-reference {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gold-light);
  text-align: center;
  font-style: normal;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .bible-verse {
    padding: 1.5rem 1.5rem;
    margin: 0 1rem 2.5rem;
  }
  
  .verse-text {
    font-size: 1rem;
  }
}

.heart-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.heart {
  animation: heartbeat 1.5s ease-in-out infinite;
}

.heart:nth-child(2) { animation-delay: 0.3s; }
.heart:nth-child(3) { animation-delay: 0.6s; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.final-sig {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold-light);
  line-height: 1.6;
}

.final-sig strong {
  font-size: 1.8rem;
  color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer strong {
  color: var(--gold-light);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(201,168,76,0.2);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  z-index: 10;
}

.lightbox-close:hover {
  opacity: 1;
}

#lightboxCaption {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== VIDEO LIGHTBOX ===== */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-lightbox.active {
  display: flex;
}

.video-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-lightbox video {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 
    0 20px 80px rgba(0, 0, 0, 0.8),
    0 0 100px rgba(201, 168, 76, 0.3);
  border: 2px solid rgba(201, 168, 76, 0.3);
}

.video-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--white);
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.video-lightbox-close:hover {
  opacity: 1;
  background: rgba(201, 168, 76, 0.3);
  transform: scale(1.1) rotate(90deg);
}

.video-lightbox-caption {
  color: var(--gold-light);
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-script);
  text-align: center;
}

@media (max-width: 768px) {
  .video-lightbox video {
    max-width: 95vw;
    max-height: 70vh;
  }
  
  .video-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Keep 3D effects on mobile */
  .gallery-grid,
  .tributes-grid,
  .videos-grid,
  .timeline {
    perspective: 1000px;
    transform-style: preserve-3d;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  /* Enhanced mobile touch feedback */
  .gallery-item,
  .tribute-card,
  .video-card,
  .timeline-card {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
  }

  /* Mobile-optimized 3D hover states */
  .gallery-item:active {
    transform: translateZ(20px) scale(1.03);
  }

  .tribute-card:active,
  .video-card:active {
    transform: perspective(1000px) translateZ(25px) scale(1.02);
  }

  .timeline::before {
    left: 1.5rem;
  }

  .timeline-item,
  .timeline-item.right {
    justify-content: flex-start;
    padding-left: 4rem;
    padding-right: 0;
    transform: translateX(-20px);
  }

  .timeline-dot {
    left: 1.5rem;
  }

  .timeline-card {
    max-width: 100%;
  }

  .tributes-grid {
    grid-template-columns: 1fr;
  }

  .tribute-card.featured {
    transform: none;
  }

  /* Mobile 3D animations */
  .hero-name {
    animation: float3D 3s ease-in-out infinite;
  }

  @keyframes float3D {
    0%, 100% { 
      transform: translateZ(50px) translateY(0px); 
    }
    50% { 
      transform: translateZ(60px) translateY(-10px); 
    }
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  /* Keep 3D depth on small screens */
  .tribute-card,
  .video-card,
  .timeline-card {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
  }

  /* Subtle 3D lift on tap */
  .tribute-card:active {
    transform: perspective(1000px) translateZ(20px) scale(1.01);
  }

  .video-card:active {
    transform: perspective(1000px) translateZ(20px) scale(1.01);
  }
}

/* ============================================
   MUSIC PLAYER
   ============================================ */

.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(20, 13, 4, 0.4);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50px;
  padding: 0.6rem 1rem 0.6rem 0.8rem;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5), 
    0 0 0 1px rgba(201,168,76,0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  max-width: 320px;
}

.music-player:hover {
  background: rgba(20, 13, 4, 0.5);
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6), 
    0 0 40px rgba(201,168,76,0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.music-player.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Visualizer bars */
.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex-shrink: 0;
}

.music-visualizer span {
  display: block;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  height: 4px;
  transition: height 0.1s ease;
}

.music-visualizer.playing span:nth-child(1) { animation: bar 0.9s ease-in-out infinite; }
.music-visualizer.playing span:nth-child(2) { animation: bar 0.7s ease-in-out infinite 0.1s; }
.music-visualizer.playing span:nth-child(3) { animation: bar 1.1s ease-in-out infinite 0.2s; }
.music-visualizer.playing span:nth-child(4) { animation: bar 0.8s ease-in-out infinite 0.05s; }
.music-visualizer.playing span:nth-child(5) { animation: bar 1.0s ease-in-out infinite 0.15s; }

@keyframes bar {
  0%, 100% { height: 4px; }
  50%       { height: 18px; }
}

/* Track info */
.music-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.music-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.music-artist {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Controls */
.music-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.music-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.music-btn:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.play-pause-btn {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: var(--dark) !important;
  border-radius: 50% !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.play-pause-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.5) !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
}

/* Volume slider */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  background: rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* Audio prompt overlay */
.audio-prompt {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(10, 6, 2, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: fadeInPrompt 0.6s ease both;
}

.audio-prompt.dismissed {
  animation: fadeOutPrompt 0.4s ease forwards;
  pointer-events: none;
}

@keyframes fadeInPrompt {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOutPrompt {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.audio-prompt-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.audio-prompt-icon {
  font-size: 3.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.audio-prompt-inner p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-light);
  font-style: italic;
}

#audioPromptBtn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

#audioPromptBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.6);
}

/* Muted state icon swap handled via JS */
.music-btn.muted {
  color: rgba(201, 168, 76, 0.3);
}

/* Responsive — collapse info text on small screens */
@media (max-width: 480px) {
  .music-player {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.8rem 0.5rem 0.7rem;
    gap: 0.5rem;
  }

  .music-info {
    display: none;
  }

  .volume-slider {
    width: 44px;
  }
}

/* ============================================
   SAXOPHONE / PASSION SECTION
   ============================================ */

.sax-section {
  position: relative;
  padding: 9rem 0;
  background: linear-gradient(160deg, #0e0804 0%, #1e1206 40%, #150e05 100%);
  overflow: hidden;
  z-index: 1;
}

/* Floating music note background */
.sax-bg-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sax-bg-notes span {
  position: absolute;
  font-size: clamp(3rem, 6vw, 6rem);
  color: rgba(201, 168, 76, 0.04);
  font-family: serif;
  animation: noteFloat linear infinite;
  user-select: none;
}

.sax-bg-notes span:nth-child(1)  { left: 5%;  animation-duration: 18s; animation-delay: 0s;    font-size: 5rem; }
.sax-bg-notes span:nth-child(2)  { left: 15%; animation-duration: 22s; animation-delay: 3s;    font-size: 3rem; }
.sax-bg-notes span:nth-child(3)  { left: 30%; animation-duration: 16s; animation-delay: 1s;    font-size: 4rem; }
.sax-bg-notes span:nth-child(4)  { left: 50%; animation-duration: 20s; animation-delay: 5s;    font-size: 6rem; }
.sax-bg-notes span:nth-child(5)  { left: 65%; animation-duration: 14s; animation-delay: 2s;    font-size: 3.5rem; }
.sax-bg-notes span:nth-child(6)  { left: 75%; animation-duration: 24s; animation-delay: 7s;    font-size: 5rem; }
.sax-bg-notes span:nth-child(7)  { left: 85%; animation-duration: 19s; animation-delay: 4s;    font-size: 4rem; }
.sax-bg-notes span:nth-child(8)  { left: 92%; animation-duration: 17s; animation-delay: 9s;    font-size: 3rem; }
.sax-bg-notes span:nth-child(9)  { left: 42%; animation-duration: 21s; animation-delay: 6s;    font-size: 4.5rem; }
.sax-bg-notes span:nth-child(10) { left: 58%; animation-duration: 15s; animation-delay: 11s;   font-size: 3rem; }

@keyframes noteFloat {
  0%   { transform: translateY(110vh) rotate(-10deg); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { transform: translateY(-15vh) rotate(10deg); opacity: 0; }
}

/* Layout */
.sax-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Saxophone icon with pulsing rings */
.sax-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 160px;
  height: 160px;
}

/* Saxophone photo with pulsing rings */
.sax-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: spinCD 20s linear infinite;
  transition: filter 0.3s ease;
}

.sax-photo-wrap:hover {
  filter: brightness(1.1) drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}

@keyframes spinCD {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sax-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 76, 0.3);
}

.sax-photo-1 {
  opacity: 1;
  animation: morphFade1 10s ease-in-out infinite;
}

.sax-photo-2 {
  opacity: 0;
  animation: morphFade2 10s ease-in-out infinite;
}

@keyframes morphFade1 {
  0% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes morphFade2 {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.sax-emoji {
  font-size: 5.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
  animation: saxSway 4s ease-in-out infinite;
}

.sax-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.25);
  animation: ringPulseAndSpin 3s ease-out infinite;
}

.sax-ring-1 { width: 100px; height: 100px; animation-delay: 0s; }
.sax-ring-2 { width: 130px; height: 130px; animation-delay: 0.6s; }
.sax-ring-3 { width: 160px; height: 160px; animation-delay: 1.2s; }

@keyframes ringPulseAndSpin {
  0%   { transform: translate(-50%, -50%) scale(0.8) rotate(0deg); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.3) rotate(360deg); opacity: 0; }
}

/* Text side */
.sax-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.sax-body {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.sax-body strong {
  color: var(--gold-light);
  font-style: normal;
}

.sax-quote {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 168, 76, 0.05);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
  position: relative;
}

.sax-quote-mark {
  font-size: 1.8rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.3rem;
}

.sax-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--gold);
  font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
  .sax-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .sax-icon-wrap {
    margin: 0 auto;
  }

  .sax-quote {
    text-align: left;
  }
}
