@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a1a0f;
    color: #c8dcc8;
    overflow-x: hidden;
}

/* Forest Background */
.forest-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(180deg, #0a1a0f 0%, #0d2818 30%, #0a1a0f 100%);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(200, 220, 200, 0.6);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Fireflies */
.firefly {
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #a8d9a0 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.2; }
    25% { transform: translateY(-30px) translateX(20px); opacity: 0.8; }
    50% { transform: translateY(-10px) translateX(-15px); opacity: 0.5; }
    75% { transform: translateY(-40px) translateX(10px); opacity: 0.9; }
}

/* Header */
header {
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #7cb870;
    text-shadow: 0 0 40px rgba(124, 184, 112, 0.3);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: #5a8a56;
    font-style: italic;
    letter-spacing: 2px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 26, 15, 0.95);
    border-bottom: 1px solid rgba(124, 184, 112, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #8fa88e;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.nav a:hover {
    color: #9ac89a;
    background: rgba(124, 184, 112, 0.1);
}

.nav a.active {
    color: #c8dcc8;
    background: rgba(124, 184, 112, 0.15);
}

/* Hamburger Menu Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(20, 50, 25, 0.6);
    border: 1px solid rgba(124, 184, 112, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 101;
}

.hamburger:hover {
    background: rgba(30, 70, 35, 0.8);
    border-color: rgba(124, 184, 112, 0.4);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #8fa88e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger span:nth-child(2) {
    margin-bottom: 5px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hamburger Menu Dropdown */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(10, 26, 15, 0.97);
    border-bottom: 1px solid rgba(124, 184, 112, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.hamburger-menu-content {
    max-width: 500px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 20px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #5a8a56;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(124, 184, 112, 0.1);
}

.menu-section-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-section-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #8fa88e;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-section-links a:hover {
    color: #9ac89a;
    background: rgba(124, 184, 112, 0.1);
}

.menu-section-links a.active {
    color: #c8dcc8;
    background: rgba(124, 184, 112, 0.15);
}

.menu-link-icon {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 40px 20px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 4px;
        padding: 10px 10px;
    }

    .nav a {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Sections */
section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 30px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #8cc082;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #7cb870, transparent);
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #9ac89a;
    margin-bottom: 12px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #a8c4a0;
    margin-bottom: 20px;
}

.intro-text em {
    color: #8cc082;
    font-style: italic;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(135deg, rgba(20, 50, 25, 0.7), rgba(15, 35, 20, 0.9));
    border: 1px solid rgba(124, 184, 112, 0.15);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(124, 184, 112, 0.15);
    border-color: rgba(124, 184, 112, 0.3);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8fa88e;
}

/* Process Steps */
.process {
    position: relative;
}

.process-line {
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg, transparent, #7cb870, transparent);
}

.process-step {
    position: relative;
    padding: 20px 0 20px 65px;
    border-bottom: 1px solid rgba(124, 184, 112, 0.1);
}

.process-step:last-child {
    border-bottom: none;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 28px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0a1a0f;
    border: 2px solid #7cb870;
    z-index: 1;
}

.step-number {
    position: absolute;
    left: 4px;
    top: 22px;
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: #7cb870;
    font-weight: 700;
    z-index: 2;
}

.process-step h3 {
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8fa88e;
}

/* Decorative Trees */
.tree {
    position: fixed;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.tree-1 {
    left: -30px;
    bottom: 0;
}

.tree-2 {
    right: -30px;
    bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px 40px;
    color: #4a6a4a;
    font-size: 0.85rem;
}

.forest-divider {
    text-align: center;
    margin: 20px 0;
    color: #3a5a3a;
    font-size: 1.2rem;
    letter-spacing: 8px;
}

/* Ambient particles */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

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

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 40px 20px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* Leaf decoration */
.leaf-decoration {
    text-align: center;
    padding: 30px 0;
    font-size: 1.5rem;
    color: #5a8a56;
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    font-size: 0.9rem;
    color: #8fa88e;
    font-weight: 500;
}

.btn {
    background: linear-gradient(135deg, rgba(20, 50, 25, 0.8), rgba(15, 35, 20, 0.9));
    border: 1px solid rgba(124, 184, 112, 0.3);
    color: #9ac89a;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, rgba(30, 70, 35, 0.8), rgba(20, 50, 25, 0.9));
    border-color: rgba(124, 184, 112, 0.5);
    box-shadow: 0 4px 20px rgba(124, 184, 112, 0.2);
}

.btn.active {
    background: linear-gradient(135deg, rgba(124, 184, 112, 0.3), rgba(100, 160, 90, 0.4));
    border-color: #7cb870;
    color: #c8dcc8;
}

.btn-play {
    background: linear-gradient(135deg, rgba(124, 184, 112, 0.3), rgba(100, 160, 90, 0.4));
    border-color: #7cb870;
    color: #c8dcc8;
}

.btn-play:hover {
    background: linear-gradient(135deg, rgba(124, 184, 112, 0.5), rgba(100, 160, 90, 0.6));
}

.btn-play.playing {
    background: linear-gradient(135deg, rgba(200, 100, 100, 0.3), rgba(180, 80, 80, 0.4));
    border-color: #c87070;
    color: #d8a0a0;
}

.btn-play.playing:hover {
    background: linear-gradient(135deg, rgba(200, 100, 100, 0.5), rgba(180, 80, 80, 0.6));
}

.bpm-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpm-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #7cb870;
    min-width: 60px;
    text-align: center;
}

.bpm-label {
    font-size: 0.8rem;
    color: #5a8a56;
}

.bpm-adjust {
    background: rgba(20, 50, 25, 0.8);
    border: 1px solid rgba(124, 184, 112, 0.2);
    color: #9ac89a;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.bpm-adjust:hover {
    background: rgba(30, 70, 35, 0.8);
    border-color: rgba(124, 184, 112, 0.4);
}

.swing-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swing-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    background: rgba(124, 184, 112, 0.2);
    border-radius: 3px;
    outline: none;
}

.swing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #7cb870;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swing-slider::-webkit-slider-thumb:hover {
    background: #9ac89a;
    box-shadow: 0 0 10px rgba(124, 184, 112, 0.5);
}

.swing-value {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #7cb870;
    min-width: 30px;
}

/* Link back to index */
.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #5a8a56;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #8cc082;
}