/* =========================================
   1. GLOBAL STYLES & SCROLLBAR
   ========================================= */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    /* Reset posisi body agar tidak terdorong Google Translate */
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d9488; /* Primary Color */
    border-radius: 10px;
}

/* =========================================
   2. COMPONENT STYLES
   ========================================= */

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark .glass-nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Background (Index) */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1573790387438-4da905039392?q=80&w=1925&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Tab Navigation (Detail Page) */
.tab-btn.active-tab {
    color: #0d9488;
    border-bottom-color: #0d9488;
}

/* Swiper Pagination (Jika ada slider) */
.swiper-pagination-bullet-active {
    background-color: #0d9488 !important;
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */

/* Mobile Grid 2 Columns */
.grid-mobile-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-mobile-2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* =========================================
   4. ANIMATIONS & TRANSITIONS
   ========================================= */

/* Fade Animation Utility */
.animate-fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 100vh;
    opacity: 1;
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-open .faq-content {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-open .faq-icon {
    transform: rotate(180deg);
}

/* =========================================
   5. MODAL STYLES
   ========================================= */
#package-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#package-modal.hidden-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#package-modal.visible-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s;
}

#package-modal.visible-modal .modal-content {
    transform: scale(1);
}

/* Close Button Styling */
#mobile-menu-btn i.fa-xmark,
.modal-content button i.fa-xmark {
    color: #ef4444 !important; /* Merah terang */
    font-size: 1.8rem !important; /* Ukuran Besar */
    font-weight: 900 !important; /* Tebal */
    opacity: 1;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 2px rgba(239, 68, 68, 0.2));
}

#mobile-menu-btn:hover i.fa-xmark,
.modal-content button:hover i.fa-xmark {
    transform: scale(1.1);
}

.modal-content button:has(.fa-xmark) {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
}

.dark .modal-content button:has(.fa-xmark) {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* =========================================
   6. GOOGLE TRANSLATE FIXES
   ========================================= */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.skiptranslate iframe,
.goog-te-menu-frame,
.goog-te-gadget-icon,
.goog-te-menu-value,
iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

#goog-gt-tt {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}