* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    background-color: #023047;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ganti height: 100% jadi min-height */
    overflow-x: hidden;
    overflow-y: auto; /* Selalu allow scroll Y */
    background-color: #023047;
    margin-top: 50px;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
    background: transparent;
    font-family: 'Cocogoose Pro', sans-serif;
}

.navbar.scrolled {
    padding: 5px 10%;
    background: #023047;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display:  flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-navbar {
    height: 50px;
    width: auto;
    transition: height 0.4s ease;
    transform:translateX(-15px);
}

.navbar.scrolled .logo-navbar {
    height: 30px;
    transform: translateY(4px) translateX(-15px);
}

.nav-menu {
    display: flex;
    gap:  40px;
    list-style: none;
}

.nav-menu a {
    color: #fdfaf6;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.nav-menu li a {
    color: #fdfaf6;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu li a:hover {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 20px;
    }
    .nav-menu li a {
        font-size: 1rem;
    }
    .logo-navbar {
        width: auto;
        height: 40px;
        transform: translateX(-15px);
    }
    .navbar-scrolled .logo-navbar {
        height: 45px;
    }
}

nav .logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.2s;
}

nav ul li a:hover {
    opacity: 0.7;
}

.hamburger {
    position: absolute;
    display: none;
    top: 50%px;
    right: 20px;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
    align-items: center;
}

.hamburger .bar {
    height: 3.5px;
    width: 100%;
    background: #fdfaf6;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animasi X kecil smooth */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.navbar-scrolled .hamburger{
    position: relative;
    top: 10px;
    transform: translateY(4px);
}

/* MOBILE DROPDOWN KECIL */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 10px; /* Dropdown dari bawah hamburger */
        right: 10px;
        width: 200px;
        background: rgba(2, 48, 71, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        flex-direction: column;
        padding: 15px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 12px 25px;
        font-size: 1rem; /* Kecil seperti FAQ di contoh */
        font-weight: 500;
        color: #fdfaf6;
        text-align: left;
    }

    .nav-menu a:hover {
        background: rgba(255,255,255,0.1);
    }
}


@keyframes colorBreath {
    0% {
        filter: brightness(1) hue-rotate(0deg) invert(0);
        transform: scale(1);
    }
    50% {
        filter: brightness(0) hue-rotate(0deg) invert(1);
        transform: scale(1);
    }
    100% {
        filter: brightness(1) hue-rotate(0deg) invert(0);
        transform: scale(1);
    }
}

/* FLOATING WHATSAPP BUTTON */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: transparent;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    font-family: 'Cocogoose Pro', sans-serif;
    font-weight: 600;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background-color: #128C7E;
}

.wa-text {
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.wa-icon {
    width: 35px;
    height: 35px;
}

/* Mobile: Lebih kecil & rapi */
@media (max-width: 768px) {
    .wa-float {
        bottom: 20px;
        right: -10px;
        min-width: 60px;
    }
    .wa-text {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    .wa-icon {
        width: 30px;
        height: 30px;
    }
    .wa-float:hover {
        background: transparent;
        box-shadow: none;
    }
}

/* TAMBAHAN UNTUK HALAMAN CUSTOMIZED (AGAR FIT, TANPA UBAH ASLI) */
/* CATEGORY HERO */
.category-hero {
    padding: 60px 10% 40px;
    background: linear-gradient(rgba(2, 48, 71, 0.8), rgba(2, 48, 71, 0.5));
    text-align: center;
    flex: 1 0 auto;
}

.category-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fdfaf6;
}

.category-hero p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.85;
    color: #fdfaf6;
}

/* TOUR GRID & CARDS */
.tour-grid {
    padding: 0 10% 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    background: #023047;
}

.tour-card {
    background: #023047;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.tour-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tour-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #219EBC;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tour-info {
    padding: 20px;
    background: #023047;
    transition: background 0.3s ease;
    text-decoration: none;
}

.tour-card:hover .tour-info {
    background: #023047;
}

.tour-info h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fdfaf6;
    text-decoration: none;
    text-underline-offset: 0;

}

.tour-info .price {
    color: #8ECAE6;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
    display: block;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-underline-offset: 0;
}

.tour-card a,
.tour-card a:hover,
.tour-card a:focus,
.tour-card a:visited,
.tour-card a:active {
    text-decoration: none;
    color: inherit;
}

.tour-info p,
.tour-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    text-underline-offset: 0;
}

/* RESPONSIVE MOBILE (SAMAIN DENGAN ASLI + TAMBAHAN) */
@media (max-width: 768px) {
    .category-hero {
        padding: 100px 5% 40px;
    }

    .tour-grid {
        padding: 0 5% 60px;
        gap: 24px;
    }

    .tour-card {
        border-radius: 16px;
    }

    .tour-card img {
        height: 180px;
    }

    .tour-info {
        padding: 16px;
    }

    .tour-info h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
        line-height: 1.35;
    }

    .tour-info .price {
        font-size: 1.25rem;
        margin-top: 6px;
    }

    .tour-info h3,
    .tour-info .price {
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
    }

    .tour-card .badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tour-card img {
        height: 160px;
    }

    .tour-info h3 {
        font-size: 1.1rem;
    }

    .tour-info .price {
        font-size: 1.15rem;
    }
}

/* FOOTER */
footer {
    padding: 30px 10%;
    background: #0d0d0d;
    color: white;
    font-size: 0.9rem;
    width: 100%;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-inner p {
    margin: 0;
    opacity: 0.7;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-ig,
.footer-wa {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

.footer-ig svg,
.footer-wa svg {
    transition: transform 0.3s ease;
}

.footer-ig:hover {
    color: #E1306C;
}

.footer-wa:hover {
    color: #25D366;
}

.footer-ig:hover svg,
.footer-wa:hover svg {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}