/* ============================
   RESET & VARIABLES
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Valentine & Spring Theme */
    --primary-pink: #ff6b9d;
    --deep-red: #c92a49;
    --spring-yellow: #ffd700;
    --peach: #ffb6c1;
    --cream: #fff5ee;
    --warm-white: #fefefe;
    
    /* Gradients */
    --gradient-valentine: linear-gradient(135deg, #ff6b9d 0%, #c92a49 50%, #ffd700 100%);
    --gradient-soft: linear-gradient(180deg, #ffe5ec 0%, #fff0f5 100%);
    --gradient-glow: radial-gradient(circle, rgba(255,107,157,0.3) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Quicksand', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(255, 107, 157, 0.2);
    --shadow-strong: 0 20px 60px rgba(201, 42, 73, 0.3);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--font-body);
    background: var(--gradient-valentine);
    color: #333;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ============================
   LOVE POPUP
   ============================ */
.love-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.love-popup.hidden {
    display: none;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f8 100%);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(255, 107, 157, 0.4);
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: popupBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup-hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.popup-heart {
    font-size: 2rem;
    animation: heartFloat 2s ease-in-out infinite;
}

.popup-heart:nth-child(2) {
    animation-delay: 0.3s;
}

.popup-heart:nth-child(3) {
    animation-delay: 0.6s;
}

.popup-question {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-red);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-yes,
.btn-no {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-yes {
    background: var(--gradient-valentine);
    color: white;
    box-shadow: var(--shadow-soft);
    animation: pulseGrow 2s ease-in-out infinite;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.btn-no {
    background: white;
    color: var(--deep-red);
    border: 2px solid var(--primary-pink);
    position: absolute;
    transition: var(--transition-bounce);
}

.btn-no:hover {
    transform: scale(0.95);
}

/* ============================
   CONFETTI CANVAS
   ============================ */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============================
   PARTICLES (HOA & TIM)
   ============================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.8;
    animation: particleFall linear infinite;
}

/* ============================
   MAIN CONTENT
   ============================ */
.main-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease;
}

.main-content.visible {
    opacity: 1;
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.valentine-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    animation: float 3s ease-in-out infinite;
}

.badge-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-red);
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(201, 42, 73, 0.5);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.title-line {
    animation: textGlow 2s ease-in-out infinite alternate;
}

.title-heart {
    font-size: clamp(2.5rem, 6vw, 5rem);
    animation: heartBeat 1.5s ease-in-out infinite;
}

.lunar-title {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--spring-yellow);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.7s backwards;
}

.lover-name {
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.9s backwards;
}

.name-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.name-highlight {
    font-family: var(--font-script);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--spring-yellow);
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.6);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.cta-button {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--deep-red);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    transition: var(--transition-bounce);
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease 1.1s backwards;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 70px rgba(255, 107, 157, 0.4);
}

.button-icon {
    animation: heartBeat 1.5s ease-in-out infinite;
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ============================
   MESSAGE SECTION
   ============================ */
.message-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--gradient-soft);
    position: relative;
}

.message-container {
    max-width: 800px;
    margin: 0 auto;
}

.message-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card-decoration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.deco-flower {
    font-size: 2rem;
    animation: rotate 10s linear infinite;
}

.deco-flower:nth-child(2) {
    animation-direction: reverse;
}

.message-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--deep-red);
    text-align: center;
    margin-bottom: 2rem;
}

.message-content {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
    min-height: 200px;
}

.message-content p {
    margin-bottom: 1rem;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2rem;
    background: var(--primary-pink);
    animation: blink 1s step-start infinite;
    margin-left: 2px;
}

.message-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--peach);
}

.footer-heart {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.footer-text {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--primary-pink);
}

/* ============================
   GALLERY SECTION
   ============================ */
.gallery-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--gradient-valentine);
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-slider {
    position: relative;
    padding: 0 3rem;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.slider-item.active {
    opacity: 1;
    transform: scale(1);
}

.image-placeholder {
    background: linear-gradient(135deg, #fff 0%, #ffe5ec 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--deep-red);
}

.slider-caption {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: white;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--deep-red);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ============================
   HEART SECTION
   ============================ */
.heart-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--gradient-soft);
    text-align: center;
}

.heart-container {
    max-width: 400px;
    margin: 0 auto;
}

.big-heart {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    color: var(--primary-pink);
    cursor: pointer;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 10px 20px rgba(255, 107, 157, 0.4));
    animation: heartPulse 2s ease-in-out infinite;
}

.big-heart:hover {
    transform: scale(1.2);
    color: var(--deep-red);
}

.heart-hint {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--deep-red);
    animation: float 3s ease-in-out infinite;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: linear-gradient(135deg, #c92a49 0%, #8b1a3f 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

.footer-message {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.footer-star {
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.footer-star:nth-child(2) {
    animation-delay: 0.3s;
}

.footer-star:nth-child(3) {
    animation-delay: 0.6s;
}

.footer-date {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================
   AUDIO CONTROL
   ============================ */
.audio-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.audio-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.audio-icon {
    font-size: 1.5rem;
}

/* ============================
   FIREWORKS CANVAS
   ============================ */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popupBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

@keyframes pulseGrow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 4px 20px rgba(201, 42, 73, 0.5);
    }
    to {
        text-shadow: 0 4px 30px rgba(255, 107, 157, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

@keyframes particleFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .popup-content {
        padding: 2rem 1.5rem;
    }
    
    .popup-question {
        font-size: 1.5rem;
    }
    
    .btn-yes,
    .btn-no {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
    
    .hero-section {
        padding: 1.5rem;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    .message-card {
        padding: 2rem 1.5rem;
    }
    
    .message-title {
        font-size: 2rem;
    }
    
    .message-content {
        font-size: 1rem;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-slider {
        padding: 0 2rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .big-heart {
        width: 120px;
        height: 120px;
    }
    
    .footer-message {
        font-size: 2rem;
    }
    
    .audio-control {
        bottom: 1rem;
        right: 1rem;
    }
    
    .audio-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .popup-buttons {
        flex-direction: column;
    }
    
    .btn-yes,
    .btn-no {
        width: 100%;
    }
    
    .message-section,
    .gallery-section {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}
