/* Enchanted Forest Theme */

:root {
    --forest-dark: #1a2f1a;
    --forest-green: #2d5016;
    --moss: #4a7c59;
    --leaf: #6b8e23;
    --golden: #d4af37;
    --cream: #f5f5dc;
    --bark: #5c4033;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--forest-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
}

/* Particles Canvas */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
.forest-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.forest-nav.scrolled {
    background: rgba(26, 47, 26, 0.95);
    padding: 15px 50px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acorn-icon {
    font-size: 2rem;
}

.brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--cream);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--golden);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--cream);
    border-radius: 3px;
}

/* Hero Section */
.forest-hero {
    min-height: 100vh;
    background: linear-gradient(180deg, #0d1f0d 0%, #1a2f1a 50%, #2d5016 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.forest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 20 Q30 50 50 80 Q70 50 50 20" fill="none" stroke="rgba(107,142,35,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.fireflies-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffff99;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffff99, 0 0 20px #ffff99;
    animation: firefly-float 3s ease-in-out infinite, firefly-glow 2s ease-in-out infinite;
}

@keyframes firefly-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -20px); }
    50% { transform: translate(-5px, -10px); }
    75% { transform: translate(15px, -30px); }
}

@keyframes firefly-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-content-forest {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 100px 20px;
}

.moss-frame {
    background: rgba(45, 80, 22, 0.3);
    border: 3px solid var(--moss);
    border-radius: 30px;
    padding: 60px;
    position: relative;
    backdrop-filter: blur(5px);
}

.vine-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    font-size: 4rem;
}

.vine-decoration.left {
    left: -50px;
    top: -30px;
}

.vine-decoration.right {
    right: -50px;
    bottom: -30px;
}

.forest-badge {
    display: inline-block;
    color: var(--golden);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.forest-couple {
    font-size: 4rem;
    color: var(--cream);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.name-left, .name-right {
    font-weight: 700;
}

.ampersand-forest {
    font-size: 3rem;
    color: var(--golden);
    font-weight: 400;
}

.forest-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.forest-divider .branch {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--moss), transparent);
}

.forest-divider .leaf {
    font-size: 1.5rem;
}

.forest-date {
    color: rgba(245, 245, 220, 0.8);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.date-badge-forest {
    background: linear-gradient(135deg, var(--golden), #b8860b);
    padding: 20px 40px;
    border-radius: 50px;
    margin-bottom: 40px;
    display: inline-block;
}

.date-badge-forest .season {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--forest-dark);
    font-weight: 600;
}

.date-badge-forest .full-date {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--forest-dark);
    font-weight: 700;
}

.countdown-forest {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.time-unit {
    text-align: center;
}

.time-circle {
    width: 100px;
    height: 100px;
    border: 3px solid var(--moss);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(26, 47, 26, 0.5);
}

.time-circle .number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--golden);
    font-weight: 700;
}

.time-unit .label {
    color: var(--cream);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-leaf {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: leaf-fall 2s ease-in-out infinite;
}

@keyframes leaf-fall {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(10px) rotate(10deg); }
}

/* Section Styles */
.section-badge-forest {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 15px;
}

.section-title-forest {
    font-size: 3rem;
    color: var(--forest-dark);
    margin-bottom: 50px;
}

/* Couple Section */
.couple-forest {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--cream) 0%, #e8e8d0 100%);
}

.dweller-card {
    text-align: center;
    padding: 40px;
}

.portrait-frame {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    position: relative;
}

.bark-frame {
    background: linear-gradient(135deg, var(--bark), #3d2b1f);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portrait-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8d0, var(--cream));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.moss-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--moss);
    border-radius: 50%;
    opacity: 0.8;
}

.moss-corner.top-left { top: -10px; left: -10px; }
.moss-corner.top-right { top: -10px; right: -10px; }
.moss-corner.bottom-left { bottom: -10px; left: -10px; }
.moss-corner.bottom-right { bottom: -10px; right: -10px; }

.dweller-card h3 {
    font-size: 1.8rem;
    color: var(--forest-dark);
    margin-bottom: 5px;
}

.dweller-title {
    color: var(--moss);
    font-weight: 600;
    margin-bottom: 15px;
}

.dweller-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.nature-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(74, 124, 89, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.forest-heart-beat {
    text-align: center;
}

.tree-heart {
    font-size: 6rem;
    margin-bottom: 10px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.roots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.root {
    width: 30px;
    height: 3px;
    background: var(--moss);
    border-radius: 3px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Story Section */
.story-forest {
    padding: 120px 0;
    background: var(--forest-dark);
    color: var(--cream);
}

.story-forest .section-title-forest {
    color: var(--cream);
}

.story-path {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.path-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--moss), var(--golden), var(--moss));
}

.story-chapter {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.chapter-marker {
    width: 60px;
    height: 60px;
    background: var(--moss);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 30px;
    flex-shrink: 0;
    border: 3px solid var(--golden);
}

.chapter-marker.wedding-marker {
    background: var(--golden);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--golden); }
    50% { box-shadow: 0 0 40px var(--golden); }
}

.chapter-content {
    background: rgba(74, 124, 89, 0.2);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.chapter-content h4 {
    color: var(--golden);
    margin-bottom: 5px;
}

.chapter-date {
    color: var(--moss);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Venue Section */
.venue-forest {
    padding: 120px 0;
    background: linear-gradient(180deg, #0d1f0d 0%, #1a2f1a 100%);
    position: relative;
    color: var(--cream);
}

.venue-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(107,142,35,0.1)" stroke-width="1"/></svg>');
    background-size: 150px 150px;
}

.venue-card {
    background: rgba(45, 80, 22, 0.3);
    border: 2px solid var(--moss);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-10px);
    border-color: var(--golden);
}

.venue-card.featured {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--golden);
}

.venue-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.venue-card h4 {
    color: var(--golden);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.venue-time, .venue-location {
    color: var(--cream);
    margin-bottom: 10px;
}

.venue-desc {
    color: rgba(245, 245, 220, 0.7);
    font-size: 0.95rem;
}

.venue-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--cream);
}

/* Gallery */
.gallery-forest {
    padding: 120px 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.forest-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--moss), var(--leaf));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover .forest-placeholder {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 47, 26, 0.9));
    padding: 20px;
    color: var(--cream);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* RSVP Section */
.rsvp-forest {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--cream) 0%, #e8e8d0 100%);
    position: relative;
}

.acorn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-size="50" text-anchor="middle" dominant-baseline="middle">🌰</text></svg>');
    background-size: 100px 100px;
}

.wooden-sign {
    background: linear-gradient(135deg, var(--bark), #3d2b1f);
    padding: 60px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sign-nail {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--golden);
    border-radius: 50%;
    top: 20px;
}

.sign-nail.left { left: 20px; }
.sign-nail.right { right: 20px; }

.wooden-sign h2 {
    color: var(--cream);
    text-align: center;
    margin-bottom: 10px;
}

.rsvp-instruction {
    text-align: center;
    color: rgba(245, 245, 220, 0.8);
    margin-bottom: 40px;
}

.forest-label {
    display: block;
    color: var(--cream);
    margin-bottom: 8px;
    font-weight: 500;
}

.forest-input, .forest-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(245, 245, 220, 0.1);
    color: var(--cream);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.forest-input::placeholder {
    color: rgba(245, 245, 220, 0.5);
}

.forest-input:focus, .forest-select:focus {
    outline: none;
    border-color: var(--golden);
    background: rgba(245, 245, 220, 0.15);
}

.attendance-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.forest-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.forest-radio input {
    display: none;
}

.radio-custom {
    width: 30px;
    height: 30px;
    border: 2px solid var(--golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s ease;
}

.forest-radio input:checked + .radio-custom {
    background: var(--golden);
    color: var(--forest-dark);
}

.radio-text {
    color: var(--cream);
}

.btn-forest-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--moss), var(--leaf));
    color: var(--cream);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-forest-submit:hover {
    background: linear-gradient(135deg, var(--golden), #b8860b);
    color: var(--forest-dark);
    transform: translateY(-3px);
}

/* Footer */
.footer-forest {
    background: var(--forest-dark);
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.footer-moss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, var(--moss), transparent);
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--cream);
    margin-bottom: 10px;
}

.footer-date {
    color: var(--golden);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-quote {
    color: rgba(245, 245, 220, 0.7);
    font-style: italic;
    margin-bottom: 30px;
}

.footer-forest-creatures {
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

.footer-note {
    color: rgba(245, 245, 220, 0.5);
    font-size: 0.9rem;
}

/* Music Button */
.forest-music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--moss);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.forest-music-btn:hover {
    transform: scale(1.1);
    background: var(--golden);
}

.music-icon {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--forest-dark);
        flex-direction: column;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .forest-couple {
        font-size: 2.5rem;
    }

    .countdown-forest {
        gap: 15px;
    }

    .time-circle {
        width: 80px;
        height: 80px;
    }

    .time-circle .number {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .wooden-sign {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .forest-nav {
        padding: 15px 20px;
    }

    .moss-frame {
        padding: 30px 20px;
    }

    .venue-features {
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }
}