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

:root {
    --sky-blue: #87CEEB;
    --deep-blue: #4682B4;
    --green: #60a670;
    --light-orange: #c5e7fc;
    --cream: #FFF8F0;
    --charcoal: #333333;
    --light-gray: #F8F8F8;
    --medium-gray: #666666;
    --white: #FFFFFF;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

p, h3 {
    text-align: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cygnet', serif;
    font-weight: 500;
    color: var(--green);
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
    font-family: 'Cygnet', sans-serif;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-family: 'Cygnet', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--deep-blue);
    font-style: italic;
}

.nav-home-link {
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: var(--deep-blue);
    font-weight: 400;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

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

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

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--charcoal);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image {
    margin-top: 1rem;
}

.couple-names {
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
    font-style: italic;
}

.couple-names span {
    font-size: 3.5rem;
    font-style: normal;
    color: var(--green);
    font-weight: 300;
}

.wedding-date {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--medium-gray);
}

.wedding-location {
    font-size: 1.3rem;
    color: var(--medium-gray);
    font-style: italic;
}

/* Carousel Section */
.carousel-section {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.carousel {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 60vh;
    min-height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.8);
}

.dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

.dot.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

/* Schedule Page */
#schedule {
    padding: 2rem 0 4rem;
}

.schedule-title {
    margin-bottom: 1.5rem;
}

#schedule h1 {
    text-align: center;
    color: var(--deep-blue);
    margin-bottom: 3rem;
}

.date-header {
    text-align: center;
    padding: 2rem;
    background: var(--light-orange);
    border-radius: 15px;
}

.date-header h2 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 1rem;
}

.timeline-item {
    display: block;
    margin-top: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    border-top: 4px solid var(--sky-blue);
}

.timeline-time {
    background: var(--green);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
}

.timeline-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

.timeline-content {
    padding: 2rem 1.5rem;
    text-align: left;
}

.dress-code {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
}

.dress-code h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

/* Accommodations Page */
#accommodations {
    padding: 2rem 0 4rem;
}

#accommodations h1 {
    text-align: center;
    color: var(--deep-blue);
    margin-bottom: 3rem;
}

.accommodations-content > div {
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.venue-info h2,
.accommodation h2 {
    color: var(--deep-blue);
    border-bottom: 2px solid var(--sky-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.address {
    background: var(--light-orange);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: inline-block;
}

.hotel-options {
    display: block;
    margin-top: 2rem;
}

.hotel {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.hotel h3 {
    color: var(--green);
    margin-bottom: 1rem;
}

.hotel ul {
    text-align: left;
    display: inline-block;
    margin: 1rem 0;
}

.hotel a[href^="mailto:"] {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* FAQ Page */
#faq {
    padding: 2rem 0 4rem;
    background: var(--light-gray);
}

#faq h1 {
    text-align: center;
    color: var(--deep-blue);
    margin-bottom: 3rem;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.faq-section {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: left;
    border-left: 4px solid var(--sky-blue);
}

.faq-item h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.faq-item p {
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 1rem;
}

/* RSVP Page */
#rsvp {
    padding: 2rem 0 4rem;
    background: var(--cream);
}

#rsvp h1 {
    text-align: center;
    color: var(--deep-blue);
    margin-bottom: 2rem;
}

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

.rsvp-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
}

.rsvp-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

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

@font-face {
    font-family: 'Cygnet';
    src: url('Cygnet.ttf');
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--sky-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cygnet', sans-serif;
    transition: border-color 0.3s ease;
}

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

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--sky-blue) 100%);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 130, 180, 0.3);
}

.rsvp-success {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rsvp-success h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.registry-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--deep-blue);
}

.registry-link {
    font-size: 3rem;
    font-family: 'Cygnet', serif;
}

.registry-image {
    height: 400px;
}

/* Gallery Collage Layout */
.gallery-collage {
    columns: 4;
    column-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
}

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

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Different sizes for collage variety */
.gallery-item.small {
    transform: scale(0.8);
    margin: -10px -10px 0px -10px;
}

.gallery-item.medium {
    transform: scale(1);
}

.gallery-item.large {
    transform: scale(1.1);
    margin: -5px -5px 5px -5px;
}

.gallery-item.wide {
    transform: scale(1.05);
    margin: -2px -2px 3px -2px;
}

/* Modal Styling */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
    transition: all 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--sky-blue);
    animation: modalSlideIn 0.4s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal h2 {
    color: var(--deep-blue);
    font-family: 'Cygnet', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.password-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--sky-blue);
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Cygnet', sans-serif;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: var(--light-gray);
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: var(--deep-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.modal button {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cygnet', sans-serif;
    width: 100%;
}

.modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 166, 112, 0.3);
    background: #4a8c5a;
}

.modal button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .couple-names {
        font-size: 2.5rem;
    }
    
    .couple-names span {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .timeline-item {
        margin: 2rem 0;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    /* Gallery responsive adjustments */
    .gallery-collage {
        columns: 2;
        padding: 0.5rem;
    }
    
    .gallery-item.small,
    .gallery-item.medium,
    .gallery-item.large,
    .gallery-item.wide {
        transform: scale(1);
        margin: 0 0 0.8rem 0;
    }
}

a {
    color: var(--deep-blue);
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 300px;
        margin-top: 75px;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .couple-names span {
        font-size: 1.5rem;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }

    .registry-image {
        width: 100%;
        height: 100%;
    }

    .registry-link {
        font-size: 2rem;
    }
    
    /* Gallery mobile optimization */
    .gallery-collage {
        columns: 1;
        padding: 0.25rem;
    }
    
    .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    /* Modal mobile responsive */
    .modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .modal h2 {
        font-size: 1.6rem;
    }
}
