* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #f7f3ff;
  background:
    radial-gradient(circle at top, rgba(145,95,255,.20), transparent 28%),
    radial-gradient(circle at bottom right, rgba(65,140,255,.12), transparent 32%),
    linear-gradient(180deg, #07060b 0%, #110b18 48%, #07060b 100%);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}
.intro-screen { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; background: radial-gradient(circle at top, rgba(145,95,255,.22), transparent 28%), linear-gradient(180deg, #050409 0%, #100a17 50%, #050409 100%); transition: opacity .8s ease, visibility .8s ease; }
.intro-screen.hide { opacity: 0; visibility: hidden; }
.intro-inner { text-align: center; animation: fadeUp 1s ease both; }
.intro-top { letter-spacing: 4px; text-transform: uppercase; color: #d8cdff; }
.intro-inner h1 { margin: 10px 0 8px; font-size: clamp(58px, 12vw, 136px); text-shadow: 0 0 34px rgba(175,136,255,.34); }
.intro-sub { color: #eee8ff; font-size: 20px; }

.aurora { position: fixed; width: 440px; height: 440px; border-radius: 50%; filter: blur(90px); opacity: .20; pointer-events: none; z-index: 0; }
.aurora-1 { top: -110px; left: -120px; background: #8f5fff; }
.aurora-2 { right: -120px; bottom: 6%; background: #3f8dff; }

.stars, .particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars { background-image: radial-gradient(2px 2px at 12% 22%, rgba(255,255,255,.42), transparent 50%), radial-gradient(1.5px 1.5px at 68% 14%, rgba(255,255,255,.26), transparent 50%), radial-gradient(2px 2px at 78% 60%, rgba(255,255,255,.20), transparent 50%), radial-gradient(1.5px 1.5px at 34% 78%, rgba(255,255,255,.18), transparent 50%); }
.particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.24); animation: floaty linear infinite; }
@keyframes floaty { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-120vh); opacity: 0; } }

.hero { min-height: 92vh; position: relative; display: grid; place-items: center; text-align: center; padding: 40px 18px 100px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,7,11,.10), rgba(8,7,11,.78)), radial-gradient(circle at center, rgba(145,95,255,.12), transparent 45%); }
.hero-inner { position: relative; z-index: 1; max-width: 920px; animation: fadeUp 1.15s ease both; }
.eyebrow { margin: 0; color: #d8cdff; letter-spacing: 5px; text-transform: uppercase; font-size: 15px; }
.hero h1 { margin: 12px 0 6px; font-size: clamp(56px, 11vw, 128px); line-height: .92; text-shadow: 0 0 34px rgba(175,136,255,.34); }
.subtitle { margin: 10px 0 0; font-size: clamp(24px, 3vw, 36px); color: #f4efff; }
.dates { margin: 14px 0 0; color: #d2cae7; font-size: clamp(17px, 2vw, 22px); }
.tagline { margin: 16px auto 0; max-width: 720px; font-size: clamp(17px, 2vw, 21px); color: #eee9fb; min-height: 30px; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.music-controls { margin-top: 18px; display: inline-flex; gap: 10px; align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 10px 14px; }
.music-controls label { color: #ddd4f3; font-size: 14px; }
.music-controls input { width: 140px; accent-color: #8f5fff; }
#volumeValue { min-width: 42px; text-align: right; color: #fff; font-size: 14px; }
.btn { padding: 14px 22px; border-radius: 999px; border: none; cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, rgba(145,95,255,.95), rgba(80,146,255,.95)); box-shadow: 0 12px 30px rgba(109,95,255,.28); }
.btn-secondary { color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.scroll-down { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cfc5ea; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

.container { position: relative; z-index: 1; width: min(1220px, calc(100% - 22px)); margin: -72px auto 42px; }
.glass { background: rgba(18, 13, 28, .72); border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: 24px; box-shadow: 0 18px 44px rgba(0,0,0,.28); backdrop-filter: blur(14px); margin-bottom: 18px; }
.intro-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 18px; align-items: center; }
.section-mini { display: inline-block; color: #9fc9ff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.intro-card h2, .section-head h2, .memorial-text h2 { margin: 0 0 10px; font-size: 32px; }
.intro-card p, .memorial-text p { margin: 0; line-height: 1.8; color: #eee9fb; font-size: 18px; }
.quote-box { border-radius: 24px; padding: 26px; min-height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(145,95,255,.16), rgba(80,146,255,.08)); border: 1px solid rgba(255,255,255,.10); }
.quote-box p { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 700; text-align: center; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head p { margin: 0; color: #c8bee3; }
.slideshow-wrap { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.slideshow-wrap img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; font-size: 34px; background: rgba(0,0,0,.45); color: #fff; z-index: 2; }
#slidePrev { left: 14px; } #slideNext { right: 14px; }
.slide-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.24); cursor: pointer; }
.slide-dots button.active { background: #fff; box-shadow: 0 0 10px rgba(145,95,255,.55); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease; }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: 0 0 22px rgba(131,112,255,.24); border-color: rgba(175,159,255,.24); filter: saturate(1.05); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 12px; }
.video-card video { width: 100%; border-radius: 14px; background: #000; }

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

.lightbox { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.90); z-index: 9999; padding: 22px; }
.lightbox.show { display: grid; }
.lightbox img { max-width: min(95vw, 1120px); max-height: 86vh; border-radius: 18px; box-shadow: 0 0 30px rgba(0,0,0,.45); }
.close-btn, .lightbox-nav { position: absolute; width: 50px; height: 50px; border: none; border-radius: 50%; background: #fff; font-size: 32px; cursor: pointer; }
.close-btn { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); background: rgba(19,14,28,.92); color: #fff; border: 1px solid rgba(255,255,255,.10); padding: 14px 18px; border-radius: 16px; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 10000; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  .intro-grid { grid-template-columns: 1fr; }
  .gallery-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .container { width: min(100% - 14px, 1220px); }
  .glass { padding: 18px; border-radius: 22px; }
  .gallery-grid, .video-grid { grid-template-columns: 1fr; }
  .hero { min-height: 84vh; }
  .slide-nav { width: 42px; height: 42px; font-size: 28px; }
}
