:root {
    --bg-dark: #0b0f19;
    --bg-card: #151b2b;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- NAVBAR --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* --- PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 6rem 5%;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer; 
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    z-index: 2;
}

.overlay-click {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
}

.card:hover .overlay-click {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.card-subtitle {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* --- PRICING SECTION CSS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: var(--accent-primary);
}

.pricing-title {
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1rem;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent-secondary);
    font-weight: bold;
}

/* --- MODAL / LIGHTBOX CSS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 1100px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-primary);
}

.modal-layout {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-layout {
        flex-direction: row;
    }
}

/* Carousel Section */
.modal-gallery {
    flex: 1.5;
    position: relative;
    background: #000;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

@media (min-width: 768px) {
    .modal-gallery {
        border-radius: 16px 0 0 16px;
        min-height: 500px;
    }
}

.modal-gallery img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    user-select: none;
    transition: 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-primary);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.image-counter {
    position: absolute;
    bottom: 15px;
    background: rgba(0,0,0,0.6);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Modal Info Section */
.modal-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-info h4 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-info .badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: max-content;
}

.modal-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
    flex-grow: 1;
}

.modal-price-box {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
}
footer h3 { margin-bottom: 1rem; }
footer p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ==========================================
   RESPONSIVE / TAMPILAN HP (MOBILE FIX)
   ========================================== */
@media (max-width: 768px) {
    /* 1. Perbaiki Navbar biar gak desak-desakan */
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 1rem 5%;
    }
    .logo {
        font-size: 1.3rem;
        text-align: center;
    }
    .nav-links {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-links a {
        font-size: 0.85rem;
    }

    /* 2. Perbaiki Text Hero Nabrak Navbar */
    .hero {
        padding-top: 130px; /* Dorong ke bawah menjauh dari navbar */
        min-height: 100vh;
        justify-content: flex-start; /* Ubah dari center biar teks gak naik ke atas */
    }
    .hero h1 {
        font-size: 2.2rem; /* Ukuran font dikecilin khusus layar HP */
        margin-top: 2rem;
    }
    .hero p {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 2rem;
    }

    /* 3. Rapihkan Teks Bagian Lain di HP */
    .section-title {
        font-size: 1.8rem;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    .portfolio-section {
        padding: 4rem 5%;
    }
    .modal-info {
        padding: 1.5rem;
    }
    .modal-info h2 {
        font-size: 1.5rem;
    }
}