/* --- Variables & Reset --- */
:root {
    --primary: #2d3436;      /* Hitam Elegan */
    --accent: #0984e3;       /* Biru Laut - Sedikit saja */
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-section: #f5f6fa;
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.6;
}

/* --- Layout Utils --- */
.container { width: 90%; max-width: 1000px; margin: auto; }
.section-pad { padding: 5rem 0; }
.bg-light { background-color: var(--bg-section); }
.text-center { text-align: center; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- Navbar --- */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgb(226, 226, 226);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid #eee;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); }
.btn-nav { color: var(--text-main) !important; font-weight: 600; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 0.8rem 1.6rem; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: black; transform: translateY(-2px); }
.btn-outline { border: 1px solid #ddd; padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* --- Hero --- */
.hero-section {
    padding: 10rem 0 8rem; /* Padding diperbesar sedikit */
    position: relative;
    /* GANTI URL INI dengan foto pilihan Anda */
    background-image: url('/IMG/03.jpg'); 
    background-size: cover;
    background-position: center;
    color: white; /* Ubah warna teks jadi putih agar terbaca */
    margin-top: -60px; /* Menarik ke atas agar berada di belakang navbar transparan */
}

/* Overlay Gelap agar teks terbaca di atas gambar */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Lapisan hitam transparansi 60% */
    z-index: 1;
}

/* Memastikan konten berada di atas overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Penyesuaian warna elemen di dalam Hero agar putih */
.hero-section .hero-tag, 
.hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-section .hero-title {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Sedikit bayangan pada teks */
}
.hero-tag { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 1rem; }
.hero-title { font-size: 3rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero-subtitle { max-width: 600px; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* --- Project Card (Minimalist) --- */
.section-title { font-size: 1.8rem; margin-bottom: 2.5rem; }

.project-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.project-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.project-header h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.project-desc { color: var(--text-muted); font-size: 0.95rem; }

.divider { border: 0; border-top: 1px solid #eee; margin: 1.5rem 0 2rem; }

.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; }

.project-content h4, .project-features h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: var(--text-muted); }
.project-content p { font-size: 0.95rem; color: var(--text-main); margin-bottom: 1rem; }

/* Styling List Fitur */
.feature-list { list-style: none; }
.feature-list li { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.feature-list .icon { font-size: 1.2rem; background: #f0f2f5; height: 40px; width: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.feature-list strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.feature-list p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Tech Stack Tags */
.tech-stack { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed #eee; }
.tech-stack span { font-size: 0.75rem; background: #f0f2f5; padding: 0.3rem 0.8rem; border-radius: 4px; color: var(--text-muted); font-weight: 500; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .nav-links { display: none; } /* Hide nav on mobile for simple demo */
}
/* --- About Section Styles --- */

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Foto lebih kecil dari teks */
    gap: 4rem;
    align-items: center; /* Posisi vertikal tengah */
}

/* Styling Foto */
.about-image-wrapper {
    position: relative;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 20px 20px 0px var(--bg-section); /* Efek bayangan kotak unik */
    filter: grayscale(100%); /* Membuat foto hitam putih agar minimalis */
    transition: all 0.5s ease;
}

.profile-img:hover {
    filter: grayscale(0%); /* Berwarna saat di-hover */
    transform: translateY(-5px);
    box-shadow: 15px 15px 0px #e1e1e1;
}

/* Styling Teks */
.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.about-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.bio-paragraph {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Styling Detail Data Diri */
.bio-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsif */
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Social Links */
.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.social-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* --- Responsive untuk About --- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Tumpuk vertikal di HP */
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 300px; /* Batasi lebar foto di HP */
        margin: 0 auto; /* Tengah */
    }

    .profile-img {
        box-shadow: 15px 15px 0px var(--bg-section);
    }
    
    .about-title {
        font-size: 1.8rem;
    }
}
/* --- Contact Card (ID Style) --- */

.contact-card-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.contact-card {
    background: white;
    width: 100%;
    max-width: 600px; /* Ukuran lebar mirip kartu nama yang diperbesar */
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* Bayangan lembut agar "mengambang" */
    overflow: hidden; /* Agar garis header tidak keluar radius */
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px); /* Efek naik sedikit saat di-hover */
}

/* Garis Hiasan di Atas (Aksen Warna) */
.card-header-stripe {
    height: 8px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    width: 100%;
}

.card-body {
    display: flex;
    padding: 2.5rem;
    gap: 2.5rem;
    align-items: center;
}

/* Bagian Foto */
.card-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.card-photo {
    width: 120px;
    height: 120px;
    border-radius: 12px; /* Kotak dengan sudut tumpul (seperti pas foto KTP) */
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #eee;
}

.status-badge {
    font-size: 0.7rem;
    background: #e6f7e6;
    color: #27ae60;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bagian Informasi Teks */
.card-info {
    flex-grow: 1;
}

.info-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed #eee;
    padding-bottom: 1rem;
}

.id-label {
    font-size: 0.65rem;
    color: #b2bec3;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.card-name {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    line-height: 1;
}

.card-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-details {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.info-row .icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Tombol Aksi di Kartu */
.card-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-card {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
    flex: 1; /* Tombol membagi rata lebar */
}

.btn-card.primary {
    background-color: var(--primary);
    color: white;
}

.btn-card.primary:hover {
    background-color: black;
}

.btn-card.secondary {
    background-color: transparent;
    border: 1px solid #ddd;
    color: var(--text-main);
}

.btn-card.secondary:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* --- Responsive untuk Kartu --- */
@media (max-width: 600px) {
    .card-body {
        flex-direction: column; /* Foto di atas, teks di bawah */
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .info-row {
        justify-content: center; /* Tengah secara horizontal */
    }
    
    .card-photo {
        width: 100px;
        height: 100px;
    }
    
    .card-actions {
        flex-direction: column; /* Tombol atas-bawah di HP */
        width: 100%;
    }
}
/* --- SCROLL ANIMATION CSS --- */

/* Keadaan Awal: Tersembunyi & Turun Sedikit */
.reveal {
    opacity: 0;
    transform: translateY(50px); /* Geser ke bawah 50px */
    transition: all 1s cubic-bezier(0.5, 0, 0, 1); /* Transisi halus */
    filter: blur(5px); /* Sedikit blur agar efek fade lebih dramatis */
}

/* Keadaan Aktif: Muncul & Kembali ke Posisi Asli */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- Variasi Delay (Agar elemen muncul bergantian) --- */
/* Gunakan ini jika ada elemen berjejer */
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }

.project-image-container {
    width: 100%;
    /* Membuat rasio gambar tetap 16:9 (widescreen) agar konsisten */
    aspect-ratio: 16 / 9; 
    border-radius: 12px; /* Sudut membulat agar serasi dengan kartu */
    overflow: hidden; /* Agar gambar tidak keluar dari sudut membulat */
    border: 1px solid #eee; /* Garis tepi halus */
    background-color: #f5f6fa; /* Warna loading sementara */
    position: relative;
    /* Margin bawah agar tidak nempel dengan teks tantangan */
    margin-bottom: 2rem; 
}

.project-img {
    width: 100%;
    height: 100%;
    /* Object-fit cover memastikan gambar memenuhi kotak tanpa gepeng */
    object-fit: cover; 
    object-position: top center; /* Fokus gambar mulai dari bagian atas website */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animasi halus */
}

/* Efek Hover: Zoom in sedikit saat mouse di atas gambar */
.project-image-container:hover .project-img {
    transform: scale(1.03); /* Perbesar 3% */
    cursor: pointer;
}

/* Penyesuaian Mobile */
@media (max-width: 768px) {
    .project-image-container {
        border-radius: 8px; /* Sudut sedikit lebih kecil di HP */
        margin-bottom: 1.5rem;
    }
}