/* style.css (Definitive Final Version) */
:root {
    --bg-color: #101010;
    --primary-text: #ffffff;
    --secondary-text: #cccccc;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --accent1: #ff47ab;
    --accent2: #ff99cc;
    --accent3: #ffc2a6;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

/* --- Loader Styles --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
    visibility: visible;
    opacity: 1;
}
.loader-text {
    font-size: 1.2rem;
    color: var(--secondary-text);
    animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
    0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; }
}

/* --- Animated Shapes Background --- */
.background-shapes {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden;
}
.shape {
    position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.5;
}
.shape1 {
    width: 500px; height: 500px; background: var(--accent1); top: -150px; left: -150px; animation: move1 15s infinite alternate ease-in-out;
}
.shape2 {
    width: 400px; height: 400px; background: var(--accent2); bottom: -100px; right: -100px; animation: move2 12s infinite alternate ease-in-out;
}
.shape3 {
    width: 300px; height: 300px; background: var(--accent3); bottom: 20%; left: 20%; animation: move3 10s infinite alternate ease-in-out;
}
@keyframes move1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(100px, 50px) scale(1.2); } }
@keyframes move2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-50px, -100px) scale(0.8); } }
@keyframes move3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(50px, -50px) scale(1.1); } }

/* --- Fireworks on Scroll Styles --- */
#fireworks-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999;
}
.particle {
    position: absolute;
    border-radius: 50%;
}

/* --- Main Layout --- */
.content {
    position: relative; z-index: 2;
}
main section {
    padding: 10rem 5%; max-width: 1200px; margin: 0 auto; box-sizing: border-box;
}

/* --- Hero Section --- */
.hero {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 5%;
}
.main-title {
    font-family: var(--font-heading); font-style: italic; font-size: clamp(3rem, 10vw, 8rem);
}
.text-gradient {
    background: linear-gradient(135deg, var(--accent1), var(--accent3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent;
}
.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem); color: var(--secondary-text);
}

/* --- Section Styles --- */
.section-title {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); text-align: center; margin-bottom: 4rem;
}
.about {
    display: flex; align-items: center; gap: 4rem;
}
.about-text { flex: 1.2; }
.about-text h2 { text-align: left; margin-bottom: 2rem;}
.about-text p { font-size: 1.1rem; color: var(--secondary-text); line-height: 1.8; }
.about-image { flex: 1; border-radius: 1rem; overflow: hidden; }
.about-image img { width: 100%; display: block; }

/* --- Masonry Gallery --- */
.masonry-gallery {
    column-count: 3; column-gap: 1.5rem;
}
.masonry-item {
    margin-bottom: 1.5rem; break-inside: avoid; border-radius: 1rem; overflow: hidden;
}
.masonry-item img {
    width: 100%; height: auto; display: block; border-radius: 1rem;
}

/* --- Video Section --- */
.video-section h2 { margin-bottom: 2rem; }
.video-container {
    width: 100%; max-width: 450px; margin: 0 auto; border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-container video {
    width: 100%; height: auto; display: block;
}

/* --- Final Word Section --- */
.final-word { text-align: center; }
.final-salutation { font-size: 1.5rem; font-weight: 500; color: var(--primary-text); margin-top: 3rem; }

/* --- Audio Control --- */
.audio-control {
    position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 100; transition: transform 0.3s ease; cursor: pointer;
}
.audio-control:hover { transform: scale(1.1); }
.audio-control svg { width: 24px; height: 24px; }

/* --- Animation Class: All elements start in this state --- */
.anim-item {
  opacity: 0;
  transform: translateY(50px);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .about { flex-direction: column; }
    .masonry-gallery { column-count: 2; }
}
@media (max-width: 600px) {
    main section { padding: 5rem 5%; }
    .masonry-gallery { column-count: 1; }
}

/* Mobile spacing optimization */
@media screen and (max-width: 768px) {
  section, .gallery, .content, .hero, .footer, .marshmallow-container {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  h1, h2, h3, p {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }

  .gallery img {
    margin-bottom: 8px !important;
  }
}
