:root {
    --emerald-dark: #1B5E20;
    --emerald-light: #2E7D32;
    --gold: #FFD700;
    --gold-dim: #C5A000;
    --mystic-violet: #4A148C;
    --forest-black: #051006;
    --text-cream: #FDF5E6;
    --glass-dark: rgba(20, 40, 20, 0.7);
    --font-script: 'Pinyon Script', cursive;
    --font-body: 'Raleway', sans-serif;
}

body {
    background-color: var(--forest-black);
    color: var(--text-cream);
    font-family: var(--font-body);
    overflow-x: hidden;
    background-image: radial-gradient(circle at top right, var(--emerald-dark), var(--forest-black));
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&family=Raleway:wght@300;400;600&display=swap');

h1 {
    font-family: var(--font-script);
    font-size: 5.5rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

h2,
h3 {
    font-family: var(--font-script);
    color: var(--gold);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '❦';
    display: block;
    font-size: 2rem;
    color: var(--emerald-light);
    margin-top: -10px;
}

/* Components */
.forest-card {
    background: var(--glass-dark);
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.forest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.btn-forest {
    background: transparent;
    color: var(--gold);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 35px;
    border: 1px solid var(--gold);
    border-radius: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-forest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-forest:hover {
    color: var(--forest-black);
    text-decoration: none;
}

.btn-forest:hover::before {
    width: 100%;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1518176258769-f227c798150e?q=80&w=2070&auto=format&fit=crop');
    /* Forest background */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 16, 6, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-frame {
    border: 2px solid var(--gold);
    padding: 20px;
    display: inline-block;
    position: relative;
}

.hero-frame::before,
.hero-frame::after {
    content: '🌿';
    position: absolute;
    font-size: 2rem;
    background: var(--forest-black);
    padding: 0 10px;
}

.hero-frame::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-frame::after {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
    margin: 20px auto;
}

/* Firefly Canvas */
#fireflyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Countdown */
.forest-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 3rem;
}

.count-leaf {
    text-align: center;
    position: relative;
}

.count-leaf span {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold);
    display: block;
    line-height: 1;
    text-shadow: 0 0 5px var(--gold);
}

.count-leaf small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--emerald-light);
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.btn-music-forest {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--gold);
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.5s;
}

.btn-music-forest:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
}