:root {
    --primary-color: #D4AF37; /* Gold */
    --text-color: #333333;
    --bg-color: #FAFAFA;
    --secondary-bg: #F0F0F0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition-speed: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('assets/carousel-2.png'); /* Fallback/Background */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    animation: fadeIn 2s ease-out;
}

.title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.names {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.date-display {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.location {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Couple Intro */
.couple-intro {
    padding: 5rem 2rem;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.image-frame {
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--primary-color);
    padding: 1rem;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: rotate(0deg);
}

.couple-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(20%);
}

.text-content {
    text-align: center;
    max-width: 600px;
}

.text-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Countdown */
.countdown-section {
    padding: 5rem 2rem;
    background-color: var(--secondary-bg);
    text-align: center;
}

.countdown-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 2rem;
    min-width: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.time-unit span {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

.time-unit label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Gallery / Carousel */
.gallery-section {
    padding: 5rem 2rem;
    background-color: white;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 500px;
    width: 100%;
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
    color: var(--text-color);
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: white;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 10px;
    margin-top: 1rem;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: var(--primary-color);
}

/* Footer */
footer {
    padding: 3rem;
    text-align: center;
    background-color: #222;
    color: white;
}

footer p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.small {
    font-size: 0.9rem;
    font-family: var(--font-body);
    margin-top: 1rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: center;
    }

    .title {
        font-size: 6rem;
    }

    .image-frame {
        width: 50%;
    }

    .text-content {
        width: 50%;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
}
