/* =========================
   BASE BODY + GRADIENT
========================= */

body {
  margin: 0;
  font-family: 'Georgia', serif;
  scroll-behavior: smooth;
  color: white;

  background: linear-gradient(270deg, #8e2de2, #4facfe, #43e97b);
  background-size: 600% 600%;

  animation: alexandriteShift 15s ease infinite, pageFade 1.5s ease forwards;
  opacity: 0;
}

/* =========================
   ANIMATIONS
========================= */

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

@keyframes pageFade {
  to { opacity: 1; }
}

/* =========================
   HEART CANVAS
========================= */

#hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* =========================
   SECTIONS
========================= */

section {
  min-height: 100vh;
  padding: 100px 10%;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Slight alternating tint for visual separation */
section:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

/* =========================
   HERO
========================= */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-image: url("../photos/rp-drawing.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 25px rgba(0,0,0,0.8);
}

.hero-content h1 {
  font-size: 4rem;
  background: linear-gradient(90deg, #8e2de2, #4facfe, #43e97b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(142,45,226,0.7));
}

.hero-content p {
  color: white;
}

/* =========================
   CTA BUTTON
========================= */

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  border-radius: 40px;
  background: linear-gradient(135deg, #8e2de2, #4facfe);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 10px 30px rgba(142,45,226,0.4);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(79,172,254,0.6);
}

/* =========================
   GLASS EFFECT
========================= */

.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* =========================
   GALLERY
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.gallery img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0px 20px 40px rgba(0,0,0,0.3);
}

/* =========================
   PROGRESS BAR
========================= */

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #8e2de2, #4facfe);
  width: 0%;
  z-index: 9999;
}

/* =========================
   MUSIC BUTTON
========================= */

#musicBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader video {
  max-width: 60vw;
  max-height: 60vh;
  object-fit: contain;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
