/* Welcome Page Custom Styles - UI/UX Improvements */

/* ============================================
   TRANSPARENT HEADER STYLES
   ============================================ */
.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
}

.header-transparent .mega-menu > section.menu-list-items {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-transparent.header-scrolled .mega-menu > section.menu-list-items {
    background-color: rgba(11, 72, 139, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Ensure logo and menu links are visible on transparent background */
.header-transparent .mega-menu .menu-logo > li > a,
.header-transparent .mega-menu .menu-links > li > a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-transparent .mega-menu .menu-links > li > a:hover {
    color: #ffd700;
}

.header-transparent .mega-menu .menu-links > li.active > a {
    color: #ffd700;
}

/* Mobile responsive for transparent header */
@media screen and (max-width: 991px) {
    .header-transparent .mega-menu .menu-links {
        background: rgba(11, 72, 139, 0.98);
    }
    
    .header-transparent .mega-menu .menu-links > li > a {
        color: #ffffff;
        text-shadow: none;
    }
    
    .header-transparent .mega-menu .menu-mobile-collapse-trigger:before,
    .header-transparent .mega-menu .menu-mobile-collapse-trigger:after,
    .header-transparent .mega-menu .menu-mobile-collapse-trigger span {
        background: #ffffff;
    }
}

:root {
    --primary-color: #0B488B;
    --primary-blue: #1e3a5f;
    --primary-bg: #0B488B;
    --secondary-bg: #1e3a5f;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Hero Search Improvements */
.hero-search-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-search-box:hover,
.hero-search-box:focus-within {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 50px rgba(0,0,0,0.2);
}

.hero-search-box .search-icon {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
}

.hero-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    padding: 12px 0;
    outline: none;
}

.hero-search-box input::placeholder {
    color: #999;
}

.hero-search-box .btn-search {
    background: var(--primary-bg);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search-box .btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(11, 72, 139, 0.4);
}

/* Introduction Section */
.intro-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    padding: 80px 0 60px;
}

.intro-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}

.intro-card p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
    margin-bottom: 20px;
}

.intro-card p:last-of-type {
    margin-bottom: 0;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    margin-top: 25px;
    border: 1px solid #e9ecef;
}

.partner-badge img {
    height: 60px;
    width: auto;
    margin-right: 20px;
}

.partner-badge span {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Modern Stats Cards */
.stats-section {
    background: var(--secondary-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-bg);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.stat-card .stat-icon {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-card .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: block;
}

.stat-card .stat-label {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.stat-card .stat-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Topic Cards */
.topic-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    height: 100%;
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.topic-card .topic-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    transition: var(--transition);
}

.topic-card .topic-icon img {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.topic-card h5 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Android App Section */
.app-promo-section {
    background: var(--primary-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.app-promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.app-mockup {
    position: relative;
    z-index: 2;
}

.app-mockup img {
    max-height: 400px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    transition: var(--transition);
}

.app-mockup img:hover {
    transform: translateY(-10px) scale(1.02);
}

.app-content {
    color: #fff;
    position: relative;
    z-index: 2;
}

.app-content h6 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.app-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-app-download {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-app-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-app-download i {
    font-size: 24px;
    margin-right: 12px;
}

/* Infografis Section */
.infografis-section {
    background: var(--primary-bg);
    padding: 80px 0;
}

.infografis-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.infografis-item img {
    transition: var(--transition);
}

.infografis-item:hover img {
    transform: scale(1.05);
}

/* News Cards */
.news-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card .news-image {
    height: 200px;
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-card .news-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.news-card .news-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-card .news-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.news-card .news-title a:hover {
    color: var(--primary-color);
}

.news-card .news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-card .news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.news-card .btn-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.news-card .btn-read-more:hover {
    color: #8B0000;
}

.news-card .btn-read-more i {
    margin-left: 8px;
    transition: var(--transition);
}

.news-card .btn-read-more:hover i {
    transform: translateX(5px);
}

/* Visitor Stats Section */
.visitor-stats-section {
    background: #fff;
    padding: 60px 0 80px;
}

.visitor-stat-card {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.visitor-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.visitor-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 72, 139, 0.3);
}

.visitor-stat-card:hover::before {
    transform: scale(1.5);
}

.visitor-stat-card .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}

.visitor-stat-card .stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

.visitor-stat-card .stat-icon {
    font-size: 24px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Map Cards Skeleton */
.map-skeleton-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 14px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Section Titles */
.section-title-modern {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-modern .subtitle {
    display: inline-block;
    background: rgba(11, 72, 139, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title-modern .title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.section-title-modern .title .highlight {
    color: var(--primary-color);
}

.section-title-modern.light .subtitle {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.section-title-modern.light .title {
    color: #fff;
}

/* Buttons */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    background: var(--primary-bg);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(11, 72, 139, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-primary-custom i {
    margin-left: 10px;
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-bg);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-secondary-custom i {
    margin-left: 10px;
}

/* Modal Improvements */
.modal-modern .modal-content {
    border-radius: var(--border-radius);
    border: none;
    overflow: hidden;
}

.modal-modern .modal-header {
    background: var(--primary-bg);
    color: #fff;
    border: none;
    padding: 20px 25px;
}

.modal-modern .modal-header .close {
    color: #fff;
    opacity: 0.8;
}

.modal-modern .modal-header .close:hover {
    opacity: 1;
}

.modal-modern .modal-title {
    font-weight: 600;
}

.modal-modern .modal-body {
    padding: 30px;
}

.modal-modern .modal-footer {
    border-top: 1px solid #eee;
    padding: 20px 25px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-search-container {
        max-width: 90%;
    }
    
    .stat-card .stat-number {
        font-size: 36px;
    }
    
    .app-mockup img {
        max-height: 300px;
    }
    
    .app-content h2 {
        font-size: 28px;
    }
    
    .section-title-modern .title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .hero-search-box {
        flex-direction: column;
        border-radius: var(--border-radius);
        padding: 15px;
    }
    
    .hero-search-box .search-icon {
        display: none;
    }
    
    .hero-search-box input {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .hero-search-box .btn-search {
        width: 100%;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
    
    .app-content {
        text-align: center;
        margin-top: 30px;
    }
    
    .app-mockup {
        text-align: center;
    }
    
    .intro-card {
        padding: 25px;
    }
    
    .partner-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .partner-badge img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .section-title-modern .title {
        font-size: 24px;
    }
    
    .visitor-stat-card {
        margin-bottom: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


/* ============================================
   TABLEAU VISUALIZATION SECTION
   ============================================ */
.tableau-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 80px 0;
    position: relative;
}

.tableau-section .section-desc {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.7;
}

.tableau-wrapper {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 60px rgba(11, 72, 139, 0.12);
    border: 1px solid rgba(11, 72, 139, 0.08);
}

.tableau-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #0B488B;
    color: #fff;
}

.tableau-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tableau-info > i {
    font-size: 28px;
    opacity: 0.9;
}

.tableau-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.tableau-subtitle {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

.tableau-actions {
    display: flex;
    gap: 10px;
}

.btn-fullscreen {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.tableau-container {
    position: relative;
    width: 100%;
    background: #f1f5f9;
    min-height: 650px;
}

.tableau-container .tableauPlaceholder {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.tableau-container .tableauViz {
    display: block;
    width: 100%;
    height: 650px;
    border: none;
}

.tableau-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.tableau-features {
    display: flex;
    gap: 25px;
}

.tableau-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.tableau-features span i {
    color: #0B488B;
    font-size: 14px;
}

.tableau-source {
    font-size: 12px;
    color: #94a3b8;
}

/* Responsive Tableau */
@media (max-width: 991px) {
    .tableau-section {
        padding: 60px 0;
    }
    
    .tableau-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .tableau-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .tableau-container,
    .tableau-container .tableauPlaceholder,
    .tableau-container .tableauViz {
        height: 500px;
        min-height: 500px;
    }
    
    .tableau-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tableau-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .tableau-wrapper {
        border-radius: 12px;
        margin: 0 -15px;
    }
    
    .tableau-header {
        padding: 15px;
    }
    
    .tableau-title {
        font-size: 16px;
    }
    
    .btn-fullscreen span {
        display: none;
    }
    
    .btn-fullscreen {
        padding: 10px 15px;
    }
    
    .tableau-container,
    .tableau-container .tableauPlaceholder,
    .tableau-container .tableauViz {
        height: 400px;
        min-height: 400px;
    }
    
    .tableau-footer {
        padding: 15px;
    }
    
    .tableau-features span span {
        display: none;
    }
}
