/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
    scroll-behavior:smooth;
}

body{
    background:linear-gradient(135deg,#050b17,#08172c,#0d2342);
    color:white;
}

/* NAVBAR */
nav{
    width:100%;
    padding:18px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:1000;
    backdrop-filter:blur(15px);
    background:rgba(8,23,44,0.8);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

nav h2{
    color:#4da6ff;
    font-size:28px;
    font-weight:700;
}

nav ul{
    display:flex;
    list-style:none;
    gap:25px;
}

nav ul li a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover{
    color:#4da6ff;
}

/* HERO */
.hero{
    min-height:90vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:60px 8%;
    gap:50px;
}

.hero-text{
    flex:1;
}

.hero-text p:first-child{
    color:#4da6ff;
    font-size:18px;
}

.hero-text h1{
    font-size:60px;
    margin:15px 0;
    line-height:1.2;
}

.hero-text span{
    color:#4da6ff;
}

.hero-text p{
    color:#d6d6d6;
    line-height:1.8;
}

.hero img{
    width:300px;
    border-radius:50%;
    border:5px solid #4da6ff;
    box-shadow:
    0 0 20px #4da6ff,
    0 0 30px rgba(77,166,255,.5);
}

/* BUTTON */
.btn{
    display:inline-block;
    margin-top:25px;
    padding:14px 30px;
    text-decoration:none;
    background:linear-gradient(45deg,#4da6ff,#2563eb);
    color:white;
    border-radius:50px;
    font-weight:600;
    transition:.4s;
}

.btn:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 20px rgba(77,166,255,.4);
}

/* SECTION */
section{
    padding:80px 8%;
}

.title{
    text-align:center;
    margin-bottom:50px;
}

.title h2{
    font-size:40px;
    color:#4da6ff;
    position:relative;
}

.title h2::after{
    content:'';
    width:80px;
    height:4px;
    background:#4da6ff;
    position:absolute;
    bottom:-10px;
    left:50%;
    transform:translateX(-50%);
}

/* ABOUT */
.about{
    display:flex;
    align-items:center;
    gap:50px;
    flex-wrap:wrap;
}

.about img{
    width:300px;
    border-radius:20px;
    border:3px solid rgba(77,166,255,.5);
}

.about-text{
    flex:1;
}

.about-text p{
    line-height:1.9;
    color:#d6d6d6;
}

/* SKILL */
.skill{
    margin-top:25px;
}

.skill p{
    margin-bottom:8px;
    font-weight:500;
}

.bar{
    width:100%;
    height:12px;
    background:#15263d;
    border-radius:30px;
    overflow:hidden;
}

.fill{
    height:100%;
    border-radius:30px;
    background:linear-gradient(
    90deg,
    #4da6ff,
    #2563eb
    );
}

/* PROJECT */
.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.card{
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:20px;
    overflow:hidden;
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 10px 30px rgba(77,166,255,.2);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card h3{
    padding:15px;
    color:#4da6ff;
}

.card p{
    padding:0 15px 20px;
    color:#d6d6d6;
}

/* CONTACT */
.contact{
    text-align:center;
    background:rgba(255,255,255,.04);
    border-radius:20px;
    backdrop-filter:blur(10px);
}

.contact p{
    margin:15px 0;
    color:#d6d6d6;
    font-size:17px;
}

/* FOOTER */
footer{
    text-align:center;
    padding:25px;
    margin-top:50px;
    background:#07111f;
    border-top:1px solid rgba(255,255,255,.08);
}

footer p{
    color:#aaa;
}

/* SCROLLBAR */
::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#08172c;
}

::-webkit-scrollbar-thumb{
    background:#4da6ff;
    border-radius:20px;
}

/* RESPONSIVE */
@media(max-width:768px){

nav{
    flex-direction:column;
    gap:15px;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
}

.hero{
    flex-direction:column-reverse;
    text-align:center;
}

.hero-text h1{
    font-size:42px;
}

.hero img{
    width:250px;
}

.about{
    text-align:center;
    justify-content:center;
}

.about img{
    width:250px;
}

.title h2{
    font-size:32px;
}

}
body{
    margin:0;
    padding:0;
    overflow:hidden; /* Menghilangkan scroll */
    height:100vh;
    background:#081b29;
    color:white;
}

.page{
    display:none;
    height:calc(100vh - 80px); /* Tinggi layar dikurangi navbar */
    overflow:auto;
    padding:30px 8%;
}

.page.active{
    display:block;
}