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

:root {
    --primary-color: #5a6b5e;
    --secondary-color: #c9b896;
    --accent-color: #d4c5a0;
    --sage-green: #c5d5cb;
    --sage-dark: #9aab9e;
    --text-dark: #4a5a4e;
    --text-light: #6b7c6f;
    --bg-light: #f4f6f4;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(90, 107, 94, 0.15);

    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 1.05rem;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #c5d5cb 0%, #d4e0d7 100%);
    position: relative;
    text-align: center;
    margin-top: 60px;
    border: 3px solid var(--secondary-color);
    border-left: none;
    border-right: none;
}

.hero-content {
    z-index: 2;
}

.couple-names {
    font-size: 5.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease;
    font-weight: 400;
    line-height: 1.3;
}

.wedding-date {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: lowercase;
    animation: fadeInUp 1.2s ease;
    font-style: italic;
}

.save-date {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: fadeInUp 1.4s ease;
}

.date-detail {
    font-size: 1.3rem;
    color: var(--primary-color);
    animation: fadeInUp 1.6s ease;
    font-family: var(--font-body);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: var(--secondary-color);
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===========================
   Story Section
   =========================== */
.story-section {
    background: var(--white);
}

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

/* ===========================
   Details Section
   =========================== */
.details-section {
    background: var(--bg-light);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.detail-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.detail-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.detail-card p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.detail-time, .detail-address {
    font-size: 0.9rem;
}

.directions-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.directions-link:hover {
    color: var(--accent-color);
}

/* Schedule Timeline */
.schedule {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.schedule h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-time {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-light);
}

/* ===========================
   Gallery Section
   =========================== */
.gallery-section {
    background: var(--white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-prev, .lightbox-next {
    font-size: 3rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--accent-color);
}

/* ===========================
   RSVP Section
   =========================== */
.rsvp-section {
    background: var(--bg-light);
}

.rsvp-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

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

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

.guest-details {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 5px;
    margin-top: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===========================
   Registry Section
   =========================== */
.registry-section {
    background: var(--white);
}

.registry-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 50px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.registry-card {
    background: var(--bg-light);
    padding: 50px 40px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.registry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.registry-logo {
    font-size: 4rem;
    margin-bottom: 20px;
}

.registry-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.registry-link {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-date {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .couple-names {
        font-size: 3rem;
    }

    .wedding-date {
        font-size: 1rem;
    }

    .save-date {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    section {
        padding: 60px 0;
    }

    .lightbox-prev, .lightbox-next {
        font-size: 2rem;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 2rem;
        top: 20px;
        right: 20px;
    }
}

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

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

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