:root{
    --blue:#2563eb;
    --blue-dark:#1d4ed8;
    --dark:#0f172a;
    --bg:#f5f7fb;
    --muted:#64748b;
}

html{
    scroll-behavior:smooth;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI, sans-serif;
}

body{
    background:var(--bg);
}

/* NAV */
nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 60px;
    background:var(--dark);
    color:white;
    position:sticky;
    top:0;
}

.logo{
    font-weight:800;
}

.nav-menu{
    display:flex;
    gap:12px;
    list-style:none;
    align-items:center;
}

.nav-menu a{
    color:#e5e7eb;
    text-decoration:none;
    transition:0.2s;
}

.nav-menu a:hover{
    color:white;
    opacity:0.8;
}

.nav-btn{
    padding:8px 14px;
    border-radius:10px;
    text-decoration:none;
    color:white;
    background:rgba(255,255,255,0.08);
}

.nav-btn:hover{
    background:rgba(255,255,255,0.2);
}

/* HERO */
.hero{
    padding:90px 60px;
    text-align:center;
    background:linear-gradient(135deg,var(--dark),#1e293b);
    color:white;
}

.hero h1{
    font-size:40px;
}

.hero p{
    opacity:0.8;
    margin-top:10px;
}

/* HERO BUTTON */
.hero-btn{
    margin-top:25px;
    display:flex;
    justify-content:center;
    gap:12px;
}

.btn-primary{
    background:var(--blue);
    color:white;
    padding:12px 18px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
}

.btn-primary:hover{
    background:var(--blue-dark);
}

.btn-secondary{
    border:2px solid white;
    color:white;
    padding:12px 18px;
    border-radius:12px;
    text-decoration:none;
}

.btn-secondary:hover{
    background:white;
    color:black;
}

/* SECTION */
section{
    padding:60px;
}

h2{
    text-align:center;
    margin-bottom:30px;
}

/* CARD */
.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:white;
    padding:20px;
    border-radius:16px;
    text-align:center;
    text-decoration:none;
    color:black;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.2s;
}

.card:hover{
    transform:translateY(-6px);
}

.card img{
    width:70px;
    margin-bottom:10px;
}

.card p{
    font-size:13px;
    color:var(--muted);
}

/* TENTANG */
.tentang{
    background:#f1f5f9;
    text-align:center;
}

/* FOOTER */
footer{
    text-align:center;
    padding:20px;
    background:var(--dark);
    color:white;
}

/* AVATAR */
.nav-avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#2563eb;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
}

/* MODAL */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
}

.modal-card{
    background:white;
    padding:25px;
    border-radius:12px;
    text-align:center;
}

.avatar-big{
    width:80px;
    height:80px;
    background:var(--blue);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.btn-modal.logout{
    display:block;
    margin-top:10px;
    padding:10px;
    background:crimson;
    color:white;
    text-decoration:none;
    border-radius:8px;
}

/* logo */
.logo-wrap{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo-img{
    width:38px;
    height:38px;
    object-fit:contain;
}

.logo-text{
    font-weight:800;
    letter-spacing:1px;
    color:white;
    font-size:18px;
}