:root {
    --primary: #ff4d6d;
    --secondary: #ff758f;
    --dark-bg: #1a061d;
    --glass: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff5f8;
    color: #333;
    overflow-x: hidden;
    transition: background-color .8s ease, color .8s ease;
}

/* --- BOLD & BEAUTIFUL PINK COUNTDOWN --- */
#countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #fff0f3 0%, #ffb3c1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#countdown-number {
    font-size: 15rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    color: #ff4d6d;
    text-shadow: 0 20px 40px rgba(255, 77, 109, 0.3);
    position: relative;
    line-height: 1;
}

/* Elegant Bold Animation */
.number-change {
    animation: boldEntrance 1s ease-in-out forwards;
}

@keyframes boldEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5); 
        filter: blur(8px);
    }
    30% {
        opacity: 1;
        transform: scale(1.1); 
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* GRAND FINALE FIREWORKS */
.firework-particle-pro {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 11000;
    box-shadow: 0 0 10px white, 0 0 20px currentColor;
    animation: fireworkGrandExplode 2s cubic-bezier(0.1, 1, 0.3, 1) forwards;
}

@keyframes fireworkGrandExplode {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {

        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 150px)) scale(0);
        opacity: 0;
    }
}


.screen-flash {
    animation: flashEffect 0.5s ease-out;
}

@keyframes flashEffect {
    0% { background-color: white; }
    100% { background-color: transparent; }
}

/* --- 2. HERO SECTION & TYPING --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at top right, #fff0f3, #fce4ec);
}

.typing-text {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.8rem, 7.5vw, 5rem);
    color: var(--primary);
    margin: 0 auto 1rem auto;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    width: 0; /* Keeps it hidden during countdown */
    border-right: 3px solid transparent;
    max-width: fit-content;
}

/* Activated via JS */
.start-typing {
    border-right: 3px solid var(--primary);
    animation: typing 3s steps(25) forwards, blink .8s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-subtext {
    font-size: 1.1rem;
    opacity: .8;
    margin-bottom: 2rem;
}

/* --- 3. BUTTON & SHINE EFFECT --- */
.btn-main {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 77, 109, .3);
    transition: .3s transform ease, .3s box-shadow ease;
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 77, 109, .5);
}

.btn-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    transition: .6s;
}

.btn-main:hover::before {
    left: 100%;
}

/* --- 4. GALLERY SECTION --- */
.gallery {
    padding: 80px 5%;
    display: none; /* Controlled by JS */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(to right, var(--primary) 20%, #ff758f 40%, #ff4d6d 60%, var(--primary) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-card {
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    opacity: 0; /* For scroll animation */
    transform: translateY(80px);
    transition: all .8s ease;
}

.photo-card.show {
    opacity: 1;
    transform: translateY(0);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 77, 109, .4);
}

.photo-card:hover img {
    transform: scale(1.1);
}

/* --- 5. MESSAGE SECTION --- */
.message-section {
    width: 100%;
    min-height: 100vh;
    display: none; /* Controlled by JS */
    opacity: 0;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    transition: opacity 1s ease-in-out;
}

.glass-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .05);
    max-width: 800px;
    text-align: center;
    transition: .5s ease;
    position: relative;
}

.glass-card:hover {
    background: #ffd6e4;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 120, 150, .35);
}

.floating-heart {
    font-size: 3rem;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -20px); }
}

.message-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* --- 6. MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-card {
        height: 420px;
    }

    #countdown-number {
        font-size: 6rem;
    }
}