/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background: linear-gradient(135deg, #779fbb, #f0f9ff);
    color:#1a1a1a;
}

/* NAVBAR */
nav{
    position:sticky;
    top:0;
    z-index:999;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 10%;
    background: rgba(255, 255, 255, 0.945);
    backdrop-filter: blur(10px);
    transition:0.3s;
}

nav.scrolled{
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

nav ul{
    display:flex;
    gap:25px;
    list-style:none;
}

nav a{
    text-decoration:none;
    color:#04060c;
}

.burger{
    display:none;
    cursor:pointer;
}

/* HERO */
.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:80px 10% 60px;
}

/* ================= FOTO FIX ================= */
.hero-img{
    display:flex;
    justify-content:center;
    margin-top:40px;
}

.hero-img img{
    width:220px;
    height:220px; /* biar bulat sempurna */
    object-fit:cover;
    border-radius:50%;

    box-shadow:0 10px 30px rgba(59,130,246,0.4);

    animation:fadeIn 1.5s ease;
    transition:0.4s;
}

.hero-img img:hover{
    transform:scale(1.08) rotate(2deg);
    box-shadow:0 15px 40px rgba(37,99,235,0.6);
}

/* ANIMASI */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* ================================================= */

/* SECTION */
section{
    padding:80px 10%;
    border-bottom:1px solid rgba(0,0,0,0.08);
}

section:last-child{
    border-bottom:none;
}

/* ABOUT */
.about{
    display:flex;
    justify-content:center;
}

.about-container{
    max-width:800px;
    background:white;
    padding:40px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
    text-align:center;
}

.about h2{
    color:#2563eb;
    margin-bottom:15px;
}

.about p{
    color:#555;
    margin:10px 0;
    line-height:1.6;
}

.about-btn{
    display:inline-block;
    margin-top:20px;
    padding:10px 20px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    border-radius:8px;
}

.about-btn:hover{
    background:#1e40af;
}

/* CV */
.cv-container{
    display:flex;
    justify-content:center;
}

.cv-box{
    background:white;
    padding:30px;
    border-radius:15px;
    max-width:500px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.cv-box h2{
    color:#2563eb;
}

.cv-box p{
    color:#555;
    margin:15px 0;
}

.cv-btn{
    padding:10px 20px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    border-radius:8px;
}

/* SKILLS */
.skills-container{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.skill-box{
    flex:1;
    min-width:250px;
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.skill-box h3{
    color:#2563eb;
}

.skill-box li{
    list-style:none;
    margin:10px 0;
}

.skill-box i{
    margin-right:10px;
    color:#2563eb;
}

/* PROJECT & CERT */
.project-container,
.cert-container{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:center;
}

.project,
.cert{
    width:300px;
    background:white;
    padding:15px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.project:hover,
.cert:hover{
    transform:translateY(-8px);
}

.project img,
.cert img{
    width:100%;
    border-radius:10px;
}

/* CONTACT */
.contact{
    text-align:center;
}

.contact-container{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin-top:20px;
}

.contact-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:120px;
    height:120px;
    background:white;
    border-radius:15px;
    text-decoration:none;
    color:#2563eb;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.contact-item i{
    font-size:28px;
    margin-bottom:8px;
}

.contact-item:hover{
    transform:translateY(-8px);
    background:#2563eb;
    color:white;
}

/* FOOTER */
footer{
    background:#1e3a8a;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* RESPONSIVE */
@media(max-width:768px){

    .burger{
        display:block;
    }

    nav ul{
        position:absolute;
        top:70px;
        right:5%;
        background:white;
        flex-direction:column;
        width:200px;
        padding:20px;
        display:none;
        border-radius:10px;
        box-shadow:0 5px 15px rgba(0,0,0,0.1);
    }

    .hero{
        flex-direction:column;
        text-align:center;
    }

    .project,
    .cert{
        width:100%;
        max-width:350px;
    }

    .skills-container{
        flex-direction:column;
    }
}

.navMenu{
    display:flex;
    gap:25px;
}

@media(max-width:768px){
    .navMenu{
        position:absolute;
        top:70px;
        right:5%;
        background:white;
        flex-direction:column;
        width:200px;
        padding:20px;
        display:none;
        border-radius:10px;
        box-shadow:0 5px 15px rgba(0,0,0,0.1);
    }

    .navMenu.active{
        display:flex;
    }
}

.burger {
    display: none;
}

@media (max-width: 768px) {

    .burger {
        display: block;
    }

    .navMenu {
        display: none;
        position: absolute;
        top: 70px;
        right: 5%;
        background: white;
        flex-direction: column;
        width: 200px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .navMenu.active {
        display: flex;
    }
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: black;
    margin: 5px;
    border-radius: 2px;
}