/* Color Variables */
:root {
    --forest-green: #2d5016;
    --forest-green-dark: #1a3009;
    --forest-green-light: #4a7c2a;
    --sage-green: #9caf88;
    --sage-light: #b8c5a6;
    --sage-dark: #7a8b6b;
    --earth-brown: #8b4513;
    --earth-light: #a0522d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #2c3e2d;
}

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background-color: rgba(45, 80, 22, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--sage-green) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sage-green) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(45, 80, 22, 0.7)),
        url('pictures/back1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--sage-green);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-date {
    margin: 3rem 0;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.date-text {
    color: var(--sage-green);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.date-details,
.date-location {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Hero section links - special styling for white text on dark background */
.hero a,
.date-location a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--sage-green);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.hero a:hover,
.date-location a:hover {
    color: var(--sage-green);
    text-decoration-color: var(--white);
}

/* Buttons in hero should not have underline */
.hero .btn {
    text-decoration: none !important;
}

.hero-buttons {
    margin-top: 2rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--sage-green);
    border-color: var(--sage-green);
    color: var(--forest-green);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--sage-dark);
    border-color: var(--sage-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-rsvp {
    background-color: var(--earth-brown);
    border-color: var(--earth-brown);
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-rsvp:hover {
    background-color: var(--earth-light);
    border-color: var(--earth-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--sage-green);
    color: var(--sage-green);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--sage-green);
    border-color: var(--sage-green);
    color: var(--forest-green);
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    color: var(--forest-green);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.8;
}

.welcome-section {
    background-color: var(--light-gray);
}

/* Info Cards */
.info-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 80, 22, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--dark-gray);
    font-weight: 400;
}

/* Footer */
.footer {
    background-color: var(--forest-green);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-left: 0 !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-green-dark);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(45, 80, 22, 0.8), rgba(45, 80, 22, 0.8)),
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    color: var(--white);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--sage-green);
    font-weight: 300;
}

/* Journey Gallery */
.journey-gallery {
    background: var(--light-gray);
}

.memory-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.memory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(45, 80, 22, 0.2);
}

.memory-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--sage-green);
}

.memory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.memory-card:hover .memory-image img {
    transform: scale(1.05);
}

.memory-content {
    padding: 2rem;
}

.memory-date {
    color: var(--sage-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.memory-content h3 {
    color: var(--forest-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.memory-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .memory-card {
        margin-bottom: 2rem;
    }

    .memory-image {
        height: 200px;
    }

    .memory-content {
        padding: 1.5rem;
    }
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-green-dark) 100%);
    color: var(--white);
}

.story-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 0;
    padding: 2rem;
    border-left: 4px solid var(--sage-green);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.quote-author {
    color: var(--sage-green);
    font-weight: 500;
    margin-top: 1rem;
}

/* Information Sections */
.info-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: var(--forest-green);
    text-align: center;
    margin-bottom: 1.5rem;
}

.info-content {
    color: var(--dark-gray);
    line-height: 1.8;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
}

.info-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-content li:last-child {
    border-bottom: none;
}

/* Schedule Timeline */
.schedule-timeline {
    margin-top: 2rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--sage-green);
}

.schedule-time {
    background: var(--forest-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 1.5rem;
    min-width: 80px;
    text-align: center;
}

.schedule-event h5 {
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

.schedule-event p {
    margin: 0;
    color: var(--dark-gray);
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.rsvp-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    border: 2px solid var(--earth-brown);
}

.rsvp-card h3 {
    color: var(--earth-brown);
    margin-bottom: 1.5rem;
}

.rsvp-card p {
    color: var(--earth-brown);
}

.rsvp-options {
    margin: 2rem 0;
}

.rsvp-note {
    font-style: italic;
    color: var(--dark-gray);
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Link Styling */
a {
    color: var(--forest-green);
    text-decoration: underline;
    text-decoration-color: var(--sage-green);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--sage-green);
    text-decoration-color: var(--forest-green);
}

/* Buttons and navigation links should not have underline */
.btn,
.nav-link,
.navbar-brand {
    text-decoration: none !important;
}

/* Registry Links */
.registry-link {
    color: var(--forest-green);
    text-decoration: underline;
    text-decoration-color: var(--sage-green);
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.registry-link:hover {
    color: var(--sage-green);
    text-decoration-color: var(--forest-green);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .schedule-item {
        flex-direction: column;
        text-align: center;
    }

    .schedule-time {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Wedding Party Styles */
.wedding-party {
    background: var(--light-gray);
}

.party-section-title {
    color: var(--forest-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.party-section-subtitle {
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.party-member-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: center;
}

.party-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(45, 80, 22, 0.2);
}

.member-photo {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--sage-green);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.party-member-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 2rem 1.5rem;
}

.member-name {
    color: var(--forest-green);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-role {
    color: var(--sage-green);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-bio {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.thank-you-section {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-green-dark) 100%);
    color: var(--white);
}

/* Responsive Wedding Party */
@media (max-width: 768px) {
    .party-member-card {
        margin-bottom: 2rem;
    }

    .member-photo {
        height: 200px;
    }

    .member-info {
        padding: 1.5rem;
    }

    .party-section-title {
        font-size: 2rem;
    }
}