:root {
    --bg-base: #f5f5f7; /* Background abu-abu terang standar iOS */
    --text-main: #1d1d1f; /* Hitam khas tipografi Apple */
    --text-muted: #86868b;
    --accent: #0071e3; /* Biru khas iOS */
    
    /* Variabel Liquid Glass Terang */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

/* === MENGHILANGKAN SCROLLBAR === */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, dan Edge */
}

a { 
    text-decoration: none; 
    color: inherit; 
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex; 
    justify-content: center;
    position: relative; 
    overflow-x: hidden;
}

/* === HERO BG TERKUNCI (TIDAK BISA DISCROLL) === */
.hero-bg {
    position: fixed; /* Terkunci diam di layar saat halaman digulir */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 55vh;
    background-size: cover; 
    background-position: center 15%; 
    z-index: 1;
}

/* Gradien menyatu halus ke tema terang */
.hero-gradient {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(245, 245, 247, 0) 0%, 
        rgba(245, 245, 247, 0.4) 45%, 
        rgba(245, 245, 247, 0.9) 80%,
        #f5f5f7 100%
    );
}

/* === LAYOUT KONTAINER KONTEN === */
.app-container {
    width: 100%; 
    max-width: 460px; 
    padding: 0 24px 120px 24px;
    position: relative; 
    z-index: 10; 
    display: flex; 
    flex-direction: column;
    margin-top: 38vh; /* Jarak pas agar foto atas tetap terlihat luas */
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === HEADER & PROFIL === */
.profile-header { 
    text-align: center; 
    margin-bottom: 24px; 
}

.profile-header h1 { 
    font-size: 1.9rem; 
    font-weight: 700; 
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.username { 
    font-size: 0.95rem; 
    color: var(--accent); 
    font-weight: 500;
    margin-top: 2px;
}

/* === STATS === */
.stats-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 28px; 
    padding: 0 16px; 
}

.stat-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.stat-number { 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: var(--text-main);
}

.stat-label { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* === LIQUID GLASS FORMULA (IOS LIGHT) === */
.glass-lens {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* === TOMBOL AKSI === */
.action-row { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 28px; 
}

.btn-follow {
    flex: 1; 
    border-radius: 100px; 
    background-color: var(--text-main); /* Tombol hitam elegan khas Apple */
    color: #ffffff;
    text-align: center; 
    padding: 13px 24px; 
    font-weight: 600;
    font-size: 0.95rem;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-follow:hover { 
    opacity: 0.9;
    transform: scale(0.98); 
}

.btn-icon {
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    color: var(--text-main);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-icon:hover { 
    transform: scale(1.05); 
    background: rgba(255, 255, 255, 0.8);
}

/* === BIO BOX === */
.bio-box { 
    border-radius: 20px; 
    padding: 18px 20px; 
    margin-bottom: 24px; 
}

.bio-box p { 
    font-size: 0.9rem; 
    line-height: 1.55; 
    color: #48484a; 
}

/* === GRID PORTOFOLIO === */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}

.grid-item { 
    position: relative; 
    aspect-ratio: 4/5; 
    border-radius: 18px; 
    overflow: hidden; 
    background-color: #e5e5ea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.grid-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
}

.grid-item:hover img { 
    transform: scale(1.04); 
}

.grid-label {
    position: absolute; 
    bottom: 8px; 
    left: 8px; 
    padding: 6px 12px;
    border-radius: 100px; 
    font-size: 0.7rem; 
    font-weight: 600;
    color: var(--text-main);
}

/* === BOTTOM NAVIGATION KAPSUL (LIQUID GLASS) === */
.bottom-nav {
    position: fixed; 
    bottom: 14px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 88%; 
    max-width: 380px; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 10px 22px; 
    border-radius: 100px; 
    z-index: 100;
}

.nav-item {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 3px;
    color: var(--text-muted); 
    background: none; 
    border: none; 
    cursor: pointer; 
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-item svg { 
    width: 21px; 
    height: 21px; 
    stroke-width: 1.7; 
}

.nav-item span { 
    font-size: 0.65rem; 
    font-weight: 500; 
}

.nav-item:hover { 
    color: var(--text-main); 
}

.nav-item.active { 
    color: var(--accent); 
}

.nav-item.active svg { 
    stroke-width: 2.2; 
}