/* ===================================
   30 ANS - THIRTY, FLIRTY & THRIVING
   Theme: "13 Going on 30" / Rose & Doré
   =================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink-100: #FFF0F5;
    --pink-200: #FFD6E8;
    --pink-300: #FFB3D1;
    --pink-400: #FF69B4;
    --pink-500: #FF1493;
    --pink-600: #DB0A7B;
    --rose-gold: #B76E79;
    --rose-gold-light: #E8B4B8;
    --gold: #D4A574;
    --gold-light: #F5DEB3;
    --purple-100: #F3E5F5;
    --purple-300: #CE93D8;
    --white: #FFFFFF;
    --off-white: #FFF8FA;
    --text-dark: #3D1A2E;
    --text-medium: #6B3A5D;
    --text-light: #9B6B8A;
    --shadow-pink: rgba(255, 20, 147, 0.15);
    --shadow-dark: rgba(61, 26, 46, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Particles --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    /* More reliable on mobile browsers */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(255, 240, 245, 0.4), rgba(255, 240, 245, 0.4)), url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 105, 180, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(206, 147, 216, 0.1) 0%, transparent 40%);
    backdrop-filter: blur(1.5px);
    /* Slight blur for the entire background */
    -webkit-backdrop-filter: blur(1.5px);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(10deg) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sparkle-container {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.sparkle {
    animation: sparkleFloat 3s ease-in-out infinite;
    display: inline-block;
}

.sparkle:nth-child(2) {
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sparkleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

.hero-pre-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 1);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.title-number {
    font-family: 'Felix Titling', serif;
    font-size: 8rem;
    font-weight: normal;
    font-style: italic;
    letter-spacing: -2px;
    color: var(--text-dark);
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2)) drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.5));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2)) brightness(1);
    }

    50% {
        filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.6)) brightness(1.2);
    }
}

.title-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-style: italic;
    text-transform: none;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--pink-600);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.9);
}

.hero-divider {
    margin: 1rem 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.heart {
    font-size: 2rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.hero-tagline {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.7s both;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.9);
}

.hero-date {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--pink-600);
    margin-top: 0.5rem;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.9s both;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.9);
}

.scroll-indicator {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 1s both;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator:hover {
    color: var(--pink-500);
}

.scroll-deadline {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-top: 0.2rem;
    opacity: 0.9;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
    margin-top: 0.5rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* --- RSVP Section --- */
.rsvp-section {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-medium);
    font-weight: 400;
}

.deadline {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--pink-600) !important;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* --- Form --- */
.rsvp-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px var(--shadow-dark),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--pink-200);
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input[type="text"]:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.15);
    background: var(--white);
}

.form-group input[type="text"]::placeholder {
    color: var(--text-light);
    font-weight: 300;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- Number Input Custom --- */
.number-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--pink-200);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.number-input:focus-within {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.15);
    background: var(--white);
}

.number-input input[type="number"] {
    width: 100%;
    text-align: center;
    border: none;
    padding: 0.9rem 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-dark);
    outline: none;
    -moz-appearance: textfield;
}

.number-input input[type="number"]::-webkit-outer-spin-button,
.number-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-minus,
.btn-plus {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pink-500);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-minus:hover,
.btn-plus:hover {
    background: var(--pink-100);
    color: var(--pink-600);
}

.btn-minus:active,
.btn-plus:active {
    transform: scale(0.9);
}

/* --- Total Preview --- */
.total-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pink-200);
}

.total-label {
    font-weight: 500;
    color: var(--text-medium);
    font-size: 1rem;
}

.total-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.total-number.bump {
    animation: bumpAnim 0.4s ease;
}

@keyframes bumpAnim {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Submit Button --- */
.btn-submit {
    width: 100%;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-400), var(--rose-gold));
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-pink);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-pink);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::after {
    left: 100%;
}

/* --- Success Message --- */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--shadow-dark);
    animation: fadeInUp 0.6s ease-out;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.success-message h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--pink-500);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.success-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--pink-600);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.btn-another {
    padding: 0.8rem 2rem;
    border: 2px solid var(--pink-400);
    border-radius: 14px;
    background: transparent;
    color: var(--pink-500);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-another:hover {
    background: var(--pink-500);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--pink-200), var(--purple-100));
    position: relative;
    z-index: 1;
}

.footer-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5rem;
}

.footer-content p:last-child {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--text-medium);
}

/* --- Confetti --- */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-10vh) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(110vh) rotate(720deg);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding-top: 1rem;
        padding-bottom: 2rem;
        background-image: linear-gradient(rgba(255, 240, 245, 0.4), rgba(255, 240, 245, 0.4)), url('bg-mobile.png');
    }

    .title-number {
        font-size: 5rem;
    }

    .title-text {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .hero-pre-title {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        font-size: 1rem;
        margin-top: 2rem;
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 20px;
        backdrop-filter: blur(8px);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rsvp-section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .title-number {
        font-size: 4rem;
    }

    .title-text {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }
}