/* Variable Definitions */
:root {
    --bg-color: #0c0510; /* Deep romantic purple/black */
    --text-color: #fce4ec; /* Soft pink-white */
    --accent-color: #f8bbd0; /* Pink accent */
    --romance-gold: #eccdb8; /* Rose Gold */
    --romance-highlight: #fff0f5; /* Lavender Blush */
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Specific overrides for Sharan */
    --sharan-gold: #dcd1a6;
    
    --transition-duration: 1.5s;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body, html {
    width: 100%; height: 100%;
    /* Allow scrolling by default for content pages */
    background-color: var(--bg-color);
    font-family: var(--font-main); color: var(--text-color);
}

/* --- Shared: Falling Petals Animation --- */
#petals-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.petal {
    position: absolute; top: -20px;
    width: 15px; height: 15px;
    background: radial-gradient(circle at 30% 30%, #ffcdd2, #e91e63);
    border-radius: 100% 0% 100% 0%; /* Leaf/Petal shape */
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-20px) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(110vh) translateX(50px) rotate(360deg); opacity: 0; }
}

/* Background Ambient Glow */
.ambient-glow {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow { from { opacity: 0.3; transform: translate(-50%, -50%) scale(1); } to { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); } }


/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }

/* --- Buttons --- */
.continue-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--romance-gold);
    color: var(--romance-gold);
    padding: 18px 40px;
    font-family: var(--font-main); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.9rem;
    border-radius: 50px; cursor: pointer; text-decoration: none;
    transition: all 0.4s ease; backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    /* No margin top here to allow context placement */
    white-space: nowrap;
}
.continue-btn:hover {
    background: var(--romance-gold); color: var(--bg-color);
    box-shadow: 0 0 30px rgba(236, 205, 184, 0.3); transform: translateY(-2px);
}
.continue-btn .arrow { font-size: 1.2rem; }


/* --- HOME PAGE (Index) --- */
.page-home {
    height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    width: 100%;
}
.content-wrapper { text-align: center; width: 100%; padding: 20px; z-index: 10; }

.page-home h1 {
    font-size: 3rem; margin-bottom: 2rem;
    display: flex; flex-direction: column; gap: 10px;
    align-items: center;
    width: 100%;
}
.hero-text span {
    display: block; opacity: 0; transform: translateY(20px);
    animation: fadeUpText 1.5s ease forwards;
}
.hero-text span:nth-child(2) { animation-delay: 1s; font-size: 1.2rem; font-family: var(--font-main); color: rgba(255,255,255,0.7); }

@keyframes fadeUpText { to { opacity: 1; transform: translateY(0); } }

.home-btn {
    opacity: 0; animation: fadeUpText 1s ease forwards 2.5s;
    margin-top: 30px;
}

/* --- STORY PAGES (Biljeet, Sharan) --- */
.page-story {
    min-height: 100vh; 
    overflow-y: auto; overflow-x: hidden;
    display: block; /* Ensure it's not flex-centered like index if generic body rules applied */
}
.story-container {
    max-width: 800px; margin: 0 auto; padding: 60px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 80px; /* Spacing between blocks */
}

.story-header { margin-bottom: 0px; text-align: center; }
.story-header h2 { font-size: 3.5rem; color: var(--romance-gold); margin-bottom: 10px; }
.story-header p { font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }

/* Memory Blocks */
.memory-block {
    display: flex; align-items: center; gap: 40px; width: 100%;
    opacity: 0; transform: translateY(50px); transition: all 1s ease;
}
.message-left { flex-direction: row; text-align: left; }
.message-right { flex-direction: row-reverse; text-align: right; }
/* Scroll Reveal Helper */
.in-view { opacity: 1 !important; transform: translateY(0) !important; }

/* Image Frame */
.img-frame {
    width: 280px; height: 350px; flex-shrink: 0;
    border-radius: 150px 150px 0 0; /* Arch shape */
    overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.img-frame:hover img { transform: scale(1.05); }

/* Text Content */
.text-content { flex: 1; min-width: 200px; }
.text-content h3 { font-size: 2.2rem; margin-bottom: 15px; color: var(--accent-color); }
.text-content p { font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.85); }

.footer-action { margin-top: 20px; text-align: center; padding-bottom: 50px; }


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Home */
    .page-home h1 { font-size: 2.2rem; }
    
    /* Story Pages */
    .story-header h2 { font-size: 2.8rem; }
    
    .memory-block { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 30px; 
    }
    
    .text-content { width: 100%; }
    
    .img-frame { width: 80%; max-width: 300px; height: 380px; margin: 0 auto; }
    
    .continue-btn { width: 80%; max-width: 300px; padding: 15px 30px; }
}

/* Page 4 & 5 (Us, Engagement) handle their own internal styles generally, 
   but this file remains valid for global resets if they import it. */
