/* Reset & Dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', 'Tahoma', sans-serif;
    /* Menggunakan background yang ada di folder img */
    background: url('img/background (8).png') no-repeat center top fixed;
    background-size: cover;
    color: #000;
    /* Mengubah kursor bawaan menjadi logo homepage (ukuran 32x32) */
    cursor: url('img/icons/homepage_cursor.png'), auto;
}

/* Memastikan kursor juga berubah saat di-hover ke link */
a, button, .nav-item {
    cursor: url('img/icons/homepage_cursor.png'), pointer;
}

/* Navigasi Atas */
.top-nav {
    width: 100%;
    padding: 15px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Agar proporsional jika layar mengecil */
    position: relative;
    z-index: 100;
}

.nav-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Jarak dibuat agak renggang agar lebih proporsional */
    align-items: flex-start;
    flex-wrap: wrap; /* Membungkus icon jika layar kecil */
    max-width: 1200px;
    width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
    text-decoration: none;
    font-size: 15px; /* Disesuaikan */
    font-weight: 700;
    font-family: 'Space Mono', monospace; /* Font baru untuk navbar */
    padding: 5px 10px; /* Padding lebih proporsional */
    width: auto; /* Mengikuti isi teks */
    min-width: 100px;
    text-align: center;
    line-height: 1.2;
    transition: all 0.2s ease;
}

/* State Aktif (kotak ungu pada bombinK) */
.nav-item.active {
    border: 1px solid #a450ff; /* Border ungu */
    background-color: rgba(164, 80, 255, 0.2); /* Fill transparan ungu */
}

.nav-item img {
    width: 65px; /* Ukuran icon cukup besar */
    height: auto;
    margin-bottom: 5px;
    /* image-rendering: pixelated; (Opsional, tergantung gambar) */
}

/* Marquee */
.marquee-container {
    background-color: #FFFF00; /* Brutalist Electric Yellow */
    background-image: 
        linear-gradient(45deg, #d4d400 25%, transparent 25%, transparent 75%, #d4d400 75%, #d4d400),
        linear-gradient(45deg, #d4d400 25%, transparent 25%, transparent 75%, #d4d400 75%, #d4d400);
    background-size: 8px 8px; /* Pixelated grid pattern */
    background-position: 0 0, 4px 4px;
    color: #000000;
    font-family: 'VT323', monospace; /* Pixelated font */
    font-weight: normal;
    padding: 12px 10px;
    font-size: 26px; /* Disesuaikan karena font pixel biasanya lebih kecil */
    margin-top: 15px;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
    box-shadow: 0px 6px 0px rgba(0, 0, 0, 1);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0px #FFF; /* Agar teks menonjol di atas pattern pixel */
}

/* Home Section Layout */
.page-section {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Agar jika layar mengecil otomatis turun ke bawah */
    gap: 30px; /* Jarak antara kolom kiri dan kanan */
    width: 90%;
    max-width: 1100px;
    margin-top: 20px;
}

.left-col {
    flex: 1;
    min-width: 300px; /* Batas minimum lebar agar tidak rusak */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Jarak kotak abu dengan visitor counter */
}

.right-col {
    flex: 1;
    min-width: 300px; /* Batas minimum lebar */
}

/* Kotak Abu-Abu */
.gray-box {
    background-color: #949494; /* Sama dengan warna marquee */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: black;
    border-radius: 4px; /* Sedikit sudut membulat agar lebih rapi */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3); /* Bayangan proporsional */
}

.left-col .gray-box {
    min-height: 380px; /* Menggunakan min-height agar fleksibel */
    height: 100%;
}

.right-gray-box {
    min-height: 480px; /* Menggunakan min-height agar fleksibel */
    height: 100%;
}

/* Visitor Counter */
.visitor-counter-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.blinking-dot {
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid darkred;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0% { opacity: 1; box-shadow: 0 0 10px red; }
    50% { opacity: 0.2; box-shadow: none; }
    100% { opacity: 1; box-shadow: 0 0 10px red; }
}

.visitor-counter {
    background-color: white;
    color: black;
    font-family: 'VT323', monospace; /* Font digital/retro */
    padding: 5px 15px;
    font-size: 38px; /* Ukuran cukup besar seperti di gambar */
    letter-spacing: 2px;
}

/* Typewriter Text */
.pixel-text {
    font-family: 'VT323', monospace;
    font-size: 22px; 
    color: #fff; /* Changed to white for dark background */
    line-height: 1.4;
    white-space: normal; /* Normal wrapping */
}

/* Mobile Fixes */
@media (max-width: 768px) {
    body {
        /* Background fixed sering bermasalah di HP (tidak muncul atau patah-patah) */
        background-attachment: scroll;
    }

    .top-nav {
        padding: 10px 5px;
    }

    .nav-icons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        width: 100%;
        padding: 0 5px;
    }

    .nav-item {
        min-width: 0;
        width: 100%;
        font-size: 11px;
        padding: 5px 2px;
    }

    .nav-item img {
        width: 45px;
    }

    .marquee-container {
        font-size: 18px;
        padding: 8px 5px;
    }

    .visitor-counter {
        font-size: 28px;
    }

    .pixel-text {
        font-size: 18px;
    }
}
