/* --- Global Styles --- */
:root {
    --primary: #0a192f; /* Dark Blue */
    --accent: #d4af37;  /* Gold */
    --light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.sticky {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.logo span { color: var(--accent); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.btn-nav {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1464146072230-91cabc9fa7c0?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--accent);
}

/* --- Services & Fleet --- */
section { padding: 100px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.underline {
    width: 70px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
}

.services-grid, .fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--primary);
    color: var(--white);
}

.fleet-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fleet-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.fleet-card:hover .fleet-img img {
    transform: scale(1.1);
}

.fleet-info { padding: 25px; }

.fleet-features {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* --- Glassmorphism Booking --- */
.booking {
    background: var(--primary);
    color: var(--white);
}

.booking-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input {
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
}

.btn-submit {
    background: var(--accent);
    color: var(--primary);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Floating Components --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); }
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
    }
    .nav-menu.active { right: 0; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--white);
        margin: 5px;
    }
    .booking-container { grid-template-columns: 1fr; }
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
DESTINATIONS
========================= */

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;
}

.destination-card {
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.4s;
}

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

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

.destination-content {
    padding: 25px;
}

.destination-content span {
    color: var(--accent);
    font-weight: 600;
}

/* =========================
ABOUT
========================= */

.about {
    background: #f8f9fa;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-features {
    margin-top: 30px;
}

.about-features div {
    margin-bottom: 15px;
    font-weight: 500;
}

.about-features i {
    color: var(--accent);
    margin-right: 10px;
}

/* =========================
TESTIMONIALS
========================= */

.testimonials {
    background: var(--primary);
    color: white;
    text-align: center;
}

.testimonial-content {
    display: none;
    max-width: 700px;
    margin: auto;
}

.testimonial-content.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.stars {
    color: gold;
    margin-top: 10px;
}

/* =========================
CONTACT
========================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-info {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 20px;
}

.contact-info p {
    margin: 20px 0;
}

.contact-info i {
    color: var(--accent);
    margin-right: 10px;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: 20px;
}

/* =========================
FOOTER
========================= */

footer {
    background: #08111f;
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 40px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

/* =========================
BACK TO TOP
========================= */

#backToTop {
    position: fixed;
    right: 30px;
    bottom: 110px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    font-size: 18px;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

    .hero-btns {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

.btn-location{
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-location:hover{
    background: var(--accent);
    color: var(--primary);
}

.destination-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.destination-card{
    cursor: pointer;
}

/* FIX: HERO terlalu besar di mobile (tidak mengubah layout lain) */
@media (max-width: 768px) {

    .hero-content {
        padding-top: 90px !important;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem !important;
    }
}