:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --text-color: #202020;
    --bg-light: #f4f7f9;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Adjust based on header height */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    /* background-image: url("../images/running\ start.svg"); */
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h2 {
    margin-bottom: 3rem;
    /* Standardized Title Spacing */
    text-align: center;
}

/* Header & Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: transparent;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.2);
    /* Latar belakang lebih transparan untuk efek kaca */
    backdrop-filter: blur(10px);
    /* Efek blur pada konten di belakang header */
    -webkit-backdrop-filter: blur(10px);
    /* Untuk support browser Safari */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Gaya Font Saat di-scroll atau di-hover */
.header.scrolled .nav-menu a,
.header.scrolled .logo-text span,
.header:hover .nav-menu a,
.header:hover .logo-text span {
    color: #060606;
    /* Warna font hitam */
}

/* Gaya Logo Saat di-scroll atau di-hover */
.header.scrolled .logo-sub-name,
.header.scrolled .logo-main-name,
.header.scrolled .logo-tertiary-name,
.header:hover .logo-sub-name,
.header:hover .logo-main-name,
.header:hover .logo-tertiary-name {
    color: #000000;
    /* Pastikan warna logo juga berubah */
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

/* Default: Black Text */
.nav-menu li a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.2rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Home Page: White Text */
.home-page .nav-menu li a {
    color: #ffffff;
}

.nav-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* Subtle hover background */
    color: var(--primary-color);
}

.home-page .nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* White hover on home */
    color: #ffffff;
}

/* Active Link Style - High Contrast Pill */
.nav-menu li a.active {
    font-weight: 700;
    background-color: #000000;
    /* Black Pill */
    color: #ffffff !important;
    /* White Text */
    transform: none;
    /* Reset unused transform */
    text-shadow: none;
    /* No shadow needed */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Subtle drop shadow */
}

/* Home Page: White Pill */
.home-page .nav-menu li a.active {
    background-color: #ffffff;
    color: #000000 !important;
    text-shadow: none;
}

/* Home Page: White Text with White Glow */
.home-page .nav-menu li a.active {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-menu {
    /* Menengahkan menu secara absolut */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cta-button {
    /* Menghilangkan background-color statis */
    background: transparent;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    /* Penting untuk pseudo-element */
    overflow: hidden;
    /* Menyembunyikan gradien di luar tombol */
    z-index: 1;
    /* Memastikan teks tombol di atas gradien */

    /* Menambahkan border untuk efek kontras */
    transition: all 0.4s ease-in-out;
}

/* Pseudo-element untuk gradien */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    /* Membuat gradien lebih lebar dari tombol */
    height: 100%;
    /* Gradien Black & White */
    background: linear-gradient(120deg,
            #000000,
            #333333,
            #666666,
            #333333,
            #000000);
    z-index: -1;
    transition: all 0.4s ease-in-out;
    background-size: 200% 100%;
    /* Ukuran background agar bisa digeser */
    animation: gradient-wave 8s infinite linear;
    /* Nama animasi, durasi, jumlah pengulangan */
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10);
}

@keyframes gradient-wave {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 91vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    /* Animasi gradasi bergerak */
    background: url("../images/starrun.svg"), linear-gradient(270deg, #000000, #333333, #1a1a1a, #4d4d4d, #1a1a1a, #000000);
    background-size: cover, 1200% 1200%;
    background-repeat: no-repeat;
    background-position: center;
    /* Atur posisi untuk SVG */
    animation: gradientMove 18s ease infinite;
    border-radius: 0 0 5vw 5vw;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    filter: grayscale(100%);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* General Sections */
section {
    padding: 5rem 0;
}

.about-section {
    max-width: 960px;
    /* Atur lebar maksimum kartu */
    margin: -70px auto 0px auto;
    /* Tarik ke atas, tengahkan, dan beri jarak bawah */
    padding: 50px;
    /* Jarak di dalam kartu */
    background-color: #ffffff;
    /* Latar belakang kartu putih */
    border-radius: 5vw;
    /* Sudut melengkung */
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    /* Bayangan yang lebih kompleks */
    position: relative;
    /* Diperlukan agar margin negatif bekerja dengan baik */
    z-index: 10;
}

.about-image .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
    /* Transisi untuk hover, sedikit lebih cepat */
    transform-origin: center center;
    transform: scale(1.3);
    /* Efek zoom awal */
    cursor: zoom-in;
    border-radius: 20px;
    /* Mengambil dari .profile-img */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    /* Mengambil dari .profile-img */
}

.about-image img:hover {
    transform: scale(1.5);
    /* Efek zoom lebih besar saat hover */
}

/* --- Gaya untuk Modal Pop-up Gambar --- */
.modal-overlay {
    display: none;
    /* Sembunyikan secara default */
    position: fixed;
    z-index: 1002;
    /* Di atas semua elemen lain */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Latar belakang hitam transparan */
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 85vh;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

/* Animasi untuk modal */
.modal-content {
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Services Grid */
.service-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 300px;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Section title for additional content */
.section-title-extra {
    font-size: 2rem;
    text-align: center;
    margin: 3rem 0 2rem 0;
    color: var(--text-color);
}

/* Skills Grid */
.skills-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.skill-item {
    background-color: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 150px;
    border: 1px solid #e9ecef;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-item h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0;
}

/* Languages Grid */
.languages-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.language-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 200px;
    border: 1px solid #d1e0ee;
}

.language-item:hover {
    transform: translateY(-8px);
}

.language-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.language-level {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Certificates Grid */
.cert-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cert-item {
    background: linear-gradient(135deg, #e6f0ff 0%, #f0e6ff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 250px;
    border: 1px solid #d1e0ee;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.cert-item h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0;
}

/* Job Card with Background Image */
.job-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    /* fallback color */
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    flex-basis: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-radius: 10px;
    z-index: 1;
}

.job-card-content {
    position: relative;
    z-index: 2;
}

.job-card h3,
.job-card .company,
.job-card .period,
.job-card .job-desc {
    position: relative;
    z-index: 2;
    color: #333;
}

.job-card .job-desc li {
    color: #555;
}

/* Education Card with Background Image */
.education-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    /* fallback color */
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 240, 240, 0.75) 100%);
    border-radius: 10px;
    z-index: 1;
}

.education-card-content {
    position: relative;
    z-index: 2;
}

.education-card h3,
.education-card .institution,
.education-card .year,
.education-card .gpa {
    position: relative;
    z-index: 2;
    color: #333;
}

/* Certificate Item with Background Image */
.cert-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    /* fallback color */
    position: relative;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-radius: 10px;
    z-index: 1;
}

.cert-item-content {
    position: relative;
    z-index: 2;
}

.cert-item h3 {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    margin: 0;
}

/* Skill Item with Background Image */
.skill-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    /* fallback color */
    position: relative;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-radius: 8px;
    z-index: 1;
}

.skill-item-content {
    position: relative;
    z-index: 2;
}

.skill-item h3 {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    margin: 0;
}

/* Language Item with Background Image */
.language-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    /* fallback color */
    position: relative;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    flex-basis: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-radius: 10px;
    z-index: 1;
}

.language-item-content {
    position: relative;
    z-index: 2;
}

.language-item h3,
.language-item .language-level {
    position: relative;
    z-index: 2;
    color: #333;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Footer */
.footer-futuristic {
    background: #000000;
    color: #cccccc;
    padding: 3rem 0;
    border-radius: 5vw 5vw 0 0;
    /* Menggunakan viewport width untuk radius responsif */
    font-size: 0.9em;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
}

.footer-futuristic h3,
.footer-futuristic h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-futuristic h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #ffffff;
    margin-top: 5px;
}

.footer-futuristic ul {
    list-style: none;
    padding: 0;
}

.footer-futuristic ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-futuristic ul li a:hover {
    color: #fff;
}

.footer-futuristic a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-futuristic a:hover {
    color: #fff;
}

/* Gaya Ikon Sosial Media */
.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #cccccc;
}

/* Gaya Bagian Bawah Footer */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #2e2e4a;
    padding-top: 1rem;
    margin-top: 2rem;
    color: #cecece;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-futuristic h3::after {
        margin: 5px auto 0;
    }
}

/* Gaya untuk Container Logo */
.logo-text {
    display: flex;
    font-weight: 700;
    flex-direction: column;
    /* Tetap menumpuk nama */
    align-items: flex-start;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Menggunakan font yang sudah ada */
    line-height: 1.2;
    /* Sedikit menambah jarak antar baris */
    position: relative;
    /* Diperlukan untuk garis aksen */
    padding-bottom: 8px;
    /* Memberi ruang untuk garis di bawah */
}

/* Garis aksen di bawah logo */
.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    /* Panjang garis setengah dari lebar logo */
    height: 2px;
    background-color: #000000;
    /* Default Black */
    transition: background-color 0.3s;
}

.home-page .logo-text::after {
    background-color: #ffffff;
    /* White on Home */
}

/* --- Logo Animation --- */
@keyframes slideInOut {

    0%,
    20%,
    100% {
        max-width: 0;
        opacity: 0;
        margin-left: 0;
    }

    50%,
    80% {
        max-width: 120px;
        opacity: 1;
        margin-left: 4px;
    }
}

.logo-part {
    display: flex;
    align-items: baseline;
    font-size: 0.8rem;
    /* Ukuran font diperkecil dari 1.1rem */
    color: #000000;
    /* Default Black */
    letter-spacing: 0.2px;
    transition: color 0.3s;
}

.home-page .logo-part {
    color: #ffffff;
    /* White on Home */
}

.logo-main-name {
    font-weight: 800;
}

.logo-first-name,
.logo-last-name {
    font-weight: 500;
}

.logo-rest {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    animation: slideInOut 6s infinite ease-in-out;
}

/* Beri sedikit jeda untuk setiap baris */
.logo-main-name .logo-rest {
    animation-delay: 0.2s;
}

.logo-last-name .logo-rest {
    animation-delay: 0.4s;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #000000;
    /* Default Black */
    cursor: pointer;
}

.home-page .nav-toggle {
    color: #ffffff;
    /* White on Home */
}

.hire-mobile {
    display: none;
}

.about-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.about-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.about-middle h2 {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 2rem;
    margin: 0 1rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.about-image {
    width: 200px;
    height: 260px;
    border-radius: 20px;
    /* Sesuaikan dengan border-radius gambar */
    overflow: hidden;
    /* Penting untuk memotong gambar yang di-zoom */
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}


/* Language Toggle Switch */
.lang-toggle-desktop {
    display: flex;
    align-items: center;
    margin: 0 0.5rem 0 auto;
}

.lang-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    /* Ukuran diperkecil */
    height: 28px;
    /* Ukuran diperkecil */
}

.lang-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.15);
    /* Latar belakang transparan */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: .4s;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* Border tipis untuk efek kaca */
}

.slider:before {
    position: absolute;
    content: "ID";
    height: 22px;
    /* Ukuran lingkaran diperkecil */
    width: 22px;
    /* Ukuran lingkaran diperkecil */
    left: 3px;
    /* Posisi disesuaikan */
    bottom: 3px;
    /* Posisi disesuaikan */
    background-color: rgba(0, 0, 0, 0.4);
    /* Lingkaran semi-transparan */
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: rgba(243, 243, 243);
    /* Warna font putih lembut */
}



input:checked+.slider:before {
    transform: translateX(22px);
    /* Jarak geser disesuaikan */
    content: "EN";
}

/* Sembunyikan toggle mobile di desktop */
.lang-toggle-mobile {
    display: none;
}


@media (max-width: 768px) {

    .nav-menu {
        display: none;
        position: absolute;
        /* Menggunakan transform untuk posisi yang lebih akurat */
        top: 0;
        right: 0;
        transform: translate(20px, 70px);
        /* Geser ke kanan dan ke bawah dari pojok kanan atas header */
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        z-index: 1000;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu li a {
        color: #000000;
    }

    /* Tampilkan toggle mobile & atur posisinya */
    .lang-toggle-mobile {
        display: block;
        margin: 15px 0;
        text-align: center;
    }

    /* Sembunyikan toggle desktop di mobile */
    .lang-toggle-desktop {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .cta-button {
        display: none;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hire-mobile {
        display: block;
        text-align: center;
        margin-top: 10px;
    }

    .hire-mobile .cta-button {
        display: inline-block;
        width: 80%;
        margin: 0 auto;
        color: #fff;
        /* border: 2px solid var(--primary-color); */
        /* Tambahkan border agar gradien lebih kontras */
        background: transparent;
        /* Pastikan background transparan */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.078);
        /* Opsional, agar tombol lebih menonjol */
    }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .about-middle {
        display: block;
        height: auto;
        margin: 1rem 0;
    }

    .about-middle h2 {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 2rem;
        margin: 0 auto 1rem auto;
        text-align: center;
    }

    .about-text {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* --- Revamped Professional Cards (Experience & Education) --- */
.experience-list,
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.job-card,
.education-card {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    background-image: none !important;
    flex-basis: auto;
    margin: 0;
}

.job-card:hover,
.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    /* Outline Effect Only */
    border: 2px solid var(--primary-color);
}

/* Old Left-Strip Gradient Removed */
.job-card::before,
.education-card::before {
    display: none;
}

.job-card:hover::before,
.education-card:hover::before {
    display: none;
}

.card-logo {
    flex-shrink: 0;
    width: 110px;
    /* Increased from 90px */
    height: 110px;
    /* Increased from 90px */
    margin-right: 2rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    /* Slight increase to match scale */
    border: 1px solid #eaeaea;
    /* Cleaner border */
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.job-card:hover .card-logo img {
    transform: scale(1.1);
}

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

.card-details h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.card-details .company,
.card-details .institution {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(90deg, #666666, #000000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
    display: inline-block;
}

.card-details .period,
.card-details .year {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-details .period::before,
.card-details .year::before {
    content: '📅';
    font-size: 0.9rem;
}

.job-desc {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.job-desc li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.job-desc li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* --- Certificates Revamp --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    background-image: none !important;
}

.cert-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.cert-logo-container {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    padding: 15px;
}

.cert-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cert-item:hover .cert-logo-container img {
    transform: scale(1.1);
}

.cert-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Skills Items Override */
/* --- Skills & Languages Refined Layout --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin: 2rem 0 3rem 0;
}

.skills-grid .skill-item {
    display: flex;
    flex-direction: row;
    /* Horizontal layout like a pill */
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-image: none !important;
    min-width: 180px;
    /* Ensure minimum width for consistency */
    flex-basis: auto;
    /* Allow auto width based on content */
}

.skills-grid .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
    background: #f8fafc;
}

.skill-logo {
    width: 32px;
    /* Smaller logo for pill */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skills-grid .skill-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 0;
    white-space: nowrap;
    /* Prevent breaking names */
}

/* Update Languages to match similar clean style if desired, or keep card */
.languages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.language-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    flex-basis: auto;
    min-width: 200px;
    background-image: none !important;
}

.language-item::before {
    display: none;
}

/* Remove old gradient overlay */

.language-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {

    .job-card,
    .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .card-logo {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 80px;
        height: 80px;
    }

    .job-card::before,
    .education-card::before {
        display: none;
    }

    .job-desc li {
        text-align: left;
    }

    .card-details .period,
    .card-details .year {
        justify-content: center;
    }
}

/* --- Portfolio Styles --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.portfolio-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-image: none !important;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.portfolio-content .role {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    background: #fdf2f8;
    padding: 4px 12px;
    border-radius: 20px;
}

.portfolio-content .tech-stack {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}