@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Comic+Neue:wght@400;700&family=Quicksand:wght@500;700&display=swap');

:root {
    /* Toddler Fun Palette */
    --bg-sky: #87CEEB;
    --bg-cloud: #ffffff;

    /* Bright Accents */
    --color-red: #FF5555;
    --color-blue: #4488FF;
    --color-yellow: #FFD700;
    --color-green: #44CC44;
    --color-purple: #9966FF;

    /* UI Elements */
    --card-bg: #ffffff;
    --text-dark: #333333;
    --border-radius: 30px;

    /* Shadows */
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-pop: 0 8px 0 rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Comic Neue', cursive;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-sky);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.4) 10%, transparent 10.2%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.4) 15%, transparent 15.2%);
    background-size: 100% 100%;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    display: none;
    /* Hide the tech cursor */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-blue);
    text-shadow: 3px 3px 0px rgba(255, 255, 255, 0.5);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 50px;
}

.hero-content {
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 50px;
    border: 8px solid var(--color-yellow);
    box-shadow: var(--shadow-soft);
    transform: rotate(-2deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.glitch-title {
    font-size: 4rem;
    color: var(--color-red);
    text-shadow: 4px 4px 0 var(--color-yellow);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.badge-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
}

.age-badge {
    width: 100%;
    height: 100%;
    background: var(--color-yellow);
    border-radius: 50%;
    border: 8px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 900;
    color: var(--color-blue);
    box-shadow: var(--shadow-pop);
    transform: rotate(10deg);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-blue);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    background: var(--color-green);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 0 #2a992a;
    transition: all 0.1s;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.cta-btn:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #2a992a;
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 0;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    min-width: 100px;
    border: 4px solid var(--color-purple);
    box-shadow: var(--shadow-pop);
    transform: rotate(3deg);
}

.countdown-item:nth-child(even) {
    transform: rotate(-3deg);
    border-color: var(--color-red);
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.countdown-label {
    color: var(--color-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Cards Grid System */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 4px 4px 0 var(--color-blue);
    -webkit-text-stroke: 2px var(--color-blue);
}

.section-title span {
    color: var(--color-yellow);
    -webkit-text-stroke: 2px var(--color-red);
    text-shadow: 4px 4px 0 var(--color-red);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 2rem 0;
}

.glass-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 5px solid var(--color-blue);
    box-shadow: var(--shadow-pop);
    transition: transform 0.3s;
}

.glass-card:nth-child(2n) {
    border-color: var(--color-red);
}

.glass-card:nth-child(3n) {
    border-color: var(--color-green);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: wiggle 3s infinite;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-text {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: bold;
    color: #666;
}

/* RSVP Form */
.rsvp-section {
    padding: 4rem 0;
}

.rsvp-container {
    background: white;
    border-radius: 40px;
    padding: 3rem;
    border: 8px solid var(--color-yellow);
    box-shadow: var(--shadow-soft);
    max-width: 700px;
    margin: 0 auto;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-blue);
    font-weight: bold;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: #f0f8ff;
    border: 3px solid #ddd;
    border-radius: 15px;
    font-size: 1.2rem;
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-purple);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--color-red);
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 0 8px 0 #cc0000;
    transition: transform 0.1s;
}

.submit-btn:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #cc0000;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--color-blue);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

footer a {
    color: var(--color-yellow);
    text-decoration: none;
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .glitch-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 20px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Hero Section Mobile */
    .hero-content {
        padding: 20px 15px;
        transform: rotate(0deg);
        /* Remove rotation on small screens to save space */
        animation: none;
        /* Optional: remove float if it's distracting/laggy */
        width: 95%;
    }

    .glitch-title {
        font-size: 2.2rem;
        /* Smaller title */
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .badge-container {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }

    .age-badge {
        font-size: 4rem;
        border-width: 5px;
    }

    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        width: 100%;
        /* Full width button */
    }

    /* Countdown Mobile */
    .countdown-grid {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 10px;
        flex: 1 1 40%;
        /* 2 per row */
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.9rem;
    }

    /* Grid & Cards Mobile */
    .grid-container {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 20px;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    /* RSVP Form Mobile */
    .rsvp-container {
        padding: 1.5rem;
        border-width: 5px;
    }

    .form-input {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1.2rem;
    }
}