/* ==== 1. PENGATURAN DASAR & WARNA ==== */
:root {
    --primary: #00d2ff;      /* Biru Neon */
    --secondary: #928DAB;    /* Ungu Kalem */
    --bg-gradient: linear-gradient(135deg, #1F1C2C, #928DAB); /* Tema Gelap Elegan */
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-color);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
}

* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ==== 2. EFEK KACA (GLASSMORPHISM) ==== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

/* ==== 3. NAVBAR ==== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 90%;
    left: 5%;
    top: 20px;
    z-index: 100;
    border-radius: 50px;
}

.nav-logo { font-size: 1.5rem; font-weight: 700; color: white; }
.nav-menu { display: flex; list-style: none; gap: 2rem; margin: 0; }
.nav-link { color: rgba(255,255,255,0.8); font-weight: 500; transition: 0.3s; }
.nav-link:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px 0; background: white; }

/* ==== 4. LAYOUT UTAMA ==== */
.section {
    min-height: 100vh;
    padding: 100px 20px 50px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h2 { font-size: 2.5rem; margin-bottom: 40px; color: var(--primary); }

/* ==== 5. BAGIAN BERANDA (HERO) ==== */
.sapaan { font-size: 1.2rem; margin-bottom: 0; color: #ccc; }
.hero-content h1 { font-size: 4rem; margin: 10px 0; line-height: 1.2; }
.highlight {
    background: linear-gradient(to right, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.jabatan { font-size: 1.5rem; margin-bottom: 30px; color: rgba(255,255,255,0.8); }

/* Tombol */
.hero-buttons { display: flex; gap: 15px; justify-content: center; }
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #1F1C2C;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--primary);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(0, 210, 255, 0.6); }
.cta-button.outline {
    background: transparent;
    color: white;
}
.cta-button.outline:hover { background: rgba(255,255,255,0.1); }

/* ==== 6. BAGIAN TENTANG SAYA (LAYOUT BARU) ==== */
.about-container {
    display: flex; /* Foto di kiri, Teks di kanan */
    align-items: center;
    gap: 40px;
    padding: 40px;
    text-align: left;
    max-width: 900px;
}

.about-img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Foto bulat */
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.about-text h3 { font-size: 2rem; margin-top: 0; color: var(--primary); }
.about-text p { line-height: 1.8; color: #eee; }

/* Tag Skill */
.skills { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==== 7. PORTOFOLIO ==== */
.grid-portofolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}
.kartu {
    padding: 20px;
    text-align: left;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.kartu:hover { transform: translateY(-10px); background: rgba(255,255,255, 0.15); }
.kartu-img {
    height: 160px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    margin-bottom: 15px;
}
.kartu-content h3 { color: var(--primary); margin-bottom: 5px; }
.link-proyek { color: white; font-weight: 600; margin-top: auto; font-size: 0.9rem;}

/* ==== 8. KONTAK ==== */
.form-kontak {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
input, textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    color: white;
    font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
.cta-button.full-width { width: 100%; cursor: pointer; }

/* Footer */
footer { padding: 20px; opacity: 0.6; font-size: 0.9rem; }

/* ==== 9. ANIMASI SCROLL ==== */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.show { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Staggered delay untuk grid */
.grid-portofolio .kartu:nth-child(2) { transition-delay: 0.2s; }
.grid-portofolio .kartu:nth-child(3) { transition-delay: 0.4s; }

/* ==== 10. RESPONSIVE (HP) ==== */
@media (max-width: 768px) {
    .navbar { width: 100%; left: 0; top: 0; border-radius: 0; background: rgba(31, 28, 44, 0.95); }
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        left: -100%; top: 60px;
        flex-direction: column;
        width: 100%;
        background: rgba(31, 28, 44, 0.98);
        padding: 20px;
        transition: 0.3s;
    }
    .nav-menu.aktif { left: 0; }
    
    /* Layout Berubah di HP */
    .hero-content h1 { font-size: 2.5rem; }
    .about-container { flex-direction: column; text-align: center; }
    .skills { justify-content: center; }
    .hero-buttons { flex-direction: column; }
}