:root {
    --color-primary: #FFD1DC;
    /* Pastel Pink */
    --color-secondary: #FFF0F5;
    /* Lavender Blush */
    --color-accent: #B76E79;
    /* Rose Gold */
    --color-text: #4A4A4A;
    --color-white: #ffffff;
}

body {
    background-image: url('../img/bg-rosa.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: "Montserrat", sans-serif;
    color: var(--color-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Falling Sakura Petals */
.sakura-petal {
    position: fixed;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #FFD1DC, #FFB7C5);
    border-radius: 15px 0 15px 0;
    opacity: 0.8;
    animation: fall-sway 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.sakura-petal:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.sakura-petal:nth-child(2) {
    left: 25%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.sakura-petal:nth-child(3) {
    left: 40%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.sakura-petal:nth-child(4) {
    left: 60%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.sakura-petal:nth-child(5) {
    left: 80%;
    animation-duration: 18s;
    animation-delay: 3s;
}

@keyframes fall-sway {
    0% {
        transform: translateY(-50px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(20px);
    }

    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

/* Floating Clouds Background Effect */
.cloud-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="20" fill="white" opacity="0.1"/></svg>');
    animation: float-clouds 60s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes float-clouds {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

/* --- Typography --- */
.great-vibes {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
}

.cormorant-regular {
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
}

.cormorant-bold {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
}

.big-font {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.medium-font {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.text-rose-gold {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.text-rose-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {

    0%,
    80% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* --- Layout & Glassmorphism --- */
.main-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.wedding-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.wedding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(183, 110, 121, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.wedding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.wedding-card:hover::before {
    opacity: 1;
}

.divider-line {
    height: 1px;
    background-color: var(--color-accent);
    width: 100px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.5;
}

/* --- Buttons --- */
.btn-wedding {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.4);
}

.btn-wedding:hover {
    background-color: #a05a65;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(183, 110, 121, 0.6);
}

.btn-wedding-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-wedding-outline:hover {
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
}

/* --- Couple Photo --- */
.couple-photo-container {
    position: relative;
    padding: 10px;
    background: white;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    border-radius: 10px;
}

.couple-photo {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

/* --- Countdown --- */
.countdown-timer-ul {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.date-item {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 10px;
    animation: heartbeat 3s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.05);
    }

    60% {
        transform: scale(1);
    }
}

.date-item span {
    font-size: 2rem;
    font-weight: 700;
    font-family: "Cormorant Garamond", serif;
    color: var(--color-accent);
}

.date-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text);
}

/* --- No Children Section --- */
.no-children-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* --- RSVP Buttons --- */
.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .rsvp-buttons {
        flex-direction: row;
        gap: 2rem;
    }
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-accent);
    transform: translateX(-50%);
    opacity: 0.3;
}

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

.timeline-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-accent);
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(183, 110, 121, 0.2);
}

.timeline-content {
    width: 40%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    backdrop-filter: blur(5px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 5%;
}

.time-badge {
    background: var(--color-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-icon {
        left: 30px;
    }

    .timeline-content {
        width: 75%;
        margin-left: 80px !important;
        text-align: left;
        margin-right: 0 !important;
    }
}

/* --- Accommodation --- */
.accommodation-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
    height: 100%;
    backdrop-filter: blur(5px);
}

.accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.15);
    border-color: var(--color-accent);
}