/* Reset CSS dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll mulus saat tombol navigasi diklik */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 40px 20px;
}

/* Container Utama */
.cv-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Profil */
.header {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

/* Pengaturan Foto Profil */
.profile-img {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-img img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3498db;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    color: #bdc3c7;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Navigasi Button di Header */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #3498db;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Konten Utama */
.main-content {
    padding: 40px;
}

.section {
    margin-bottom: 35px;
    scroll-margin-top: 20px;
}

.section-title {
    font-size: 1.3rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description {
    color: #555;
    font-size: 0.95rem;
}

/* Biodata Grid */
.biodata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.bio-item {
    font-size: 0.95rem;
    color: #444;
}

/* Kontak */
.contact-list p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #444;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Styling Tabel Akademik */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    text-align: left;
    font-size: 0.95rem;
}

.academic-table thead {
    background-color: #2c3e50;
    color: #ffffff;
}

.academic-table th, 
.academic-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f5;
}

.academic-table th {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.academic-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.academic-table tbody tr:hover {
    background-color: #eef7fc;
}

.academic-table td:nth-child(3),
.academic-table td:nth-child(4) {
    text-align: center;
}

.academic-table th:nth-child(3),
.academic-table th:nth-child(4) {
    text-align: center;
}

/* Responsif Layar HP */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .header, .main-content {
        padding: 20px;
    }

    .profile-img img {
        width: 180px;
        height: 180px;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .academic-table th, 
    .academic-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}