/* ===== NAVBAR (SAMA STYLE INDEX) ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 50, 0, 0.6);
}

.navbar h2 {
    color: white;
}

.navbar a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.navbar a:hover {
    color: #a8ff78;
}

/* ===== HERO (HEADER BESAR) ===== */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,80,0,0.6), rgba(0,40,0,0.8)),
    url('img/daun.jpg'); /* ganti gambar bebas */
    background-size: cover;
    background-position: center;
    color: white;
}

.hero h1 {
    font-size: 60px;
    letter-spacing: 4px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== CARD GRID (SAMA STYLE INDEX) ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px;
}

/* ===== CARD GLASS STYLE ===== */
.card {
    padding: 25px;
    border-radius: 20px;
    color: white;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

/* efek glow sama kayak index */
.card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0,255,100,0.5);
}

/* ===== WARNA CARD (TEMA HIJAU) ===== */
.card:nth-child(1) {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.card:nth-child(2) {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.card:nth-child(3) {
    background: linear-gradient(135deg, #76b852, #8DC26F);
}

.card:nth-child(4) {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* ===== ICON ===== */
.icon {
    font-size: 50px;
    margin-bottom: 10px;
}

/* ===== BAGAN ===== */
.bagan {
    text-align: center;
    margin-top: 40px;
}

.box {
    background: rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 15px;
    margin: 10px auto;
    width: fit-content;
    color: white;
}

.hasil {
    background: rgba(0,255,100,0.3);
}

.arrow {
    font-size: 24px;
    color: white;
}

.row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,50,0,0.8);
    color: white;
}
.card {
    display: block; /* penting biar link full */
    text-decoration: none;
    color: inherit;
}
/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* isi popup */
.modal-content {
    background: #1e3d1e;
    padding: 20px;
    border-radius: 20px;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    position: relative;
}

/* tombol close */
.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}

/* video */
.modal iframe {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    margin-top: 15px;
}
/* ===== POPUP ===== */
.modal-content {
    background: linear-gradient(135deg, #a8ff78, #78ffd6);
    color: #0a2e0a; /* teks gelap biar kontras */
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,200,100,0.4);
}

/* ===== CLOSE BUTTON ===== */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: #ffffff;
    color: red;
    padding: 5px 12px;
    border-radius: 50%;
    transition: 0.3s;
}

.close:hover {
    background: red;
    color: white;
}

/* ===== BAGAN ===== */
.box {
    background: #ffffff;
    color: #0a2e0a;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 10px auto;
    width: fit-content;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* panah */
.arrow {
    font-size: 22px;
    color: #0a2e0a;
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    /* INI PENTING */
    display: none;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.8);
}