/* ==========================
   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:#f4f8fc;
    color:#333;
    line-height:1.6;
}

/* ==========================
NAVBAR
========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#0f172a;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    z-index:999;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
}

.logo{
    color:#fff;
    font-size:25px;
    font-weight:700;
    letter-spacing:1px;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:30px;
}

nav ul li a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
    font-weight:500;
}

nav ul li a:hover{
    color:#38bdf8;
}

.menu-btn{
    display:none;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

/* ==========================
HERO
========================== */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:120px 8% 80px;
    gap:40px;
}

.hero-text{
    flex:1;
}

.hero-text h1{
    font-size:55px;
    margin-bottom:15px;
}

.hero-text span{
    color:#2563eb;
}

.hero-text p{
    font-size:18px;
    color:#555;
    margin-bottom:30px;
}

.button{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn,
.btn2{
    padding:14px 28px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn{
    background:#2563eb;
    color:white;
}

.btn:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}

.btn2{
    border:2px solid #2563eb;
    color:#2563eb;
}

.btn2:hover{
    background:#2563eb;
    color:#fff;
}

.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    width:350px;
    height:350px;
    object-fit:cover;
    border-radius:50%;
    border:8px solid white;
    box-shadow:0 15px 40px rgba(0,0,0,.2);
}

/* ==========================
SECTION
========================== */

section{
    padding:90px 8%;
}

section h2{
    text-align:center;
    margin-bottom:40px;
    font-size:38px;
    color:#0f172a;
}

/* ==========================
ABOUT
========================== */

#tentang p{
    max-width:900px;
    margin:auto;
    text-align:center;
    font-size:18px;
}

/* ==========================
PENDIDIKAN
========================== */

.card-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.card{
    background:white;
    padding:35px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    color:#2563eb;
    margin-bottom:15px;
}

/* ==========================
KONTAK
========================== */

.contact{
    max-width:600px;
    margin:auto;
    text-align:center;
}

.contact p{
    margin:15px 0;
    font-size:18px;
}

.contact i{
    color:#2563eb;
    margin-right:10px;
    font-size:20px;
}

/* ==========================
KESAN
========================== */

#kesan{
    background:#fff;
}

#kesan p{
    max-width:900px;
    margin:auto;
    text-align:center;
    font-size:18px;
}

/* ==========================
WEBSITE
========================== */

.website{
    background:linear-gradient(135deg,#2563eb,#0ea5e9);
    color:white;
    text-align:center;
}

.website h2{
    color:white;
}

.website p{
    margin-bottom:30px;
}

.website .btn{
    background:white;
    color:#2563eb;
}

.website .btn:hover{
    background:#e2e8f0;
}

/* ==========================
FOOTER
========================== */

footer{
    background:#0f172a;
    color:white;
    text-align:center;
    padding:25px;
}

/* ==========================
ANIMASI
========================== */

.card,
.hero-image img,
.hero-text{
    animation:fadeUp 1s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:900px){

.hero{
    flex-direction:column-reverse;
    text-align:center;
}

.hero-image img{
    width:260px;
    height:260px;
}

.hero-text h1{
    font-size:40px;
}

nav{
    display:none;
}

.menu-btn{
    display:block;
}

.button{
    justify-content:center;
}

}

@media(max-width:500px){

.hero-text h1{
    font-size:32px;
}

section h2{
    font-size:30px;
}

.logo{
    font-size:20px;
}

.btn,
.btn2{
    width:100%;
}

}