/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #F7F7F7;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Variables */
:root {
    --color-blue: #2C5F78;
    --color-brown: #8D7B68;
    --color-light: #F7F7F7;
    --color-text: #333;
    --color-white: #ffffff;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-blue);
}

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

.bg-dark {
    background-color: var(--color-blue);
    color: var(--color-white);
}

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

.text-white {
    color: var(--color-white);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(44, 95, 120, 0.5), rgba(141, 123, 104, 0.5)), url('https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero-content {
    background: rgba(44, 95, 120, 0.7);
    padding: 60px 40px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    max-width: 800px;
}

.names {
    font-size: 4rem;
    margin-bottom: 10px;
}

.date,
.location {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-white);
    margin: 20px auto;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-brown);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #7a6a58;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.scroll-down span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--color-white);
    border-right: 2px solid var(--color-white);
    transform: rotate(45deg);
    margin: -5px;
}

/* Hero Countdown */
.hero-countdown {
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.hero-countdown .time-block span {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

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


/* Two Col & Story */
.two-col {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-text,
.col-img {
    flex: 1;
}

.col-text h2 {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 20px;
}

.col-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 60px;
}

.detail-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.detail-card h3 {
    margin-bottom: 10px;
    color: var(--color-brown);
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-blue);
    border-bottom: 1px solid var(--color-blue);
    padding-bottom: 2px;
}

.map-link:hover {
    color: var(--color-brown);
    border-bottom-color: var(--color-brown);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-white);
    border: 4px solid var(--color-brown);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item:nth-child(odd) .time,
.timeline-item:nth-child(odd) .event {
    text-align: right;
}

.timeline-item .time {
    font-weight: 700;
    color: var(--color-blue);
    font-size: 1.2rem;
}

.timeline-item .event {
    font-size: 1.1rem;
}

/* RSVP */
#rsvp {
    background-color: #f0f4f8;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.gallery-item .placeholder {
    width: 100%;
    height: 100%;
    background-color: #ccc;
    background-image: linear-gradient(45deg, #ccc 25%, #ddd 25%, #ddd 50%, #ccc 50%, #ccc 75%, #ddd 75%, #ddd 100%);
    background-size: 20px 20px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .placeholder {
    transform: scale(1.05);
}

/* Timeline Header */
.day-header {
    text-align: center;
    font-size: 1.8rem;
    color: var(--color-brown);
    margin-bottom: 30px;
    font-weight: 400;
    border-bottom: 1px dashed var(--color-blue);
    display: inline-block;
    padding-bottom: 5px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

/* Footer */
footer {
    padding: 40px 0 100px 0;
    /* Extra padding for music player */
    background-color: #222;
    color: #888;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    /* Pill shape when closed */
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    width: 50px;
    /* Initial state */
    height: 50px;
    overflow: hidden;
}

.music-player:not(.closed) {
    width: 300px;
    border-radius: 12px;
    height: auto;
    padding: 15px;
}

.player-toggle {
    min-width: 30px;
    height: 30px;
    background-color: var(--color-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0;
    /* Centered in closed state */
}

.music-player:not(.closed) .player-toggle {
    display: none;
    /* Hide toggle when open, or move it */
}

.player-content {
    display: none;
    width: 100%;
    text-align: center;
}

.music-player:not(.closed) .player-content {
    display: block;
}

.song-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-blue);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.player-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-brown);
    transition: color 0.3s;
}

.player-controls button:hover {
    color: var(--color-blue);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .names {
        font-size: 2.5rem;
    }

    .hero-content {
        width: 90%;
        padding: 40px 20px;
    }

    .hero-countdown .time-block span {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented with JS */
    }

    .hamburger {
        display: block;
    }

    .two-col {
        flex-direction: column;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even)::after {
        left: 21px;
    }

    .timeline-item:nth-child(odd) .time,
    .timeline-item:nth-child(odd) .event {
        text-align: left;
    }

    .countdown-container {
        gap: 15px;
    }
}