:root {
    --blush: #f8e9e9;
    --sage: #a8b8a0;
    --ivory: #fcfaf7;
    --rose: #e8b4b4;
    --dusty-rose: #d4a5a5;
    --deep-green: #2d4a2d;
    --leaf: #6b8e6b;
    --text-dark: #3a3a3a;
}

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--ivory);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

/* Header */
header {
    background: linear-gradient(rgba(45, 74, 45, 0.2), rgba(45, 74, 45, 0.2)), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.floral-border {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,10 Q40,5 50,20 T80,10' fill='none' stroke='%23f8e9e9' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M10,30 Q30,15 60,30 T90,25' fill='none' stroke='%23f8e9e9' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M5,60 Q25,45 55,60 T95,55' fill='none' stroke='%23f8e9e9' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M15,85 Q35,70 65,85 T85,80' fill='none' stroke='%23f8e9e9' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
    pointer-events: none;
}

.header-content {
    animation: fadeIn 1.5s ease-out;
    z-index: 2;
}

.names {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.and {
    font-size: 3rem;
    margin: 0 15px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--blush);
}

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

.location {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.divider {
    width: 120px;
    height: 2px;
    background-color: var(--blush);
    margin: 25px auto;
    position: relative;
}

.divider:before,
.divider:after {
    content: '✿';
    position: absolute;
    top: -12px;
    color: var(--blush);
    font-size: 1.2rem;
}

.divider:before {
    left: -25px;
}

.divider:after {
    right: -25px;
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
    position: relative;
    color: var(--deep-green);
}

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

/* Our Story */
.our-story {
    background-color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.our-story: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='%23a8b8a0' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.story-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

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

.garden-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--leaf);
    margin: 40px 0;
    padding: 0 20px;
    position: relative;
}

.garden-quote:before,
.garden-quote:after {
    content: '❀';
    font-size: 2rem;
    color: var(--rose);
    position: absolute;
    opacity: 0.6;
}

.garden-quote:before {
    top: -15px;
    left: 0;
}

.garden-quote:after {
    bottom: -35px;
    right: 0;
}

/* Gallery */
.gallery {
    background-color: var(--blush);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    height: 420px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Wedding Details */
.wedding-details {
    background-color: var(--ivory);
}

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

.detail-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--ivory);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 184, 160, 0.3);
}

.detail-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--sage), var(--rose));
}

.detail-card:hover {
    transform: translateY(-8px);
}

.detail-card i {
    font-size: 2.8rem;
    color: var(--rose);
    margin-bottom: 25px;
}

.detail-card h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--deep-green);
}

.detail-card p {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* RSVP */
.rsvp {
    background: linear-gradient(rgba(252, 250, 247, 0.9), rgba(252, 250, 247, 0.9)), url('https://images.unsplash.com/photo-1464207687429-7505649dae38?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
}

.rsvp-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--ivory);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(168, 184, 160, 0.3);
}

.rsvp-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--sage), var(--rose));
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--deep-green);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(168, 184, 160, 0.5);
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 2px rgba(232, 180, 180, 0.2);
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    margin-right: 8px;
}

.btn {
    display: block;
    width: 100%;
    background: linear-gradient(to right, var(--sage), var(--rose));
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 184, 160, 0.4);
}

/* Map */
.map {
    height: 450px;
    background-color: #eee;
    position: relative;
}

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

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
    height: 50px;
}

/* Footer */
footer {
    background-color: var(--deep-green);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.heart {
    color: var(--rose);
    margin: 0 5px;
}

/* Floral decorative elements */
.floral-corner {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.1;
    z-index: 0;
}

.floral-top-left {
    top: 20px;
    left: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,30 Q30,10 50,20 T80,30' fill='none' stroke='%232d4a2d' stroke-width='1'/%3E%3Ccircle cx='30' cy='25' r='3' fill='%23e8b4b4'/%3E%3Ccircle cx='50' cy='15' r='3' fill='%23e8b4b4'/%3E%3Ccircle cx='70' cy='25' r='3' fill='%23e8b4b4'/%3E%3C/svg%3E");
}

.floral-bottom-right {
    bottom: 20px;
    right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,70 Q30,90 50,80 T80,70' fill='none' stroke='%232d4a2d' stroke-width='1'/%3E%3Ccircle cx='30' cy='75' r='3' fill='%23e8b4b4'/%3E%3Ccircle cx='50' cy='85' r='3' fill='%23e8b4b4'/%3E%3Ccircle cx='70' cy='75' r='3' fill='%23e8b4b4'/%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .and {
        font-size: 2rem;
        margin: 0 10px;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.3rem;
        margin-bottom: 50px;
    }

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

    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rsvp-form {
        padding: 30px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .floral-corner {
        display: none;
    }
}

/* Language Switcher */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rose);
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--deep-green);
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--rose);
    color: white;
}

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

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

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

/* Block display helper */
body.loc-en .lang-en.block {
    display: block;
}

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