:root {
    --primary: #c5a059;
    --secondary: #5d6d5e;
    --bg-light: #fdfbf7;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(197, 160, 89, 0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Cormorant Garamond', serif;
}

.serif {
    font-family: 'Cormorant Garamond', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

#main-nav.scrolled {
    background: var(--white);
    padding: 1rem 4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

#main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

#main-nav ul li {
    margin-left: 2rem;
}

#main-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

#main-nav ul li a:hover {
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.lang-btn.active {
    border-color: var(--primary);
}

.lang-btn img {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/2b7f7c81bd0bbef8ad765efaf98160f4.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero-content {
    animation: fadeInUp 1.5s ease;
}

.main-title {
    font-size: 5rem;
    font-weight: 400;
    margin: 1rem 0;
}

.sub-title {
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.9;
}

.date {
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-box span {
    font-size: 2rem;
    font-weight: 500;
}

.time-box label {
    font-size: 0.8rem;
    text-transform: uppercase;
}

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

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

/* Section General */
.section {
    padding: 8rem 0;
    text-align: center;
}

.alt-bg {
    background: #f6f3ee url('images/floral_bg.png') no-repeat center fixed;
    background-size: cover;
    position: relative;
}

.alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 251, 247, 0.85);
}

.alt-bg .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.section-subtitle {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Story Section */
.story-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.story-text {
    flex: 1;
}

.story-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.story-image {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    transition: transform 0.5s;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* Event Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-card i {
    color: var(--primary);
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.event-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.map-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--primary);
}

/* RSVP Stepper */
.rsvp-stepper {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stepper-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 300px;
    margin: 0 auto 3rem;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: #eee;
    width: 100%;
    z-index: 1;
}

.step-dot {
    width: 35px;
    height: 35px;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.glass-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.3s;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.children-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 15px;
    border: 1px dashed var(--primary);
}

.child-entry {
    display: grid;
    grid-template-columns: 1fr 100px 40px;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

.remove-child {
    color: #e74c3c;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-bottom: 15px;
}

.stepper-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.submit-btn.highlight {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Reveal-on-scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Registry & Modal */
.registry-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.registry-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
}

.registry-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.gift-details {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
    text-align: left;
}

.gift-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

/* Travel Gallery */
.travel-gallery-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.travel-gallery-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.travel-gallery {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    width: max-content;
}

.travel-card {
    position: relative;
    width: 250px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.travel-card:hover {
    transform: translateY(-10px) rotate(2deg);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.travel-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.travel-card:hover .travel-img {
    transform: scale(1.1);
}

.travel-card span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.travel-card:hover span {
    opacity: 1;
    transform: translateY(0);
}

footer {
    padding: 4rem 0;
    background: var(--white);
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    #main-nav {
        padding: 1rem 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

/* Autocomplete Suggestions */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.suggestions-list li:hover {
    background: #f9f9f9;
}

/* Family Member Checkbox */
.family-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.family-member-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
}