/* Base & Resets */
:root {
    --brand-color: 2, 132, 199;
}

html,
body {
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    /* Standard scrollbar behavior */
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
    background-color: transparent;
    box-shadow: none;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.25);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--brand-color, 220, 38, 38), 0.7);
    /* brand color on hover */
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.25) transparent;
}

/* Glassmorphism Navbar */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dark .glass {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Cards */
.card-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.dark .card-glass {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Nav Link Style */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Dropdown Smooth Entrance Animation & Hover Stability */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    transform-origin: top left;
    pointer-events: none;
}

/* Continuous hover bridge to prevent dropdown from closing when cursor crosses the gap */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

.group:hover .nav-dropdown,
.group:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Dropdown Link Item Micro-Animation */
.dropdown-link {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-link:hover {
    padding-left: 1.25rem !important;
    background: rgba(var(--brand-color, 220, 38, 38), 0.1);
    color: rgb(var(--brand-color, 220, 38, 38)) !important;
}

/* Rich Dropdown Item Cards */
.dropdown-item-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.dropdown-item-card:hover {
    background: rgba(var(--brand-color, 220, 38, 38), 0.08);
    transform: translateX(4px);
}

.dark .dropdown-item-card:hover {
    background: rgba(var(--brand-color, 220, 38, 38), 0.15);
}

.dropdown-item-card.active {
    background: rgba(var(--brand-color, 220, 38, 38), 0.1) !important;
    border-left: 3px solid rgb(var(--brand-color, 220, 38, 38));
}

.dropdown-item-card.active div>.text-xs {
    color: rgb(var(--brand-color, 220, 38, 38)) !important;
    font-weight: 800 !important;
}

.dropdown-item-icon {
    transition: all 0.2s ease;
}

.dropdown-item-card:hover .dropdown-item-icon {
    background: rgb(var(--brand-color, 220, 38, 38)) !important;
    color: #ffffff !important;
    transform: scale(1.06);
}

.dropdown-item-card.active .dropdown-item-icon {
    background: rgb(var(--brand-color, 220, 38, 38)) !important;
    color: #ffffff !important;
}

/* Smooth Accordion Details Indicator */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
}

/* Mobile Drawer Smooth Slide Animation */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#mobile-menu.active {
    transform: translateX(0) !important;
}

#mobile-menu-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu-backdrop.active {
    opacity: 1 !important;
}

/* Global Micro-Animations & Responsive Utility Classes */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.dark .hover-lift:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Neon Glow Button */
.neon-btn {
    box-shadow: 0 0 10px #14b8a6, 0 0 20px #14b8a6;
    transition: all 0.3s ease;
}

.neon-btn:hover {
    box-shadow: 0 0 15px #14b8a6, 0 0 30px #14b8a6, 0 0 45px #14b8a6;
    transform: translateY(-2px);
}

/* Preloader */
#preloader {
    display: none !important;
}

.dark #preloader {
    background: #0f172a;
}

/* Timeline */
.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #14b8a6;
}

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fbbf24;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    z-index: 10;
}

.dark .timeline-item::before {
    border-color: #0f172a;
}

@media (min-width: 768px) {
    .timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 45%;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
    }
}

.map-dot {
    width: 12px;
    height: 12px;
    background: #fbbf24;
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-dot:hover {
    transform: scale(1.5);
}

.map-dot[data-info]::after {
    content: attr(data-info);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.map-dot:hover[data-info]::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Lightbox */
#lightbox {
    backdrop-filter: blur(8px);
}

/* Marquee Container */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-y-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.marquee-y-content {
    display: flex;
    flex-direction: column;
    animation: marqueeY 20s linear infinite;
}

.marquee-y-content:hover {
    animation-play-state: paused;
}

.marquee-y-wrapper::before,
.marquee-y-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 10;
}

.marquee-y-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-color), transparent);
}

.marquee-y-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

body.dark {
    --bg-color: #0f172a;
}

body {
    --bg-color: #f8fafc;
}

/* Tilt Card Override */
.js-tilt-glare {
    border-radius: 1rem;
}

/* Hide scrollbar for gallery slider */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Mitra marquee keyframe — scrolls exactly 50% (= 6 real items) then resets */
@keyframes mitraScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Active News Category Button */
.cat-btn.active {
    background-color: rgb(var(--brand-color, 220, 38, 38)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Footer Accordion for Mobile */
@media (max-width: 767px) {
    .footer-accordion summary::-webkit-details-marker {
        display: none;
    }

    .footer-accordion summary {
        list-style: none;
    }

    .footer-accordion[open] summary .accordion-icon {
        transform: rotate(180deg);
    }
}

@media (min-width: 768px) {
    .footer-accordion summary {
        pointer-events: none;
        cursor: default;
    }

    .footer-accordion summary::-webkit-details-marker {
        display: none;
    }

    .footer-accordion summary {
        list-style: none;
    }

    .footer-accordion summary .accordion-icon {
        display: none;
    }

    .footer-accordion {
        display: block !important;
    }

    .footer-accordion[open] summary~* {
        display: block !important;
    }

    .footer-accordion:not([open]) summary~* {
        display: block !important;
    }
}

/* ==========================================================================
   Clean Social Media Buttons (Icons are never obscured on hover)
   ========================================================================== */
.social-btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0284c7;
}

.dark .social-btn {
    background: #0f172a;
    border-color: #1e293b;
    color: #38bdf8;
}

.social-btn i {
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-btn:hover i {
    transform: scale(1.18);
}

/* 1. Website / Globe */
.social-btn.social-web:hover {
    color: #0284c7 !important;
    border-color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}

/* 2. Instagram */
.social-btn.social-ig:hover {
    color: #e1306c !important;
    border-color: #e1306c !important;
    background: rgba(225, 48, 108, 0.08) !important;
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.25) !important;
}

/* 3. Phone / Telepon */
.social-btn.social-phone:hover {
    color: #059669 !important;
    border-color: #059669 !important;
    background: rgba(5, 150, 105, 0.08) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
}

/* 4. YouTube */
.social-btn.social-yt:hover {
    color: #ff0000 !important;
    border-color: #ff0000 !important;
    background: rgba(255, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25) !important;
}

/* 5. TikTok */
.social-btn.social-tiktok:hover {
    color: #000000 !important;
    border-color: #000000 !important;
    background: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.dark .social-btn.social-tiktok:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2) !important;
}