:root {
    --bg-color: #FFFFFF;
    --primary-text: #5D5F96;
    /* Periwinkle Blue from ref */
    --secondary-text: #8888AA;
    --accent-pink: #FF7675;
    --accent-yellow: #FF9F43;
    --accent-cyan: #4ECDC4;
    --button-blue: #5D5F96;
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

body {
    font-family: 'Nunito', 'Poppins', sans-serif;
    color: var(--primary-text);
    background-color: var(--bg-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navbar */
.navbar {
    width: 100%;
    max-width: 1200px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

.nav-btn {
    border: 1px solid var(--primary-text);
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-btn:hover {
    background: var(--primary-text);
    color: #fff !important;
}

/* Container */
.container {
    max-width: 1200px;
    width: 90%;
    position: relative;
    z-index: 10;
}

/* Hero Section - Split Layout */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 50px 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image-area {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typography */
h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.highlight-text {
    color: var(--primary-text);
    /* Could be same or accent */
}

.sub-headline {
    font-size: 1.8rem;
    color: var(--accent-pink);
    /* "Save the date" style */
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
    font-weight: 700;
    display: inline-block;
}

.btn-primary {
    background-color: var(--button-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(93, 95, 150, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 95, 150, 0.5);
    background-color: #4a4c80;
}

/* Hero Image Area Logic */
.image-circle-bg {
    width: 450px;
    height: 450px;
    background-color: #F3E5F5;
    /* Light Purple/Lavender Background */
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.photo-slider {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align bottom like character in ref */
}

.photo-slider img {
    position: absolute;
    bottom: 0;
    max-height: 100%;
    width: auto;
    max-width: 90%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.photo-slider img.active-slide {
    opacity: 1;
}

/* Decor */
.decor-star {
    position: absolute;
    font-size: 2rem;
    color: var(--accent-pink);
    animation: twinkle 2s infinite alternate;
}

.star-1 {
    top: 10%;
    right: 10%;
    color: var(--accent-yellow);
    font-size: 3rem;
    transform: rotate(15deg);
}

.star-2 {
    bottom: 20%;
    left: 0%;
    color: var(--accent-pink);
}

@keyframes twinkle {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }

    to {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
}

/* Floating Balloons */
#balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Must not block clicks */
    z-index: 1;
    /* Low z-index */
}

.balloon {
    position: absolute;
    bottom: -100px;
    width: 30px;
    height: 40px;
    border-radius: 50%;
    opacity: 0.6;
    /* Slightly transparency for "background" feel */
    animation: floatUp 20s linear infinite;
}

/* Reusing balloon animation logic from prev task */
.balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 2px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Wishes Section */
.wishes-section {
    padding: 60px 0;
    text-align: center;
}

/* Reuse Gift Box Logic but clean up colors */
.gift-box-container {
    width: 200px;
    height: 200px;
    margin: 40px auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    animation: shakeBox 3s infinite;
}

.gift-box-container:hover {
    transform: scale(1.05);
}

/* Bright "Kiara" style colors for box */
.gift-body {
    width: 100%;
    height: 100%;
    background-color: var(--accent-yellow);
    border-radius: 10px;
    position: absolute;
    bottom: 0;
}

.gift-lid {
    width: 110%;
    height: 25%;
    background-color: var(--accent-pink);
    position: absolute;
    top: -10%;
    left: -5%;
    border-radius: 5px;
    z-index: 2;
}

.gift-bow {
    width: 40px;
    height: 40px;
    background-color: var(--accent-cyan);
    position: absolute;
    top: -25%;
    left: 40%;
    border-radius: 50%;
    z-index: 3;
}

.click-hint {
    margin-top: 220px;
    font-weight: bold;
    color: var(--primary-text);
    font-size: 1.2rem;
    animation: pulse 1s infinite alternate;
}

.hidden {
    display: none !important;
}

/* Wishes Grid - Playful & Wavy */
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;

    /* Playful Container Styling */
    background-color: #F8EFBA;
    /* Pastel Yellow */
    padding: 40px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    /* Organic/Wavy border radius */
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
    /* Hard shadow for fun effect */
    border: none;
    position: relative;
    /* Animation: Reveal + Wobble + Color Cycle (Removed border color cycle as border is gone) */
    animation: revealWishes 0.5s ease-out, borderWobble 10s ease-in-out infinite;
}

@keyframes borderWobble {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        /* Intentionally mirroring start for loop feel but maybe mirrored axes? 
           Actually let's make it distinct */
        border-radius: 40% 60% 40% 60% / 40% 50% 60% 50%;
    }

    75% {
        border-radius: 70% 30% 50% 50% / 30% 40% 60% 70%;
    }
}

@keyframes borderColorCycle {
    0% {
        border-color: var(--accent-pink);
    }

    33% {
        border-color: var(--accent-cyan);
    }

    66% {
        border-color: var(--button-blue);
    }

    100% {
        border-color: var(--accent-pink);
    }
}

/* Add some decorative dots/circles around the wishlist */
.wishes-grid::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.wishes-grid::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--button-blue);
    border-radius: 50%;
}

.wish-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

.wish-card:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.wish-card .icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.wish-card:hover .icon {
    transform: rotate(-10deg) scale(1.2);
}

.wish-card h4 {
    color: var(--primary-text);
    font-size: 1.3rem;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 8px;
}

.wish-card p {
    color: var(--secondary-text);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}


/* Gallery */
.photo-gallery-section {
    padding: 50px 0;
    text-align: center;
}

.photo-gallery-section h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary-text);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* Gift Payment Section */
.gift-section {
    background: #F9F9FF;
    /* Very light blue/grey */
    padding: 60px 40px;
    border-radius: 40px;
    margin: 50px 0;
    text-align: center;
}

.gift-section h3 {
    font-size: 2.5rem;
    color: var(--primary-text);
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 1rem;
}

.gift-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-gift {
    background: var(--accent-pink);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-gift:hover {
    transform: translateY(-3px);
    background: #ff5e5d;
}

.btn-gift:nth-child(2) {
    background: var(--accent-cyan);
}

.btn-gift:nth-child(3) {
    background: var(--button-blue);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-text);
    color: var(--primary-text);
}


/* Footer */
footer {
    padding: 30px;
    color: var(--secondary-text);
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text {
        text-align: center;
    }

    .image-circle-bg {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Keyframes for animations */
@keyframes shakeBox {

    0%,
    90% {
        transform: rotate(0deg);
    }

    91% {
        transform: rotate(3deg);
    }

    92% {
        transform: rotate(-3deg);
    }

    93% {
        transform: rotate(3deg);
    }

    94% {
        transform: rotate(-3deg);
    }

    95% {
        transform: rotate(3deg);
    }

    96% {
        transform: rotate(-3deg);
    }

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

@keyframes pulse {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

.display-none {
    display: none !important;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    visibility: visible;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid var(--accent-cyan);
    text-align: center;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.8);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-text);
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--accent-pink);
}

.modal-header h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--primary-text);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-text);
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}