: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;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Kejaksaan Green Gradient: Dark Green to Lighter Green */
    background: linear-gradient(135deg, #05472a 0%, #15854b 100%);
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

.video-background {
    display: none; /* Hide old video background */
}

/* Modern Hero Elements */
.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    /* white-space: nowrap; removed to prevent cutoff */
}

@media (max-width: 576px) {
    .hero-title {
        white-space: normal; /* Allow wrapping on very small screens */
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-image-wrapper {
    position: relative;
    padding: 1rem; /* Reduced padding */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-inner {
    position: relative;
    width: 85%;
    max-width: 450px; /* Smaller professional size */
    z-index: 1;
}

.hero-main-img {
    border-radius: 30px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2); /* Refined shadow */
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-main-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    max-width: 250px;
    animation: float 4s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.8);
}

.floating-card.top-left {
    top: 10%;
    left: -20px;
}

.floating-card.bottom-right {
    bottom: 10%;
    right: -20px;
}

@media (max-width: 991.98px) {
    .floating-card {
        display: flex;
        padding: 0.7rem 0.9rem;
        min-width: auto;
        max-width: 160px;
        gap: 8px;
        bottom: 20px;
        top: auto;
    }
    
    .floating-card.top-left {
        left: -10px;
        right: auto;
        top: auto;
    }

    .floating-card.bottom-right {
        right: -10px;
        left: auto;
        bottom: 20px;
    }
    
    .floating-card .icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .floating-card .text h6 {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .floating-card .text p {
        font-size: 0.6rem;
        line-height: 1.1;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image-wrapper {
        padding: 0;
        margin-top: 2rem;
    }

    .hero-buttons .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

.floating-card .icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.floating-card .text h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3436;
}

.floating-card .text p {
    margin: 0;
    font-size: 0.75rem;
    color: #636e72;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.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;
}
