:root {
    --primary-color: #0D6EFD;
    --secondary-color: #1F2937;
    --accent-color: #F59E0B;
    --bg-color: #F8F9FA;
    --text-dark: #111827;
    --text-muted: #6B7280;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Poppins', sans-serif;
}

/* Glassmorphism Navbar */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    position: relative;
    padding: 10px 15px !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: calc(100% - 30px); }

.btn-brand {
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}
.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(31, 41, 55, 0.8), rgba(31, 41, 55, 0.95));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.1);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

/* Section Title */
.section-title {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

/* Portfolio Hover */
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.portfolio-img {
    transition: transform 0.6s ease;
    width: 100%;
}
.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}
footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}
footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--accent-color);
}

/* ============================================================
   RESPONSIVE — Mobile & Tablet Fixes
   ============================================================ */

/* Hero: font lebih kecil di mobile agar tidak overflow */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 70vh;
    }

    .hero-content h1.display-3 {
        font-size: 1.8rem !important;
        line-height: 1.25 !important;
    }

    .hero-content .lead {
        font-size: 0.95rem !important;
    }

    .hero-content .badge {
        font-size: 0.75rem;
    }

    /* Tombol hero stack vertikal di HP kecil */
    .hero-content .d-flex.flex-column {
        width: 100%;
    }
    .hero-content .d-flex.flex-column .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* About section: jarak gambar & teks di mobile */
@media (max-width: 767.98px) {
    #about .row.g-5 {
        row-gap: 1.5rem !important;
    }

    #about .col-lg-6:first-child {
        margin-bottom: 1rem;
    }

    #about h2.h1 {
        font-size: 1.4rem !important;
    }

    #about .text-muted.fs-5 {
        font-size: 1rem !important;
    }

    /* Service cards: full width di mobile kecil */
    .service-card {
        padding: 20px;
    }

    /* Paket section heading */
    #paket h2.display-5 {
        font-size: 1.6rem !important;
    }

    /* News cards stack */
    #news .card-body {
        padding: 1.25rem !important;
    }

    /* Lokasi badges wrap rapi */
    #lokasi .d-flex.flex-wrap {
        gap: 0.4rem !important;
    }

    /* Maps iframe ketinggian lebih kecil */
    #lokasi iframe {
        height: 280px !important;
    }

    /* Contact form */
    #contact h2.h1 {
        font-size: 1.5rem !important;
    }

    /* Footer teks */
    footer .container {
        padding-bottom: 2rem;
    }
}

/* Navbar mobile: pastikan menu terbuka rapi */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.97);
        padding: 1rem 1.25rem;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        margin-top: 0.5rem;
    }

    .navbar-collapse .navbar-nav {
        margin-bottom: 1rem;
    }

    .navbar-collapse .d-flex {
        justify-content: flex-start;
    }

    .nav-link::after {
        display: none;
    }
}

/* Paket cards: on mobile show 1 per row cleanly */
@media (max-width: 575.98px) {
    #paket .col-lg-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    #paket .card-body {
        padding: 1.25rem !important;
    }

    #paket .display-6 {
        font-size: 1.4rem !important;
    }
}

/* ============================================================
   DESKTOP & LAPTOP ENHANCEMENTS (Large Screens)
   ============================================================ */
@media (min-width: 992px) {
    /* Hero title font size and line height */
    .hero-content h1.display-3 {
        font-size: 3.5rem !important;
        line-height: 1.2 !important;
        letter-spacing: -1px;
    }
    
    /* Hero description */
    .hero-content .lead {
        font-size: 1.25rem !important;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    /* About heading */
    #about h2.h1 {
        font-size: 2.5rem !important;
        line-height: 1.35 !important;
        letter-spacing: -0.5px;
    }

    #about .text-muted.fs-5 {
        font-size: 1.15rem !important;
        line-height: 1.75 !important;
    }

    /* General desktop padding */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

@media (min-width: 1200px) {
    /* Large desktop view enhancements */
    .hero-content h1.display-3 {
        font-size: 4.2rem !important;
    }
    #about h2.h1 {
        font-size: 2.8rem !important;
    }
}

