/* =========================
   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:#121c35;
    color:#fff;
}

/* =========================
   NAVBAR
========================= */

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #0b1120;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo{
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.navbar{
    display: flex;
    gap: 40px;
}

.navbar a{
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: .3s;
}

.navbar a:hover{
    color: #60a5fa;
}
/* =========================
   HERO
========================= */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:170px 8% 80px;
    gap:70px;
}

.hero-text{
    flex:1;
}

.hero-text h3{
    color:#60a5fa;
    margin-bottom:10px;
}

.hero-text h1{
    font-size:60px;
}

.hero-text span{
    color:#60a5fa;
}

.hero-text h4{
    margin:15px 0;
    color:#cbd5e1;
}

.hero-text p{
    color:#94a3b8;
    line-height:1.8;
    margin-bottom:25px;
}

.hero{
    padding-top: 120px;
}

.social a{
    width:45px;
    height:45px;
    background:#121c35;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    margin-right:12px;
    color:white;
    text-decoration:none;
    transition:.3s;
}

.social a:hover{
    background:#60a5fa;
    transform:translateY(-5px);
}

.hero-image{
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{
    width:300px;          /* ukuran foto */
    height:300px;         /* harus sama dengan width */
    object-fit:cover;     /* agar foto tidak gepeng */
    border-radius:50%;    /* membuat bulat */
    border:5px solid #60a5fa;
    box-shadow:0 0 25px rgba(96,165,250,.5);
}

/* =========================
   SECTION
========================= */

section{
    padding:90px 8%;
}

section h2{
    text-align:center;
    font-size:38px;
    margin-bottom:50px;
    color:#60a5fa;
}

/* =========================
   ABOUT
========================= */

.about{
    background:#121c35;
    padding:100px 0;
}

.about-container{
    width:90%;
    max-width:500px;
    margin:auto;
    text-align:center;
}

.about-photo{
    width:280px;
    height:280px;
    object-fit:cover;
    border-radius:25px;
    border:4px solid #444;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

.about h2{
    color:#60a5fa;
    margin:35px 0;
    font-size:40px;
}

.about-card{
    background:#60a5fa;
    padding:25px;
    border-radius:25px;
    margin-top:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.about-card.small{
    width:80%;
    margin:25px auto;
}

.about-card p{
    color:#000000;
    line-height:1.8;
}

.social-title{
    margin-top:40px;
    color:#60a5fa;
}

.social-about{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:20px;
}

.social-about a{
    width:70px;
    height:70px;
    background:white;
    border-radius:15px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    text-decoration:none;
    color:#333;
    transition:.3s;
}

.social-about a:hover{
    transform:translateY(-8px);
}

/* =========================
   PROJECT
========================= */

.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.project-card{
    background:#1f439c;
    border-radius:20px;
    overflow:hidden;
}

.project-card img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    display:block;
}

.project-card h3{
    display:block;
    color:#fff;
    font-size:24px;
    font-weight:600;
    padding:20px;
    margin:0;
}

.project-card p{
    color:#cbd5e1;
    padding:0 20px 20px;
    margin:0;
    line-height:1.7;
}
/* =========================
   SKILLS
========================= */

.skills{
    padding: 100px 10%;
}

.skills h2{
    text-align: center;
    font-size: 45px;
    margin-bottom: 40px;
}

.skills-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 25px;
}

.skill-card{
    background: #60a5fa;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: .3s;
}

.skill-card:hover{
    transform: translateY(-10px);
}

.skill-card img{
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
}

.skill-card h3{
    margin-bottom: 10px;
    color: #111;
}

.skill-card p{
    color: #111;
    font-size: 15px;
}

/* =========================
   HOBBY
========================= */

.hobby-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:25px;
}

.hobby-card{
    background:#1f439c;
    padding:35px;
    text-align:center;
    border-radius:20px;
    transition:.3s;
}

.hobby-card:hover{
    background:#1e3a8a;
}

.hobby-card i{
    font-size:40px;
    color:#60a5fa;
    margin-bottom:15px;
}

/* =========================
   CONTACT
========================= */

.contact{
    padding:100px 8%;
    text-align:center;
}

.contact-card{
    max-width:550px;
    margin:auto;
    background:#1f2937;
    border-radius:20px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.contact-item{
    display:flex;
    align-items:center;
    gap:20px;
    margin:25px 0;
    text-align:left;
}

.contact-item i{
    width:60px;
    height:60px;
    min-width:60px;
    min-height:60px;
    border-radius:50%;
    background:#3b82f6;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    color:white;
    flex-shrink:0;
}

.contact-item h4{
    margin-bottom:5px;
}

.contact-item p{
    color:#cbd5e1;
}

.contact-btn{
    display:inline-block;
    margin-top:25px;
    padding:12px 30px;
    background:#3b82f6;
    color:white;
    text-decoration:none;
    border-radius:30px;
    transition:.3s;
}

.contact-btn:hover{
    background:#2563eb;
    transform:translateY(-3px);
}

/* =========================
   FOOTER
========================= */

footer{
    text-align:center;
    padding:25px;
    background:#121c35;
    color:#94a3b8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px){

    .header{
        padding:15px 20px;
        justify-content:center;
    }

    .logo{
        width:100%;
        text-align:center;
        font-size:28px;
        margin-bottom:15px;
    }

    .navbar{
        width:100%;
        display:flex;
        justify-content:center;
        flex-wrap:wrap;
        gap:15px;
    }

    .navbar a{
        font-size:15px;
    }

    .hero{
        flex-direction:column-reverse;
        text-align:center;
        padding:180px 20px 70px;
    }

    .hero-text h1{
        font-size:42px;
    }

    .hero-image img{
        width:220px;
        height:220px;
    }
}

.contact-item{
    align-items:center;
}

.contact-item i{
    flex-shrink:0;
}
/* Tombol Scroll Atas */

#topBtn{
    position:fixed;
    right:30px;
    bottom:30px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#3b82f6;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    display:none;
    transition:.3s;
    z-index:999;
}

#topBtn:hover{
    transform:scale(1.1);
    background:#2563eb;
}

.section-line{
    width: 250px;
    height: 4px;
    background: linear-gradient(to right,#3b82f6,#8b5cf6);
    margin: 60px auto;
    border-radius: 50px;
    box-shadow: 0 0 15px #60a5fa;
}

.slide-text{
    opacity: 0;
    transform: translateX(-100px);
    animation: slideIn 1.5s ease forwards;
}

@keyframes slideIn{
    0%{
        opacity: 0;
        transform: translateX(-100px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width:768px){

    .project-container{
        grid-template-columns:1fr;
    }

    .project-card img{
        aspect-ratio:16/9;
        height:auto;
    }

    .project-card h3{
        font-size:22px;
        padding:15px;
    }

    .project-card p{
        padding:0 15px 20px;
        font-size:15px;
    }
}