:root {
    /* Light Theme (Default) */
    --theme-primary: #0d6efd; 
    --theme-primary-rgb: 13, 110, 253;
    --theme-light: rgba(13, 110, 253, 0.1);
}

[data-bs-theme="dark"] {
    --theme-primary: #3b82f6; 
    --theme-primary-rgb: 59, 130, 246;
    --theme-light: rgba(59, 130, 246, 0.15);
}

body {
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    /* Bootstrap handles this natively */
}
.text-theme { color: var(--theme-primary) !important; }
.bg-theme { background-color: var(--theme-primary) !important; color: white !important; }
.bg-theme-light { background-color: var(--theme-light) !important; }

/* Buttons */
.btn-theme {
    background-color: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-theme:hover {
    background-color: rgba(var(--theme-primary-rgb), 0.85);
    color: white;
    transform: translateY(-2px);
}
.btn-outline-theme {
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-outline-theme:hover {
    background-color: var(--theme-primary);
    color: white;
}
.btn-link-theme {
    color: var(--theme-primary);
    text-decoration: none;
}
.btn-link-theme:hover {
    color: rgba(var(--theme-primary-rgb), 0.8);
}
.btn-lang {
    background: transparent;
    border: 1px solid var(--bs-border-color);
}

/* Navbar */
.premium-navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}
.logo-img {
    height: 40px;
    width: auto;
}
.nav-link {
    font-weight: 500;
    margin: 0 10px;
}
.nav-link:hover, .nav-link.active {
    color: var(--theme-primary);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}
.tracking-wider {
    letter-spacing: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px; /* Offset navbar */
}
.premium-badge {
    background-color: var(--theme-light);
    color: var(--theme-primary);
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.9rem;
}
.hero-image-wrapper {
    position: relative;
    display: inline-block;
}
.hero-image {
    max-width: 80%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
[data-theme="dark"] .hero-image {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bs-body-bg);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
    color: var(--bs-body-color);
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Stat Cards */
.stat-card {
    background: var(--bs-body-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--bs-border-color);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-primary);
}

/* Timeline */
.timeline-container {
    border-left: 2px solid var(--bs-border-color);
    padding-left: 30px;
    position: relative;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--theme-primary);
    border: 2px solid var(--bs-body-bg);
}
.timeline-content {
    background: var(--bs-body-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--bs-border-color);
}

/* Cards & Utilities */
.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}
.transition {
    transition: all 0.3s ease;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.premium-footer {
    background-color: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

/* Responsive Styles for Mobile (Android & iOS) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        max-width: 90%;
    }
    
    .floating-badge {
        padding: 10px 15px;
        font-size: 0.8rem;
        bottom: -10px;
        right: -10px;
    }
    
    .floating-badge .fs-4 {
        font-size: 1.2rem !important;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .premium-badge {
        font-size: 0.8rem;
        display: inline-block;
        white-space: normal;
        line-height: 1.4;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -27px;
    }
    
    .pelopor-highlight {
        padding: 30px 20px !important;
        text-align: center;
    }
    
    .pelopor-highlight .d-flex {
        flex-direction: column;
        justify-content: center;
    }
    
    .pelopor-highlight h3 {
        font-size: 1.5rem;
    }
}
