* {
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-list {
    margin: 15px 20px;
}

.div-list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.ul-list {
    list-style: none;
    display: flex;
    gap: 3rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px 25px;
    border-radius: 25px;
}

.ul-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 25px;
    transition: 0.3s;
}

.ul-list li a {
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
    color: black;
}

.ul-list li.active {
    background-color: black;
    padding: 10px 15px;
}

.ul-list li.active a,
.ul-list li.active i {
    color: white;
}

/* fine header  */

/* ================================================= */
/* HOME REVISI: Konten dibuat rata tengah */
/* ================================================= */
.home {
    /* text-align: center: Membuat konten inline (.home-p) dan teks di dalamnya rata tengah */
    text-align: center; 
    margin: 160px 200px;
}

.home-container {
    /* display: block: Mengubah dari dua kolom (flex) menjadi satu blok */
    display: block; 
    /* max-width & margin: auto: Membatasi lebar teks agar tidak terlalu lebar dan menengahkan kontainer utama */
    max-width: 700px; 
    margin: 0 auto;
    gap: 0;
}

.home-p {
    color: black;
    background-color: rgba(128, 128, 128, 0.214);
    display: inline-block;
    border-radius: 25px;
    padding: 5px 10px;
    margin-bottom: 30px;
}

.home-s {
    font-weight: bold;
    color: green;
}

.info-home {
    /* Terapkan rata tengah pada semua teks di dalam info-home */
    text-align: center;
}

.info-home h1 {
    font-size: 70px;
    font-family: "Raleway", sans-serif;
    margin-bottom: 20px;
}

.info-home h3 {
    /* Memastikan H3 terlihat untuk animasi typing */
    display: block; 
    font-size: 40px; 
    font-family: "Playfair Display", serif;
    margin-bottom: 20px;
}

.info-p {
    color: #222;
    font-family: "Roboto", sans-serif;
    padding-bottom: 20px;
    /* Menengahkan blok paragraf */
    max-width: 600px;
    margin: 0 auto 20px auto; 
}

.info-p p {
    padding-bottom: 5px;
    /* Membuat teks paragraf rata tengah */
    text-align: center; 
}

/* Memastikan elemen yang sudah dihapus/tidak dipakai di HTML tidak mengganggu */
.info-p2 {
    /* Dibuat rata tengah */
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Menyembunyikan elemen yang sudah tidak ada di HTML */
.btnn, .btn-home1, .btn-home2, .home img {
    display: none;
}


.hhr {
    padding-bottom: 30px;
    /* Gunakan flex untuk menengahkan hr */
    display: flex; 
    justify-content: center;
}

hr {
    /* Sesuaikan lebar HR agar lebih proporsional di tengah */
    width: 50%; 
    font-weight: bold;
    color: gray;
    margin: 0;
}

.follow {
    /* Pastikan kontainer "Follow me" dan ikonnya rata tengah */
    color:#000000;
    display: flex;
    justify-content: center; 
    gap: 1rem;
}

.follow ul {
    /* Pastikan list ikonnya juga rata tengah */
    display: flex;
    gap: 2rem;
    font-size: 20px;
    padding: 0; 
}

.home-buttons {
    display: flex; 
    justify-content: center; /* Meratakan kedua tombol ke tengah halaman */
    gap: 15px; /* Memberi jarak horizontal antar tombol */
    margin-top: 30px; /* Jarak dari teks di atasnya */
    margin-bottom: 20px;
}

/* Style untuk Tombol Resume (Primary Button) */
.btn-resume {
    background-color: #000000; /* Warna biru primer */
    color: rgb(255, 255, 255);
    text-decoration: none; 
    padding: 12px 25px;
    border-radius: 8px; 
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
}

.btn-resume:hover {
    background-color: #a3a3a3; 
}

/* Style untuk Tombol Contact (Outline Button) */
.btn-contact {
    background-color: rgb(0, 0, 0);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-contact:hover {
    background-color:#a3a3a3;
    color: white;
}

.about{
    margin: 160px 200px;
}

.about p{
    padding-bottom: 20px;
    font-size: 15px;
    text-align: justify;
    color: rgb(50, 50, 50);
}

.about h1{
    font-family: "Open Sans", sans-serif;
}

.title{
    padding-bottom: 10px;
}

.about .hrrr{
    width: 30%;
    padding-bottom: 20px;
}

.info-about{
    display: flex;
    flex-direction: column;
}

.about-container{
    display: flex;
    gap: 2rem;
}

.about img{
    position: relative;
    bottom: 30px;
    width: 170px;
    height: 200px;
    border-radius: 15px;
    border: 1px solid black;
}

.about h2{
    padding-bottom: 30px;
}

.card{
    display: flex;
    gap: 2rem;
}

.c1{
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 2px solid black;
    padding: 5px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.c1 h3{
    padding-top: 10px;
    padding-bottom: 10px;
}

.c1:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: #00eaff; 
    background-color: #fff5f5; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    cursor: pointer; 
}


.project{
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.project p{
    padding-bottom: 20px;
    font-size: 13px;
    color: rgb(50, 50, 50); 
}

.project h1{
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
}

.project hr{
    width: 10%;
}

.info-pro{
    padding-top: 20px;
}

.info-pro p{
    padding-bottom: 10px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.project-card h3 {
    color: #1e40af;
    margin-bottom: 8px;
}

.project-card p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.skills {
    margin-bottom: 15px;
}

.skills a {
    display: inline-block;
    background: #e0e7ff;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 6px;
    margin: 3px;
    transition: background 0.3s;
}

.skills a:hover {
    background: #c7d2fe;
}

.btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    background: #1e40af;
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    background: #2563eb;
    border-radius: 25px;

}

.contact{
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact p{
    padding-bottom: 20px;
    font-size: 13px;
    color: rgb(50, 50, 50); 
}

.contact h1{
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
}

.contact hr{
    width: 10%;
}

.contact-content {
    padding-top: 50px;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 25px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #222;
}

.contact-item i {
    font-size: 20px;
    color: #474af0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #fff;
}

.social-link[href*="github"]:hover {
    background: #000;
}

.social-link[href*="linkedin"]:hover {
    background: #0A66C2;
}

.social-link[href*="instagram"]:hover {
    background: #fa5103;
}

/* Form */
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #474af0;
}

.btn-send {
    background: #474af0;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-send:hover {
    background: #2c36d9;
}

/* Responsive for tablets and phones */
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
    }
}


.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    overflow-x: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #474af0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-social a {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #474af0;
}

.footer-copy {
    font-size: 12px;
    color: #aaa;
}

/* ================================================= */
/* LOADING SCREEN STYLE (DIKEMBALIKAN) */
/* ================================================= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.main-icon {
    color: #474af0;
    margin-bottom: 20px;
}

#loading-text {
    font-family: "Unbounded", sans-serif;
    font-size: 2rem;
    color: #222;
    margin-bottom: 15px;
}

.sub-icons i {
    color: #aaa;
    margin: 0 5px;
    opacity: 0; 
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#designer-text {
    font-size: 1rem;
    color: #555;
    margin-top: 30px;
}

.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.fall {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* ================================================= */


.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

body {
    margin:0;
    padding:0;
    font-family: sans-serif;
}

/* ================================================= */
/* === SECTION CERTIFICATE STYLES === */
/* ================================================= */

.certificate {
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 80px 20px; /* Tambahkan padding agar tidak terlalu mepet ke border */
}

.certificate h1 {
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 50px;
}

.certificate p {
    padding-bottom: 20px;
    text-align: center; 
    font-size: 13 px; 
    font-weight: 600; 
    color: rgb(50, 50, 50);
}

/* --- THUMBNAIL GRID STYLING --- */
.certificates-grid {
    /* Ini yang membuat gambar tampil dalam 3 kolom */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 0;
}

.certificate-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.certificate-image {
    /* Ini yang memastikan gambar pas di thumbnail grid */
    width: 100%; 
    height: auto; 
    display: block; 
    object-fit: cover; 
    filter: contrast(1.10) brightness(0.9) saturate(1.1); 
    transition: filter 0.3s ease;
}

/* Hover Overlay (View Certificate text) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0; /* Ini yang menyembunyikan overlay di awal */
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.certificate-item:hover .overlay {
    opacity: 1 !important;
}

/* Hover Content (Teks View Certificate) */
.hover-content {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -60%); 
    opacity: 0; 
    transition: all 0.4s ease; 
    text-align: center; 
    width: 100%; 
    color: white;
}

.certificate-item:hover .hover-content {
    transform: translate(-50%, -50%) !important;
    opacity: 1 !important;
}


/* --- MODAL LIGHTBOX STYLING --- */
.modal-lightbox {
    display: none; /* Awalnya disembunyikan */
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center; 
    justify-content: center; 
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%; 
    max-height: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImageFull {
    display: block; 
    max-width: 100%; 
    max-height: 90vh;
    height: auto; 
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 5px;
    border-radius: 50%;
}

.close-btn:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.2);
}

/* ================================================= */
/* Responsive */
@media (max-width: 1024px) {
    .home, .about, .project, .services, .contact, .certificate { /* Tambahkan .certificate di sini */
        margin: 120px 50px;
    }

    .home-container, .about-container {
        flex-direction: column;
        gap: 3rem;
    }

    .home img, .about img {
        width: 100%;
        height: auto;
    }

    .ul-list {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 8px 15px;
    }

    .certificates-grid { /* Responsif grid tablet/laptop kecil */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Phone layout */
@media (max-width: 768px) {
    header {
        display: none;
    }

    .home, .about, .project, .services, .contact, .certificate { /* Tambahkan .certificate di sini */
        margin: 100px 20px;
    }

    .home-container, .about-container, .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .projects-container, .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificates-grid { /* Responsif grid smartphone */
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home img, .about img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* .btn-home1, .btn-home2 dihapus dari HTML, tapi ini untuk responsive */
    .btn-home1, .btn-home2, .btn, .btn-send {
        width: 100%;
        text-align: center;
    }
    
    .follow ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 1024px) {

    header {
        display: none;
    }

    .home, .about, .project, .services, .contact, .certificate { /* Tambahkan .certificate di sini */
        margin: 20px auto;
        padding: 0 15px;
        text-align: center;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .home-container,
    .about-container,
    .services-container,
    .projects-container,
    .contact-content,
    .card {
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .about img {
        width: 100%;
        max-width: 220px; 
        height: auto;
        margin-bottom: 20px;
        position: relative;
        z-index: 1; 
    }

    .card .c1 {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin: 0 auto;
    }

    .home img,
    .project-card img,
    .service-card img {
        width: 100%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto 15px auto;
        object-fit: cover;
    }

    .info-home h1 { font-size: 26px; }
    .info-home h3 { font-size: 18px; }
    .info-p, .info-p2, .home-p, .about p, .project p, .service-card p, .contact p, .certificate p {
        font-size: 14px;
    }
    .project-card h3, .service-card h3 { font-size: 16px; }

    .contact-content {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .contact-info, .contact-form {
        width: 100%;
        max-width: 400px;
    }

    html, body {
        overflow-x: hidden;
    }
}