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

body {
    background-color: #ffffff;
    color: #111111;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
}

/* Layout Utama */
.site-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Kiri */
.sidebar {
    width: 280px;
    background-color: #fafafa;
    border-right: 1px solid #eaeaea;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
}

.sidebar-header p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s ease;
}

.nav-btn i {
    font-size: 0.9rem;
    color: #777;
}

.nav-btn:hover {
    background-color: #f0f0f0;
    color: #111;
}

.nav-btn.active {
    background-color: #111111;
    color: #ffffff;
}

.nav-btn.active i {
    color: #ffffff;
}

.sidebar-footer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #888;
    border-top: 1px solid #eaeaea;
    padding-top: 1rem;
    display: block; /* Pastikan selalu tampil di bawah sidebar */
}

/* Konten Kanan */
.main-content {
    flex: 1;
    padding: 3rem 5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Sistem Halaman */
.content-page {
    display: none;
    max-width: 800px;
    width: 100%;
}

.content-page.active {
    display: block;
}

/* Hero Section */
.hero-section {
    margin-top: 1rem;
}

.greeting-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.highlight-name {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -1px;
    text-transform: none;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #444;
    max-width: 700px;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #111111;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

/* Bagian Sertifikat */
.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cert-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    max-width: 500px; /* Ukuran card diperkecil agar tidak terlalu memenuhhi layar */
}

.cert-card:hover {
    border-color: #999;
}

.cert-img-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.cert-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.cert-img-wrapper:hover img {
    transform: scale(1.02);
}

/* Overlay teks petunjuk klik zoom */
.zoom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cert-img-wrapper:hover .zoom-overlay {
    opacity: 1;
}

.cert-info {
    padding: 1.25rem;
}

.cert-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.3rem;
}

.cert-info p {
    font-size: 0.85rem;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
}

/* Footer Utama di Bawah */
.site-footer {
    max-width: 800px;
    width: 100%;
    font-size: 0.85rem;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
    border-top: 1px solid #eaeaea;
    padding-top: 2rem;
    margin-top: 4rem;
}

/* Modal Popup Preview HD */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

/* Responsif HP */
@media (max-width: 900px) {
    .site-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.25rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    .sidebar-footer {
        display: none; /* Sembunyikan footer di sidebar kecil HP agar tidak double */
    }
    .sidebar-nav {
        flex-direction: row;
        margin-top: 1rem;
        gap: 0.5rem;
    }
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    .main-content {
        padding: 2rem 1.25rem;
    }
}