/* --- CSS VARIABLES & RESET (TIDAK DIUBAH) --- */
:root {
    --bg-dark: #0f1115;
    --bg-card: rgba(30, 32, 40, 0.7);
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #a855f7; /* Purple */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --nav-height: 70px;
    --header-height: 80px; /* Variabel baru untuk tinggi header */
    --radius: 16px;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
    /* Update: Tambah padding-top agar konten tidak tertutup header yang mengambang */
    padding-top: calc(var(--header-height) + 1rem); 
    padding-bottom: calc(var(--nav-height) + 2rem);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- HEADER UPDATED (MENGAMBANG & BLUR) --- */
header {
    position: fixed; /* Mengambang */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 17, 21, 0.8); /* Gelap transparan */
    backdrop-filter: blur(20px); /* Efek Blur Kaca Modern */
    -webkit-backdrop-filter: blur(20px); /* Support Safari */
    border-bottom: 1px solid var(--border);
    z-index: 999; /* Pastikan di atas elemen lain */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    width: 100%;
    max-width: 1000px; /* Samakan dengan container utama */
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-logo-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: transform 0.3s;
}

.profile-logo-sm:hover { transform: scale(1.1); }

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* --- SECTIONS ANIMATION --- */
section {
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: -2rem; /* Kompensasi visual */
}

.profile-logo-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px var(--primary-glow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cta-btn:active { transform: scale(0.95); }

/* --- TOOLS GRID --- */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { color: var(--accent); }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s var(--ease), border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tool-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}
.tool-card:hover::before { left: 150%; }

/* --- ABOUT & STATS --- */
.stats-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CONTACT FORM --- */
.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 1rem; }

input, textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, textarea:focus { border-color: var(--primary); }

/* --- FIXED BOTTOM NAVIGATION --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    height: var(--nav-height);
    background: rgba(30, 32, 40, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.3s;
    position: relative;
    width: 60px;
    height: 100%;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active { color: var(--text-main); }
.nav-item.active i {
    color: var(--primary);
    transform: translateY(-5px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    transition: transform 0.5s var(--ease);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(90px); /* Diturunkan agar tidak ketutup header */ }
.toast i { color: var(--primary); }

@media (min-width: 768px) {
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 4rem; }
}
