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

:root {
    --primary-color: #848484;
    --secondary-color: #32373c;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f7f7f7;
    --white: #ffffff;
    --border-color: #e2e2e2;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-light);
    line-height: 1.7em;
    font-size: 14px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.3em;
    color: var(--text-dark);
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--white);
    padding: 8px 12px;
    border-radius: 3px;
    display: flex;
    gap: 5px;
}

.lang-switcher button {
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 2px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.lang-switcher button.active {
    background: var(--primary-color);
    color: var(--white);
}

.lang-switcher button:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--white);
    position: relative;
    padding: 100px 20px 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0;
}

.hero .ampersand {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-light);
    display: inline-block;
    margin: 10px 0;
    font-weight: 300;
    font-style: italic;
    overflow: visible !important;
    padding: 10px 0;
}

.hero .date {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    margin-top: 30px;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero .location {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 5px;
    padding: 0 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 12px;
    padding: 10px 18px;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Sections */
section {
    padding: 90px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

section:nth-child(even) {
    background: var(--background-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-weight: 400;
    padding-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Story Section */
.story-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 15px;
    line-height: 1.8em;
    color: var(--text-light);
}

.story-content p {
    margin-bottom: 20px;
}

.story-quote {
    font-style: italic;
    font-size: 18px;
    color: var(--text-dark);
    margin: 30px 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.6em;
}

.story-content .episode-note {
    margin-top: 20px;
    font-style: italic;
}

.story-content.donations-intro {
    margin-bottom: 40px;
}

.story-content.rsvp-intro {
    margin-bottom: 30px;
}

/* Details Info */
.details-info {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.details-date {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.details-venue {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.details-address {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7em;
}

.details-info .map-link {
    margin-top: 25px;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 50px 0;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    aspect-ratio: 1;
}

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

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

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: var(--white);
    padding: 35px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.info-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.info-card p {
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    line-height: 1.9em;
}

.info-card li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.info-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.7;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: var(--text-dark);
}

/* Program Slider */
.program-slider-container {
    position: relative;
    max-width: 100%;
    margin: 40px auto;
}

.timeline {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    margin: 0 50px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    flex: 0 0 280px;
    position: relative;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 120px;
}

.timeline-time {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.timeline-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6em;
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slider-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.slider-nav-prev {
    left: 0;
}

.slider-nav-next {
    right: 0;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav:disabled:hover {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

/* Dress Code Section */
.dress-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.dress-code-card {
    text-align: center;
    padding: 35px;
    background: var(--white);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.dress-code-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.dress-code-card ul {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.dress-code-card .contact-note {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.9rem;
}

/* Hotels */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.hotel-card {
    background: var(--white);
    padding: 30px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.hotel-card h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.hotel-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.hotel-card a:hover {
    color: var(--text-dark);
}

.hotel-info {
    background: var(--background-light);
    padding: 15px;
    border-radius: 3px;
    margin-top: 15px;
    font-size: 14px;
}

/* Donations */
.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.donation-card {
    background: var(--white);
    padding: 35px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--border-color);
}

.donation-card h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.donation-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--text-dark);
}

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

.btn-secondary:hover {
    background: #1d8dd1;
}

/* RSVP Form */
.rsvp-form {
    max-width: 600px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    text-align: center;
    margin-top: 25px;
}

.form-submit button {
    padding: 12px 40px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit button:hover {
    background: var(--text-dark);
}

/* Map Container */
.map-container {
    margin: 40px 0;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 450px;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.7em;
    font-size: 14px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--text-dark);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Language Toggle */
.lang-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lang-content.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lang-switcher {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .lang-switcher button {
        padding: 6px 12px;
        font-size: 12px;
    }

    nav {
        display: none;
    }

    nav.mobile-active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 80px 20px;
    }

    nav.mobile-active ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav.mobile-active a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .timeline {
        margin: 0 40px;
    }

    .timeline-item {
        flex: 0 0 260px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    .info-grid,
    .photo-gallery,
    .dress-code-grid,
    .donation-cards,
    .contact-cards,
    .hotels-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 15px;
    }

    .rsvp-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .ampersand {
        font-size: 3.5rem;
    }

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

/* Note: Animations are now handled by GSAP 3.13.0 */

/* Print Styles */
@media print {
    nav,
    .lang-switcher,
    .mobile-menu-toggle,
    .scroll-indicator {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
    }
}
