body {
    background: #1f242d;
}


/* Navbar styling */
.navbar {
    padding: 10px 20px; /* Padding untuk navbar */
}

.navbar-container {
    display: flex; /* Menggunakan flexbox untuk tata letak */
    justify-content: space-between; /* Mengatur jarak antara logo dan menu */
    align-items: center; /* Menyelaraskan elemen di tengah secara vertikal */
}

.logo {
    text-decoration: none; /* Menghilangkan garis bawah */
    font-weight: bold; /* Opsional, jika ingin menebalkan teks */
    color: rgb(242, 242, 242); /* Warna teks logo */
    font-size: 24px; /* Ukuran font untuk logo */
    animation: slideRight 1s ease forwards;
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.navbar-list {
    list-style: none; /* Menghapus bullet points dari daftar */
    margin: 0; /* Menghapus margin dari daftar */
    padding: 0; /* Menghapus padding dari daftar */
    display: flex; /* Menggunakan flexbox untuk daftar */
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

@keyframes slideTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.navbar-list li {
    margin-left: 20px; /* Jarak antar item menu */
}

.navbar-list a {
    color: rgb(255, 255, 255); /* Warna teks tautan */
    text-decoration: none; /* Menghapus garis bawah pada tautan */
}

.navbar-list a:hover {
    text-decoration: none; /* Pastikan garis bawah tetap tidak muncul saat hover */
}

/* Container untuk Home Section */
.container {
    display: flex; /* Menggunakan flexbox untuk tata letak */
    align-items: center; /* Menyelaraskan elemen di tengah secara vertikal */
    justify-content: center; /* Menyelaraskan elemen di tengah secara horizontal */
    padding: 50px 20px; /* Padding atas dan bawah untuk memberi ruang */
    min-height: 100vh; /* Memastikan Home Section mengambil minimal tinggi layar */
}

/* Styling untuk text-content di Home Section */
.text-content {
    max-width: 800px; /* Mengatur lebar maksimum untuk teks */
    margin-right: 20px; /* Memberikan jarak antara teks dan gambar */
}

.text-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: rgb(255, 255, 255); /* Warna teks tautan */
}

.text-content h3:nth-of-type(2){
    margin-bottom: 30px;
}

.text-content h3 span {
    color: #0ef;
}

.text-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -20px 0;
    color: rgb(255, 255, 255); /* Warna teks tautan */
}

.text-content p {
    font-size: 16px;
    color: rgb(255, 255, 255); /* Warna teks tautan */
}

:root {
    --main-color: #0ef; /* Ganti dengan warna yang Anda inginkan */
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color); /* Border menggunakan warna variabel */
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color); /* Warna ikon */
    margin: 3rem 1.5rem 3rem 0;
    text-decoration: none; /* Hilangkan garis bawah */
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}


/* Gaya untuk tombol CV */
.cv-button {
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    box-shadow: 0 0 10px #0ef;
    font-size: 16px;
    color: #1f242d;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
}

.cv-button:hover {
    background-color: rgb(178, 4, 4); /* Mengubah warna latar belakang saat hover */
}

/* Gaya untuk gambar di Home Section */
.image {
    width: 300px; /* Ukuran gambar */
    height: 300px;
    border-radius: 50%; /* Membuat gambar menjadi lingkaran */
    object-fit: cover; /* Menyesuaikan gambar */
    border: 2px solid #0078D7;
}

/* Gaya untuk tombol menu burger */
.menu-toggle {
    display: none; /* Sembunyikan secara default */
    position: absolute; /* Gunakan posisi absolut */
    top: 10px; /* Sesuaikan posisi vertikal */
    right: 20px; /* Geser ke kanan */
    background: none;
    border: none;
    font-size: 28px;
    color: rgb(242, 242, 242);
    cursor: pointer;
}


.heading span {
    color: #0ef;
}

.project {
    background: var(--second-bg-color);
}

/* Styling untuk heading di bagian project */
.project h2 {
    text-align: center; /* Pusatkan teks */
    font-size: 2rem; /* Sesuaikan ukuran font */
    margin-bottom: 20px; /* Tambahkan jarak bawah */
    color: #fff; /* Warna teks */
}

.project h2{
    margin-bottom: 4rem;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom dalam satu baris */
    gap: 20px; /* Jarak antar elemen */
    justify-content: center; /* Pusatkan elemen secara horizontal */
    align-items: center; /* Pusatkan elemen secara vertikal */
    max-width: 900px; /* Batas lebar agar tidak terlalu besar */
    margin: auto; /* Tengah secara horizontal */
}

.project-box {
    background: #2c2f3f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-box:hover {
    transform: scale(1.05);
}

.project-box img {
    width: 80%;
    height: auto;
    border-radius: 10px;
}

/* Styling untuk keterangan di project box */
.project-layer h4 {
    color: #fff; /* Warna putih untuk judul */
    font-size: 20px; /* Sesuaikan ukuran font */
    margin-bottom: 10px;
}

.project-layer p {
    color: #fff; /* Warna putih untuk deskripsi */
    font-size: 14px; /* Sesuaikan ukuran font */
    text-align: center; /* Pusatkan teks */
    margin-bottom: 20px;
}

/* Styling untuk ikon link */
.project-layer a i {
    color: #0ef; /* Warna ikon link */
    font-size: 24px; /* Sesuaikan ukuran ikon */
    transition: transform 0.3s ease; /* Animasi saat hover */
}

.project-layer a i:hover {
    transform: scale(1.2); /* Perbesar ikon saat hover */
}

/* Styling untuk Contact Section */
#contact {
    background: #1f242d;
    padding: 50px 20px;
    text-align: center;
}

#contact h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}

#contact h1 span {
    color: #0ef;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    background: #2c2f3f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.contact-form .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #1f242d;
    color: #fff;
    font-size: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

contact-form textarea {
    resize: none;
}

.contact-form .send-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0ef;
    color: #1f242d;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form .send-button:hover {
    background: #0078D7;
    color: #fff;
}

/* Styling untuk Specialized Section */
.Specialized-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.Specialized-box {
    background: #2c2f3f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.Specialized-box:hover {
    transform: scale(1.05);
}

.Specialized-box i {
    font-size: 40px;
    color: #6c63ff;
    margin-bottom: 10px;
}

.Specialized-box h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.Specialized-box p {
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
}

.Specialized .heading {
    text-align: center; /* Memusatkan teks */
    font-size: 2.5rem; /* Ukuran font */
    color: #fff; /* Warna teks */
    margin-bottom: 30px; /* Jarak bawah */
}

/* Tambahkan jarak antar section */
section {
    padding: 100px 20px; /* Tambahkan padding atas dan bawah */
    min-height: 100vh; /* Pastikan setiap section memiliki tinggi minimal 1 layar penuh */
    display: flex; /* Gunakan flexbox untuk tata letak */
    flex-direction: column; /* Tata letak vertikal */
    justify-content: center; /* Pusatkan konten secara vertikal */
    align-items: center; /* Pusatkan konten secara horizontal */
    box-sizing: border-box; /* Pastikan padding dihitung dalam ukuran elemen */
}

/* Media Queries untuk perangkat seluler */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-container {
        flex-direction: column; /* Navbar menjadi kolom */
        align-items: flex-start;
    }

    .menu-toggle {
        display: block; /* Tampilkan tombol menu pada perangkat kecil */
    }

    .navbar-list {
        display: none; /* Sembunyikan menu awalnya */
        flex-direction: column; /* Menu menjadi vertikal */
        position: absolute;
        top: 60px; /* Sesuaikan posisi */
        right: 20px; /* Sesuaikan posisi */
        background-color: #1f242d;
        border-radius: 8px;
        padding: 10px;
    }

    .navbar-list.active {
        display: flex; /* Tampilkan menu saat diaktifkan */
    }

    .navbar-list li {
        margin: 10px 0; /* Jarak antar item */
    }

    .navbar-list a {
        font-size: 18px; /* Ukuran font lebih kecil untuk perangkat kecil */
    }

    /* Container Home Section */
    .container {
        flex-direction: column; /* Susunan teks dan gambar menjadi vertikal */
        text-align: center; /* Teks rata tengah */
    }

    .text-content {
        margin-right: 0; /* Menghapus jarak antara teks dan gambar */
        margin-bottom: 20px; /* Menambahkan jarak di bawah teks */
    }

    .text-content h1 {
        font-size: 40px; /* Ukuran font lebih kecil */
    }

    .text-content h3 {
        font-size: 24px; /* Ukuran font lebih kecil */
    }

    .text-content p {
        font-size: 14px; /* Ukuran font lebih kecil */
    }

    /* Gambar di Home Section */
    .image {
        width: 200px; /* Ukuran gambar lebih kecil */
        height: 200px;
    }

    /* Social Media Icons */
    .social-media a {
        width: 3rem; /* Ikon lebih kecil */
        height: 3rem;
        font-size: 1.5rem;
        margin: 1rem 1rem 1rem 0;
    }

    /* Tombol CV */
    .cv-button {
        padding: 10px 20px; /* Ukuran padding lebih kecil */
        font-size: 14px; /* Ukuran font lebih kecil */
    }

    /* Section lainnya */
    #Specialized, #project, #contact {
        padding: 30px 10px; /* Padding lebih kecil */
        text-align: center; /* Teks rata tengah */
    }

    #Specialized .text-content,
    #project .text-content,
    #contact .text-content {
        max-width: 100%; /* Memaksimalkan lebar */
    }

    .Specialized-container {
        flex-direction: column; /* Susun kotak secara vertikal */
        align-items: center; /* Pusatkan kotak secara horizontal */
        gap: 20px; /* Jarak antar kotak */
    }

    .Specialized-box {
        width: 100%; /* Lebar penuh untuk perangkat kecil */
        max-width: 300px; /* Batas lebar maksimum */
    }
}


/* Media Queries untuk perangkat sangat kecil (misalnya ponsel lama) */
@media (max-width: 480px) {
    .text-content h1 {
        font-size: 32px; /* Ukuran font lebih kecil untuk perangkat sangat kecil */
    }

    .text-content h3 {
        font-size: 20px;
    }

    .text-content p {
        font-size: 12px;
    }

    .social-media a {
        width: 2.5rem; /* Ikon lebih kecil lagi */
        height: 2.5rem;
        font-size: 1.2rem;
    }

    .cv-button {
        padding: 8px 16px; /* Ukuran padding lebih kecil lagi */
        font-size: 12px;
    }
}