:root {
    /* Luxury Palette - Inspired by Hermes & high-end editorial */
    --bg-paper: #F8F5F2;
    /* Soft warm white */
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    /* Charcoal, not pure black */
    --text-secondary: #595959;
    --accent-gold: #AF9268;
    /* Muted, expensive gold */
    --accent-gold-light: #E4DCCF;
    --border-light: #E5E0D8;

    --font-heading: 'Bodoni Moda', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    --spacing-unit: 8px;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-paper);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent-gold);
    text-align: center;
    display: block;
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

/* Language Switcher */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    mix-blend-mode: difference;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    /* Difference mode makes this visible on light/dark */
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-en {
    display: none;
}

body[data-lang="en"] .lang-pl {
    display: none;
}

body[data-lang="en"] .lang-en {
    display: inline;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-paper);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1520854221256-17451cc330e7?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    z-index: -1;
    transform: scale(1.05);
    /* Zoom effect start */
    transition: transform 10s ease;
}

/* Subtle parallax via JS could go here, but pure css zoom useful too */

.hero-content {
    color: white;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.5s ease forwards 0.5s;
}

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

.hero-names {
    margin-bottom: 2rem;
}

.hero-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    margin: 2rem auto;
}

.hero-date {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 4rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    width: 1px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: white;
    animation: dropDown 2s infinite;
}

@keyframes dropDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* Section Styling */
section {
    padding: 8rem 0;
    position: relative;
}

.section-ornament {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.intro-text p::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    float: left;
    margin-right: 1rem;
    margin-top: -0.2rem;
}

.intro-image-wrapper {
    position: relative;
    padding-bottom: 120%;
    /* Portrait aspect */
    overflow: hidden;
}

.intro-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

/* Timeline - The "Omega" Precision */
.timeline-section {
    background: white;
}

.timeline-container {
    position: relative;
    padding: 4rem 0;
}

/* Central Line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 40%;
    padding: 2rem;
}

.timeline-date {
    width: 20%;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    background: white;
    /* Mask the line */
    z-index: 2;
    padding: 1rem 0;
}

.timeline-image {
    width: 40%;
    padding: 0 2rem;
}

.timeline-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 2px;
}

.timeline-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

/* Alternating pattern */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

/* Wedding Party - Minimalist Editorial */
.party-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.party-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    transition: border-color 0.3s;
}

.party-item:hover {
    border-bottom-color: var(--text-primary);
}

.party-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.party-item:hover .party-img {
    filter: grayscale(0%);
}

.party-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.party-role {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Menu - Fine Dining Card */
.menu-section {
    background-color: #1A1A1A;
    /* Dark mode for contrast */
    color: #F8F5F2;
}

.menu-section h2,
.menu-section .section-ornament {
    color: #F8F5F2;
}

.menu-section .subtitle {
    color: var(--accent-gold);
}

.menu-card {
    max-width: 700px;
    margin: 4rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    position: relative;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-category {
    text-align: center;
    margin-bottom: 4rem;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category-title {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.menu-item {
    margin-bottom: 1.5rem;
}

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.menu-item-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Location - Split View */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.location-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.venue-block {
    margin-bottom: 4rem;
}

.venue-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.venue-address {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.venue-time {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.location-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
}

/* RSVP - The Card */
.rsvp-section {
    padding-bottom: 10rem;
}

.rsvp-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-bottom-color: var(--text-primary);
}

.form-label {
    position: absolute;
    left: 0;
    top: 1rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -1rem;
    font-size: 0.6rem;
    color: var(--accent-gold);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    position: relative;
}

input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--text-primary);
    border-radius: 50%;
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: var(--text-primary);
    color: white;
    border: none;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-credit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-image-wrapper {
        /* Keep distinct from other image containers */
        order: -1;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }

    .timeline-content,
    .timeline-image {
        width: 100%;
        text-align: left !important;
        padding: 1rem 0;
    }

    .timeline-date {
        position: absolute;
        left: -15px;
        top: 0;
        width: 70px;
        font-size: 1.5rem;
    }

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

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

    .menu-card {
        padding: 2rem;
    }
}