/* ===== Navbar Styling ===== */
.navbar {
    transition: all 0.3s ease;
}

.navbar .navbar-nav {
    gap: 5px; /* hilangkan gap asal */
}

.navbar .nav-link {
    color: #333;
    font-weight: 200;
    padding: 8px 0; /* atas bawah je */
    border-radius: 8px;
    transition: all 0.25s ease;
    display: inline-block;
    text-align: center;
    min-width: 120px; /* semua menu sekata lebar */
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background-color: #5cbefc;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Shadow on scroll */
.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== Hero Section ===== */
.hero-section {
    background-color: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

/* Profile Image */
.hero-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Name & Title */
.hero-name {
    font-size: 2.9rem;
    font-weight: 800;
    color: #0a0a0a;
    letter-spacing: 3px;
}

.hero-job {
    font-size: 1.5rem;
    color: #555;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.hero-section .btn {
    border-radius: 8px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.hero-section .btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
}

.hero-section .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.hero-section .btn-outline-dark {
    border: 1.5px solid #333;
    color: #333;
    background-color: transparent;
}

.hero-section .btn-outline-dark:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive scaling */
@media (max-width: 768px) {
    .hero-name { font-size: 2rem; }
    .hero-job { font-size: 1rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-img { width: 100px; height: 100px; }
}

.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    color: #333;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #007bff; /* sama warna accent dengan button */
    transform: translateY(-3px);
}

/* ===== About Section ===== */

.about-section .about-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
}

.about-section .about-title span {
    color: #5cbefc; 
}

.about-text {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-right: 3rem;
}

.about-img {
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: block;
    margin-left: auto; /* desktop: image right */
}

/* Stats row flex */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* center on desktop */
    margin: 0; /* remove Bootstrap row negative margin */
    padding: 0;
}

/* Cards styling */
.about-card {
    flex: 1 1 220px; /* auto grow/shrink, min-width 220px */
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.about-number {
    font-size: 2rem;
    font-weight: 700;
    color: #444953;
    line-height: 1.2;
    word-break: break-word;
}

.about-label {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Desktop: 4 cards per row */
@media (min-width: 992px) {
    .about-card {
        flex: 1 1 calc(25% - 20px); /* 4 cards minus gap */
    }
}

/* Tablet: 2 cards per row */
@media (max-width: 991px) and (min-width: 769px) {
    .about-card {
        flex: 1 1 calc(50% - 20px); /* 2 cards minus gap */
    }
}

/* Mobile: 1 card per row full width */
@media (max-width: 768px) {
    .about-section {
        text-align: center;
        padding: 1.2rem 0.8rem;
    }

    .about-section .row > .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .about-text {
        padding: 0;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify; /* or center */
    }

    .about-img {
        max-width: 100%;
        margin: 0 auto 1.5rem auto;
        display: block;
    }

    .about-title {
        font-size: 2rem;
        letter-spacing: 2px;
        text-align: center;
    }

    .stats-row {
        flex-direction: column;
        gap: 15px;
    }

    .about-card {
        flex: 1 1 100%;
        width: 100%;
    }

    .about-number {
        font-size: 1.8rem;
    }

    .about-label {
        font-size: 0.95rem;
    }
}

/* Extra small mobile <576px */
@media (max-width: 575px) {
    .about-section {
        padding: 1rem 0.6rem;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about-number {
        font-size: 1.6rem;
    }

    .about-label {
        font-size: 0.9rem;
    }
}


/* ===== Resume Section ===== */

/* .resume-section {
    background-color: #ffffff;
    padding-left: 6rem;
    padding-right: 6rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
} */

.resume-section .resume-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.resume-section .resume-title span {
    color: #5cbefc; 
}

.resume-section .progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.resume-section .progress-bar {
    background-color: #339DFF;
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-out;
}


/* ===== Portfolio Section ===== */

/* .portfolio-section {
    background-color: #f9fafc;
    padding-left: 6rem;
    padding-right: 6rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
} */

.portfolio-section .portfolio-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.portfolio-section .portfolio-title span {
    color: #5cbefc;
}

.portfolio-section .portfolio-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.portfolio-filters .filter-btn {
    padding: 8px 22px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}

.portfolio-filters .filter-btn:hover {
    background: #f1f5ff;
    border-color: #c5d7ff;
}

.portfolio-filters .filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.portfolio-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    cursor: pointer;
    border: 1px solid #e6e1e1;
}

.portfolio-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-top-left-radius: 16px;  
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: block;
}

.portfolio-card-content {
    padding: 16px;
}

.portfolio-card-content h5 {
    transition: color 0.3s ease, text-decoration 0.3s ease;
    color: #111; 
}

.portfolio-card:hover .portfolio-card-content h5 {
    color: #2563eb;
}

.image-wrapper {
    position: relative;
}

.category-tag {
    position: absolute;
    bottom: 16px; 
    left: 16px;
    background: rgba(37, 99, 235, 0.85);
    color: #fff;
    padding: 0.3em 0.8em;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: 0.3s ease;
}

.image-wrapper:hover .category-tag {
    opacity: 1;
}

.portfolio-card p.text-muted {
    margin-top: 0; 
}

/* ===== Partners Section ===== */

/* .partner-section {
    background-color: #ffffff;
    padding-left: 6rem;
    padding-right: 6rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
} */

.partner-section .partner-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.partner-section .partner-title span {
    color: #5cbefc;
}

.partner-section .partner-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.partner-logo {
    height: 100px;
    transition: all 0.3s ease;
}

.partner-logo img {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ===== Contact Section ===== */

/* .contact-section {
    background-color: #f9fafc;
    padding-left: 6rem;
    padding-right: 6rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
} */

.contact-section .contact-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.contact-section .contact-title span {
    color: #5cbefc;
}

.contact-section .contact-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e6e1e1;
    padding: 30px;
}

/* ===== Footer Section ===== */
.footer-section {
    background-color: #0d1117; 
    padding-top: 5rem;
    padding-bottom: 3rem;
    padding-left: 6rem;
    padding-right: 6rem;
}

.footer-link {
    color: #e6e6e6;
    text-decoration: none;
    display: block;
    margin-bottom: .5rem;
    transition: 0.2s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background-color: #161b22; 
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2f36;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.2s;
}

.icon-box:hover {
    background-color: #1f242d;
    border-color: #3c424a;
}

.footer-divider {
    border-color: rgba(255,255,255,0.15);
    width: 100%;
}

/* ===== Global Button Styling (Outside Hero) ===== */
.btn-primary {
    background-color: #5cbefc !important; 
    border: none !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #269cd8 !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid #5cbefc !important;
    color: #5cbefc !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #5cbefc !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ===== Global Container Styling (Outside Hero) ===== */
.section {
    padding: 5rem 8rem 4rem 8rem; /* top right bottom left - desktop */
}

/* Tablet: medium screens ≤991px */
@media (max-width: 991px) {
    .section {
        padding: 4rem 3rem 3rem 3rem; /* reduce padding for tablet */
    }
}

/* Mobile: small screens ≤768px */
@media (max-width: 768px) {
    .section {
        padding: 4rem 2.5rem 4rem 2.5rem; /* compact padding for mobile */
    }
}

/* Extra small mobile <576px */
@media (max-width: 575px) {
    .section {
        padding: 4rem 2.2rem 2rem 2.2rem; /* very compact for small phones */
    }
}

/* ===== Global Colors Styling (Outside Hero) ===== */
/* Background color */
.bg-light {
    background-color: #f9fafc;
}

.bg-white {
    background-color: #ffffff;
}