:root {
    --primary-color: #0F172A;
    /* Navy Blue */
    --secondary-color: #3B82F6;
    /* Blue */
    --accent-color: #F59E0B;
    /* Amber/Gold */
    --text-gray: #64748B;
    --bg-light: #F8FAFC;
    --radius-lg: 20px;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
    width: 100%;
    position: relative;
}

/* --- Typography & Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.bg-light-gray {
    background-color: var(--bg-light);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 5px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Modern Glassmorphism Navbar --- */
.navbar {
    transition: all 0.4s ease-in-out;
    padding: 20px 0;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.navbar-brand {
    font-size: 1.6rem;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand,
.navbar:not(.scrolled) .navbar-brand {
    color: var(--primary-color) !important;
}

@media (max-width: 991px) {
    .navbar-brand {
        color: var(--primary-color) !important;
    }
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: white !important;
    margin: 0 12px;
    position: relative;
    transition: color 0.3s;
}

.navbar.scrolled .nav-link {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mengatasi toggle di mobile */
.navbar-toggler {
    background-color: var(--primary-color);
    border: none;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-toggler i {
    color: white !important;
    font-size: 1.2rem;
}

.navbar-collapse {
    border-radius: 15px;
}

@media (max-width: 991px) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        padding: 10px 0;
    }

    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-link {
        color: var(--primary-color) !important;
    }

    .navbar-brand {
        color: var(--primary-color) !important;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
        z-index: 1050;
    }

    .navbar-nav {
        width: 100%;
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        color: var(--primary-color) !important;
        margin: 0;
        padding: 14px 18px;
        font-size: 1rem;
        position: relative;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        background: transparent;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 8px;
        left: 10%;
        right: 10%;
        margin: 0 auto;
        background-color: var(--accent-color);
        transition: all 0.25s ease;
    }

    .nav-link:hover::after {
        width: 80%;
    }

    .navbar-brand {
        color: var(--primary-color) !important;
    }
}

.btn-wa-green {
    background-color: #25d366;
    color: white !important;
    transition: all 0.3s ease;
    border: none;
}

.btn-wa-green:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-custom {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-custom:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-pesan {
    background-color: var(--secondary-color);
    color: white !important;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-pesan:hover {
    background-color: white;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    padding-top: 100px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-accent:hover {
    background-color: #D97706;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* --- Image Wrapper --- */
.img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.img-wrapper img {
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Cards (Layanan) --- */
.modern-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    border: none;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-card:hover .card-img-top {
    transform: scale(1.08);
}

/* --- Galeri Hover Effect --- */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- FAQ Accordion --- */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 15px !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.accordion-button {
    font-weight: 600;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(59, 130, 246, 0.05);
    color: var(--secondary-color);
    box-shadow: none;
}

/* --- CTA & Footer --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 30px;
    margin: 50px 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

footer {
    background-color: #0B1120;
    color: #94A3B8;
    padding: 80px 0 30px;
}

footer h5 {
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* --- WA Float --- */
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        height: auto;
        min-height: 80vh;
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .hero .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-top: 15px;
        margin-bottom: 15px;
        font-weight: 800;
    }

    .hero p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .hero .d-flex {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 50px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-section {
        margin: 30px 15px;
        padding: 50px 20px;
        border-radius: 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem !important;
    }

    .badge {
        white-space: normal;
        line-height: 1.5;
    }

    .wa-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 32px;
    }
}

@media (max-width: 380px) {
    .hero {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 1.1rem;
    }

    .hero .btn {
        flex-basis: 100%;
        max-width: 100%;
        font-size: 0.75rem;
        padding: 8px 6px;
        margin-bottom: 6px;
    }
}

@media (max-width: 330px) {
    .hero .d-flex {
        flex-direction: column;
    }

    .hero .btn {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* Make images responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Disable hover-specific visual variations on touch / mobile devices */
@media (hover: none), (pointer: coarse) {

    /* Remove nav underline animation on touch devices */
    .nav-link::after,
    .nav-link:hover::after {
        width: 0 !important;
    }

    /* Prevent transform/scale/box-shadow transitions triggered by hover */
    .img-wrapper:hover img,
    .modern-card:hover,
    .modern-card:hover .card-img-top,
    .gallery-item:hover img,
    .gallery-item:hover::after,
    .btn-accent:hover,
    .btn-custom:hover,
    .btn-pesan:hover,
    .btn-wa-green:hover,
    .wa-float:hover {
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
    }

    /* Reduce unnecessary transitions on touch to improve perceived performance */
    .nav-link,
    .navbar-brand,
    .btn-custom,
    .btn-accent,
    .btn-wa-green {
        transition: none !important;
    }
}
