:root {
    --deep-green: #013220;
    --wood-brown: #3E2723;
    --light-wood: #D7CCC8;
    --gold: #FFD700;
    --leaf-green: #4CAF50;
}

body {
    font-family: 'Cinzel Decorative', cursive;
    color: var(--light-wood);
    background-color: var(--deep-green);
    overflow-x: hidden;
}

.script-font {
    font-family: 'Tangerine', cursive;
    font-weight: 700;
}

.names-font {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.serif-title {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.section-padding {
    padding: 5rem 0;
}

/* Music Control */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-music-bosque {
    background-color: rgba(1, 50, 32, 0.8);
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.btn-music-bosque:hover {
    background-color: var(--gold);
    color: var(--deep-green);
    transform: scale(1.1);
}

/* Fireflies */
#fireflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
    animation: fly 10s linear infinite, blink 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes fly {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(50px, -50px);
    }

    50% {
        transform: translate(0, -100px);
    }

    75% {
        transform: translate(-50px, -50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1351&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.hero-image-frame {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    padding: 5px;
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background-color: rgba(1, 50, 32, 0.5);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.date-font {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.location-font {
    font-size: 1.2rem;
    color: var(--light-wood);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.countdown-leaf {
    background-color: rgba(1, 50, 32, 0.6);
    border: 2px solid var(--gold);
    border-radius: 50% 0 50% 0;
    padding: 1.5rem;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: rotate(45deg);
}

.countdown-number,
.countdown-label {
    transform: rotate(-45deg);
}

.countdown-number {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    color: var(--light-wood);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery */
.bosque-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

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

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '🍂';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--deep-green);
    border: 2px solid var(--gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--gold);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--gold);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--gold);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--gold) transparent transparent;
}

.right::after {
    left: -15px;
}

.content {
    padding: 20px 30px;
    background-color: rgba(1, 50, 32, 0.8);
    position: relative;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold);
}

.content h3 {
    color: var(--gold);
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    margin-bottom: 5px;
}

.content p {
    color: var(--light-wood);
}

/* Cards */
.bosque-card {
    background: rgba(62, 39, 35, 0.8);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--gold);
    position: relative;
}

.bosque-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.icon-leaf {
    width: 60px;
    height: 60px;
    background-color: var(--deep-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--gold);
    font-size: 1.5rem;
    border: 1px solid var(--gold);
}

.time-text {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.2rem;
}

/* Buttons */
.btn-bosque {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--deep-green);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-bosque:hover {
    background-color: var(--gold);
    color: var(--deep-green);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-bosque-outline {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-bosque-outline:hover {
    background-color: var(--gold);
    color: var(--deep-green);
    text-decoration: none;
}

.btn-bosque-light {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--gold);
    color: var(--deep-green);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-bosque-light:hover {
    background-color: white;
    color: var(--deep-green);
    text-decoration: none;
    transform: scale(1.05);
}

/* Footer Section */
.footer-section {
    background: linear-gradient(rgba(1, 50, 32, 0.8), rgba(1, 50, 32, 0.8)), url('https://images.unsplash.com/photo-1518173946687-a4c8892bbd9f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .names-font {
        font-size: 2.5rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-leaf {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid var(--gold);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--gold) transparent transparent;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
}