/* Font import for Linotype Feltpen */
/* @font-face {
    font-family: 'Linotype Feltpen';
    src: url('public/feltpen-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} */

@font-face {
    font-family: 'Linotype Feltpen';
    src: url('public/fonts/LinotypeFeltpenMedium.woff2') format('woff2');
    /* font-weight: 500; */
    font-style: normal;
    font-display: swap;
}

/* Fallback font */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Montserrat:wght@300;400;500;600&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a373;
    --secondary-color: #8a7968;
    --accent-color: #e9c4a2;
    --text-color: #5c5c5c;
    --light-color: #faf6f1;
    --dark-color: #3c3c3c;
    --font-primary: 'Linotype Feltpen', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
}

p {
    font-size: 1.2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 500;
}

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

/* Background styling */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-left, .bg-right {
    position: absolute;
    height: 100%;
    opacity: 0.3;
    object-fit: cover;
}

.bg-left {
    left: 0;
    transform: scaleX(-1);
    width: 50%;
}

.bg-right {
    right: 0;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

p, a, span, li, label, input, textarea, button {
    font-family: var(--font-primary);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

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

.nav-menu li {
    padding: 0 15px;
}

.nav-link {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

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

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

.main-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.date {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.tagline {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: var(--font-primary);
    color: var(--secondary-color);
}

/* Story Section */
.story {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.7);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Details Section */
.details {
    padding: 100px 0;
}

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

.detail-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.detail-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-card h3 {
    margin-bottom: 15px;
}

.registry-link {
    display: inline-block;
    margin: 5px 0;
    color: var(--primary-color);
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.7);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.gallery-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(100, 100, 100, 0.7);
    color: white;
    padding: 8px 15px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-description {
    background-color: rgba(100, 100, 100, 0.9);
}

/* Pagination for gallery */
.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.gallery-pagination button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-pagination button:hover {
    background-color: var(--secondary-color);
}

.gallery-pagination button.active {
    background-color: var(--secondary-color);
}

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

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-description {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.lightbox-prev, .lightbox-next {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* RSVP Section */
.rsvp {
    padding: 100px 0;
}

.rsvp-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-group input {
    width: auto;
    margin-right: 8px;
}

.radio-group label {
    display: inline-block;
    margin-bottom: 0;
}

.rsvp-form .btn {
    width: 100%;
    margin-top: 10px;
}

.rsvp-confirmation {
    text-align: center;
    margin-top: 30px;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.countdown {
    margin: 20px 0;
    font-size: 1.2rem;
}

.countdown span {
    font-weight: 600;
    color: var(--primary-color);
}

.footer-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-link {
        padding: 10px;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .rsvp-form {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}