/* ===== GLOBAL RESET & VARIABLES ===== */
:root {
    --primary-pink: #ff4d6d;
    --light-pink: #ff758f;
    --dark-pink: #c9184a;
    --bg-dark: #0a0015;
    --text-light: #fff0f3;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: radial-gradient(ellipse at top, #1a0030, #0a0015 60%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.romantic-font { font-family: 'Dancing Script', cursive; }
.text-pink { color: var(--light-pink) !important; }

/* ===== FLOATING HEARTS ===== */
#particles {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none; z-index: 0;
}
.heart-particle {
    position: absolute;
    color: var(--primary-pink);
    opacity: 0;
    animation: floatUp 10s linear forwards;
}
@keyframes floatUp {
    0%   { transform: translateY(110vh) scale(0.5) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(-10vh) scale(1.5) rotate(360deg); opacity: 0; }
}

/* ===== MAIN CONTENT ===== */
.main-content { min-height: 100vh; position: relative; z-index: 1; }

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ff758f, #ffb3c1, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
}

/* ===== MEMORY CARDS ===== */
.memory-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,77,109,0.3);
}
.memory-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* ===== SHAYARI / QUOTE ===== */
.shayari {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--light-pink);
    text-align: center;
    padding: 10px;
    text-shadow: 0 0 10px rgba(255,117,143,0.5);
}

/* ===== CHAPTER HEADER ===== */
.chapter-header h1 {
    font-size: clamp(2rem, 7vw, 4rem);
}

/* ===== BLOOM BUTTON ===== */
.btn-bloom {
    background: radial-gradient(circle at center, #ff8fab, #ff4d6d, #c9184a);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 77, 109, 0.6), 0 0 60px rgba(255, 77, 109, 0.2);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.btn-bloom::before {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 53px;
    background: conic-gradient(from 0deg, #ff4d6d, #ffb3c1, #c9184a, #ff4d6d);
    animation: spinBorder 3s linear infinite;
    z-index: -1;
    opacity: 0.7;
}
@keyframes spinBorder {
    to { transform: rotate(360deg); }
}
.btn-bloom:hover {
    box-shadow: 0 0 50px rgba(255,77,109,0.9), 0 0 80px rgba(255,77,109,0.4);
    color: white;
}

/* ===== FLYING NEXT BUTTON ===== */
.btn-flying-next {
    background: linear-gradient(135deg, #ff4d6d, #c9184a, #ff0a54);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,77,109,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}
.btn-flying-next:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 35px rgba(255,77,109,0.7);
    color: white;
}

/* ===== FLYING PREV BUTTON ===== */
.btn-flying-prev {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.45);
    color: #ffccd5;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    display: inline-block;
}
.btn-flying-prev:hover {
    background: rgba(255, 77, 109, 0.25);
    border-color: #ff4d6d;
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.4);
    color: #ffffff;
}

/* Floating Side Navigation (Previous / Next) */
.floating-side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    pointer-events: none;
}
.floating-side-nav.side-left { left: 15px; }
.floating-side-nav.side-right { right: 15px; }

.btn-side-arrow {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 0, 30, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 77, 109, 0.4);
    color: #ffccd5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.btn-side-arrow:hover {
    background: var(--primary-pink);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 77, 109, 0.8);
}


/* Mini Studio Button */
.btn-mini-studio {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 0, 30, 0.7);
    border: 1px solid rgba(255, 77, 109, 0.4);
    color: var(--light-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.btn-mini-studio:hover {
    background: linear-gradient(135deg, #c9184a, #ff4d6d);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(255, 77, 109, 0.7);
}


/* ===== BTN-ROMANTIC (overlay button) ===== */
.btn-romantic {
    background: linear-gradient(45deg, var(--primary-pink), var(--dark-pink));
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: clamp(1rem, 3vw, 1.3rem);
    border: none;
    cursor: pointer;
    display: inline-block;
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255,77,109,0.4);
    transition: box-shadow 0.3s;
}
.btn-romantic:hover { box-shadow: 0 0 30px rgba(255,77,109,0.8); color: white; }

/* ===== MUSIC BUTTON ===== */
.btn-music {
    position: fixed; bottom: 25px; right: 25px;
    background: linear-gradient(45deg, var(--primary-pink), var(--dark-pink));
    color: white;
    width: 55px; height: 55px;
    border: none;
    font-size: 20px;
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255,77,109,0.5);
    transition: transform 0.3s;
}
.btn-music:hover { transform: scale(1.1); color: white; }
.music-playing { animation: pulseMusicBtn 2s infinite; }
@keyframes pulseMusicBtn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0.7); }
    50% { box-shadow: 0 0 0 20px rgba(255,77,109,0); }
}

/* ===== FLOATING BG IMAGES ===== */
.floating-bg-img {
    position: fixed !important;
    border-radius: 15px;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    filter: blur(3px);
}

/* ===== DYNAMIC SECTIONS ===== */
.dynamic-section { position: relative; z-index: 1; }

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .btn-bloom { padding: 14px 28px; }
    .btn-flying-next { padding: 12px 22px; }
    .memory-card { border-radius: 10px; }
    .masonry-item { padding: 4px !important; }
}

/* ===== START OVERLAY ===== */
#start-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(ellipse at center, #2d0040, #0a0015);
    z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer;
}
.overlay-heart {
    display: flex; align-items: center; justify-content: center;
}
#overlay-heart-icon {
    font-size: clamp(4rem, 12vw, 7rem);
    color: #ff4d6d;
    filter: drop-shadow(0 0 30px rgba(255,77,109,0.9));
}

/* ===== CHAPTER BADGE ===== */
.chapter-num-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d6d, #c9184a);
    color: white;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== FINAL MESSAGE ===== */
.final-message {
    padding: 40px;
    background: rgba(255,77,109,0.08);
    border: 1px solid rgba(255,77,109,0.3);
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* ===== ROMANTIC TOP NAVBAR ===== */
.romantic-navbar {
    z-index: 999;
    pointer-events: none;
}
.nav-glass-pill {
    pointer-events: auto;
    background: rgba(15, 0, 25, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 77, 109, 0.35);
    border-radius: 40px;
    padding: 6px 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 77, 109, 0.2);
}
.nav-link-pill {
    color: #ffccd5 !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.nav-link-pill:hover {
    background: rgba(255, 77, 109, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
}
.nav-link-pill.highlight-pill {
    background: linear-gradient(135deg, rgba(201, 24, 74, 0.8), rgba(255, 77, 109, 0.8));
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(255, 77, 109, 0.4);
}

