:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #f8f8f8;
    --text-dark: #000000;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --shadow: rgba(0, 0, 0, 0.05);
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-weight: 300;
}

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

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.couple-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 8px 24px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 300;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    background: transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease;
    z-index: -1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%);
}

.navbar.scrolled::before {
    backdrop-filter: blur(16px);
}

.navbar.scrolled {
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.8) 0%, rgba(250, 250, 250, 0.4) 80%, rgba(250, 250, 250, 0) 100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
    height: 120px;
}

.nav-left {
    flex: 1;
}

.wedding-info {
    color: var(--text-dark);
    margin-top: 1rem;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.wedding-date-nav {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    line-height: 1;
    color: var(--primary-color);
    transition: font-size 0.3s ease;
}

.wedding-date-nav a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.wedding-date-nav a:hover {
    opacity: 0.7;
}

.wedding-location {
    font-size: 2.7rem;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 0.3px;
    line-height: 1.1;
    transition: font-size 0.3s ease;
}

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

.navbar.scrolled .wedding-location {
    font-size: 1.35rem;
}

.venue-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.venue-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.venue-link:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    transition:
        right 0.3s ease,
        transform 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    position: relative;
    opacity: 1;
    visibility: visible;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 2px;
}

.details-section {
    background: white;
}

.wedding-details-text {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
    line-height: 1.8;
}

.wedding-details-text p {
    font-size: 20px;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.wedding-details-text p:last-child {
    margin-bottom: 0;
}

.detail-info {
    line-height: 1.6;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 300;
}

.faq-section {
    background: var(--accent-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.faq-answer {
    line-height: 1.6;
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 300;
    margin: 0;
}

.gallery-section {
    background: var(--background-light);
}

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

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: top;
    transition: var(--transition);
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.02);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.4);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    width: auto;
    height: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.2);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-thumbnail {
        height: 200px;
    }

    .lightbox-prev {
        left: 10px;
        width: 50px;
        height: 50px;
    }

    .lightbox-next {
        right: 10px;
        width: 50px;
        height: 50px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

.rsvp-section {
    background: white;
}

.rsvp-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.rsvp-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

.footer {
    height: 6rem;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(248, 248, 248, 0.5) 50%,
        rgba(240, 240, 240, 1) 100%
    );
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    /* Make navbar scroll naturally on mobile */
    .navbar {
        position: static;
    }

    /* Float only the hamburger button */
    .hamburger {
        display: flex !important;
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1002 !important;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Mobile navigation */
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -300px;
        width: auto;
        max-width: 250px;
        background: var(--background-light);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transform: none;
        align-items: flex-start;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .nav-menu.active {
        right: 1rem;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-link {
        font-size: 1rem;
        display: block;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    /* Mobile date/location sizing */
    .wedding-date-nav {
        font-size: 1.2rem !important;
    }

    .wedding-location {
        font-size: 1rem !important;
    }

    /* Adjust nav container for mobile */
    .nav-container {
        height: auto;
        min-height: 60px;
        padding: 0.5rem 1rem;
        position: static;
    }

    /* Adjust hero image position on mobile */
    .couple-photo {
        object-position: 65% center;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }
}
