*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:white;
    overflow-x:hidden;
}

/* NAVBAR */

.navbar{
    transition:all .3s ease;

    position:fixed;
    top:0;
    left:50%;
    transform:translateX(-50%);

    width:90%;
    max-width:1200px;
    height:80px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 35px;

    background:#0f172a;
    backdrop-filter:blur(12px);

    border-radius:0 0 15px 15px;
    box-shadow:0 5px 15px rgba(0,0,0,.3);

    z-index:99999;

    /* Tambahan */
    opacity:0;
    animation:fadeDown .8s ease forwards;
}

.navbar.scrolled{
    height:65px;
    background:rgba(15,23,42,.95);
    box-shadow:0 10px 25px rgba(0,0,0,.4);
}

.logo{
    display:flex;
    align-items:center;
    text-decoration:none;
    cursor:pointer;
}

.logo img{
    height:50px;
    width:auto;
    display:block;
    transition:all .3s ease;
}

.logo img:hover{
    transform:scale(1.08);
    filter:drop-shadow(0 0 8px rgba(56,189,248,.8));
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-weight:500;
    position:relative;
    transition:.3s;
}

.nav-links a:hover{
    color:#38bdf8;
}

.nav-links a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:#38bdf8;
    transition:.3s;
}

.nav-links a:hover::after{
    width:100%;
}

@keyframes fadeDown{
    from{
        opacity:0;
        transform:translate(-50%, -20px);
    }
    to{
        opacity:1;
        transform:translate(-50%, 0);
    }
}

/* SECTION */

section{
    min-height:100vh;
    padding:120px 80px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    scroll-margin-top:100px;
}

section h1{
    font-size:4rem;
    margin-bottom:20px;
}

section p{
    font-size:1.2rem;
    line-height:1.8;
    max-width:700px;
}

.hidden{
    opacity:0;
    transform:translateY(50px);
    transition:all .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* HOME */

#home{
    background:#0f172a;
    padding-top:220px;
}

#home h1{
    font-size:5rem;
    font-weight:700;
    line-height:1.1;

    opacity:0;
    animation:fadeUp 1s ease forwards;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

#home p{
    font-size:1.4rem;
    color:#94a3b8;

    opacity:0;
    animation:fadeUp 1s ease forwards;
    animation-delay:.5s;
}

/* ABOUT */

#about{
    background:#111827;
}

/* PORTFOLIO */

#experience{
    background:#1e293b;
}

/* CONTACT */

#contact{
    background:#111827;
}

/* RESPONSIVE */

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        height:auto;
        gap:15px;
        padding:15px;
    }

    .logo img{
        height:55px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    section{
        padding:120px 30px 50px;
    }

    section h1{
        font-size:2.5rem;
    }

    #home h1{
        font-size:3rem;
    }
}

