:root {
    --primary-color: #198754;
    --secondary-color: #00296b;
    --accent-color: #fdc500;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.backdrop-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Navbar Styles */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-navbar.scrolled {
    top: 10px;
    width: 95%;
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000 !important; /* Force black background */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay darkness */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    transition: transform 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* Info Cards */
.info-cards-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

#cta-pengaduan {
    background-color: #198754;
}

#cta-pengaduan .btn-pengaduan {
    color: #198754;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 30px;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Bottom Nav (Mobile) */
.public-bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 8px;
}

.public-bottom-nav-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.7rem;
    padding: 8px;
    border-radius: 15px;
    transition: all 0.3s;
}

.public-bottom-nav-link.active, .public-bottom-nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 80, 157, 0.1);
}

.public-bottom-nav-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* Responsive */
@media (max-width: 400px) {
    .public-bottom-nav-item-optional {
        display: none;
    }
}

@media (max-width: 991px) {
    .floating-navbar {
        display: none; /* Hide top nav on mobile if bottom nav is used, or adjust */
    }
    
    .public-bottom-nav {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .public-bottom-nav {
        display: none;
    }
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.mitra-logo-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 60px;
}

.home-mitra-row {
    row-gap: 16px;
}

/* Service Card */
.service-card {
    transition: all 0.3s ease;
}

.hover-top:hover {
    transform: translateY(-10px);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

/* Modal Customization */
.modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.modal-header.bg-primary {
    background-color: #198754 !important;
    border-bottom-color: #198754 !important;
}
