/* =========================================
   VARIABEL WARNA & ESTETIKA TARUDAYA
   ========================================= */
   :root {
    --bg-fog: #F4F9F4;
    --taru-green: #2A7B4C;
    --taru-green-dark: #1A2E1F;
    --accent-green: #A8E6CF;
    --sun-gold: #FFD166;
    --glass-bg: rgba(244, 249, 244, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
}

/* =========================================
   RESET & TIPOGRAFI
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-fog);
    color: var(--taru-green-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    cursor: none; /* Disembunyikan untuk custom cursor */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--taru-green-dark);
}

/* =========================================
   LAPISAN 1 & 2: KABUT & CAHAYA (GOD RAYS)
   ========================================= */
.layer-back {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 80% 20%, #FFF5D1 0%, var(--bg-fog) 50%, #D4EADD 100%);
    z-index: -2;
}

.layer-light {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 50; /* Di atas segalanya agar menyinari daun & teks */
    pointer-events: none;
    mix-blend-mode: color-dodge; /* Rahasia pencahayaan realistis */
}

.god-rays {
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 209, 102, 0) 0%,
        rgba(255, 209, 102, 0.08) 5%,
        rgba(255, 255, 255, 0.15) 10%,
        rgba(255, 209, 102, 0) 15%
    );
    filter: blur(10px);
    opacity: 0.8;
}

/* =========================================
   LAPISAN 4: THE LIVING FRAME (BINGKAI DAUN)
   ========================================= */
.layer-frame {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 10;
}

.frame-elem {
    position: absolute;
    filter: drop-shadow(0 0 15px rgba(42, 123, 76, 0.15)) saturate(1.1);
}

/* Atap Kanopi */
.canopy-top {
    top: 0; left: 0;
    width: 100vw; height: 20vh;
    object-fit: cover; object-position: top center;
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Batang Kiri */
.trunk-left {
    top: 0; left: 0;
    width: 25vw; height: 100vh;
    object-fit: cover; object-position: left center;
    -webkit-mask-image: linear-gradient(to right, black 30%, transparent 100%);
}

/* Batang Kanan */
.trunk-right {
    top: 0; right: 0;
    width: 25vw; height: 100vh;
    object-fit: cover; object-position: right center;
    -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
}

/* =========================================
   LAPISAN 5: KONTEN (RUANG AMAN)
   ========================================= */
.layer-content {
    position: relative;
    z-index: 5;
}

.content-container {
    /* Mendorong teks ke tengah agar tidak tertutup pohon */
    padding: 25vh 28vw 15vh 28vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 150px;
}

/* Styling Glassmorphism Organik */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(26, 46, 31, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 209, 102, 0.15);
    border-color: rgba(255, 209, 102, 0.6);
}

.organic-shape { border-radius: 40px 10px 40px 10px; }
.organic-shape-large { border-radius: 60px 20px 60px 20px; }

/* Tipografi Konten */
.main-heading { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.sub-heading { font-size: 1.2rem; line-height: 1.6; opacity: 0.9; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1rem; color: var(--taru-green-dark); opacity: 0.85;}

/* Scroll Indicator */
.scroll-indicator { margin-top: 3rem; text-align: center; opacity: 0.7; }
.scroll-line { width: 2px; height: 60px; background: var(--taru-green); margin: 10px auto; animation: grow-down 2s infinite; }

@keyframes grow-down {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Kartu Fase 3 */
.cards-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.value-card { border-radius: 20px; padding: 2rem; }
.value-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--taru-green); }

/* =========================================
   LAPISAN 6: FOOTER (AKAR & TAMAN)
   ========================================= */
.layer-footer {
    position: relative;
    z-index: 15; /* Di atas bingkai pohon agar akarnya menutupi pangkal batang */
    margin-top: -10vh; /* Merayap naik menutupi layer sebelumnya */
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-roots {
    position: relative;
    width: 100vw; height: auto; min-height: 30vh;
    object-fit: cover; object-position: bottom center;
    -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
    pointer-events: none;
}

.footer-content {
    margin-top: -15vh; /* Menarik teks agar berada di atas gambar rumput/akar */
    width: 60%;
    text-align: center;
    position: relative;
    z-index: 20;
    background: rgba(244, 249, 244, 0.85); /* Lebih solid agar teks terbaca */
    margin-bottom: 5vh;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--taru-green);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--sun-gold);
    color: var(--taru-green-dark);
    box-shadow: 0 10px 25px rgba(255, 209, 102, 0.4);
}

.copyright { margin-top: 3rem; font-size: 0.9rem; opacity: 0.6; }

/* =========================================
   RESPONSIVITAS (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .trunk-left, .trunk-right { width: 15vw; }
    .content-container { padding: 20vh 18vw 10vh 18vw; gap: 80px; }
    .main-heading { font-size: 2.2rem; }
    .footer-content { width: 85%; }
}

/* =========================================
   EMBUN & KURSOR (Persiapan untuk JS)
   ========================================= */
.layer-dew { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 51; pointer-events: none; }
.dew-particle {
    position: absolute;
    background: #fff; border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 209, 102, 0.5);
    opacity: 0; animation: float-dew linear infinite;
}
@keyframes float-dew {
    0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-150px) translateX(-80px) scale(1.2); opacity: 0; }
}

.cursor-dot {
    position: fixed; top: 0; left: 0; width: 8px; height: 8px;
    background: var(--sun-gold); border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
}
.cursor-glow {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px;
    background: rgba(255, 209, 102, 0.2); border-radius: 50%;
    pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    filter: blur(4px);
}
