/* --- 1. RESET & DASAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #121517;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- 2. CANVAS BACKGROUND (ANIMASI BINTANG) --- */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Memastikan elemen berada di atas canvas */
.navbar, .hero, .content-section {
    position: relative;
    z-index: 1;
}

/* --- 3. NAVBAR / HEADER --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background-color: transparent;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span, 
.hero-text h1 span,
.page-title h1 span {
    color: #ff2a42; /* Aksen Merah */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #ffffff;
}

/* --- 4. HERO SECTION (HALAMAN UTAMA) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 0 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-text .subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff2a42;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-text .bio {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.7;
    max-width: 500px;
}

/* Foto Profil Hero */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}

.hero-image img {
    max-width: 80%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%); /* Efek Hitam Putih */
}

/* --- 5. CONTENT SECTION (HALAMAN KEAHLIAN & KONTAK) --- */
.content-section {
    flex: 1;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
}

.page-title h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.page-title p {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Kartu Keahlian */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background-color: #1a1e21;
    border: 1px solid #2a2e33;
    border-top: 4px solid #ff2a42;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #ff2a42;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 20px;
}

.card ul {
    list-style: none;
}

.card ul li {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.card ul li::before {
    content: "•";
    color: #ff2a42;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Item Kontak */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
}

.contact-item {
    background-color: #1a1e21;
    border: 1px solid #2a2e33;
    padding: 25px 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s;
}

.contact-item:hover {
    border-color: #ff2a42;
}

.contact-item .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff2a42;
}

.contact-item .value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
}

.contact-item a.link {
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a.link:hover {
    color: #ff2a42;
}

/* --- 6. RESPONSIVE (TAMPILAN HP & TABLET) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text .bio {
        margin: 0 auto;
    }

    .hero-image {
        justify-content: center;
        margin-top: 30px;
    }

    .hero-image img {
        max-width: 100%;
    }

    .content-section {
        padding: 30px 20px;
    }

    .page-title h1 {
        font-size: 2.5rem;
    }
}