/* Styling Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Latar belakang abu-abu sangat muda */
}

html{
    scroll-behavior: smooth; /* Animasi scroll yang halus */
}

p{
    text-align: justify;
}

/* --- Area Konten Utama --- */
.main {
    transition: margin-left .3s; /* Animasi mulus saat menu terbuka */
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    margin: 0;
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 100;
}

.openbtn {
    font-size: 24px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    margin-right: 15px;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
}

.section {
    margin-top: 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* --- Kartu Putih dengan Shadow (Sesuai Gambar) --- */
.card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    
    /* Kunci agar kartu bisa di-scroll */
    max-height: 70vh; /* Kartu akan mengambil maksimal 70% tinggi layar */
    overflow-y: auto;  /* Munculkan scrollbar hanya jika konten melebihi max-height */

    /* Opsional: Agar scrollbar terlihat lebih rapi (untuk Chrome/Edge/Safari) */
    scrollbar-width: thin; /* Untuk Firefox */
}

/* Custom Scrollbar agar tidak merusak estetika kartu */
.card::-webkit-scrollbar {
    width: 6px;
}

.card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.card::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.card p, .card ul, dl dt, dl dd {
    font-size: 1.5rem;
    color: #555;
    margin: 0;
    text-align: justify;
}

.project-image {
    width: 150vh;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.accordion-container {
    max-width: 100%;
    margin: 20px 0;
}

.accordion-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 12px;
    /* Box shadow sesuai gambar */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Agar konten tidak keluar dari border-radius */
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    text-align: left;
    font-size: 2rem;
}

.accordion-header:hover {
    background-color: #fafafa;
}

.accordion-header .icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

/* Bagian Konten */
.accordion-content {
    max-height: 0; /* Tertutup secara default */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 25px;
    color: #444;
    line-height: 1.6;
    font-size: 1.5rem;
}

/* Saat Akordion Terbuka */
.accordion-item.active .accordion-content {
    max-height: 200px; /* Sesuaikan dengan panjang teks Anda */
    padding-bottom: 25px;
}

.accordion-item.active .icon {
    transform: rotate(180deg); /* Icon panah berputar ke atas */
}

/* --- Styling Menu Samping (Sidebar) --- */
.sidebar {
    height: 100%;
    width: 0; /* Tersembunyi secara default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: white; /* Menu putih */
    overflow-x: hidden; /* Sembunyikan horizontal scroll */
    transition: 0.3s; /* Animasi mulus */
    padding-top: 60px;
    box-shadow: 3px 0 15px rgba(0,0,0,0.05); /* Sedikit bayangan */
}

.sidebar a {
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1.5rem;
    color: #333;
    display: block;
    transition: 0.2s;
    font-weight: 500;
    margin-bottom: 8px;
    border-radius: 0 25px 25px 0; /* Rounded corners di sebelah kanan */
}

.sidebar a:hover {
    color: #333;
    background-color: #f1f1f1; /* Efek hover abu-abu */
}

.sidebar .active {
    background-color: #e0e0e0; /* Warna highlight menu aktif (abu-abu terang) */
    font-weight: 700;
}

/* Tombol Tutup (X) */
.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%; /* Menjadi lingkaran */
}

.sidebar .closebtn:hover {
    background-color: transparent;
    color: #333;
}

/* --- Definisi Animasi --- */

/* Efek Jump In (Zoom & Fade) */
@keyframes jumpIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Efek Swipe Up (Geser dari Bawah ke Atas) */
@keyframes swipeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Efek Swipe Right (Geser dari Kiri ke Kanan) */
@keyframes swipeRight {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* --- Kelas Pemicu --- */
.animate-jump {
    animation: jumpIn 0.5s ease forwards;
}

.animate-swipe {
    animation: swipeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Sembunyikan section secara default dengan opacity 0 untuk transisi mulus */
.section {
    display: none;
    opacity: 1;
    will-change: transform, opacity; /* Optimasi performa animasi */
}