/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Curtain Animation */
.curtain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8ddd4 100%);
    transition: opacity 0.5s ease;
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #8b4513 0%, #654321 50%, #8b4513 100%);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.curtain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
}

.curtain-left {
    left: 0;
    transform-origin: left center;
}

.curtain-right {
    right: 0;
    transform-origin: right center;
}

.curtain-container.opening .curtain-left {
    transform: translateX(-100%);
}

.curtain-container.opening .curtain-right {
    transform: translateX(100%);
}

.curtain-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.curtain-content {
    text-align: center;
    z-index: 1001;
    color: #8b4513;
}

.curtain-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.curtain-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.scroll-indicator {
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.scroll-indicator span {
    display: block;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #8b4513;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #8b4513;
    margin: 0 auto;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #8b4513;
    border-bottom: 2px solid #8b4513;
    transform: rotate(45deg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #8b4513;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ec4899;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ec4899;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: url('https://images.pexels.com/photos/1024993/pexels-photo-1024993.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1280&fit=crop');*/
    background-image: url('./images/sv1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 2s forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ampersand {
    color: #f9a8d4;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.icon {
    width: 1.2rem;
    height: 1.2rem;
    color: #f9a8d4;
}

.cta-button {
    background: white;
    color: #333;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f9f7f4;
}

/* Sections */
.section {
    padding: 6rem 0;
    background: #fafaf9;
}

.section-white {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: #333;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Our Story Section */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f9a8d4;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: right;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ec4899;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #ec4899;
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px #f9a8d4;
}

/* Wedding Details */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.info-card {
    background: #fafaf9;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #ec4899;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

.timeline-list p {
    margin-bottom: 0.3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #fdf2f8;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.feature-card .icon {
    width: 2rem;
    height: 2rem;
    color: #ec4899;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

.map-container {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-info {
    padding: 2rem;
}

.map-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.map-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.map-details p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.map {
    height: 300px;
}

.additional-info {
    background: linear-gradient(135deg, #fdf2f8 0%, #fafaf9 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.additional-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.info-grid h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-grid p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-quote {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
}

/* RSVP */
.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-form {
    background: #fafaf9;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label .icon {
    width: 1rem;
    height: 1rem;
    color: #ec4899;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f9a8d4;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.conditional-fields {
    border-top: 2px solid #f0f0f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.submit-button {
    background: #ec4899;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.submit-button:hover {
    background: #db2777;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

.submit-button .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.success-message {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: #166534;
}

.success-message .icon {
    width: 4rem;
    height: 4rem;
    color: #22c55e;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #292524;
    color: white;
    padding: 4rem 0;
}

.footer-content {
    text-align: center;
}

.footer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-header .heart {
    width: 1.5rem;
    height: 1.5rem;
    color: #f9a8d4;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 300;
}

.footer-message {
    color: #d6d3d1;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: #d6d3d1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f9a8d4;
}

.footer-link .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #44403c;
    padding-top: 2rem;
}

.footer-bottom p {
    color: #a8a29e;
    margin-bottom: 0.5rem;
}

.footer-love {
    font-size: 0.9rem;
    color: #78716c;
}

/* Animations */
@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);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .curtain-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image {
        order: -1;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 4rem;
        text-align: left;
    }
    
    .timeline-dot {
        left: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .rsvp-form {
        padding: 2rem;
    }
    
    .curtain-content h1 {
        font-size: 2rem;
    }
    
    .curtain-content p {
        font-size: 1.2rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
