:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f0ebe3;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-accent: #8b7355;
    --color-accent-dark: #6d5a43;
    --color-gold: #c9a959;
    --color-cream: #f5f0e8;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    padding: 1.2rem 0;
}

.navbar a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(135deg, #e8dfd4 0%, #d4c4b0 50%, #c9b896 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 169, 89, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23c9a959' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.hero-title span {
    font-style: italic;
    color: var(--color-gold);
    margin: 0 0.5rem;
}

.hero-date {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-accent-dark);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-accent);
    border-radius: 25px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-intro {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-accent);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-time {
    flex-shrink: 0;
    width: 80px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-accent);
    text-align: right;
    position: relative;
}

.timeline-time::after {
    content: '';
    position: absolute;
    right: -1.1rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Venue */
.venue-info {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.venue-details h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.venue-address {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.venue-note {
    color: var(--color-text-light);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--color-gold);
}

.venue-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.venue-map iframe {
    display: block;
}

/* RSVP Form */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 4px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1.2rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    background: var(--color-accent);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

.btn-submit .btn-text {
    display: inline-block;
    vertical-align: middle;
}

.btn-submit .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-spinner {
    display: inline-block;
}

.form-success {
    text-align: center;
    padding: 3rem;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 8px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-dark);
}

.hidden {
    display: none;
}

/* Gift Cards */
.gift-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gift-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gift-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--color-gold);
}

.gift-icon svg {
    width: 100%;
    height: 100%;
}

.gift-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.gift-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.gift-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gift-link:hover {
    color: white;
    background: var(--color-accent);
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 0;
    background: var(--color-text);
    color: var(--color-cream);
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.footer-date {
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.footer-contact {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.7);
}

.footer-contact a {
    color: var(--color-gold);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar ul {
        gap: 1.5rem;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .navbar a {
        font-size: 0.7rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .venue-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .gift-options {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 60px;
    }

    .timeline-time {
        width: 60px;
        font-size: 1.1rem;
    }
}

