/* public/css/publik.css */

/* Navbar Publik - Transparent with Navy Gradient Hint */
.navbar-publik {
    background: linear-gradient(180deg, rgba(11, 45, 82, 0.88) 0%, rgba(18, 58, 104, 0.45) 60%, rgba(11, 45, 82, 0) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: none !important;
    padding: 1.1rem 0;
    transition: all 0.4s ease;
}

.navbar-publik.scrolled {
    background: linear-gradient(180deg, rgba(11, 45, 82, 0.96) 0%, rgba(18, 58, 104, 0.9) 100%) !important;
    box-shadow: 0 8px 32px rgba(11, 45, 82, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none !important;
    padding: 0.85rem 0;
}

.navbar-publik .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.7);
}

.navbar-publik .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.navbar-publik .nav-link:hover, 
.navbar-publik .nav-link.active {
    color: #FFFFFF;
    font-weight: 600;
}

.navbar-publik .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-publik .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--gold-500);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(201, 154, 46, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.navbar-publik .nav-link:hover::before {
    width: 80%;
    opacity: 1;
}

.navbar-publik .nav-link.active::before {
    width: 24px;
    opacity: 1;
}

.btn-gold-nav {
    background-color: var(--gold-500);
    color: #FFFFFF !important;
    border: 1px solid var(--gold-500);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 154, 46, 0.3);
}

.btn-gold-nav:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 154, 46, 0.4);
}

/* Modern Dropdown */
.dropdown-menu-modern {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    min-width: 250px;
    transform-origin: top center;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu-modern .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    font-weight: 500;
    color: var(--primary-800);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.dropdown-menu-modern .dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-menu-modern .dropdown-item:hover,
.dropdown-menu-modern .dropdown-item:focus {
    background: rgba(201, 154, 46, 0.1);
    color: var(--primary-900);
    transform: translateX(5px);
}

.dropdown-menu-modern .dropdown-item i {
    font-size: 1.15rem;
    color: var(--gold-500);
    width: 24px;
    text-align: center;
    margin-right: 12px;
    transition: all 0.25s ease;
}

.dropdown-menu-modern .dropdown-item:hover i {
    transform: scale(1.15);
    color: var(--gold-600);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    background: transparent;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-900);
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
    color: var(--primary-900);
    border: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(201, 154, 46, 0.4);
    text-transform: uppercase;
}

/* Statistik Horizontal */
.stats-panel {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .stat-icon {
    font-size: 2rem;
    color: var(--gold-500);
    margin-bottom: 0.5rem;
}

.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1;
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Layanan Cepat */
.quick-service-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s;
    height: 100%;
}

.quick-service-card:hover {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.quick-service-icon {
    font-size: 2rem;
    color: var(--primary-700);
    margin-bottom: 1rem;
}

.quick-service-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Peta Persebaran */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.5rem;
}

#map {
    height: 520px;
    width: 100%;
    border-radius: calc(var(--radius-lg) - 0.5rem);
    z-index: 1;
}

/* Footer */
.footer-publik {
    background-color: var(--primary-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0 1.5rem; /* Reduced padding for more compact look */
}

.footer-publik h5 {
    color: var(--surface);
    font-weight: 600;
    margin-bottom: 1rem; /* Reduced margin */
}

.footer-publik a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-publik a:hover {
    color: var(--gold-500);
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.5) !important;
    display: inline-block;
    transition: all 0.3s ease !important;
}

.footer-social-link:hover {
    color: var(--gold-500) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem; /* Reduced margin */
    padding-top: 1rem; /* Reduced padding */
    font-size: 0.9rem;
}

/* Custom Animation classes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-img-float {
    animation: float 6s ease-in-out infinite;
}

/* ================= SUBTLE TRADE DISTRIBUTION ROUTE ================= */
.subtle-trade-route-container {
    max-width: 520px;
    position: relative;
    opacity: 0.85;
}

.subtle-route-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    pointer-events: none;
    z-index: 1;
}

/* Cluster Marker Styling */
.marker-cluster {
    min-width: 40px;
    height: 38px;
    padding: 0 14px;
    background-color: #0B2D52;
    color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.marker-cluster:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: #C99A2E;
}

.subtle-route-nodes {
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.subtle-node-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.subtle-node-item:hover {
    transform: scale(1.03);
}

.subtle-node-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(11, 45, 82, 0.45);
    border: 1.2px solid rgba(201, 154, 46, 0.45);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.subtle-node-item:hover .subtle-node-circle {
    background: rgba(11, 45, 82, 0.75);
    border-color: #D4AF37;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.subtle-node-circle.active-gold {
    border-color: #D4AF37;
    color: #D4AF37;
    background: rgba(201, 154, 46, 0.2);
}

.subtle-node-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .subtle-moving-dot {
        display: none !important;
    }
    .subtle-node-item {
        transition: none !important;
    }
}
