:root {
    --bg-color: #fcfbf7;
    /* Cream/Off-white */
    --text-color: #4a4a4a;
    --accent-color: #D4AF37;
    /* Gold */
    --accent-light: #f3e5ab;
    /* Lighter gold/champagne */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(39, 100%, 85%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(50, 100%, 90%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(39, 100%, 85%, 0.4) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #2c2c2c;
    margin-top: 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
}

.amp {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
}

.code {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
    display: inline-block;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    width: fit-content;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 0.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

.lang-switcher button {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    color: var(--text-color);
    padding: 0 0.5rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.lang-switcher button:hover {
    opacity: 1;
}

#main {
    background: #ffffff66;
    backdrop-filter: blur(12px);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    color: white;
    /* Make text white for better contrast on image */
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    /* Add shadow for readability */
}

.hero::before {
    content: '';

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/wedding_hero_bg.png');
    filter: blur(1px);
    background-size: cover;
    background-position: center;
    z-index: -2;
    position: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, rgba(255, 255, 255, 0) 66%);
    /* Slight dark overlay */
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: white;
}

.hero .date,
.hero .location {
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin: 0.2rem 0;
    text-transform: uppercase;
    color: white;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Story */
.story-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    /* Increased gap */
}

.story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: none;
    /* Removed card background for nicer flow */
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Alternating layout */
.story-item.reverse {
    direction: rtl;
    /* Simple way to swap columns visually */
    text-align: left;
    /* Reset text align */
}

.story-item.reverse .content {
    direction: ltr;
    /* Reset text direction inside content */
}

.image-wrapper {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.story-item:hover .image-wrapper img {
    transform: scale(1.05);
    /* Gentle zoom effect */
}

.story-item .content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.story-item .icon {
    font-size: 2rem;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.story-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

/* Event Info - Parallax-like Background */
.info {
    position: relative;
    padding: 6rem 2rem;
    /* Add more padding */
    color: var(--text-color);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(1.0);
    transition: all 0.5s ease-in-out;
    background: black;
}

.info:hover {
    cursor: pointer;
    transform: scale(1.45);
    transition: all 0.5s ease-in-out;
}

.info:hover .info-background {
    transform: scale(1);
    filter: blur(0px);
    transition: all 0.5s ease-in-out;
}

.info-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    filter: blur(12px);
    transform: scale(1.4);
    opacity: 0.85;
}

.info-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info .link {
    display: inline-block;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #00000033;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
    box-shadow: none;
    border: none;
}

.info .link:hover {
    background-color: #000000;
    transition: all 0.5s ease-in-out;
}

/* Overlay for readability */
.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Heavy cream overlay */
    backdrop-filter: blur(2px);
    z-index: -1;
}

.info-content-wrapper {
    position: relative;
    z-index: 1;
}

.info h2 {
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* Event Info Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: var(--font-body);
    /* More modern feel for subheads */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.tips-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.tips-list li {
    margin-bottom: 0.5rem;
}

.link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* Gift Section */
.gift-card {
    background: linear-gradient(135deg, #fff 0%, #fefcf5 100%);
    border: 2px solid var(--accent-light);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.bank-details {
    background: rgba(212, 175, 55, 0.08);
    /* faint gold */
    padding: 1rem;
    margin: 1rem auto;
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: monospace;
    font-size: 1.5rem;
    color: #555;
}

#funny {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    padding: 0;
}

#funny img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#funny h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    color: black;
    text-align: center;
    padding: 0 1rem;
}

/* RSVP Form */
.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
    /* Fix width issues */
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #2c2c2c;
    /* Contrast button */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: black;
}

footer {
    text-align: center;
    padding: 3rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .story-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-item.reverse {
        direction: ltr;
        /* Reset visual direction for mobile */
    }

    .image-wrapper {
        height: 250px;
    }

    #funny {
        border-radius: 0px;
    }

    #info {
        border-radius: 0px;
    }

    #funny h2 {
        font-size: 1.5rem;
    }
}

/* Guest Entry Styling */
.guest-entry {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    padding-top: 2.5rem;
    /* Space for remove button */
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.guest-number {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

.remove-guest-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.6;
    padding: 0.5rem;
}

.remove-guest-btn:hover {
    opacity: 1;
}

/* Accordion Styling */
.essential-info {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.location-highlight {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 15px rgba(212, 175, 55, 0.15);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: left;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.5);
}

.accordion-header .icon {
    font-family: monospace;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(255, 255, 255, 0.4);
}

.list-content {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    text-align: left;
    font-size: 0.8rem;
}

.list-content li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-content li a:not(.place-contact) {
    text-transform: uppercase;
}

.list-content li:last-child {
    border-bottom: none;
}

.list-content strong {
    color: var(--primary-color);
}

.place-contact:before {
    content: '✉️';
    margin-right: 0.5rem;
}

#addGuestBtn {
    margin-bottom: 0.5rem;
}

.rvsp-condition {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
    font-style: italic;
    font-weight: 500;
}