:root {
    --primary-blue: #60A5FA;
    --accent-yellow: #FDE047;
    --accent-pink: #FBCFE8;
    --background-light: #FDFBF6;
    --text-dark: #374151;
    --text-muted: #6b7280;
    --border-light: #F8FAFC;
    --soft-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), #4A8FE7);
    --gradient-accent: linear-gradient(135deg, var(--accent-yellow), #F59E0B);
    --gradient-pink: linear-gradient(135deg, var(--accent-pink), #EC4899);
}

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

body {
    font-family: "Playwrite AU QLD", cursive;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--background-light);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Ensure no horizontal scroll */
    font-weight: 400; /* Default font weight for body */
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-logo .names {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 200;
    font-size: 1.2rem;
}

.site-logo .ampersand {
    color: var(--accent-yellow);
    font-weight: 200;
    font-style: italic;
    margin: 0 0.2rem;
    font-size: 1.2rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::before {
    width: 100%;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: transparent; /* Ensure hero section itself is transparent */
}

.hero-background-fixed { /* New class for the fixed background image */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Placed behind all content */
}

.hero-background-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Slightly increased opacity for more presence */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-family: "Send Flowers", cursive;
    font-size: 5.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.9;
}

.hero-cta-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-cta-section h2 { /* Specific for inline RSVP title */
    font-family: "Send Flowers", cursive; /* Applied new title font */
    font-weight: 400; /* Set to 400 as requested */
}

.countdown-container {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.countdown-item {
    text-align: center;
    position: relative;
}

.countdown-item::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 400; /* Set to 400 as requested */
    color: var(--primary-blue);
    display: block;
    line-height: 1;
    margin-top: 1rem;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    font-weight: 400; /* Set to 400 as requested */
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 8rem 0;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: "Send Flowers", cursive; /* Applied new title font */
    font-size: 3.5rem;
    font-weight: 400; /* Set to 400 as requested */
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 2rem auto 1rem;
    border-radius: 2px;
}

.section-title::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient-pink);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ==================== WEDDING DETAILS ==================== */
.wedding-details {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
}

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

.detail-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.05), transparent);
    transition: left 0.6s ease;
}

.detail-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.1));
}

.detail-card h3 {
    font-family: "Send Flowers", cursive; /* Applied new title font */
    font-size: 1.9rem;
    font-weight: 400; /* Set to 400 as requested */
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 0.1em;
}

.detail-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400; /* Set to 400 as requested */
}

/* ==================== TIMELINE ==================== */
.timeline-section {
    background: var(--background-light);
    position: relative;
    opacity: 0.95; /* Slightly reduce opacity of the section */
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3); /* Subtle glow */
}

.timeline-event {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    /* Ensure content is centered relative to the timeline line */
    justify-content: center;
    flex-direction: column; /* Stack content and dot vertically for centering */
}

.timeline-event:nth-child(even) {
    flex-direction: column;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 5rem;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    margin: 0 2rem;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s ease;
    text-align: center; /* Centered text */
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.timeline-content::before {
    content: none;

}

.timeline-event:nth-child(odd) .timeline-content::before {
    content: none;

}

.timeline-event:nth-child(even) .timeline-content::before {
    content: none;

}

.timeline-time {
    font-weight: 400; /* Set to 400 as requested */
    color: var(--primary-blue);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.timeline-event-title {
    font-family: "Send Flowers", cursive; /* Applied new title font */
    font-size: 1.3rem;
    font-weight: 400; /* Set to 400 as requested */
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400; /* Set to 400 as requested */
}

.timeline-dot {
    position: relative; /* Changed from absolute to relative */
    left: auto; /* Reset left */
    top: auto; /* Reset top */
    margin-bottom: 1.5rem; /* Space between dot and content */
    width: 50px;
    height: 50px;
    background: white;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-dot img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the SVG scales down to fit without cropping */
    padding: 10%; /* Add some padding to prevent the icon from touching the border */
}

/* ==================== OUR STORY ==================== */
.our-story-section {
    background: radial-gradient(circle at 30% 20%, rgba(251, 207, 232, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 400;
}

.story-gallery {
    margin-top: 4rem;
    position: relative;
}

.gallery-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 300;
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 2rem 4rem 2rem;
    min-height: 500px;
}

.image-container {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: var(--soft-shadow);
}

.image-description {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 0 2rem;
}

.image-description p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.gallery-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

.gallery-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.gallery-arrows:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 2rem;
}

.gallery-next {
    right: 2rem;
}

/* ==================== GUEST INFO ==================== */
.guest-info-section {
    background: white;
}

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

.info-card {
    background: var(--background-light);
    padding: 4rem 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-family: "Send Flowers", cursive; /* Applied new title font */
    font-size: 1.6rem;
    font-weight: 400; /* Set to 400 as requested */
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400; /* Set to 400 as requested */
}

.info-card a {
    color: var(--primary-blue);
    font-weight: 400; /* Set to 400 as requested */
    text-decoration: none;
    border-bottom: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.info-card a:hover {
    color: #4A8FE7;
    border-color: #4A8FE7;
    padding-bottom: 2px;
}

.gift-registry {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--gradient-pink);
    border-radius: 25px;
}

.gift-registry a {
    color: white;
    font-size: 1.2rem;
    font-weight: 400; /* Set to 400 as requested */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.gift-registry a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== RSVP FORM PAGE ==================== */
.rsvp-form-page .rsvp-form {
    max-width: 700px; /* Wider form for this page */
    margin: 0 auto;
    background: white;
    padding: 3.5rem;
    border-radius: 25px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--border-light);
}

.rsvp-form-page .form-group {
    margin-bottom: 1.8rem;
    text-align: left;
}

.rsvp-form-page .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 400; /* Set to 400 as requested */
    color: var(--text-dark);
    font-size: 1rem;
}

.rsvp-form-page .form-group input[type="text"],
.rsvp-form-page .form-group input[type="email"],
.rsvp-form-page .form-group input[type="number"],
.rsvp-form-page .form-group select,
.rsvp-form-page .form-group textarea {
    width: 100%;
    padding: 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--background-light);
    font-weight: 400; /* Set to 400 as requested */
}

.rsvp-form-page .form-group input:focus,
.rsvp-form-page .form-group select:focus,
.rsvp-form-page .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.submit-button {
    width: auto;
    background: var(--gradient-primary);
    color: white;
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    display: block; /* Make it a block element */
    margin: 2rem auto 0 auto; /* Top margin, auto left/right to center */
}

.submit-button:hover {
    transform: translateY(-2px); /* Lift on hover */
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4); /* Enhanced shadow on hover */
}


/* ==================== THANK YOU PAGE ==================== */
.thank-you-page {
    min-height: 100vh; /* Make it full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0; /* Remove previous padding-top */
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    position: relative; /* Ensure z-index works */
    z-index: 1; /* Place above the fixed background image */
}

.thank-you-page .section-title {
    font-family: "Send Flowers", cursive; /* Ensure title uses the correct font */
    font-weight: 400;
}

.thank-you-page .container {
    max-width: 800px; /* Adjust max-width for better readability */
    padding: 2rem; /* Add some padding */
    background: white; /* White background for the content box */
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); /* Soft shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.thank-you-page p {
    font-weight: 400; /* Ensure body text uses the correct font weight */
}


/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden; /* Hide overflow from pseudo-elements */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(253, 224, 71, 0.08) 0%, transparent 40%);
    pointer-events: none; /* Allow clicks to pass through */
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer p {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer .quote {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .main-nav {
        display: none; /* Hide full nav on small screens */
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .countdown-item {
        flex-basis: 45%;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-event {
        flex-direction: column !important;
        align-items: flex-start;
        align-items: flex-start;
        padding-left: 4rem;
    }

    .timeline-content {
        margin: 0;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-dot {
        left: 2rem;
    }

    .details-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-card,
    .info-card {
        padding: 3rem 2rem;
    }

    .image-container {
        height: 400px; /* Smaller height for mobile */
    }

    .gallery-slide {
        padding: 1rem 1rem 3rem 1rem; /* Reduced padding on mobile */
        min-height: 400px; /* Adjust min-height for mobile */
    }

    .gallery-arrows {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-prev {
        left: 1rem;
    }

    .gallery-next {
        right: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .site-logo{
        margin: auto;
    }

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

    .countdown-item {
        flex-basis: 25%;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-cta-section,
    .countdown-container {
        padding: 2rem 1.5rem;
    }

    .image-container {
        height: 300px; /* Even smaller for very small screens */
    }

    .gallery-slide {
        padding: 0.5rem 0.5rem 2.5rem 0.5rem; /* Minimal padding */
        min-height: 300px;
    }

    .cta-button { /* Further adjustments for very small screens */
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }
}
