:root {
    --primary-color: #ffcc00;
    --primary-hover: #e6b800;
    --bg-dark: #0a0a0a;
    --bg-surface: #1a1a1a;
    --bg-card: #222222;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header p, .text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

header {
    background-color: rgba(10, 10, 10, 0.98);
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

/* Menu Navigasi Desktop */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.admin-btn {
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Tombol Hamburger HP disembunyikan di Desktop */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)), 
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80') center/cover;
    max-width: 100%;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 auto 30px auto;
    max-width: 600px;
}

.btn {
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 35px 20px;
    border-radius: 10px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid #444;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    font-weight: bold;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #333;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.portfolio-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.portfolio-content {
    padding: 18px;
}

.portfolio-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-details div {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-details strong {
    color: var(--primary-color);
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-hover);
}

/* Tombol WhatsApp Mengambang */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1500;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

footer {
    background-color: #050505;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background-color: var(--bg-surface);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.15);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-light);
}

.modal-content h3 span {
    color: var(--primary-color);
}

.modal-subtext {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-dark);
    border: 1px solid #444;
    color: var(--text-light);
    border-radius: 8px;
    font-size: 0.95rem;
}

.modal-content input:focus, .modal-content select:focus, .modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-submit {
    width: 100%;
    margin-top: 5px;
}

.error-text {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: none;
}

/* ==========================================
   RESPONSIF UNTUK TABLET & HP (MOBILE)
   ========================================== */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    /* Munculkan Tombol Hamburger */
    .menu-toggle {
        display: block;
    }

    /* Ubah Navigasi Menjadi Dropdown di HP */
    nav ul.nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 20px 0;
        border-bottom: 1px solid #333;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease-in-out;
    }

    nav ul.nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    nav ul.nav-list li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 5%;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}