/* Letakkan ini di baris paling atas style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Hapus semua CSS .sidebar, .sidebar-profile, dll. yang lama dan ganti dengan ini */

:root {
    --icon-nav-width: 100px;
    --profile-sidebar-width: 320px;
    --sidebar-dark-bg: #111;
    --sidebar-light-bg: #fff;
    --main-content-bg: #f4f4f4;
    --primary-accent: #333; /* Warna aksen utama */
}

/* Tata Letak Utama */

body {
    background-color: var(--main-content-bg);
}

.main-content {
    /* Memberi ruang untuk sidebar tetap di desktop */
    margin-left: calc(var(--icon-nav-width) + var(--profile-sidebar-width));
}

/* Navigasi Ikon Kiri */

.icon-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--icon-nav-width);
    height: 100vh;
    background-color: var(--sidebar-dark-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 1031; /* Di atas sidebar profil */
}
.icon-nav .nav-header .btn {
    color: #fff;
    font-size: 1.5rem;
}
.icon-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border-radius: 0;
    transition: all 0.3s ease;
}
.icon-nav .nav-link i {
    font-size: 1.5rem;
}
.icon-nav .nav-link:hover {
    color: #fff;
}
.icon-nav .nav-link.active {
    background-color: var(--primary-accent);
    color: #fff;
}

/* Tambahkan/Ganti CSS ini di assets/css/style.css */

/* -- Revisi Sidebar Profil -- */

.profile-sidebar {
    position: fixed;
    top: 0;
    left: var(--icon-nav-width); /* Menggunakan variabel dari CSS sebelumnya */
    width: var(--profile-sidebar-width);
    height: 100vh;
    background-color: #ffffff; /* Latar belakang putih bersih */
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem; /* Padding lebih besar */
    z-index: 1030;
    border-right: 1px solid #e9ecef; /* Garis batas kanan yang halus */
}

.profile-card {
    flex-grow: 1;
}

/* Ganti CSS .profile-image Anda dengan ini */

.profile-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    
    /* (BARU) Menambahkan lengkungan halus pada sudut */
    border-radius: 12px; /* Anda bisa ubah nilainya (misal: 8px atau 16px) */

    border: none;

    /* (Diperbarui) Bayangan yang dibuat lebih lembut dan menyebar */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Ganti/perbarui CSS lama Anda dengan yang baru ini di style.css */

/* -- Tipografi Profesional (Nama) -- */

.profile-name {
    font-family: 'Poppins', sans-serif; /* Menggunakan font baru */
    font-size: 2rem; /* Ukuran font lebih besar dan tegas */
    font-weight: 600; /* Sedikit lebih tebal dari bold biasa */
    color: #2c3e50; /* Warna abu-abu gelap yang lebih lembut dari hitam */
    letter-spacing: 1px; /* Jarak antar huruf agar lebih lega */
    margin-bottom: 1rem;
    position: relative; /* Diperlukan untuk garis bawah */
    padding-bottom: 1rem; /* Memberi ruang untuk garis bawah */
}

/* Detail Elegan: Garis bawah pendek */

.profile-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Lebar garis */
    height: 3px; /* Ketebalan garis */
    background-color: var(--bs-primary); /* Menggunakan warna utama website Anda */
    border-radius: 2px;
}

/* Ganti/perbarui CSS lama Anda untuk .profile-title dengan ini */

.profile-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* --- INI BAGIAN PERBAIKANNYA --- */
    /* Berikan tinggi minimum agar container tidak berubah ukuran */
    min-height: 80px; /* Cukup untuk 3 baris teks. Anda bisa sesuaikan nilainya. */
    
    /* Gunakan flexbox untuk membuat teks selalu di tengah secara vertikal & horizontal */
    display: flex;
    align-items: center;
    justify-content: center;
    /* ------------------------------ */
}

/* -- Ikon Sosial Media (Lebih Menarik) -- */

.social-links {
    margin: 1rem 0;
    display: flex; /* Menggunakan flexbox untuk penataan */
    justify-content: center;
    gap: 1rem; /* Jarak antar ikon */
}

.social-links a {
    display: flex; /* Membuat ikon berada di tengah lingkaran */
    align-items: center;
    justify-content: center;
    width: 45px;  /* Ukuran lingkaran */
    height: 45px;
    border-radius: 50%; /* Membuat menjadi lingkaran */
    background-color: #e9ecef; /* Warna latar default */
    color: #868e96; /* Warna ikon default */
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efek Hover dengan Warna Merek Masing-masing */

.social-links a:hover {
    color: #fff; /* Warna ikon menjadi putih saat hover */
    transform: translateY(-5px) scale(1.1); /* Efek terangkat & membesar */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.social-links a:hover.facebook-bg { background-color: #1877F2; }
.social-links a:hover.youtube-bg { background-color: #FF0000; }
.social-links a:hover.instagram-bg { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-links a:hover.email-bg { background-color: #c20606; }

/* -- Garis Pemisah -- */
.sidebar-divider {
    margin: 1.5rem 0;
    border-color: rgba(0, 0, 0, 0.07);
}

/* -- Tombol Aksi yang Disempurnakan -- */

.action-buttons {
    display: flex;
    flex-direction: column; /* Tombol tersusun ke bawah */
    gap: 0.75rem;
    padding-top: 0; /* Dihapus karena sudah ada divider */
}

.action-buttons .btn {
    padding: 0.75rem;
    font-weight: 500;
    border-radius: 8px; /* Sudut tombol yang lebih modern */
    transition: all 0.3s ease;
}

.btn-cv {
    background-color: #fff;
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
}
.btn-cv:hover {
    background-color: var(--primary-accent);
    color: #fff;
}
.btn-contact {
    background-color: var(--primary-accent);
    color: #fff;
    border: 2px solid var(--primary-accent);
}
.btn-contact:hover {
    background-color: #222;
    border-color: #222;
}


/* Penyesuaian untuk Mobile */

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0; /* Hapus margin di mobile */
    }
}
.mobile-link { /* Styling untuk link di menu mobile */
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Tambahkan ini ke assets/css/style.css */

/* Dasar Tombol Toggle */

.nav-toggler {
    width: 35px;
    height: 30px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: none;
    background: transparent;
    transition: transform 0.3s ease-in-out; /* Animasi putaran halus */
}

.nav-toggler:hover {
    transform: scale(1.1);
}

.nav-toggler .line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: center; /* Titik pusat untuk transformasi */
}

/* (BARU) Animasi "Garis ke Panah" saat aktif 
*/
.nav-toggler.active .line:nth-child(1) {
    /* Miringkan garis atas dan geser ke tengah */
    transform: translateY(6.5px) rotate(45deg) scaleX(0.7);
    transform-origin: right;
}

.nav-toggler.active .line:nth-child(2) {
    /* Sembunyikan garis tengah */
    opacity: 0;
    transform: translateX(-100%);
}

.nav-toggler.active .line:nth-child(3) {
    /* Miringkan garis bawah dan geser ke tengah */
    transform: translateY(-6.5px) rotate(-45deg) scaleX(0.7);
    transform-origin: right;
}


/* Tambahkan/Ganti CSS ini di assets/css/style.css */

/* Penempatan dan Tampilan Header Mobile */

.mobile-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1020;
    padding: 0.75rem 1rem; /* Padding yang lebih seimbang */
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Efek Kaca Buram yang Elegan */
    background: rgba(43, 48, 53, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-header .navbar-brand {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Penempatan dan Tampilan Tombol Toggle */

.nav-toggler {
    width: 40px;  /* Sedikit lebih besar agar mudah disentuh */
    height: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Posisi garis di tengah */
    align-items: center;
    gap: 6px; /* Jarak antar garis */
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Border halus */
    border-radius: 8px; /* Sudut yang lebih lembut */
    background: transparent;
    transition: all 0.3s ease-in-out;
}

.nav-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Garis Ikon Toggle */

.nav-toggler .line {
    width: 22px; /* Lebar garis */
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Animasi "Garis ke Silang (X)" yang lebih halus */

.nav-toggler.active {
    transform: rotate(180deg); /* Tombol ikut berputar */
}

.nav-toggler.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggler.active .line:nth-child(2) {
    opacity: 0;
}

.nav-toggler.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Tambahkan ini ke assets/css/style.css */

/* -- Offcanvas Menu Mobile -- */
.offcanvas-menu {
    background: linear-gradient(-45deg, #23282d, #343a40, #1a1d20, #232526);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite; /* Menggunakan animasi gradien yang sama */
    color: #fff;
}

.offcanvas-menu .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-menu .offcanvas-body {
    display: flex;
    flex-direction: column; /* Membuat footer menempel di bawah */
}

/* Tambahkan/Ganti CSS ini di style.css */

/* -- Revisi Profil di Menu Mobile -- */
.mobile-profile .profile-image-mobile {
    width: 100%; /* Lebar gambar memenuhi container */
    height: auto;  /* Tinggi otomatis menjaga rasio */
    border-radius: 12px; /* Sudut yang halus, tidak bulat total */
    border: none;
    object-fit: cover;
}

.mobile-profile h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem; /* Ukuran font nama diperbesar */
    font-weight: 600;
    color: #fff;
}

.mobile-profile small {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; /* Ukuran font jabatan diperbesar */
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -- Link Navigasi di Menu Mobile -- */
.mobile-link {
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    padding: 1rem 1.25rem;
    margin-bottom: 5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.mobile-link i {
    font-size: 1.1rem;
}

.mobile-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-link.active {
    color: #fff;
    background-color: var(--bs-primary);
    border-left-color: #fff;
}

/* -- Footer di Menu Mobile -- */
.mobile-footer .social-links-mobile a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.mobile-footer .social-links-mobile a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Tambahkan ini ke bagian bawah file assets/css/style.css */

/* Pastikan CSS ini ada di file assets/css/style.css */

/* -- Gaya Navigasi Tab Resume -- */
.resume-tabs .nav-link {
    background-color: #f1f3f5;
    color: #495057;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}

.resume-tabs .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}

/* -- Gaya Timeline Vertikal -- */
.timeline {
    position: relative;
    padding-left: 3rem; /* Ruang untuk ikon dan garis */
    border-left: 2px solid #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem; /* Jarak antar item */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -1.7rem; /* Posisi ikon di atas garis */
    top: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 4px solid #f8f9fa; /* Memberi efek "terpisah" dari garis */
    box-shadow: 0 0 0 3px var(--bs-primary);
}

.timeline-content {
    padding: 1.5rem;
    border-radius: 0.75rem !important;
}

/* Tambahkan ini ke bagian bawah file assets/css/style.css */

/* -- Gaya Accordion Resume yang Menarik -- */
.accordion-item {
    border: none; /* Hapus border default */
    margin-bottom: 1rem;
    border-radius: 0.75rem !important; /* Wajib pakai !important untuk menimpa Bootstrap */
    overflow: hidden; /* Agar sudutnya tetap rounded */
}

.accordion-header .accordion-button {
    background-color: #fff;
    color: #212529;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none; /* Hapus shadow saat di-klik */
    transition: background-color 0.3s ease;
}

/* Tampilan saat menu accordion terbuka */
.accordion-header .accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}

/* Mengubah warna ikon panah default */
.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(86%) sepia(8%) saturate(69%) hue-rotate(173deg) brightness(89%) contrast(88%);
}
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(253deg) brightness(102%) contrast(102%);
}

.accordion-body {
    padding: 1rem 0;
}

.accordion-body .list-group-item {
    padding: 1rem 1.5rem;
}

/* Tambahkan ini ke assets/css/style.css */

/* -- Gaya Kartu Portofolio -- */
.portfolio-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem !important;
    overflow: hidden; /* Penting untuk menjaga sudut rounded */
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* -- Container Gambar (Kunci agar gambar seragam) -- */
.portfolio-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Menetapkan rasio aspek 4:3 untuk semua gambar */
    overflow: hidden;
}

.portfolio-image-container .card-img-top {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Membuat gambar mengisi container tanpa distorsi */
    transition: transform 0.4s ease;
}

.portfolio-card:hover .card-img-top {
    transform: scale(1.1); /* Efek zoom pada gambar saat hover */
}

/* -- Overlay Interaktif -- */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 110, 253, 0.8), rgba(111, 66, 193, 0.8));
    opacity: 0; /* Sembunyi secara default */
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1; /* Muncul saat kartu di-hover */
}

.portfolio-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay-content {
    transform: translateY(0);
}

/* Tambahkan ini ke style.css */
.blog-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem !important;
    overflow: hidden; /* Penting untuk menjaga sudut rounded */
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.blog-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Menetapkan rasio aspek 4:3 untuk semua gambar */
    overflow: hidden;
}
.blog-image-container .card-img-top {
    transform: scale(1.1); /* Efek zoom pada gambar saat hover */
}

/* Ganti CSS carousel lama Anda dengan ini di style.css */

/* -- Carousel Blog Grid -- */

/* Tombol Navigasi Kustom */
.carousel-control-prev,
.carousel-control-next {
    width: auto;
}

.carousel-control-prev {
    left: 0; /* Posisi tombol kiri */
}
.carousel-control-next {
    right: 0; /* Posisi tombol kanan */
}

.carousel-control-icon {
    font-size: 2.5rem;
    color: var(--bs-primary);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.carousel-control-icon:hover {
    opacity: 1;
}

/* Mengatur container utama carousel */
#portfolioCarousel .carousel-inner {
    display: flex;
}

/* Mengatur setiap item di dalam carousel */
#portfolioCarousel .carousel-item {
    display: block;
    margin-right: 0;
    
    /* Default untuk mobile: 1 item per baris */
    flex: 0 0 100%; 
}

/* Tampilan Tablet (lebar layar 768px ke atas): 2 item per baris */
@media (min-width: 768px) {
    #portfolioCarousel .carousel-item {
        /* 100% dibagi 2 = 50% */
        flex: 0 0 50%;
    }
}

/* Tampilan Desktop (lebar layar 992px ke atas): 3 item per baris */
@media (min-width: 992px) {
    #portfolioCarousel .carousel-item {
        /* 100% dibagi 3 = 33.333% */
        flex: 0 0 33.333%;
    }
}