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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    margin-left: 60px;
}

/* Sidebar Toolbar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
:root {
     --primary: #2c3e50; /* navy */
     --accent: #bfa85b; /* gold */
     --muted: #666;
     --bg: #ffffff;
     --text: #333;
     --sidebar-width: 60px;
}

    width: 60px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    z-index: 200;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar:hover,
.sidebar.active {
    width: 220px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    margin: 0 10px 30px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.sidebar-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 10px;
}

.sidebar-link {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.3s;
    font-size: 0.95rem;
    display: block;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Keep sidebar link labels hidden when collapsed; reveal on hover/active */
.sidebar .sidebar-link {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, max-width 0.18s ease;
}

.sidebar:hover .sidebar-link,
.sidebar.active .sidebar-link {
    opacity: 1;
    max-width: 220px;
    pointer-events: auto;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.8rem;
    margin: 1.5rem 0;
    opacity: 0.95;
    font-weight: 300;
}

.date {
    font-size: 2.2rem;
    margin: 2rem 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.music-toggle {
    background: white;
    color: #2c3e50;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
}

.music-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Invitation Card */
.invitation {
    background: linear-gradient(135deg, #faf5f0 0%, #f5ede5 100%);
    padding: 60px 20px;
}

.invitation-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    text-align: center;
    border: 2px solid #2c3e50;
}

.invitation-card h2 {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invitation-card p {
    color: #666;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.invitation-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 1rem 0;
    font-weight: 300;
}

.and-text {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0.5rem 0 !important;
}

.and {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0.5rem 0;
}

/* Sections */
section {
    padding: 80px 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Gallery Section */
.gallery {
    background: white;
}

.gallery-grid {
    display: grid;
    gap: 2rem;
    justify-content: center;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.25);
}

.gallery-item.featured {
    max-width: 600px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Details Section */
.details {
    background: #f9f9f9;
}

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

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-top: 4px solid #2c3e50;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.2);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.detail-card p {
    font-size: 1.1rem;
    color: #666;
}

/* Venue Section */
.venue {
    background: white;
}

.venue-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.venue-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 300;
}

.venue-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.map-container {
    border-radius: 10px;
}

/* Guest Checker */
.guests {
    background: #f9f9f9;
}

.guest-checker {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.guest-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    font-size: 1rem;
}

.guest-input:focus {
    outline: none;
    border-color: #1a252f;
    box-shadow: 0 0 5px rgba(44, 62, 80, 0.3);
}

.btn-primary {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    font-weight: bold;
}

.btn-primary:hover {
    background: #1a252f;
}

.guest-result {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-result.found {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.guest-result.not-found {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* RSVP Section */
.rsvp {
    background: white;
    text-align: center;
}

.rsvp-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-yes, .btn-no {
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
}

.btn-yes {
    background: var(--primary);
    color: white;
}

.btn-yes:hover {
    background: #1f2d36;
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(31,45,54,0.12);
}

.btn-no {
    background: #f4f4f4;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-no:hover {
    background: #e9e9e9;
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.rsvp-message {
    margin-top: 1rem;
    font-size: 1.2rem;
    min-height: 30px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        margin-left: 0;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 10px;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar:hover,
    .sidebar.active {
        width: 100%;
    }

    .sidebar-nav {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
        padding: 1rem;
    }

    .sidebar.active .sidebar-nav {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .date {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .venue-info {
        grid-template-columns: 1fr;
    }

    .invitation-card {
        padding: 2rem;
    }

    .rsvp-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-yes, .btn-no {
        width: 100%;
    }
}