/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables for easy color themeing */
:root {
    --bg-primary: #121828;
    --bg-secondary: #1C2333;
    --color-primary: #FFFFFF;
    --color-secondary: #a9b3ce;
    --color-accent: #00A9FF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--color-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: rgba(28, 35, 51, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a3245;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary); /* Warna putih untuk nama utama */
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1.1; /* Merapatkan jarak antar baris */
    text-align: left;
}

.nav-brand .tagline {
    display: block; /* Membuat tagline pindah ke baris baru */
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem; /* Ukuran font lebih kecil */
    font-weight: 400; /* Tulisan lebih tipis */
    color: var(--color-secondary); /* Warna abu-abu kebiruan yang elegan */
    letter-spacing: 1.5px; /* Jarak antar huruf agar lebih berkelas */
    text-transform: uppercase; /* Membuatnya menjadi huruf kapital */
}

.nav-links a {
    color: var(--color-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 60px; /* Offset for fixed navbar */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 169, 255, 0.3);
}

/* Projects Section */
.proyek-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.proyek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.proyek-card {
    background-color: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.proyek-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proyek-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.card-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2a3245;
    color: var(--color-primary);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.card-links a:hover {
    background-color: var(--color-accent);
}

.card-links a i {
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid #2a3245;
}

footer p {
    color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .nav-links {
        display: none; /* Simple hiding for mobile, can be improved with a hamburger menu */
    }
}
/* Styling untuk Modal Pop-up */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: none; /* Sembunyi secara default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex; /* Tampilkan saat aktif */
}

.modal-content {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slide-down 0.4s ease-out;
    
    /* Aturan untuk Scroll */
    max-height: 85vh; 
    overflow-y: auto; 
    
    /* -- Tambahan untuk Sembunyikan Scrollbar -- */
    scrollbar-width: none; /* Untuk Firefox */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--color-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-body img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-body h2 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.modal-body p {
    color: var(--color-secondary);
    margin-bottom: 25px;
}

.modal-footer {
    text-align: right;
}

/* Animasi untuk modal */
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Di akhir file assets/style.css */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--bg-content);
    color: var(--color-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--bg-content);
    color: var(--color-primary);
}

.filter-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

/* Transisi untuk Isotope */
/* GANTI BLOK LAMA ANDA DENGAN INI */
.proyek-grid {
    /* Properti display: grid; dan lainnya dihapus */
    transition: height 0.4s ease-out;
}
/* GANTI BLOK LAMA ANDA DENGAN INI */
.proyek-card {
    background-color: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;

    /* -- PERUBAHAN UTAMA DI SINI -- */
    width: calc(33.333% - 30px); /* Untuk 3 kolom */
    margin: 0 15px 30px;       /* Memberi jarak antar kartu */
}

/* Tambahkan ini untuk membuat kartu responsif */
@media (max-width: 992px) {
    .proyek-card {
        width: calc(50% - 30px); /* Jadi 2 kolom di tablet */
    }
}

@media (max-width: 576px) {
    .proyek-card {
        width: 100%; /* Jadi 1 kolom di HP */
        margin-left: 0;
        margin-right: 0;
    }
}