@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=JetBrains+Mono&display=swap');

:root {
    --pink: #ff85a2;
    --purple: #c77dff;
    --blue: #a2d2ff;
    --cream: #fff5f7;
    --stone-800: #292524;
    --stone-500: #78716c;
    --font-sans: "Space Grotesk", sans-serif;
    --font-serif: "Fraunces", serif;
    --font-mono: "JetBrains Mono", monospace;
}

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

body {
    background-color: var(--cream);
    color: var(--stone-800);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.5;
}

::selection {
    background: var(--blue);
    color: white;
}

/* --- Background Elements --- */
.birthday-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(var(--pink) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.floating-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -2;
    animation: float 8s infinite ease-in-out;
}
.shape-1 { top: 10%; left: 10%; width: 200px; height: 200px; background: rgba(255,133,162,0.2); }
.shape-2 { bottom: 20%; right: 15%; width: 250px; height: 250px; background: rgba(199,125,255,0.2); animation-delay: -2s; }

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.big-number {
    position: absolute;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: clamp(20rem, 50vw, 45rem);
    color: var(--pink);
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    line-height: 1;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 11vw, 8.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 0.85;
    letter-spacing: -0.02em;
}

.purple-text { color: var(--purple); }

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pink);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    margin-bottom: 2rem;
}

.title-box {
    background: rgba(162, 210, 255, 0.25);
    border: 2px solid var(--blue);
    padding: 12px 35px;
    transform: rotate(-2deg);
    display: inline-block;
    margin-bottom: 2.5rem;
    box-shadow: 4px 4px 0px rgba(162, 210, 255, 0.2);
}

.title-box h2 { 
    font-family: var(--font-serif); 
    font-style: italic; 
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    font-weight: 900;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--stone-500);
    max-width: 550px;
    margin-bottom: 4rem;
    font-weight: 500;
    line-height: 1.6;
}

/* --- Countdown Timer (Fluid + Mobile Friendly) --- */
.countdown { 
    display: flex; 
    gap: clamp(8px, 2vw, 30px); 
    justify-content: center; 
    width: 100%;
    padding: 0 10px; 
}

.time-block { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
}

#days,
#hours,
#minutes,
#seconds {
    font-size: large;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    width: clamp(70px, 22vw, 145px); 
    height: clamp(70px, 22vw, 145px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: clamp(16px, 4vw, 28px); 
    font-family: var(--font-mono); 
    font-weight: 900; 
    font-size: clamp(2.5rem, 10vw, 6rem); 
    line-height: 1;
    color: var(--pink); 
    box-shadow: 8px 8px 0 rgba(0,0,0,0.03);
    border: clamp(2px, 0.5vw, 4px) solid white; 
    transition: transform 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px) rotate(2deg);
    border-color: var(--blue);
}

.time-block span:last-child { 
    font-size: clamp(0.65rem, 2vw, 0.8rem); 
    font-weight: 800; 
    color: var(--stone-500); 
    letter-spacing: 3px; 
    margin-top: 8px;
}

/* --- Details Section --- */
.details { 
    padding: 150px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.grid { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 100px; 
    align-items: center; 
}

.tag { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background: rgba(162,210,255,0.2); 
    color: #5ba3e3; 
    padding: 8px 20px; 
    border-radius: 30px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 1.5rem 0;
}

.quote {
    color: var(--purple);
    font-weight: 700;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    display: block;
}

/* --- Info Cards --- */
.info-card {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 24px;
    padding: clamp(15px, 4vw, 25px); 
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 450px; 
}

.info-card:hover { 
    transform: translateX(12px); 
    background: white;
    box-shadow: 0 8px 32px rgba(255, 133, 162, 0.05);
}

.icon-wrap { 
    padding: 15px; 
    border-radius: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    width: 55px; 
    height: 55px; 
}

.pink { background: rgba(255,133,162,0.15); color: var(--pink); }
.blue { background: rgba(162,210,255,0.15); color: var(--blue); }
.purple { background: rgba(199,125,255,0.15); color: var(--purple); }

.info-card h3 {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    font-weight: 800;
    color: var(--stone-800);
}

.info-card p { 
    color: var(--stone-500); 
    font-weight: 500; 
    font-size: 0.9rem;
}

/* --- Photo / Sticker Section --- */
.photo-container { position: relative; }

.sticker-border {
    background: white;
    padding: 18px;
    box-shadow: 0 30px 60px rgba(199, 125, 255, 0.15);
    transform: rotate(-2deg);
    border: 4px solid white;
}

.sticker-border img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.caption { font-family: var(--font-serif); font-style: italic; text-align: center; margin-top: 20px; color: var(--stone-500); font-size: 1.2rem; }

.sticker-20 {
    position: absolute;
    top: -25px; right: -25px;
    background: var(--blue);
    color: white;
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.8rem;
    border: 5px solid white;
    transform: rotate(12deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse { 0%, 100% { transform: scale(1) rotate(12deg); } 50% { transform: scale(1.1) rotate(15deg); } }

/* --- RSVP Section --- */
.rsvp { padding: 140px 20px; text-align: center; background: rgba(255,133,162,0.04); }
.rsvp-icon { color: var(--pink); margin-bottom: 2rem; }

.btn-primary {
    background: var(--pink);
    color: white;
    border: none;
    padding: 22px 60px;
    font-size: 1.6rem;
    font-weight: 900;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-top: 3rem;
}

.btn-primary:hover {
    background: var(--purple);
    transform: translateY(-3px);
    box-shadow: 12px 12px 25px rgba(199, 125, 255, 0.2);
}

.btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 transparent; }

.success-icon { color: var(--blue); margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* --- Footer & Animations --- */
.footer { 
    padding: 80px 20px; 
    text-align: center; 
    color: var(--stone-500); 
    font-size: 0.75rem; 
    letter-spacing: 5px; 
    font-weight: 800; 
    opacity: 0.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
    color: var(--pink);
}

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

.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    top: -15px;
    z-index: 1000;
    border-radius: 2px;
}

/* --- Mobile View Adjustments --- */
@media (max-width: 900px) { 
    .grid { 
        grid-template-columns: 1fr; 
        gap: 60px; 
        text-align: center; 
    } 
    
    .info {
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .card-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
}