/* --- RESET & DASAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    font-family: "Poppins", sans-serif;
}

/* --- VARIABEL WARNA --- */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --main-color: #00bcd4;
    --hover: hsl(187, 100%, 42%);
    --header-bg: #ffffff;
    --header-shadow: -3px -3px 7px #ffffff73, 2px 2px 5px rgba(94, 104, 121, 0.288);
}

body.dark {
    --bg-color: #0f172a;
    --text-color: #ffffff;
    --header-bg: #1e293b;
    --header-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
}

/* --- HEADER --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: var(--header-bg);
    padding: 13px 10%;
    transition: 0.3s;
    box-shadow: var(--header-shadow);
}

header.shadow {
    box-shadow: 0 0 4px rgb(14 55 54 / 15%);
}

/* --- LOGO --- */
.logo {
    font-size: 1.61rem;
    font-weight: 600;
    color: var(--text-color);
}

.logo span {
    color: var(--main-color);
}

/* --- NAVBAR & DROPDOWN --- */
.navbar {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.navbar li {
    position: relative; /* Penting untuk posisi dropdown */
}

.navbar a {
    font-size: 1rem;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar a:hover {
    color: var(--hover);
}

/* Logika Menu Turun ke Bawah */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    display: none; /* Sembunyikan default */
    min-width: 160px;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block; /* Muncul saat di-hover */
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- DARK MODE ICON --- */
#darkmode {
    font-size: 22px;
    cursor: pointer;
    justify-self: end;
    color: var(--text-color);
}

/* --- HOME / HERO SECTION --- */
.home {
    width: 100%;
    min-height: 100vh; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                      url('../background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

body.dark .home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), 
                      url('../background.jpg');
}

.home-text h1 {
    font-size: 4rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* --- ANIMASI TEKS PAHLAWAN --- */
#changing-text {
    color: var(--main-color);
    transition: opacity 0.5s ease-in-out; /* Transisi halus saat nama ganti */
    display: inline-block;
}

.home-text p {
    color: #eee;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* --- BUTTON --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #fff;
    color: var(--main-color);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .home-text h1 {
        font-size: 2.5rem;
    }
    .navbar {
        display: none; 
    }
}

/* --- TEAM SECTION --- */
.team {
    padding: 100px 10%;
    background: var(--bg-color);
}

.center-text {
    text-align: center;
    margin-bottom: 4rem;
}

.center-text h2 {
    font-size: 2.5rem;
    color: var(--text-color);
}

.center-text p {
    color: var(--main-color);
    font-weight: 500;
}

.team-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    gap: 2rem;
    align-items: center;
}

.team-box {
    padding: 30px;
    background: var(--header-bg);
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--header-shadow);
    transition: transform 0.3s ease;
    
    /* Keadaan awal animasi (tersembunyi & agak ke atas) */
    opacity: 0;
    transform: translateY(-50px);
}

.team-box:hover {
    transform: translateY(-10px); /* Efek melayang saat kursor di atasnya */
}

/* Class ini akan ditambahkan oleh JS saat di-scroll */
.team-box.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.team-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--main-color);
}

.team-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-box span {
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- FOOTER SIMPLE --- */
.footer-simple {
    width: 100%;
    background: var(--header-bg); /* Warna mengikuti header/dark mode */
    padding: 30px 10%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: 0.4s;
}

/* Garis tipis untuk mode gelap */
body.dark .footer-simple {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    flex-direction: column; /* Menyusun ke bawah */
    align-items: center;    /* Rata tengah */
    gap: 15px;
}

.footer-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--main-color);
}

.footer-copy p {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .footer-simple {
        padding: 20px 5%;
    }
}