* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
}

/* --- HEADER & DESKTOP MENU --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #1e3d59;
    position: sticky; /* Keep it at the top while scrolling */
    top: 0;
    z-index: 1000;
}

.header .logo img {
    height: 60px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
}

.nav a:hover,
.nav .active {
    color: #f5b041;
}

/* --- BANNER --- */
.banner {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 20px 30px;
    border-radius: 8px;
    color: #fff;
}

.banner-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 18px;
}

/* --- GALLERY FILTER --- */
.filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 30px 8%;
}

.filter button {
    padding: 10px 20px;
    background: #1e3d59;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.filter button:hover {
    background: #f5b041;
}

/* --- GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 8%;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* --- FOOTER --- */
.footer {
    background: #1e3d59;
    color: #fff;
    text-align: center;
    padding: 30px 8%;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.3s;
}

.footer a:hover {
    color: #f5b041;
}

/* --- RESPONSIVE ADJUSTMENTS (Tablet) --- */
@media (max-width: 992px) {
    .banner-text h1 { font-size: 28px; }
    .banner-text p { font-size: 16px; }
    .gallery-grid img { height: 150px; }
}

/* =========================================
   THE FINAL MOBILE MENU FIX (UTAMU ROW STYLE)
   This uses the original dark blue color
   ========================================= */
@media (max-width: 768px) {
    .header {
        flex-direction: column !important;
        padding: 10px 0 !important;
        align-items: center !important;
        height: auto !important;
        background: #1e3d59 !important; /* Keep the original dark blue */
    }

    .header .logo img {
        height: 40px !important;
        margin-bottom: 8px !important;
    }

    .nav {
        width: 100% !important;
        background: #1e3d59 !important; /* Keep the original dark blue */
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }

    .nav ul {
        display: flex !important;
        flex-direction: row !important; /* Forces row layout */
        gap: 8px !important;
        padding: 10px 15px !important;
        list-style: none !important;
        
        /* Swiping functionality */
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }

    /* Hide scrollbar for clean look */
    .nav ul::-webkit-scrollbar {
        display: none !important;
    }

    .nav li {
        display: inline-block !important;
    }

    .nav a {
        font-size: 0.75rem !important;
        padding: 6px 14px !important;
        background: rgba(255,255,255,0.1) !important; /* Pill shape */
        border-radius: 20px !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }

    /* Active/Hover state */
    .nav a.active, .nav a:hover {
        background: #f5b041 !important;
        color: #1e3d59 !important;
    }

    /* Other Mobile Content Fixes */
    .banner-text { padding: 10px 15px; }
    .banner-text h1 { font-size: 22px; }
    .banner-text p { font-size: 14px; }
    .gallery-grid img { height: 120px; }
    .filter { padding: 20px 5%; gap: 10px; }
}