/* Design System Variables */
:root {
    --bg-color: #FFF6EE; /* Warm peachy/beige background */
    --primary-color: #F84C69; /* Bright pink/red for accents */
    --secondary-color: #FFB347; /* Yellowish orange accent */
    --text-color: #4A4A4A; /* Soft dark grey for readability */
    --light-bg: #FFFFFF;
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-fast: 0.2s ease-in-out;
    --transition-med: 0.4s ease-in-out;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 246, 238, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.secret-link {
    color: var(--secondary-color) !important;
}
.secret-link:hover {
    color: var(--primary-color) !important;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Base Sections */
.section-container {
    padding: 8rem 5% 6rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 3px;
    transform: rotate(-2deg);
}

.alt-bg {
    background-color: var(--light-bg);
    /* Playful polka-dot background */
    background-image: radial-gradient(rgba(248, 76, 105, 0.08) 3px, transparent 3px);
    background-size: 40px 40px;
}

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-short);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: #333; /* Dark button from reference image */
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-4px) scale(1.03);
    color: white;
    box-shadow: 0 8px 20px rgba(248, 76, 105, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 20px rgba(248, 76, 105, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    text-align: center;
    /* Soft glow behind the hero image */
    background: radial-gradient(circle at center, #FFF 0%, var(--bg-color) 70%);
}

.hero-image-container {
    max-width: 650px;
    width: 95%;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
    /* Give the overall shape a subtle shadow */
    filter: drop-shadow(0 15px 25px rgba(248, 76, 105, 0.15));
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* No mix-blend-mode needed since we made the PNG truly transparent */
}

/* Base class for elements that will be animated on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Adding some bouncy hover effects */
.hover-bounce {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-bounce:hover {
    transform: scale(1.05) translateY(-5px);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-content {
    max-width: 600px;
    padding: 0 20px;
}

.date {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.divider {
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 1.5rem auto;
}

.welcome-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666;
}

/* Split Content */
.split {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    z-index: 2;
}

.text-box, .image-box {
    flex: 1 1 400px;
}

.text-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.address {
    font-size: 1.1rem;
    font-style: italic;
    color: #777;
    margin-bottom: 1.5rem;
}

.sub-heading {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.transport-list {
    list-style: none;
    margin: 1rem 0 2rem;
}

.transport-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
}

.location-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.location-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Dress Code Section */
.centered-text {
    max-width: 900px;
    text-align: center;
    font-size: 1.1rem;
    z-index: 2;
}

.fun-text {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    transform: rotate(-2deg);
}

/* Form Styling */
.rsvp-form {
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #EEE;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background-color: #FAFAFA;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #FFF;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    background-color: var(--primary-color);
    color: white;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
}

.footer-link:hover {
    color: white;
}

/* Reserved Area & Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover { color: var(--primary-color); }

.password-group {
    display: flex;
    margin-top: 1.5rem;
    gap: 10px;
}

.password-group input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #DDD;
    border-radius: 10px;
    font-size: 1rem;
}

.password-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

/* The revealed secret area modal */
.reserved-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF3EC; /* Solid background */
    overflow-y: auto;
    padding: 2rem;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reserved-content {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
}

.close-reserved-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(248, 76, 105, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-reserved-btn:hover {
    transform: scale(1.1);
}

.hotel-details {
    background-color: #F8F9FA;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 5px solid var(--secondary-color);
}

.hotel-warning {
    background-color: #FFF3CD;
    color: #856404;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.hotel-rules {
    list-style: none;
    margin-top: 1rem;
}
.hotel-rules li {
    margin-bottom: 0.5rem;
}


/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 246, 238, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .fun-text {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
