/* ================================================= */
/* 1. Reset dan Variabel Dasar */
/* ================================================= */
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --background: #f4f7f9; 
    --text-color: #333;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --max-width: 1200px; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* ================================================= */
/* 2. Tata Letak Dasar */
/* ================================================= */
.container-desktop {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 10px auto 40px;
    color: var(--secondary);
}

/* ================================================= */
/* 3. Header & Navigasi (FOKUS PERBAIKAN DI SINI) */
/* ================================================= */
.main-header {
    background: var(--card-bg);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-header .container-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary);
}

/* Navigasi Desktop: SELALU TAMPIL di desktop */
.desktop-nav {
    display: block; 
}

.desktop-nav a {
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
    color: var(--text-color);
}

.desktop-nav a:hover {
    color: #0056b3;
}

/* Tombol Mobile Toggle: SELALU SEMBUNYI di desktop secara default */
#mobile-menu-toggle {
    display: none !important; /* MENGGUNAKAN !important untuk memaksa sembunyi di desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-color);
    cursor: pointer;
}

/* ================================================= */
/* 4. MOBILE SIDEBAR MENU STYLES */
/* ================================================= */
#mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px; 
    height: 100%;
    background: var(--card-bg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
}

#mobile-sidebar.open {
    transform: translateX(0); 
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

#close-sidebar {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--secondary);
    cursor: pointer;
    line-height: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav a {
    padding: 15px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 1.1em;
    color: var(--text-color);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ================================================= */
/* 5. Hero Section (TETAP SAMA) */
/* ================================================= */
.hero-section {
    padding: 80px 0 50px;
    text-align: center;
    background: #eef2f5;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--primary);
    object-fit: cover;
    margin-bottom: 20px;
}
.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #212529;
}
.tagline {
    font-size: 1.2em;
    color: var(--secondary);
    margin-bottom: 40px;
}
.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.link-button {
    display: block;
    padding: 18px 25px;
    border-radius: var(--border-radius);
    font-weight: bold;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.primary { background-color: var(--primary); }
.secondary { background-color: #28a745; } 
.tertiary { background-color: #ffc107; color: #333; } 
.dark { background-color: #343a40; } 


/* ================================================= */
/* 6. Content & Services (TETAP SAMA) */
/* ================================================= */
.content-section {
    padding: 60px 0;
    text-align: center;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-top: 30px;
    padding: 0;
}
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: center; 
}
.service-item:hover {
    transform: translateY(-5px);
}
.icon-service {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
    color: var(--primary);
}
.card h3 {
    color: #212529;
    margin-bottom: 10px;
    font-size: 1.3em;
}
.service-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    font-size: 0.9em;
    display: inline-block;
    text-align: left;
}
.service-item ul li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    padding-right: 5px;
}
.service-link {
    display: inline-block; 
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745; 
    color: white;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}
.service-link:hover {
    background-color: #218838;
    transform: translateY(-1px);
}


/* ================================================= */
/* 7. Location Info Section (TETAP SAMA) */
/* ================================================= */
#location-info {
    background: white;
    padding: 40px 0;
}
.location-details {
    margin: 20px auto;
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 600px;
}
.google-map-embed-large {
    margin-top: 30px;
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius);
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.google-map-embed-large iframe {
    display: block;
    width: 100%;
}


/* ================================================= */
/* 8. CTA Section (TETAP SAMA) */
/* ================================================= */
.cta-section {
    background: var(--primary);
    color: white;
    padding: 50px 0;
    text-align: center;
}
.cta-section h2 {
    margin-bottom: 10px;
    font-size: 2em;
}
.cta-button {
    display: inline-block;
    background: #ffc107;
    color: #333;
    padding: 12px 30px;
    margin-top: 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.2s;
}
.cta-button:hover {
    background-color: #ffeb3b;
    transform: scale(1.05);
}


/* ================================================= */
/* 9. Footer (3 Kolom Responsif - TETAP SAMA) */
/* ================================================= */
.main-footer {
    background: #212529;
    color: #adb5bd;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-col h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8em;
}

/* ================================================= */
/* MEDIA QUERY: Mengaktifkan Mobile Menu dan Stacking */
/* ================================================= */

/* Tablet dan Mobile (Layar <= 992px) */
@media (max-width: 992px) {
    
    /* FIX: Navigasi Desktop Dihilangkan */
    .desktop-nav {
        display: none !important; /* Gunakan !important untuk memastikan dihilangkan */
    }
    
    /* FIX: Tombol Hamburger Ditampilkan */
    #mobile-menu-toggle {
        display: block !important; /* Gunakan !important untuk memastikan ditampilkan */
    }

    /* Stacking Layouts (Service Cards) */
    .service-cards {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    /* Stacking Layouts (Footer Grid) */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }
}

/* Mobile Kecil (Layar <= 600px) */
@media (max-width: 600px) {
    /* Layouts 1 Kolom */
    .service-cards, .footer-grid {
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    .link-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================= */
/* 10. Style Khusus Halaman Semua Menu (semua-menu.php) */
/* ================================================= */

.full-service-item {
    text-align: left; /* Mengatur konten utama rata kiri */
    padding: 30px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary); /* Memberi aksen warna */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-icon-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.full-service-item .icon-service {
    font-size: 2.2em;
    margin-right: 15px;
    margin-bottom: 0;
    color: var(--primary);
}

.full-service-item h3 {
    margin: 0;
    font-size: 1.5em;
}

.service-desc {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.service-details h4 {
    color: #212529;
    margin-bottom: 10px;
}

.service-details ul {
    list-style: none;
    padding-left: 20px; /* Jarak agar list item tidak menempel */
    margin-bottom: 25px;
}

/* Mengatur list item (seperti di index.php) */
.service-details ul li {
    font-size: 1em;
    margin-bottom: 8px;
}

.service-details ul li::before {
    content: '✅';
    color: #28a745;
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
    padding-right: 5px;
}

/* Tombol Aksi di halaman Semua Menu */
.service-link-full {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary); 
    color: white;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.service-link-full:hover {
    background-color: #0056b3;
}

/* ================================================= */
/* Tambahkan di akhir file style.css */
/* ================================================= */

/* ================================================= */
/* 10. Style Portfolio Grid */
/* ================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 15px;
    text-align: left;
}

.portfolio-info h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #212529;
}

.portfolio-info p {
    font-size: 0.9em;
    color: var(--secondary);
    margin-bottom: 10px;
}

.demo-link {
    display: inline-block;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9em;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--primary);
    transition: color 0.3s, border-color 0.3s;
}

.demo-link:hover {
    color: #0056b3;
    border-color: #0056b3;
}


/* ================================================= */
/* 11. Style Contact Section */
/* ================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form lebih lebar dari Info */
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: left;
}

.contact-form-area, .contact-info-area {
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-area h3, .contact-info-area h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Formulir Style */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #218838;
}

/* Info Kontak Style */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5em;
    color: var(--primary);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.contact-item p {
    margin: 0;
    font-size: 0.95em;
}

/* ================================================= */
/* MEDIA QUERY: Penyesuaian Contact & Portfolio */
/* ================================================= */

/* Tablet dan Mobile (Layar <= 992px) */
@media (max-width: 992px) {
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* 1 kolom di tablet */
    }
}

/* Mobile Kecil (Layar <= 600px) */
@media (max-width: 600px) {
    
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 kolom di mobile */
    }
}