:root {
    --primary: #d4b996;
    --secondary: #8b7355;
    --accent: #f8f5f2;
    --text: #333333;
    --light-text: #777777;
    --gold: #c8a97e;
}

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

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 3px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    /* Consistent spacing */
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    margin-bottom: 5px;
    /* Reduced since we use gap */
    letter-spacing: 4px;
    font-weight: 400;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.date-ribbon {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    display: inline-block;
    border-radius: 30px;
    margin: 0;
    /* Remove margin, handled by gap */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    margin-top: 0;
    /* Remove margin, handled by gap */
    border: 2px solid white;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s;
    z-index: -1;
}

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

.btn:hover::before {
    left: 0;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--secondary);
    font-weight: 400;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

/* Details Section */
.details {
    background-color: var(--accent);
    position: relative;
}

.details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4b996' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.detail-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--secondary));
}

.detail-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.detail-icon i {
    font-size: 32px;
    color: var(--gold);
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 500;
}

.detail-card p {
    font-size: 18px;
    color: var(--light-text);
}

.rsvp-notice {
    text-align: center;
    margin-top: 50px;
    font-size: 18px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Schedule Section */
.schedule {
    position: relative;
}

.schedule-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--gold), var(--secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 30px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: white;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid var(--gold);
    box-shadow: 0 0 0 4px white;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: -12px;
    background-color: white;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid var(--gold);
    box-shadow: 0 0 0 4px white;
}

.timeline-time {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

/* Our Story Section */
.our-story {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1511895426328-dc8714191300?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
}

.our-story::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%);
}

.our-story::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 50%, 50% 0, 100% 50%, 100% 100%, 0 100%);
}

.our-story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: white;
    font-weight: 400;
}

/* FAQ Section */
.faq {
    background-color: var(--accent);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-question {
    padding: 25px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background-color: white;
}

.faq-answer.active {
    padding: 25px;
    max-height: 500px;
}

/* RSVP Section */
.rsvp {
    background: linear-gradient(135deg, var(--secondary), #6b5b3c);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
    outline: none;
    box-shadow: 0 0 0 2px var(--gold);
}

.submit-btn {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #b89462;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #2c2c2c;
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 3px;
}

.footer-links {
    display: flex;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ddd;
    margin: 0 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    margin-top: 30px;
    color: #aaa;
    font-size: 16px;
}

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

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: 21px;
    }

    nav ul {
        display: none;
    }

    .section-title {
        font-size: 36px;
    }
}

/* Decorative Elements */
.floral-divider {
    text-align: center;
    margin: 40px 0;
    color: var(--gold);
    font-size: 24px;
    letter-spacing: 10px;
}

.circle-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 185, 150, 0.1);
    z-index: 0;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 8%;
}

/* Language Switcher */
.lang-switch {
    margin-left: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space around the separator */
}

.header-right {
    display: flex;
    align-items: center;
}

.lang-btn {
    padding: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--light-text);
    transition: all 0.3s;
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: var(--secondary);
}

.lang-btn.active {
    color: var(--text);
    font-weight: 700;
    position: relative;
}

/* Add a separator between buttons */
.lang-btn:first-child::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--gold);
    font-weight: 300;
    pointer-events: none;
}

.lang-en,
.lang-pl {
    display: none;
}

body.loc-en .lang-en {
    display: inline;
}

body.loc-pl .lang-pl {
    display: inline;
}

/* For blocks */
body.loc-en .lang-en.block {
    display: block;
}

body.loc-pl .lang-pl.block {
    display: block;
}