/* =========================================
   WEBSITE BIODATA - BOOTSTRAP 5
   ========================================= */
/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
/* =========================================
   PENGATURAN DASAR
   ========================================= */
:root {
    --bs-primary: #3869aa;
    --bs-primary-rgb: 56, 105, 170;

    --primary: #3869aa;
    --dark: #152c4c;
    --secondary: #65758b;
    --background: #f3f7fc;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.7;
}
a {
    text-decoration: none;
}
/* =========================================
   CONTAINER
   ========================================= */
/*
   Tidak menggunakan .container global lagi
   karena Bootstrap sudah memilikinya.
*/
main.container {
    padding-top: 35px;
    padding-bottom: 35px;
}
/* =========================================
   NAVBAR BOOTSTRAP
   ========================================= */
.navbar {
    min-height: 75px;
    height: auto;
    padding: 12px 0 !important;
    background-color: white;
    border-bottom: 1px solid #e4ebf4;
}
.navbar .container {
    min-height: 0;
    height: auto;
}
.navbar-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--dark);
}
.navbar-brand:hover {
    color: var(--dark);
}
.navbar-brand span {
    color: var(--primary) !important;
}
.navbar .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    transition: 0.3s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
}
.navbar-toggler {
    border-color: #e4ebf4;
}
.navbar-toggler:focus {
    box-shadow: none;
}
/* =========================================
   HOME PAGE
   ========================================= */
/* Untuk Home versi Bootstrap */
.home-section {
    min-height: 420px;
    padding: 45px !important;
    margin-top: 30px;
    margin-bottom: 35px;
    background-color: white;
    border-radius: 20px;
}
.home-section h1 {
    font-size: 42px;
    line-height: 1.3;
    color: var(--dark);
}
.home-section h5 {
    font-size: 19px;
    color: var(--primary) !important;
}
.home-section p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--secondary);
}
.home-photo {
    width: 230px;
    height: 230px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #e4efff;
}
/* =========================================
   HOME LAMA
   Tetap disediakan jika class lama masih ada
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: white;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}
.hero-text {
    flex: 1;
}
.subtitle {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.hero h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 12px;
}
.hero h2 {
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 20px;
}
.hero-text>p:not(.subtitle) {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 25px;
}
.hero-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 9px solid #e4efff;
}
/* =========================================
   BUTTON
   ========================================= */
/* Bootstrap Primary Button */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: #244d84;
    border-color: #244d84;
    color: white;
}
/* Bootstrap Outline Button */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
/* Tombol khusus Home */
.home-section .btn {
    min-width: 145px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
.home-section .btn-outline-primary {
    color: var(--primary);
    background-color: transparent;
    border: 2px solid var(--primary);
}
.home-section .btn-outline-primary:hover {
    color: white;
    background-color: var(--primary);
}
/* Tombol versi website lama */
.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.buttons .btn,
.buttons .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
.buttons .btn {
    background-color: var(--primary);
    color: white;
}
.buttons .btn-outline {
    background-color: #edf4fd;
    color: var(--primary);
}
.buttons .btn:hover,
.buttons .btn-outline:hover {
    transform: translateY(-3px);
}
/* =========================================
   JUDUL SETIAP HALAMAN
   ========================================= */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}
.page-title h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}
.page-title>p:last-child {
    color: var(--secondary);
    font-size: 14px;
}
/* =========================================
   CARD
   ========================================= */
/*
   Tidak menggunakan .card secara global
   supaya tidak bertabrakan dengan Bootstrap.
*/
/* Card pada halaman lama */
main .card {
    background-color: white;
    border: 1px solid #e4ebf4;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}
/* Padding hanya untuk card lama */
.biodata-card,
.education-list .card,
.organization-card,
.skill-card,
.contact-card,
.experience-list .card {
    padding: 30px;
}
/* Card Bootstrap menggunakan .card-body */
.card-body h5 {
    color: var(--dark);
}
.card h2 {
    font-size: 21px;
    margin-bottom: 15px;
}
.card p {
    font-size: 14px;
    color: var(--secondary);
}
/* =========================================
   ABOUT ME
   ========================================= */
.biodata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 25px;
    margin-bottom: 35px;
}
.biodata p {
    padding: 12px 0;
    border-bottom: 1px solid #edf1f6;
}
.biodata b {
    color: var(--dark);
}
/* =========================================
   EDUCATION
   ========================================= */
.education-list {
    max-width: 850px;
    margin: auto;
}
.education-list .card {
    border-left: 5px solid var(--primary);
    margin-bottom: 20px;
}
/* =========================================
   EXPERIENCE LAMA
   ========================================= */
.experience-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.experience-list .card {
    transition: 0.3s;
}
.experience-list .card:hover {
    transform: translateY(-5px);
}
.emoji {
    font-size: 35px;
    margin-bottom: 15px;
}
/* =========================================
   EXPERIENCE MENU
   ========================================= */
.experience-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}
.experience-menu a {
    background: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e4ebf4;
    transition: 0.3s;
}
.experience-menu a:hover {
    background: var(--primary);
    color: white;
}
/* =========================================
   EXPERIENCE SECTION
   ========================================= */
.experience-section {
    margin-bottom: 85px;
    scroll-margin-top: 30px;
}
.section-title {
    font-size: 27px;
    color: var(--dark);
    margin-bottom: 8px;
}
.section-desc {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 30px;
}
/* =========================================
   ORGANIZATION
   ========================================= */
.organization-list {
    display: grid;
    gap: 18px;
}
.organization-card {
    border-left: 5px solid var(--primary) !important;
    transition: 0.3s;
}
.organization-card:hover {
    transform: translateY(-4px);
}
.year {
    display: inline-block;
    color: var(--primary);
    background: #edf4fd;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}
.position {
    display: inline-block;
    background: var(--dark);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}
/* =========================================
   COMPETITION
   ========================================= */
.achievement-list {
    display: grid;
    gap: 15px;
}
.timeline-year {
    color: var(--primary);
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 5px;
}
.achievement-card {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    border: 1px solid #e4ebf4;
    border-left: 5px solid var(--primary);
    transition: 0.3s;
}
.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.achievement-rank {
    display: inline-block;
    background: #edf4fd;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.achievement-card h3 {
    font-size: 17px;
    margin-bottom: 5px;
}
.achievement-card p {
    color: var(--secondary);
    font-size: 13px;
}
/* =========================================
   SKILLS
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.skill-card {
    transition: 0.3s;
}
.skill-card:hover {
    transform: translateY(-5px);
}
.skill-icon {
    font-size: 35px;
    margin-bottom: 15px;
}
.skill-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}
.learning-tag {
    display: inline-block;
    background: #edf4fd;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
}
/* =========================================
   CONTACT
   ========================================= */
.contact-card {
    max-width: 750px;
    margin: auto;
    text-align: center;
}
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}
.social-btn {
    display: block;
    background: #edf4fd;
    color: var(--dark);
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}
/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 30px;
    font-size: 12px;
    color: var(--secondary);
}
/* =========================================
   RESPONSIVE TABLET & HP
   ========================================= */
@media (max-width: 768px) {
    main.container {
        padding-top: 25px;
        padding-bottom: 25px;
    }
    /* NAVBAR */
     .navbar {
        min-height: 65px;
    }
    .navbar-brand {
        font-size: 20px;
    }
    .navbar-nav {
        padding-top: 15px;
    }
    /* HOME */
    .home-section {
        padding: 25px !important;
        min-height: auto;
        margin-top: 15px;
    }
    .home-section h1 {
        font-size: 30px;
    }
    .home-photo {
        width: 180px;
        height: 180px;
    }
    /* HOME LAMA */
    .hero {
        flex-direction: column-reverse;
        padding: 30px;
        text-align: center;
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero-image img {
        width: 170px;
        height: 170px;
    }
    .buttons {
        justify-content: center;
    }
    /* PAGE TITLE */
    .page-title h1 {
        font-size: 30px;
    }
    /* GRID */
    .biodata,
    .experience-list,
    .social-links,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    /* CARD */
    .biodata-card,
    .education-list .card,
    .organization-card,
    .skill-card,
    .contact-card,
    .experience-list .card {
        padding: 25px;
    }
    /* EXPERIENCE */
    .experience-menu {
        gap: 10px;
    }
    .experience-menu a {
        font-size: 12px;
        padding: 10px 15px;
    }
    .section-title {
        font-size: 23px;
    }
    .achievement-card {
        padding: 22px;
    }
}
/* PERBAIKAN GRID HOME */
.home-section.row {
    margin-left: 0;
    margin-right: 0;
}
.home-section .col-lg-7,
.home-section .col-lg-5 {
    min-width: 0;
}
/* WARNA TOMBOL CONTACT */
.home-section a.btn-outline-primary {
    background-color: transparent;
    color: #3869aa !important;
    border: 2px solid #3869aa;
}
.home-section a.btn-outline-primary:hover {
    background-color: #3869aa;
    color: white !important;
}
/* PERBAIKAN EXPERIENCE BOOTSTRAP */
.organization-card,
.skill-card {
    margin-bottom: 0;
}
.organization-card .year {
    align-self: flex-start;
}
.organization-card .position {
    margin-bottom: 15px;
}
.experience-section {
    scroll-margin-top: 95px;
}
/* KARTU KATEGORI */
.experience-section .card,
.organization-list .card,
.skills-grid .card {
    transition: transform 0.3s ease;
}
.organization-list .card:hover,
.skills-grid .card:hover {
    transform: translateY(-5px);
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .organization-card,
    .skill-card {
        padding: 25px;
    }
    .experience-section {
        margin-bottom: 55px;
    }
}
/* =================================
   EDUCATION PAGE
================================= */
.education-list {
    max-width: 850px;
    margin: 0 auto;
}
.education-list .card {
    padding: 0;
    margin-bottom: 20px;
    border-left: 5px solid #3869aa;
    transition: 0.3s;
}
.education-list .card-body {
    padding: 25px 30px;
}
.education-list .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07) !important;
}
.education-list .subtitle {
    color: #3869aa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.education-list h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.education-list .card-body>p:last-child {
    color: #65758b;
    font-size: 14px;
    margin-bottom: 0;
}
/* RESPONSIVE HP */
@media (max-width: 768px) {
    .education-list .card-body {
        padding: 20px;
    }
    .education-list h2 {
        font-size: 18px;
    }
}
/* =================================
   CONTACT PAGE
================================= */
.contact-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    border: 1px solid #e4ebf4;
}
.contact-card .card-body {
    padding: 35px;
}
.contact-card h2 {
    font-size: 23px;
    color: #152c4c;
}
.contact-card p {
    font-size: 14px;
    color: #65758b;
}
/* SOCIAL MEDIA GRID */
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}
/* SOCIAL MEDIA BUTTON */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 16px;
    background-color: #edf4fd;
    color: #152c4c;
    border: 1px solid #e4ebf4;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover {
    background-color: #3869aa;
    color: white;
    border-color: #3869aa;
    transform: translateY(-3px);
}
/* RESPONSIVE HP */
@media (max-width: 768px) {
    .contact-card .card-body {
        padding: 25px 20px;
    }
    .social-links {
        grid-template-columns: 1fr;
    }
    .social-btn {
        min-height: 55px;
    }
}
/* =================================
   ABOUT ME PAGE
================================= */
.about-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #e4ebf4;
}
.about-card .card-body {
    padding: 35px;
}
.about-card h2 {
    font-size: 22px;
    color: #152c4c;
}
/* BIODATA */
.about-card .biodata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 25px;
    margin-bottom: 35px;
}
.about-card .biodata p {
    padding: 12px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #edf1f6;
    font-size: 14px;
    color: #65758b;
    overflow-wrap: anywhere;
}
.about-card .biodata b {
    color: #152c4c;
    font-weight: 600;
}
/* TENTANG SAYA */
.about-description {
    color: #65758b;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 0;
}
/* RESPONSIVE HP */
@media (max-width: 768px) {
    .about-card .card-body {
        padding: 25px 20px;
    }
    .about-card .biodata {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .about-card h2 {
        font-size: 20px;
    }
}