:root {
    --text-color: #34090D;
    --accent-color: #AB495C;
    --light-bg: #F2CFD5;
    --paper-bg: #FFFAFA;

    --font-heading: 'Times New Roman';
    --font-script: 'Times New Roman';
    --font-body: 'Times New Roman';
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-color);
    margin: 1rem 0;
    line-height: 1.2;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    overflow: hidden;

    background-image: url('images/0.webp');
    background-position: left center;
    background-repeat: no-repeat;

    background-attachment: fixed;

    background-size: contain;
}

    .invitation-card {
        background-color: #fff;
        width: 100%;
        max-width: 600px;
        padding: 5rem 2rem;
        text-align: center;
        box-shadow: 0 30px 60px rgba(52, 9, 13, 0.25);
        position: relative;
        border-radius: 4px;
    }

    .invitation-card::after {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        border: 1px solid var(--accent-color);
        pointer-events: none;
        opacity: 0.4;
    }

    .invitation-card::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 25px;
        right: 25px;
        bottom: 25px;
        border: 1px solid var(--accent-color);
        pointer-events: none;
        opacity: 0.2;
    }

    .intro-text {
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 3px;
        color: #666;
        margin-bottom: 1rem;
    }

    .divider {
        font-size: 1.5rem;
        color: var(--accent-color);
        margin: 1.5rem 0;
        opacity: 0.7;
    }

    .hero .date {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--text-color);
    }

    .location-hero {
        font-style: italic;
        color: #666;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 20px;
        font-size: 2rem;
        color: var(--text-color);
        animation: bounce 2s infinite;
        opacity: 0.5;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-10px);
        }
        60% {
            transform: translateY(-5px);
        }
    }

    section {
        padding: 6rem 1rem;
        display: flex;
        justify-content: center;
    }

    .container {
        max-width: 900px;
        width: 100%;
    }

    .countdown-section {
        background-color: #fff;
        text-align: center;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4rem 1rem;
    }

    .countdown-container {
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
        justify-content: center;
    }

    .countdown-item {
        background: var(--paper-bg);
        border: 1px solid rgba(171, 73, 92, 0.15);
        padding: 1.5rem;
        min-width: 100px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(52, 9, 13, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .countdown-number {
        font-family: var(--font-heading);
        font-size: 2.5rem;
        color: var(--text-color);
        font-weight: 700;
        line-height: 1;
    }

    .countdown-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--accent-color);
        margin-top: 0.5rem;
        font-weight: 400;
    }

    .finished-text {
        font-family: var(--font-heading);
        font-size: 2rem;
        color: var(--accent-color);
    }

    @media (max-width: 600px) {
        .countdown-container {
            gap: 0.75rem;
        }
        .countdown-item {
            min-width: 70px;
            padding: 1rem 0.5rem;
        }
        .countdown-number {
            font-size: 1.8rem;
        }
        .countdown-label {
            font-size: 0.65rem;
        }
    }

    .details-section {
        background-color: #fffafb;

        background-image: url('images/3.webp');
        background-position: left 64%;
        background-repeat: no-repeat;

        background-size: 395px;
    }


    .timeline-section {
        background-color: white;
        background-image: url(images/7.webp);
        background-position: right 34%;
        background-repeat: no-repeat;
        background-size: 450px;


    }
    .info-section {
        background-color: var(--light-bg);
    }

    .details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .detail-item {
        padding: 3rem;
        background: white;
        border: 1px solid #f0e6e6;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .detail-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(171, 73, 92, 0.1);
    }

    .detail-item h3 {
        color: var(--accent-color);
        font-size: 1.8rem;
    }

    .timeline {
        position: relative;
        background-color: #ffffff9e;
        max-width: 380px;
        width: auto;
        margin: 0 auto;
        border-left: 1px solid var(--accent-color);
        padding-left: 2.5rem;
    }

    .timeline-item {
        position: relative;
        margin-bottom: 2.5rem;
    }

    .timeline-item::before {
        content: '♥';
        position: absolute;
        left: -3.15rem;
        top: 0;
        width: 1.2rem;
        height: 1.2rem;
        background: white;
        color: var(--accent-color);
        font-size: 1.2rem;
        line-height: 1.2rem;
        text-align: center;
    }

    .timeline-item .time {
        font-weight: 700;
        color: var(--accent-color);
        display: block;
        margin-bottom: 0.2rem;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .info-box {
        background: rgba(255,255,255,0.7);
        padding: 2rem;
        text-align: center;
        border-radius: 4px;
    }

    footer {
        text-align: center;

        background-color: var(--text-color);
        color: var(--light-bg);

        background-image: url('images/9.webp');
        background-position: 50% 72%;
        background-repeat: no-repeat;
        padding: 240px;
        background-size: 395px;

    }

    @media (max-width:550px){
        footer {
            padding: 240px 0;
            background-size: 100%;
        }
    }

    .footer-names {
        font-family: var(--font-script);
        font-size: 2.5rem;
        margin-top: 1rem;
        color: #fff;
    }

    @media (max-width: 768px) {
        h1 {
            font-size: 2.5rem;
        }
        .details-grid {
            grid-template-columns: 1fr;
        }
        .invitation-card {
            padding: 2rem 1rem;
        }
        .timer {
            font-size: 2.5rem;
        }
    }

    .color-palette {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 25px;
        margin-left: auto;
        margin-right: auto;
        max-width: 220px;
        justify-items: center;
        padding-bottom: 20px;
    }

    .color-swatch {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        cursor: pointer;
        position: relative;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    }

    .color-swatch:hover {
        transform: scale(1.15);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        z-index: 10;
    }

    .color-swatch::after {
        content: attr(data-name);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background-color: var(--text-color);
        color: #fff;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .color-swatch::before {
        content: '';
        position: absolute;
        bottom: 115%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: var(--text-color) transparent transparent transparent;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .color-swatch:hover::after,
    .color-swatch:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .full-photo-section {
        width: 100%;
        height: 100vh;
        background-image: url('image.jpeg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        margin: 0;
        padding: 0;
    }

    @media (max-width: 768px) {
        .full-photo-section {
            background-attachment: scroll;
            height: 60vh;
        }
    }

    .single-detail-card {
        background: white;
        max-width: 600px;
        margin: 0 auto;
        padding: 3rem 2rem;
        text-align: center;
        border: 1px solid #f0e6e6;
        box-shadow: 0 10px 30px rgba(52, 9, 13, 0.05);
        border-radius: 4px;
    }

    .detail-date {
        font-size: 1.8rem;
        color: var(--text-color);
        margin-bottom: 0.5rem;
    }

    .detail-time {
        font-size: 2.5rem;
        font-family: var(--font-heading);
        color: var(--accent-color);
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .detail-place {
        font-size: 1.3rem;
        font-weight: bold;
        color: var(--text-color);
    }

    .detail-address {
        color: #666;
        margin-bottom: 2rem;
    }

    .detail-divider {
        height: 1px;
        width: 50px;
        background-color: var(--accent-color);
        margin: 0 auto 2rem auto;
    }

    .detail-note {
        font-size: 1.1rem;
        color: var(--text-color);
    }

    .map-container {
        position: relative;
        width: 100%;
        height: 350px;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(171, 73, 92, 0.2);
        box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }


    .ruzeImg{
        width: 66%;
        display: block;
        margin: 0 auto;
        margin-top:40px;
    }

    .ruzeImg2{
        width: 300px;
        display: block;
        margin: 0 auto;
        margin-top:40px;
    }

    @media (max-width:350px){
        .ruzeImg2{
            width: 220px;

        }
    }
    
    @media (max-width:350px) {
        .hero {
            background-position: top center;

        }
    }

    /* RSVP PAGE STYLES */
    .rsvp-page {
        background-color: var(--light-bg);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .rsvp-card {
        background: #fff;
        padding: 3rem 2rem;
        border-radius: 8px;
        box-shadow: 0 20px 50px rgba(52, 9, 13, 0.15);
        max-width: 500px;
        width: 100%;
        position: relative;
    }

    .back-link {
        display: block;
        margin-bottom: 2rem;
        color: var(--accent-color);
        text-decoration: none;
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--text-color);
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: var(--font-body);
        font-size: 1rem;
    }

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

    .radio-group label {
        font-weight: 400;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .submit-button {
        width: 100%;
        padding: 15px;
        background-color: var(--accent-color);
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        transition: opacity 0.3s;
        margin-top: 1rem;
    }

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

    .success-message {
        text-align: center;
    }

    .success-message h2 {
        margin-bottom: 1rem;
    }

    .rsvp-section {
        background-color: #fff;
    }