/* Reset margin dan padding default browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.8;
    background-color: #F5F5F5;
    color: #333333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styling */
header {
    background: #F9FAFB;
    color: #333333;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #E0E0E0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007ACC;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav ul li a {
    color: #007ACC;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: #E0E0E0;
    color: #005F99;
}

/* Layout untuk Sidebar */
#content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr; /* Sidebar kiri, main, sidebar kanan */
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Container di Sidebar */
.sidebar-right #container {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gaya untuk Setiap Kotak Proyek */
.sidebar-right .box {
    display: flex;
    flex-direction: column; /* Mengatur proyek secara vertikal */
    gap: 15px; /* Jarak antar kotak */
}

.sidebar-right .box-content {
    background-color: #F9FAFB;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    text-align: center;
}

.sidebar-right .box-content:hover {
    transform: scale(1.05);
    background-color: #E0E0E0;
}

.sidebar-right .box-content h3 {
    margin-bottom: 5px;
    color: #007ACC;
}

.sidebar-right .box-content p {
    color: #555;
}

.sidebar-left{
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky; /* Tetap di layar ketika scrolling */
    top: 20px; /* Jarak dari atas */
    height: fit-content; /* Hanya sebesar kontennya */
}

/* Style untuk kotak wadah */
.container {
    display: flex;
    flex-direction: column; /* Membuat list kotak diatur secara vertikal */
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #007ACC; /* Warna biru */
    padding: 20px; /* Tambahkan padding agar konten tidak menempel pada tepi */
    border-radius: 10px; /* Membuat sudut membulat */
    color: #FFFFFF; /* Warna teks putih agar terlihat di latar biru */
}

/* Style untuk setiap kotak */
.box {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    overflow: hidden; /* Supaya konten yang tidak terlihat saat belum hover tersembunyi */
    transition: all 0.3s ease; /* Animasi saat kotak berubah ukuran */
}

/* Kotak konten awal (default) */
.box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-height: 50px; /* Tinggi awal kotak */
    transition: max-height 0.3s ease; /* Animasi tinggi */
    overflow: hidden; /* Sembunyikan konten tambahan */
}

/* Kotak deskripsi (sembunyi default) */
.box-content .description,
.box-content img {
    display: none;
    margin-top: 10px;
}

/* Hover effect: menampilkan konten tambahan */
.box:hover > .box-content {
    max-height: 200px; /* Tinggi lebih besar saat hover */
}

/* Menampilkan deskripsi dan gambar saat hover */
.box:hover > .box-content .description,
.box:hover > .box-content img {
    display: block; /* Tampilkan deskripsi dan gambar */
}

/* Styling tambahan */
.box-content h3 {
    font-size: 1.2rem;
    color: #333;
}

.box-content img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
}
  
/* Welcome Section */
#welcome {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#welcome h2 {
    font-size: 2rem;
    color: #007ACC;
    margin-bottom: 10px;
}

#welcome p {
    font-size: 1.2rem;
    color: #555555;
}

/* Skills Section */
#skills {
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#skills h2 {
    font-size: 2rem;
    color: #007ACC;
    margin-bottom: 10px;
}

#skills ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

#skills ul li {
    background-color: #E0E0E0;
    color: #333333;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#skills ul li:hover {
    transform: scale(1.02);
    background-color: #007ACC;
    color: #FFFFFF;
}

#view-all {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007ACC;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#view-all:hover {
    background-color: #005F99;
}

/* Call-to-Action Section */
#cta {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#cta h2 {
    font-size: 2rem;
    color: #007ACC;
    margin-bottom: 10px;
}

#cta p {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007ACC;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #005F99;
}

/* Contact Section */
#contact {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#contact h2 {
    font-size: 2rem;
    color: #007ACC;
    margin-bottom: 10px;
}

#contact p {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 20px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact label {
    font-weight: bold;
    text-align: left;
    color: #333333;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-size: 1rem;
    color: #333333;
}

#contact button {
    padding: 10px 20px;
    background-color: #007ACC;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #005F99;
}

/* Footer styling */
footer {
    text-align: center;
    background: #FFFFFF;
    color: #333333;
    padding: 20px 0;
    border-top: 1px solid #E0E0E0;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

footer .social-icons a {
    text-decoration: none;
    color: #007ACC;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #005F99;
}

@media (max-width: 768px) {
    #content {
        grid-template-columns: 1fr; /* Ubah ke satu kolom */
    }

    .sidebar-left,
    .sidebar-right {
        display: none; /* Sembunyikan sidebar pada layar kecil */
    }
}
