/* Wedding Homepage Styles */

/* Global Styles */
.wedding-homepage {
    font-family: 'Playfair Display', serif;
    color: #333;
    line-height: 1.6;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    color: #333;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #e6be8a, #d4af37);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/overlay-home-header.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.couple-names {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wedding-date {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    min-width: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Our Story Section */
.our-story-section {
    padding: 5rem 0;
    background-color: #fff;
}

.story-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.story-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.story-text {
    flex: 1;
    min-width: 300px;
}

.story-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Event Details Section */
.event-details-section {
    padding: 5rem 0;
    background-color: #f9f7f4;
}

.event-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.event-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #d4af37;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem; /* Ensures all titles have the same height */
    font-weight: 500; /* Changed to match accommodation-title */
    color: #d4af37; /* Added gold color to match accommodation-title */
}

.event-time {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-location {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.event-address {
    font-size: 0.9rem;
    color: #666;
}

/* Accommodations Section */
.accommodations-section {
    padding: 5rem 0;
    background-color: #fff;
}

.accommodations-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.accommodation-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px; /* Ensures all cards have the same minimum height */
}

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

.accommodation-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    color: #d4af37;
    font-weight: 500;
}

.accommodation-description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.accommodation-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem; /* Ensures all addresses have the same height */
}

.accommodation-contact {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.accommodation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to right, #e6be8a, #d4af37);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto; /* Pushes the button to the bottom of the card */
}

.accommodation-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RSVP Section */
.rsvp-section {
    padding: 5rem 0;
    background-color: #f9f7f4;
    text-align: center;
}

.rsvp-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

/* Animation Styles - subtle effects to prevent scroll shifting */
@keyframes fadeIn {
    from {
        opacity: 0.9;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0.9;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0.9;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0.9;
        transform: translateX(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title.animated {
    animation: fadeIn 1s ease forwards;
}

.story-content.animated .story-image {
    animation: slideInLeft 1s ease forwards;
}

.story-content.animated .story-text {
    animation: slideInRight 1s ease forwards;
}

.accommodation-card.animated {
    animation: fadeIn 0.8s ease forwards;
}

/* Initial state for animated elements - subtle opacity for smooth animations */
.section-title, .story-content .story-image, .story-content .story-text, .event-card, .accommodation-card {
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .story-content, .event-cards {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .couple-names {
        font-size: 3rem;
    }

    .wedding-date {
        font-size: 1.5rem;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.8rem;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Our Story Section */
    .story-content {
        flex-direction: column;
    }

    .story-image, .story-text {
        flex: 100%;
        max-width: 100%;
    }

    /* Event Details Section */
    .event-cards {
        flex-direction: column;
        align-items: center;
    }

    .event-card {
        width: 100%;
        max-width: 100%;
    }

    /* Accommodations Section */
    .accommodations-cards {
        flex-direction: column;
        align-items: center;
    }

    .accommodation-card {
        width: 100%;
        max-width: 100%;
    }

    /* RSVP Section */
    .rsvp-intro {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Global */
    .section-title:after {
        width: 60px;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .hero-section {
        min-height: 500px;
    }

    .couple-names {
        font-size: 2.5rem;
    }

    .wedding-date {
        font-size: 1.2rem;
    }

    .countdown-timer {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-item {
        min-width: 50px;
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .countdown-value {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* Our Story Section */
    .our-story-section, .event-details-section, .accommodations-section, .rsvp-section {
        padding: 3rem 0;
    }

    .story-text p {
        font-size: 1rem;
    }

    /* Event Details */
    .event-title {
        font-size: 1.3rem;
        min-height: 3rem; /* Adjusted for smaller screens */
    }

    .event-time {
        font-size: 1.1rem;
    }

    .event-location {
        font-size: 1rem;
    }

    /* Accommodations */
    .accommodation-title {
        font-size: 1.3rem;
        min-height: 3rem; /* Adjusted for smaller screens */
    }

    .accommodation-description {
        font-size: 1rem;
    }

    .accommodation-address, .accommodation-contact {
        font-size: 0.9rem;
    }
    
    .accommodation-address {
        min-height: 2.5rem; /* Adjusted for smaller screens */
    }

    /* RSVP Section */
    .rsvp-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}
