:root {
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: #1e293b; /* Slate 800 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8; /* Sky Blue */
    --accent-hover: #0ea5e9;
    --border: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }


/* =========================================
   NAVBAR FIXED & STYLING (Full Code)
   ========================================= */
nav { 
    position: fixed;       /* Membuat navbar mengapung diam */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;         /* Layer paling atas */
    padding: 15px 0;       
    
    /* Efek Kaca Gelap */
    background: rgba(15, 23, 42, 0.9); 
    backdrop-filter: blur(10px);        
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Mengatur agar Logo di kiri & Menu di kanan */
.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-weight: 700; 
    font-size: 1.2rem; 
    letter-spacing: 1px;
    color: var(--text-main);
}

/* Mengatur menu agar berjejer ke samping */
.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; /* Jarak antar menu */
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    transition: 0.3s; 
    font-weight: 500;
}

.nav-links a:hover { 
    color: var(--accent); 
}

/* Tombol Contact Me di pojok kanan navbar */
.nav-links .btn-primary {
    padding: 8px 20px; /* Ukuran tombol di navbar */
    font-size: 0.9rem;
}

/* --- JANGAN LUPA BAGIAN INI --- */
/* Dorong konten ke bawah supaya tidak ketutupan navbar */
body {
    padding-top: 80px; 
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--accent); }

/* Hero Section */
/* Hero Section Baru */
.hero {
    padding: 80px 0;
    min-height: 90vh; /* Agar full screen */
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Styling Foto Profil yang Elegan */
.image-box {
    width: 350px;
    height: 350px;
    border-radius: 30px; /* Sudut melengkung modern */
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border);
    /* Efek Glow di belakang foto */
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
    transform: rotate(3deg); /* Sedikit miring biar artsy */
    transition: 0.3s;
}

.image-box:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: var(--accent);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography Hero Update */
.hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Stats (Tambahan kecil di bawah teks) */
.stats {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}
.stat-item p {
    font-size: 0.8rem;
    margin: 0;
}
.section-padding {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    /* Membuat 3 kolom otomatis yang responsif */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Efek Hover: Card agak naik & border jadi biru */
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

/* Styling Ikon Besar di atas */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1); /* Biru transparan */
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.service-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Styling List Bullet */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd5e1; /* Warna teks agak terang dikit */
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Ikon centang kecil di list */
.service-list li i {
    color: var(--accent);
    margin-top: 4px; /* Supaya sejajar dengan baris pertama teks */
    font-size: 0.8rem;
}

/* Responsive: Di HP jadi 1 kolom */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 Kolom full ke bawah */
    }
    
    .service-card {
        padding: 25px;
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero { padding: 50px 0; text-align: center; }
    
    .hero-wrapper {
        flex-direction: column-reverse; /* Foto di atas teks saat mobile */
        gap: 30px;
    }

    .hero-text { margin-top: 20px; }
    
    .hero-btns { justify-content: center; }
    
    .stats { justify-content: center; }

    .image-box {
        width: 250px;
        height: 250px;
        transform: rotate(0deg); /* Luruskan saat mobile */
    }
    
    .hero h1 { font-size: 2.5rem; }
}

/* Projects Grid */
.projects { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); }

.project-grid {
    display: grid;
    /* GANTI 'auto-fit' MENJADI 'auto-fill' */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

.card-image { height: 200px; overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-image img { transform: scale(1.05); }

/* Overlay Icon */
.overlay {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}
.card:hover .overlay { opacity: 1; }
.btn-icon { background: white; color: var(--bg-dark); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.2rem; }

.card-content { padding: 25px; }
.category { color: var(--accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.card h3 { margin: 10px 0; font-size: 1.25rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag { background: #0f172a; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--border); }

.card-actions { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 15px; }
.link-btn { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 600; transition: 0.2s; }
.link-btn:hover { color: var(--accent); }
.text-muted { color: var(--text-muted); font-weight: 400; }

/* =========================================
   MODERN FOOTER STYLING
   ========================================= */
footer {
    background: #0b1120; /* Warna lebih gelap dari body agar kontras */
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
    position: relative;
}

/* 1. Call to Action (CTA) Section */
.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.cta-text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
}

.cta-btn i {
    margin-left: 8px;
}

/* Garis Pemisah */
.footer-divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin-bottom: 40px;
    opacity: 0.5;
}

/* 2. Footer Grid Content */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Kolom 1 lebih lebar */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
    letter-spacing: 1px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
    font-size: 0.95rem;
}

/* Judul Kecil (Quick Links / Connect) */
.footer-links h4, .footer-social h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* List Link */
.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px; /* Efek geser dikit pas di hover */
}

/* Social Icons (Bulat) */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%; /* Bulat */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 1rem;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* 3. Copyright Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive Footer untuk Mobile */
@media (max-width: 768px) {
    .footer-cta {
        text-align: center;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Update Layout Footer jadi 2 Kolom (Kiri & Kanan mentok) */
.footer-content {
    display: flex;                /* Pakai Flexbox biar lebih mudah atur kiri-kanan */
    justify-content: space-between; /* Dorong ke ujung kiri dan kanan */
    align-items: flex-start;      /* Rata atas */
    gap: 40px;
    margin-bottom: 40px;
}

/* Membatasi lebar teks brand agar tidak terlalu panjang */
.footer-brand {
    max-width: 50%; 
}

/* Memastikan kolom Connect ada di kanan */
.footer-social {
    text-align: right; /* Teks "Connect" rata kanan */
}

/* Ikon sosmed rata kanan juga */
.social-icons {
    display: flex;
    justify-content: flex-end; /* Ikon berjejer dari kanan */
    gap: 15px;
    flex-wrap: wrap; /* Biar turun ke bawah kalau layar sempit */
}

/* --- MOBILE RESPONSIVE (Tetap di tengah kalau di HP) --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Jadi atas bawah */
        text-align: center;
        align-items: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }

    .footer-social {
        text-align: center;
    }

    .social-icons {
        justify-content: center; /* Ikon balik ke tengah */
    }
}
}

/* Animation Utils */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- FILTER BUTTONS STYLE --- */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px; /* Jarak ke grid project */
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

/* Tombol yang sedang aktif/diklik */
.filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Animasi saat item difilter */
.project-item {
    transition: all 0.4s ease; /* Smooth animation */
}

/* Class untuk menyembunyikan item (dipakai JS nanti) */
.project-item.hide {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
}
/* --- SEMBUNYIKAN MENU DI HP (MOBILE) --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Menu hilang di layar kecil */
    }
    
    /* Opsional: Agar Logo tetap di tengah atau rapi */
    .nav-wrapper {
        justify-content: center; /* Logo jadi di tengah */
    }
}