#viewDiv {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

/* ===== Umum ===== */
body {
    margin: 0;
    background-color: #e3f2fd;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(26, 35, 126, 0.95);
    padding: 15px 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: #fff;
    font-weight: 600;
    font-size: 20px;
}

/* Tombol Toggle Mobile */
.navbar-toggler {
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation Links */
.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #fff !important;
    padding: 8px 15px;
    transition: color 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: #00c3ff !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop View (≥ 992px) */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    
    .nav-item {
        margin-left: 5px;
    }
    
    .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
    }
}

/* Mobile View (< 992px) */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    
    .logo {
        flex: 1;
    }
    
    .navbar-collapse {
        background: rgba(26, 35, 126, 0.97);
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px 15px;
    }
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #001f4d 0%, #003c8f 50%, #0277bd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Ombak bergerak di latar belakang */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://svgshare.com/i/14W3.svg') repeat-x;
    background-size: cover;
    opacity: 0.12;
    animation: waves 10s linear infinite;
    z-index: 0;
}
.hero::after {
    animation-delay: -5s;
    opacity: 0.18;
}

/* Partikel bubble animasi lembut */
@keyframes bubbles {
    0% { transform: translateY(0) scale(0.8); opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-800px) scale(1.5); opacity: 0; }
}
.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: bubbles 15s infinite;
    z-index: 0;
}

.bubble:nth-child(1) { left: 10%; width: 15px; height: 15px; animation-delay: 2s; }
.bubble:nth-child(2) { left: 30%; width: 20px; height: 20px; animation-delay: 4s; }
.bubble:nth-child(3) { left: 50%; width: 10px; height: 10px; animation-delay: 6s; }
.bubble:nth-child(4) { left: 70%; width: 25px; height: 25px; animation-delay: 1s; }
.bubble:nth-child(5) { left: 90%; width: 12px; height: 12px; animation-delay: 3s; }

/* Konten utama */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    animation: fadeUp 1.5s ease forwards;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(41, 40, 40, 0.723);
    background: linear-gradient(90deg, #ffffff, #fef2f2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #e3f2fd;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Tombol ajakan (CTA) */
.cta-button {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    padding: 14px 45px;
    border-radius: 35px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.cta-button:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Animasi */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes waves {
    0% { background-position-x: 0; }
    100% { background-position-x: 1000px; }
}

/* Tambahan animasi halus saat load */
body {
    animation: fadeBody 1.5s ease;
}
@keyframes fadeBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23e3f2fd' fill-opacity='1' d='M0,192L48,170.7C96,149,192,107,288,117.3C384,128,480,192,576,186.7C672,181,768,107,864,112C960,117,1056,203,1152,234.7C1248,267,1344,245,1392,234.7L1440,224L1440,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: cover;
    animation: waveMove 10s linear infinite;
}
@keyframes waveMove {
    from { background-position-x: 0; }
    to { background-position-x: 1000px; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* cuaca */
.card-header-blue {
    background: linear-gradient(90deg, #003c8f);
    color: white;
    padding: 12px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.card-header-blue h5 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #7c8187f1;
    border-radius: 10px;
}

.cuaca-card {
    flex: 0 0 auto;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* ===== Main Container ===== */
.main-container {
    padding-top: 100px;
    padding-bottom: 50px;
}

/* ===== Section Testimoni ===== */

/* Card Testimoni - pastikan tidak overflow */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    margin-bottom: 20px;
}

/* Hover Effect untuk Card Testimoni */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-hover:hover::before {
    left: 100%;
}

/* Peta Leaflet */
#map, #gis-map {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 30px; 
    z-index: 1;
    overflow: hidden;
}

.leaflet-container {
    z-index: 10 !important;
}
.leaflet-top,
.leaflet-bottom,
.leaflet-control {
    z-index: 2000 !important;
}
.leaflet-control-container {
    z-index: 2001 !important;
}
.legend {
    position: relative;
    z-index: 2002 !important;
}

/* footer */
.footer-desc {
    font-size: 15px;
    line-height: 1.8;           
    color: #e0e0e0;             
    font-weight: 500;           
    text-transform: none;     
    letter-spacing: 0.3px;     
    text-align: justify;       
    max-width: 480px;           
}
.footer-desc strong {
    font-weight: 600;
}

.footer {
    background: linear-gradient(135deg, #001F3F, #003C8F);
    color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.footer h5, 
.footer h6 {
    color: #ffffff;
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    .footer-contacts li {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

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

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== Responsif ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    nav ul {
        flex-direction: column;
        background: rgba(26, 35, 126, 0.95);
        position: absolute;
        top: 60px;
        right: 10px;
        border-radius: 10px;
        padding: 10px;
        display: none;
        z-index: 1100;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin: 10px 0;
    }
}



