* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #030914; /* Deep midnight blue */
    color: white;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y; /* allow normal vertical scrolling */
}

/* Background Stars */
.stars {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}
.stars::before, .stars::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 160px 120px, #a5d8ff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starsAnimation 10s linear infinite;
    opacity: 0.4;
}
.stars::after {
    background-size: 300px 300px;
    animation-delay: -5s;
    opacity: 0.2;
}
@keyframes starsAnimation {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

/* Scroll Container */
.scroll-container {
    position: relative;
    z-index: 10;
}

/* Sections */
.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

.hero-section {
    min-height: 100vh;
}

.proposal-section {
    min-height: 80vh;
}

/* Hero Section */
.hero-content {
    text-align: center;
    animation: slowFadeIn 2s ease-out;
}
.hero-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    color: #339af0;
    text-shadow: 0 0 20px rgba(51, 154, 240, 0.4);
    margin: 10px 0;
}
.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #a5d8ff;
    letter-spacing: 2px;
    font-style: italic;
}
.glow-heart {
    font-size: 60px;
    filter: drop-shadow(0 0 15px rgba(51, 154, 240, 0.8));
    animation: beat 1.5s infinite alternate;
}

@keyframes slowFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Music Card */
.music-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 154, 240, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.music-note {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 10px;
}

.music-note-ai {
    font-size: 0.85rem;
    color: #a5d8ff;
    font-style: italic;
    margin-bottom: 15px;
}

.custom-audio {
    width: 100%;
    height: 40px;
    outline: none;
    border-radius: 20px;
}
.custom-audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    text-align: center;
    opacity: 0.6;
    animation: bounce 2s infinite;
}
.scroll-indicator p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #a5d8ff;
}
.arrow {
    font-size: 1.5rem;
    color: #a5d8ff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Cards (Glassmorphism) */
.card {
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(51, 154, 240, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.letter-section p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e0e0e0;
    font-family: 'Playfair Display', serif;
}

.highlight {
    color: #4dabf7;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Final Proposal */
.main-question {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #339af0;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(51, 154, 240, 0.4);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 35px;
    font-size: 1.3rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.yes-btn {
    background: linear-gradient(45deg, #339af0, #4dabf7);
    color: white;
    box-shadow: 0 8px 25px rgba(51, 154, 240, 0.5);
}
.yes-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 30px rgba(51, 154, 240, 0.7);
}

.no-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.no-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.hidden {
    display: none !important;
    opacity: 0;
}

.success-container h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #339af0;
}
.rejection-container h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #888;
}

.animated-heart {
    font-size: 70px;
    margin-top: 20px;
    animation: beatAndRotate 1.5s infinite alternate;
}
@keyframes beatAndRotate {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}
@keyframes beat {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .hero-content h1 { font-size: 3.5rem; }
    .subtitle { font-size: 1.2rem; }
    .card { padding: 30px 20px; width: 95%; }
    .letter-section p { font-size: 1.1rem; }
    .main-question { font-size: 2.8rem; }
    .btn { padding: 10px 25px; font-size: 1.1rem; }
    .success-container h1, .rejection-container h1 { font-size: 2.8rem; }
}

/* Custom Scrollbar for container */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(51, 154, 240, 0.5);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 154, 240, 0.8);
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}
