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

body {
    font-family: 'Athelas', serif;
    line-height: 1.6;
    color: #2c3e50;
    scroll-behavior: smooth;
}

/* Password Protection */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        #FF6B6B 0%,
        #FFA07A 15%,
        #87CEEB 35%,
        #E8D5B5 65%,
        #8B7355 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-container h1 {
    font-family: 'Athelas', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.password-container p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.password-container input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Athelas', serif;
    transition: border-color 0.3s ease;
}

.password-container input:focus {
    outline: none;
    border-color: #667eea;
}

.password-container button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Athelas', serif;
}

.password-container button:hover {
    background: #764ba2;
}

.password-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.main-content.hidden {
    display: none;
}

h1, h2, h3 {
    font-family: 'Athelas', serif;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-brand .monogram {
    height: 200px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-top: 20px;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ecf0f1;
    font-family: 'Athelas', serif;
    font-size: 2rem;
}

.nav-date {
    font-weight: 200;
}

.nav-separator {
    opacity: 0.6;
}

.nav-venue {
    font-weight: 200;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(139, 69, 19, 0.98);
    width: 300px;
    text-align: left;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 0;
    list-style: none;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

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

.nav-menu li {
    padding: 0;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease, background 0.3s ease;
    display: block;
    padding: 1rem 2rem;
    position: relative;
}

.nav-menu a:hover {
    color: #d2691e;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #d2691e;
    transition: width 0.3s ease;
    opacity: 0.2;
}

.nav-menu a:hover::after {
    width: 4px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pic5.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Wedding Intro Section */
.wedding-intro {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.couple-names {
    font-family: 'Athelas', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.wedding-date {
    font-family: 'Athelas', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #d2691e;
}

.venue {
    font-family: 'Athelas', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 600;
}

.countdown {
    font-family: 'Athelas', serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #2c3e50;
}

.cta-button {
    display: inline-block;
    background: #d2691e;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #6b3410;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


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

section:nth-child(even) {
    background: #f8f9fa;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Wedding Weekend Section */
.wedding-weekend {
    background: white;
}

.timeline-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.timeline-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #d2691e;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-box {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-top: 4px solid #d2691e;
}

.event-box h3 {
    color: #d2691e;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-detail-section {
    padding: 1rem 0;
}

.event-detail-section:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.event-detail-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-detail-section p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0.25rem 0;
}

.event-detail-section p strong {
    color: #2c3e50;
}

.things-to-know-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

.things-to-know-list li {
    color: #7f8c8d;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
}

.things-to-know-list li::before {
    content: '•';
    color: #d2691e;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

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

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #d2691e;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #d2691e;
}

.timeline-time {
    font-weight: 600;
    color: #d2691e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-event {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.timeline-description {
    color: #7f8c8d;
}

/* Photos Section */
.photos {
    text-align: center;
    background: white;
}

.photos-gallery {
    columns: 3;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

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

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Travel Section */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.travel-section h3 {
    color: #d2691e;
    margin-bottom: 2rem;
    text-align: center;
}

.travel-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.travel-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.travel-item .type {
    color: #d2691e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.travel-item a {
    color: #d2691e;
    text-decoration: none;
}

.travel-item a:hover {
    text-decoration: underline;
}

.travel-notice {
    background: #fff5e6;
    border-left: 4px solid #d2691e;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.travel-notice p {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Activities Section */
.activities {
    background: white;
}

.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.activity-box {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid #d2691e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.activity-box h3 {
    color: #d2691e;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.activity-box .description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.activity-box .link-button {
    display: block;
    text-align: center;
    background: #d2691e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
}

.activity-box .link-button:hover {
    background: #ee5a24;
}

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

.activity-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.activity-card-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.activity-card-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.restaurant-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.restaurant-category h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.restaurant-list,
.drinks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.restaurant-list li,
.drinks-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.restaurant-list li:last-child,
.drinks-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.place-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.place-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: white;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #d2691e;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.faq-question {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-answer {
    color: #7f8c8d;
    line-height: 1.8;
}

/* Registry Section */
.registry {
    text-align: center;
}

.registry p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.registry-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.registry-link {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #2c3e50;
    transition: transform 0.3s ease;
    min-width: 200px;
}

.registry-link:hover {
    transform: translateY(-5px);
    color: #d2691e;
}

/* RSVP Section */
.rsvp {
    text-align: center;
    background: linear-gradient(135deg, #ff7675, #fd79a8);
    color: #2c3e50;
}

.rsvp h2 {
    color: #2c3e50;
}

.rsvp p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: rgba(139, 69, 19, 0.95);
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        width: 100%;
    }

    .nav-center {
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .nav-brand .monogram {
        height: 160px;
    }

    .hero {
        height: calc(100vh - 70px);
        margin-top: 70px;
    }

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

    .travel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .registry-links {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        margin-left: 20px;
    }

    .timeline-item::before {
        left: -35px;
    }

    .photos-gallery {
        columns: 2;
        column-gap: 1rem;
    }

    .photo-item {
        margin-bottom: 1rem;
    }
}

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero::before {
        background-size: contain;
        background-position: center top;
    }
}

/* Mobile portrait orientation */
@media (max-width: 768px) and (orientation: portrait) {
    .hero::before {
        background-size: auto 100%;
        background-position: center center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        height: calc(100vh - 70px);
        margin-top: 70px;
    }

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

    h2 {
        font-size: 2rem;
    }

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

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

    .nav-center {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.2rem;
        line-height: 1.2;
    }

    .nav-separator {
        display: none;
    }

    .nav-brand .monogram {
        height: 140px;
    }

    .photos-gallery {
        columns: 1;
    }
}

/* Mobile landscape orientation */
@media (max-width: 480px) and (orientation: landscape) {
    .hero::before {
        background-size: contain;
        background-position: center top;
    }
}

/* Mobile portrait orientation */
@media (max-width: 480px) and (orientation: portrait) {
    .hero::before {
        background-size: auto 100%;
        background-position: center center;
    }
}