:root {
    --primary-color: #0048fd;
    --secondary-color: #000000;
    --orange: #e65c00;
    --bg-orange-light: #fff3eb;
    --font-family: "Poppins", sans-serif;
    --font-size: 16px;
    --font-weight: 400;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    color: var(--secondary-color);
}

.bg-blue {
    background-color: var(--primary-color);
}

.text-blue {
    color: var(--primary-color);
}

.btn-blue {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-blue:hover {
    background-color: var(--orange); 
    border-color: var(--orange); 
    color: #ffffff;
}

.nav-link {
    font-size: 15px;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

header {
    padding-top: 65px;
    padding-bottom: 50px;
}

section {
    padding-top: 50px;
    padding-bottom: 50px;
}

section h2 {
    font-size: 50px;
    margin-bottom: 30px;
}

.dropdown-menu .dropdown-item {
    font-size: 0.80rem !important;
    font-weight: 500;
    color: #1E1E1E;
}

.dropdown-menu .dropdown-item.active, 
.dropdown-menu .dropdown-item:active {
    background-color: var(--bg-orange-light);
    color: var(--orange);
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--orange);
}

.flag-icon {
    font-size: 1.1rem;
}

/* ==============================================
   MY PROJECTS SECTION STYLES
=============================================== */
.projects-section {
    font-family: var(--font-family);
    background-color: #ffffff;
    color: #202020;
    padding: 60px 20px;
}

.projects-container {
    max-width: 1140px;
    margin: 0 auto;
}

.projects-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1A1A1A;
}

.projects-section-header p {
    font-size: 1rem;
    color: #555555;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.projects-filter-btn {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    color: #333333;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.projects-filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Card Content & Image Container */
.project-img-container {
    background-color: #eaf0ff;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #d8e4ff;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 72, 253, 0.08);
    transition: transform 0.3s ease;
}

.project-card:hover .project-img-container img {
    transform: translateY(-5px);
}

.project-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.4;
}

/* ==============================================
   SKILL BADGE STYLES
=============================================== */
.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px; 
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); 
    border: 1px solid #f1f4f9; 
    font-size: 0.95rem;
    font-weight: 500;
    color: #333333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.skill-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ==============================================
   NAVBAR & SCROLL INDICATOR
=============================================== */
.nav-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.scroll-indicator {
    font-size: 0.72rem;
    color: #666666;
    text-align: right;
    width: 100%;
    margin-top: 1px;
    padding-right: 6px;
    position: relative;
    z-index: 1;
    pointer-events: none; /* Mencegah teks menghalangi klik dropdown */
}

/* Wrapper Khusus Tombol Bahasa */
.lang-dropdown-wrapper {
    flex-shrink: 0;
    position: relative;
    z-index: 1060;
}

.lang-dropdown-wrapper .dropdown-toggle {
    font-size: 13px !important;
    padding: 4px 8px !important;
}

/* ==============================================
   RESPONSIVE NAVBAR (DESKTOP & TABLET/MOBILE)
=============================================== */
@media (min-width: 992px) {
    .swipeable-menu {
        width: auto;
        margin-left: auto;
    }
    .mobile-dropdown {
        position: absolute !important;
    }
}

@media (max-width: 991px) {
    .swipeable-menu {
        display: flex !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch; 
        scroll-behavior: smooth;
        flex: 1; 
        min-width: 0 !important;
        padding-top: 4px;
        padding-bottom: 6px;
        padding-right: 12px;
        justify-content: flex-start;
        scrollbar-width: thin;
        position: relative;
        z-index: 1050;
    }

    /* Scrollbar tipis elegan di browser Webkit */
    .swipeable-menu::-webkit-scrollbar {
        height: 3px;
        display: block;
    }

    .swipeable-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .swipeable-menu::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }

    .swipeable-menu .nav-item {
        flex: 0 0 auto !important;
    }

    .swipeable-menu .nav-link {
        font-size: 14px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .swipeable-menu .btn-blue {
        font-size: 14px !important;
        margin-left: 5px;
    }

    /* HANYA tampil jika class .show sedang aktif dari Bootstrap */
    .lang-dropdown-wrapper .mobile-dropdown.show,
    .mobile-dropdown.show {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        min-width: 145px !important;
        background-color: #ffffff !important;
        margin-top: 6px !important;
        z-index: 99999 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }
}

/* ==============================================
   PENYESUAIAN SKALA GLOBAL UNTUK MOBILE (<= 768px)
=============================================== */
@media (max-width: 768px) {
    /* Typografi */
    body {
        font-size: 14px !important;
    }
    p, .text-secondary {
        font-size: 13.5px !important;
        line-height: 1.5;
    }
    h1, .display-4 {
        font-size: 1.8rem !important;
    }
    h2, section h2 {
        font-size: 1.6rem !important;
    }
    h3 {
        font-size: 1.25rem !important;
    }
    h4 {
        font-size: 1.1rem !important;
    }

    /* Padding Section & Header */
    section, header {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }
    header.container.mt-80,
    section#about-me {
        margin-top: 0 !important;
        padding-top: 85px !important;
        padding-bottom: 25px !important;
    }

    /* Header Profile Image */
    header img.rounded-circle,
    #about-me img.rounded-circle {
        max-height: 200px !important;
        width: auto;
    }

    /* Core Competencies */
    .core-competency h3, .competency-title {
        font-size: 1.1rem !important;
    }
    .core-competency h4, .competency-item h4 {
        font-size: 0.95rem !important;
    }
    .core-competency p, .competency-item p {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }
    .icon-wrapper {
        max-width: 100% !important;
        height: 170px !important;
    }

    /* Projects */
    .projects-section-header h2 {
        font-size: 2.2rem !important;
    }
    .projects-filters {
        gap: 10px;
    }
    .projects-filter-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
    .project-img-container {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
    .project-img-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    .project-title,
    .project-card h3.project-title {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }
    .project-category {
        font-size: 0.78rem !important;
        margin-bottom: 12px !important;
        line-height: 1.4;
    }
    .project-card .btn-sm {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }

    /* Buttons & Badges */
    .btn {
        font-size: 13px !important;
        padding: 6px 16px !important;
    }
    .skill-badge {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        gap: 8px !important;
    }
    .skill-badge img {
        width: 18px !important;
        height: 18px !important;
    }

    /* Certifications */
    .cert-card {
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    .cert-card .cert-icon {
        padding: 4px !important;
    }
    .cert-card .cert-icon img {
        width: 48px !important;
        height: 48px !important;
    }
    .cert-card .cert-info h6 {
        font-size: 0.88rem !important;
        line-height: 1.3;
    }
    .cert-card .cert-info span.text-muted {
        font-size: 0.75rem !important;
    }
    .cert-card .badge {
        font-size: 0.68rem !important;
        padding: 3px 6px !important;
    }
    .cert-card .text-primary {
        font-size: 0.7rem !important;
    }
}