/* Main Variables */
:root {
    --primary-color: #d4c1b7;
    --secondary-color: #8a7b70;
    --accent-color: #b99f8f;
    --text-color: #5a5a5a;
    --light-bg: #f9f7f5;
    --gold: #c9b38c;
}

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

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/css/simple-line-icons.min.css');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.header-bg::before, .header-bg::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
}

.header-bg::before {
    top: -50px;
    left: -50px;
    transform: rotate(-15deg);
}

.header-bg::after {
    bottom: -50px;
    right: -50px;
    transform: rotate(15deg);
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: normal;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--gold);
    display: inline-block;
    margin: 0 0.5rem;
    vertical-align: middle;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

.countdown {
    margin: 2rem 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--gold);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    font-weight: normal;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 100px;
    background-color: var(--gold);
    margin: 0.5rem auto;
}

/* Our Story Section */
.our-story-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.story-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-text {
    flex: 1;
    min-width: 300px;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Details Section */
.details-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.detail-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.detail-card h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.detail-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.detail-card .address {
    font-style: italic;
    color: var(--accent-color);
}

.detail-card .btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--gold);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.detail-card .btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('/api/placeholder/800/600') no-repeat center;
    background-size: cover;
    background-attachment: fixed;
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rsvp-info {
    text-align: center;
    margin-bottom: 2rem;
}

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

.rsvp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.rsvp-form .btn-submit {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 2rem auto 0;
}

.rsvp-form .btn-submit:hover {
    background-color: var(--secondary-color);
}

/* Video Section */
.video-section {
    background-color: var(--light-bg);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#invitation-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.video-caption {
    text-align: center;
    padding: 15px 0 5px;
    color: var(--accent-color);
    font-style: italic;
    font-size: 1.1rem;
}

/* Video controls customization */
video::-webkit-media-controls {
    background-color: rgba(255, 255, 255, 0.5);
}

video::-webkit-media-controls-panel {
    padding: 5px;
}

/* Responsive video container */
@media (max-width: 768px) {
    .video-container {
        padding: 15px;
    }
    
    .video-caption {
        font-size: 1rem;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.footer-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    margin: 0 0.5rem;
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Audio Toggle */
.audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gold);
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.audio-toggle:hover {
    transform: scale(1.1);
}

.audio-toggle.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(201, 179, 140, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--secondary-color);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .ampersand {
        font-size: 2.5rem;
    }
    
    .date {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 101;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        z-index: 102;
    }
    
    .rsvp-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 3rem;
    }
    
    .ampersand {
        font-size: 2rem;
    }
    
    .details-container {
        gap: 2rem;
    }
    
    .detail-card {
        min-width: 100%;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .rsvp-container {
        padding: 1.5rem;
    }
}