/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --primary: #0f172a;      /* Dark Navy */
    --primary-light: #1e293b; 
    --accent: #f97316;       /* Oranye Mewah */
    --accent-hover: #ea580c;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

/* --- 2. ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3. HEADER --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: 0.4s ease; padding: 1rem 5%; background: transparent;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
nav {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-container img { height: 50px; width: auto; }
.logo-text {
    font-weight: 800; font-size: 1.2rem; line-height: 1.1; color: var(--bg-white); 
    text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s;
}
header.scrolled .logo-text { color: var(--primary); } 

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.9); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--accent); transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }
header.scrolled .nav-links a { color: var(--text-main); }
header.scrolled .nav-links a:hover { color: var(--accent); }

.btn-nav-contact {
    background: var(--accent); color: white !important; padding: 10px 24px;
    border-radius: 50px; font-weight: 700 !important; box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}
.btn-nav-contact:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-nav-contact::after { display: none; }

.hamburger { display: none; font-size: 1.5rem; color: white; cursor: pointer; }
header.scrolled .hamburger { color: var(--primary); }

/* --- 4. HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.6)), url('../image/hero-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; padding: 0 20px; position: relative;
}
.hero-content { max-width: 800px; z-index: 2; }
.badge-hero {
    display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(5px);
    padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase; letter-spacing: 1px;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.2; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; font-weight: 300; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent); color: white; padding: 16px 40px; border-radius: 50px;
    font-weight: 700; font-size: 1.1rem; box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(249, 115, 22, 0.6); }
.btn-secondary {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); color: white;
    padding: 16px 40px; border-radius: 50px; font-weight: 600; border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: white; color: var(--primary); }

/* --- 5. STATS BAR --- */
.stats-bar {
    background: white; padding: 2rem 5%; margin-top: -50px; position: relative; z-index: 10;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    border-bottom: 1px solid #f1f5f9;
}
.stats-container {
    max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; text-align: center;
}
.stat-item h4 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.stat-item p { font-size: 0.9rem; color: var(--text-light); font-weight: 600; }

/* --- 6. SECTIONS & HEADER --- */
section { padding: 6rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-label { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1.5px; display: block; margin-bottom: 10px; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; line-height: 1.2; }
.section-desc { color: var(--text-light); font-size: 1.1rem; }

/* --- 7. FEATURES --- */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1280px; margin: 0 auto;
}
.feature-card {
    background: white; padding: 3rem 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: all 0.4s ease; border: 1px solid #f1f5f9; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.icon-wrapper {
    width: 70px; height: 70px; background: var(--bg-body); border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; font-size: 1.8rem; color: var(--accent); transition: 0.4s;
}
.feature-card:hover .icon-wrapper { background: var(--accent); color: white; transform: rotate(5deg); }
.feature-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--primary); }

/* --- 8. SERVICES --- */
.services-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto;
}
.service-card {
    flex: 1; min-width: 300px; background: white; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: 0.4s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-header { background: var(--primary); padding: 2rem; text-align: center; color: white; }
.service-header i { font-size: 3rem; margin-bottom: 1rem; color: var(--accent); }
.service-body { padding: 2rem; text-align: center; }

/* --- 9. PRICING (ORIGINAL TICKET STYLE) --- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.ticket-card {
    background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; transition: 0.3s; border: 1px solid #e2e8f0; position: relative;
}
.ticket-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: scale(1.02); }

.ticket-top { padding: 1.5rem; border-bottom: 2px dashed #cbd5e1; position: relative; }
.ticket-top::before, .ticket-top::after {
    content: ''; position: absolute; bottom: -10px; width: 20px; height: 20px; 
    background: var(--bg-body); border-radius: 50%;
}
/* Background Fix for Ticket Holes */
#pricing .ticket-top::before, #pricing .ticket-top::after { background: white; } 

.ticket-top::before { left: -10px; } 
.ticket-top::after { right: -10px; }

.route-flex { display: flex; align-items: center; gap: 15px; }
.route-icon { 
    width: 50px; height: 50px; background: #eff6ff; border-radius: 12px; 
    color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.route-details h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.route-details span { font-size: 0.85rem; color: var(--accent); font-weight: 600; background: #fff7ed; padding: 2px 8px; border-radius: 4px; }

.ticket-bottom { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.price-big { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.price-sub { font-size: 0.8rem; color: var(--text-light); }

.btn-book-sm {
    background: var(--bg-body); color: var(--primary); padding: 8px 16px; border-radius: 8px;
    font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.ticket-card:hover .btn-book-sm { background: var(--primary); color: white; }

/* --- 10. GALLERY --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1280px; margin: 0 auto;
}
.gallery-item { border-radius: var(--radius-md); overflow: hidden; position: relative; height: 250px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-overlay i { color: white; font-size: 2rem; transform: scale(0); transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

/* --- 11. VIDEO CAROUSEL (STANDARD PLAYER SCROLLABLE) --- */
.video-carousel-container {
    max-width: 1280px; margin: 0 auto; 
    display: flex; gap: 25px; 
    overflow-x: auto; padding: 20px 10px 40px 10px;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
}
.video-carousel-container::-webkit-scrollbar { height: 8px; }
.video-carousel-container::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.video-carousel-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.video-carousel-container::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.video-card {
    flex: 0 0 300px; /* Standard card width */
    background: #000; 
    border-radius: 16px; 
    overflow: hidden; 
    scroll-snap-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}
/* Maintain Aspect Ratio inside the card */
.video-card video { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Show full video */
    display: block;
    max-height: 500px; /* Limit height so it doesn't look huge */
}

/* --- 12. CONTACT --- */
.contact-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.contact-pill {
    background: white; padding: 20px 30px; border-radius: 50px; display: flex; align-items: center; gap: 20px;
    box-shadow: var(--shadow-md); transition: 0.3s; border: 1px solid transparent; min-width: 300px;
}
.contact-pill:hover { transform: translateY(-5px); border-color: #25d366; box-shadow: var(--shadow-lg); }
.wa-icon-circle {
    width: 50px; height: 50px; background: #dcfce7; color: #16a34a; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.pill-info h4 { font-size: 1.1rem; font-weight: 700; }
.pill-info span { color: var(--text-light); font-size: 0.9rem; }
.pill-arrow { margin-left: auto; color: #cbd5e1; }

/* --- 13. FOOTER --- */
footer {
    background: var(--primary); color: white; padding: 5rem 5% 2rem; text-align: left; border-top: 5px solid var(--accent);
}
.footer-container {
    max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem;
}
.footer-col h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: white; }
.footer-col p { color: #94a3b8; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid #334155; margin-top: 4rem; padding-top: 2rem; text-align: center; color: #64748b; font-size: 0.9rem;
}

/* --- 14. WHATSAPP WIDGET (CLICK) --- */
.fab-wrapper {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    display: flex; flex-direction: column; align-items: flex-end;
    pointer-events: auto;
}
.fab-menu {
    list-style: none; margin-bottom: 15px; display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fab-wrapper.active .fab-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.fab-trigger {
    width: 60px; height: 60px; background-color: #25d366; border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); display: flex; justify-content: center; align-items: center;
    font-size: 32px; color: white; cursor: pointer; position: relative; transition: all 0.3s; animation: subtle-bounce 3s infinite;
}
.fab-wrapper.active .fab-trigger { transform: rotate(135deg); background-color: #ef4444; box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6); }

.admin-card {
    display: flex; align-items: center; background: white; padding: 10px 15px 10px 10px; border-radius: 50px;
    text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.2s; border: 2px solid transparent; min-width: 160px;
}
.admin-card:hover { transform: translateX(-5px); border-color: #25d366; }
.admin-avatar {
    width: 40px; height: 40px; background: #dcfce7; color: #16a34a; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.2rem; margin-right: 10px;
}
.admin-name { font-size: 0.9rem; font-weight: 700; color: #333; line-height: 1.1; }
.admin-status { font-size: 0.7rem; color: #25d366; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.admin-status::before { content: ''; display: block; width: 6px; height: 6px; background: #25d366; border-radius: 50%; }
@keyframes subtle-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* --- 15. LIGHTBOX --- */
.modal { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-content { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.5); animation: zoomIn 0.3s; }
@keyframes zoomIn { from{transform: scale(0.9); opacity: 0;} to{transform: scale(1); opacity: 1;} }
.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; }

/* --- NEW: RUTE LAINNYA (CENTERED FLEXBOX) --- */
.other-routes-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; max-width: 1200px; margin: 0 auto;
}
.mini-route-card {
    display: flex; align-items: center; justify-content: space-between;
    background: white; padding: 15px 20px; border-radius: 16px;
    border: 1px solid #f1f5f9; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease; text-decoration: none; cursor: pointer;
    flex: 1 1 300px; max-width: 350px;
}
.mini-route-card:hover {
    border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.mini-route-left { display: flex; align-items: center; gap: 15px; }
.mini-icon {
    width: 45px; height: 45px; background: #fff1f2; color: #e11d48;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.mini-info h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; line-height: 1.2; }
.mini-tag {
    font-size: 0.75rem; font-weight: 600; color: var(--text-light);
    background: #f1f5f9; padding: 2px 8px; border-radius: 4px; display: inline-block;
}
.mini-route-card:hover .mini-tag { background: var(--accent); color: white; }
.mini-arrow { color: #cbd5e1; transition: 0.3s; }
.mini-route-card:hover .mini-arrow { color: var(--accent); transform: translateX(5px); }

/* ================= SECTION BACKGROUNDS ================= */
#features { background-color: #ffffff; }
#services { background-color: #fff7ed; } 
#pricing { background-color: #ffffff; }
#armada { background-color: #f1f5f9; }
#videos { background-color: #0f172a; color: white; }
#videos .section-title { color: #ffffff; }
#videos .section-desc { color: #cbd5e1; }
#contact { background-color: #ffffff; }

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {
    section { padding: 3rem 1.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero { background-attachment: scroll; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: #ffffff; flex-direction: column; padding: 2rem; gap: 1.5rem; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-150%); 
        transition: 0.4s; z-index: 999; border-top: 1px solid #f1f5f9;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { color: var(--primary) !important; font-size: 1.1rem; font-weight: 700; }
    .hamburger { display: block; color: white; }
    header.scrolled .hamburger { color: var(--primary); }
    .stats-container { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stats-bar { padding: 2rem 1.5rem; margin-top: -30px; }
    
    /* Grid Updates for Mobile */
    .features-grid, .pricing-grid, .services-container { grid-template-columns: 1fr; display: grid; }
    .mini-route-card { flex: 1 1 100%; max-width: 100%; }
    .btn-nav-contact { width: 100%; text-align: center; justify-content: center; }
    .fab-wrapper { bottom: 25px; right: 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
}