/* 1. Reset, Font, dan Variabel */
body {
    font-family: 'Roboto', sans-serif;
    /* Font konten bersih */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #444;
    background-color: #ffffff;
}

:root {
    --primary-color: #0d47a1;
    /* Biru Tua Solid */
    --secondary-color: #ffb300;
    /* Emas Kontras */
    --accent-bg: #f5f8ff;
    /* Latar Belakang Sangat Terang */
    --text-color: #212121;
    --shadow-deep: rgba(13, 71, 161, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --light-bg: #ffffff;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* 2. Header dan Navigasi (Fixed Position) */
header {
    background: var(--light-bg);
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
    margin-right: 5px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline-block;
    margin-left: 35px;
}

header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* 3. Typography dan Judul Section */
section {
    padding: 100px 0;
    text-align: center;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 70px;
    font-weight: 800;
    color: var(--text-color);
}

/* 4. Tombol (Buttons) */
.btn {
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #002d6b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-deep);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: #ffc94d;
    transform: translateY(-2px);
}

.large-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 30px;
}

/* 5. Section HERO */
.hero {
    background: white;
    padding: 220px 0 100px;
    /* Disesuaikan agar tidak tertutup header fixed */
    text-align: center;
}

.tagline {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    max-width: 900px;
    margin: 0 auto 20px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 30px;
    color: #666;
    font-weight: 300;
}

/* 6. Section Statistik */
.statistik {
    background-color: var(--accent-bg);
    padding: 60px 0;
}

.stat-grid {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    flex: 1;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.stat-item p {
    font-size: 1.1rem;
    color: #666;
}

/* 7. Section Layanan */
.layanan {
    background: #ffffff;
}

.layanan-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.layanan-card {
    flex: 1;
    background: var(--accent-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.4s, box-shadow 0.4s;
    text-align: left;
    border-bottom: 6px solid var(--primary-color);
}

.layanan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-deep);
    background: white;
}

.card-icon-wrapper {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: color 0.4s, transform 0.4s;
}

.layanan-card:hover .card-icon-wrapper {
    color: var(--primary-color);
    transform: scale(1.1) rotate(-5deg);
}

.layanan-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-top: 0;
    color: var(--text-color);
}

/* 8. Section Portofolio (Grid 2 Kolom) */
/* --- Portfolio Specific Section --- */
.portofolio {
    background-color: #fcfdfe;
    overflow: hidden;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 80px;
}

/* Layout Project Item */
.project-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.project-item.reversed {
    flex-direction: row-reverse;
}

/* Bagian Teks */
.project-info {
    flex: 1;
    text-align: left;
}

.project-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(13, 71, 161, 0.05); /* Angka transparan di background */
    line-height: 1;
    margin-bottom: -30px;
}

.project-category {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0;
}

.project-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Tech Stack Chips */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    background: #eef2f7;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tech-stack i {
    color: #28a745;
    margin-right: 5px;
}

/* Bagian Gambar (Visual) */
.project-visual {
    flex: 1.2;
    perspective: 1000px; /* Memberikan efek 3D */
}

.mockup-frame {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(13, 71, 161, 0.15);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--white);
    padding: 10px; /* Efek frame tipis */
}

.project-visual img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Hover Effect Gambar */
.project-item:hover .mockup-frame {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 40px 80px rgba(13, 71, 161, 0.25);
}

.project-item.reversed:hover .mockup-frame {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
}

/* Responsive Portofolio */
@media (max-width: 992px) {
    .project-item, .project-item.reversed {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }

    .project-info {
        order: 1;
        text-align: center;
    }

    .project-visual {
        order: 2;
        width: 100%;
    }

    .tech-stack {
        justify-content: center;
    }

    .project-info h4 {
        font-size: 2rem;
    }
}

/* 9. Section Paket Harga */
.paket {
    background: var(--accent-bg);
}

.paket-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.paket-card {
    flex: 1;
    max-width: 350px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-light);
    text-align: left;
    transition: transform 0.3s;
    position: relative;
}

.paket-card:hover {
    transform: scale(1.05);
}

.paket-card.premium {
    border: 4px solid var(--primary-color);
    box-shadow: 0 15px 35px var(--shadow-deep);
}

.paket-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 700;
}

.paket-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.paket-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-weight: 400;
}

.paket-card ul li i {
    margin-right: 10px;
    color: #28a745;
}

.paket-card ul li.disabled i {
    color: #dc3545;
}

/* 10. Section FAQ */
.faq {
    background: #ffffff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--accent-bg);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: background 0.3s;
}

.faq-question i {
    transition: transform 0.3s;
    font-size: 1rem;
    color: var(--secondary-color);
}

.faq-question:hover {
    background: #e9efff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background: white;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Fungsionalitas Buka/Tutup menggunakan CSS murni (check box hack) */
.faq-toggle:checked+.faq-question {
    background: var(--primary-color);
    color: white;
}

.faq-toggle:checked+.faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-toggle:checked+.faq-question+.faq-answer {
    max-height: 300px;
    padding: 0 25px 20px 25px;
}

/* 11. Section Kontak (Formulir 2 Kolom) */
.kontak-form-section {
    background: #ffffff;
    padding: 100px 0;
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    text-align: left;
    margin-top: 50px;
}

.kontak-info h3,
.kontak-form h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.kontak-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

/* Detail Info Item */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.info-item p {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
}

/* Social Links Kontak */
.social-links-kontak {
    margin-top: 30px;
}

.social-links-kontak a {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 20px;
    transition: color 0.3s;
}

.social-links-kontak a:hover {
    color: var(--secondary-color);
}

/* Formulir Kontak */
.kontak-form {
    background: var(--accent-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.kontak-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.kontak-form input[type="text"],
.kontak-form input[type="email"],
.kontak-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.kontak-form textarea {
    resize: vertical;
}

.kontak-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* 12. Sticky WhatsApp */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.6);
    z-index: 1001;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-cta:hover {
    transform: scale(1.1);
}

/* 13. Footer (Diperbarui: Multi-Kolom) */
footer {
    background: #1a1a1a;
    color: #f0f0f0;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-col-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-col-about p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links-footer a {
    font-size: 1.6rem;
    color: #e0e0e0;
    margin-right: 20px;
    transition: color 0.3s;
}

.social-links-footer a:hover {
    color: var(--secondary-color);
}

.footer-col-links h4,
.footer-col-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links ul li {
    margin-bottom: 12px;
}

.footer-col-links ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.footer-col-contact p i {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    background: #111111;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #2a2a2a;
}

.footer-bottom p {
    color: #888888;
    margin: 0;
}

/* Responsive Sederhana */
/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Agar gambar tidak melebihi lebar layar */
img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------
   1. TABLET & LAPTOP KECIL (Lebar 769px - 1024px)
   ------------------------------------------------ */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }

    /* Typography Tablet */
    .hero h1 {
        font-size: 3rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    /* Layout Tablet */
    .hero {
        padding-top: 150px;
        padding-bottom: 60px;
    }

    section {
        padding: 60px 0;
    }

    /* Grid Tablet (2 Kolom jika memungkinkan) */
    .layanan-grid {
        flex-wrap: wrap;
    }
    
    .layanan-card {
        flex: 1 1 45%; /* Kartu mengambil 45% lebar (jadi 2 kolom) */
        margin-bottom: 20px;
    }

    .portofolio-grid {
        gap: 20px;
        /* Tetap 2 kolom di tablet landscape, tapi gambar disesuaikan */
    }

    .project-right {
        height: 300px; /* Perkecil tinggi gambar */
    }
    
    /* Navigasi Tablet: Tampilkan tapi perkecil jarak */
    header nav ul li {
        margin-left: 15px;
    }
}

/* ------------------------------------------------
   2. HP / MOBILE (Lebar di bawah 768px)
   ------------------------------------------------ */
@media (max-width: 768px) {
    
    /* HEADER & NAVIGASI MOBILE
       Karena belum ada JS Hamburger, kita buat menu 
       berjejer ke bawah (stack) agar tetap bisa diklik 
    */
    header {
        position: relative; /* Tidak fixed agar user bisa scroll menu */
        padding: 10px 0;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header nav {
        display: block; /* Pastikan menu TAMPIL */
        width: 100%;
        text-align: center;
    }

    header nav ul li {
        display: block; /* Ubah jadi vertikal */
        margin: 10px 0;
        margin-left: 0;
    }

    /* HERO SECTION */
    .hero {
        padding-top: 40px; /* Kurangi padding karena header tidak fixed */
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.2rem; /* Font Judul lebih kecil */
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* LAYANAN (Jadikan 1 Kolom) */
    .layanan-grid {
        flex-direction: column;
    }
    
    .layanan-card {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    /* STATISTIK */
    .stat-grid {
        flex-direction: column;
        gap: 30px;
    }

    /* PORTOFOLIO (Jadikan 1 Kolom) */
    .portofolio-grid {
        grid-template-columns: 1fr; /* 1 Kolom */
        gap: 30px;
    }

    /* Urutan Portofolio Mobile: Teks dulu baru Gambar */
    .project-item.project-left {
        order: 1;
    }
    .project-item.project-right {
        order: 2;
        height: 250px; /* Tinggi gambar di HP */
    }

    /* PAKET HARGA (Stack ke bawah) */
    .paket-grid {
        flex-direction: column;
        align-items: center;
    }

    .paket-card {
        width: 100%;
        max-width: 100%;
    }

    /* KONTAK */
    .kontak-grid {
        grid-template-columns: 1fr; /* 1 Kolom */
        gap: 40px;
    }

    .kontak-form {
        padding: 25px; /* Padding form lebih kecil */
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col-contact p {
        justify-content: center;
    }
    
    .social-links-footer {
        justify-content: center;
        display: flex;
    }

    /* Tombol Sticky WhatsApp */
    .sticky-cta {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Membuat kursor menjadi tangan saat diarahkan ke gambar */
.project-visual a {
    cursor: pointer;
    display: block;
}

/* Efek zoom halus saat gambar di-hover */
.mockup-frame img {
    transition: transform 0.4s ease;
}

.mockup-frame:hover img {
    transform: scale(1.03); /* Gambar membesar sedikit */
}

/* Menghapus garis bawah pada link proyek */
.tech-stack a {
    text-decoration: none; /* Menghapus garis biru */
    color: inherit;        /* Mengikuti warna teks aslinya */
    display: inline-block;
}

/* Opsional: Memberikan efek sedikit terang saat diarahkan kursor */
.tech-stack a:hover {
    opacity: 0.8;
}