/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #262626; /* Latar belakang gelap seperti gambar */
    color: #f0f0f0;
    line-height: 1.7;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 0 20px;
}

a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

section {
    padding: 4rem 0;
}

/* --- Header & Navigasi --- */
header {
    background-color: #262626;
    padding: 2rem 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.8rem;
    font-weight: 700;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

header nav a {
    color: #a0a0a0;
    font-weight: 500;
}

header nav a:hover,
header nav a.active-nav {
    color: #ffffff;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #444;
    color: #a0a0a0;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* --- HALAMAN 1: BERANDA --- */

/* Hero Section */
#hero .hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

#hero .hero-text h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

#hero .hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

#hero .hero-text p {
    color: #a0a0a0;
    margin: 1.5rem 0 2rem 0;
    max-width: 450px;
}

#hero .hero-image img {
    max-width: 200px;
}

.btn {
    border: 1px solid #f0f0f0;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.btn:hover {
    background-color: #f0f0f0;
    color: #262626;
}

/* Judul Section Umum */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* About Me Section */
.about-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #333;
    padding: 2rem;
    border-radius: 8px;
}

.about-container img {
    width: 200px;
    border-radius: 8px;
}

.about-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item i {
    font-size: 3rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.skill-item h3 {
    font-weight: 500;
}

/* --- HALAMAN 2: PORTOFOLIO (Tabel) --- */
.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem auto;
}

.table-wrapper {
    overflow-x: auto;
    background: #333;
    border-radius: 8px;
    padding: 1px; /* Mencegah margin collapse */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

thead {
    background: #404040;
}

tbody tr:hover {
    background: #3a3a3a;
}

td a {
    text-decoration: underline;
    font-weight: bold;
}

/* --- HALAMAN 3: KONTAK (Form) --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #333;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: #262626;
    border: 1px solid #444;
    color: #f0f0f0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.form-group-options label {
    display: inline-block;
    margin-right: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #f0f0f0;
    color: #262626;
    border: 0;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #ffffff;
}


/* --- RESPONSIVE DESIGN (RWD) --- */

@media (max-width: 768px) {
    /* Navigasi */
    header nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Hero */
    #hero .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    /* About */
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Tabel Responsif */
    thead {
        display: none; /* Sembunyikan header tabel */
    }
    tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #444;
        border-radius: 8px;
    }
    td {
        display: block;
        text-align: right; /* Rata kanan */
        position: relative;
        padding-left: 50%;
        border-bottom: 1px dashed #444;
    }
    td:last-child {
        border-bottom: 0;
    }
    td::before {
        /* Tambahkan label data di kiri */
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: calc(50% - 2rem);
        text-align: left;
        font-weight: bold;
        color: #ffffff;
    }
}