/* Gaya untuk Halaman Lain */
/* Gaya untuk Halaman Lain */
.section-page {
    padding-top: 2.5rem;
    /* Reduced from 4rem */
    padding-bottom: 2.5rem;
    /* Reduced from 4rem */
}

/* Gaya untuk Kartu Pengalaman */
.experience-list,
.experience-grid,
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns Single Row */
    gap: 1rem;
    /* Minimal gap */
    padding: 1rem 0;
    width: 90% !important;
    /* Force Full Width */
    max-width: none !important;
    /* margin: 0 !important; */
    /* Remove Orange Margin */
}

/* Specific overrides for Certs if needed (already grid but checking consistent behavior) */
/* Specific overrides for Certs if needed */
.cert-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* Force 2 Columns as requested */
}

@media (max-width: 768px) {

    .experience-list,
    .experience-grid,
    .cert-grid {
        /* Stack on mobile */
        grid-template-columns: 1fr !important;
    }
}

/* ===== PORTFOLIO SECTION REDESIGN ===== */

/* Section Header */
.portfolio-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-section-header h2 {
    margin-bottom: 0.75rem;
}

.portfolio-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== FEATURED PROJECT CARD ===== */
.portfolio-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #000;
}

.portfolio-featured-image {
    position: relative;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    background-color: #f8fafc;
    cursor: zoom-in;
}

.portfolio-featured-image.has-link {
    cursor: pointer;
}

.portfolio-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-featured:hover .portfolio-featured-image img {
    transform: scale(1.05);
}

/* Dark overlay on featured image hover */
.portfolio-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.portfolio-featured:hover .portfolio-featured-image::before {
    opacity: 1;
}

/* View icon on featured image */
.portfolio-featured-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 2.5rem;
    z-index: 10;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.portfolio-featured-image.has-link::after {
    content: '\f35d';
}

.portfolio-featured:hover .portfolio-featured-image::after {
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-featured-content .portfolio-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d97706;
    background: #fef3c7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.portfolio-featured-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.portfolio-featured-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0;
    margin-bottom: 1rem;
}

/* ===== PORTFOLIO CARD ===== */
.portfolio-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #000;
}

/* ===== CARD IMAGE ===== */
.portfolio-image {
    width: calc(100% - 1.5rem);
    margin: 0.75rem auto 0;
    height: 180px;
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: zoom-in;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

/* Image Overlay */
.portfolio-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 1.8rem;
    z-index: 10;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.portfolio-image.has-link::after {
    content: '\f35d';
    pointer-events: none;
}

.portfolio-image.has-link {
    cursor: pointer;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9;
    border-radius: 12px;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-image::before {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image::after {
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-image .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

/* ===== SLIDER STYLES ===== */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    border-radius: 12px;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CARD CONTENT ===== */
.portfolio-content {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.portfolio-meta {
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f0f0f0;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.portfolio-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* ===== TECH BADGES ===== */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tech-badge {
    font-size: 0.7rem;
    color: #334155;
    background: #f8fafc;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-1px);
}

/* ===== ACTION BUTTONS ===== */
.portfolio-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-github {
    background-color: #1a1a1a;
    color: #fff;
}

.btn-github:hover:not(.disabled) {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-demo {
    background-color: #fff;
    color: #333;
    border: 1.5px solid #222 !important;
}

.btn-demo:hover:not(.disabled) {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    pointer-events: none;
}

/* ===== SEE MORE BUTTON ===== */
.portfolio-see-more-wrapper {
    text-align: center;
    margin: 2rem 0 1rem;
}

.portfolio-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.5rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.portfolio-see-more-btn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.portfolio-see-more-btn .see-more-icon {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.portfolio-see-more-btn.expanded .see-more-icon {
    transform: rotate(180deg);
}

/* ===== HIDDEN SECTION ===== */
.portfolio-hidden-section {
    display: none;
    margin-top: 1.5rem;
}

.portfolio-hidden-section.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
    .portfolio-featured {
        grid-template-columns: 1fr;
    }

    .portfolio-featured-image {
        min-height: 220px;
    }

    .portfolio-featured-content {
        padding: 1.5rem;
    }

    .portfolio-featured-content h3 {
        font-size: 1.4rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-featured-content h3 {
        font-size: 1.25rem;
    }

    .portfolio-see-more-btn {
        width: 100%;
        justify-content: center;
    }
}

.job-card {
    background-color: #fff;
    padding: 1.5rem;
    /* Reduced padding for 4-col fit */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Stretch to fill grid cell */
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.job-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company,
.period {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.job-desc {
    list-style-type: '— ';
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* Gaya untuk Kartu Edukasi */
.education-card,
.cert-item {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.education-card h3 {
    color: var(--primary-color);
}

.institution,
.year,
.gpa {
    font-size: 1.1em;
    color: #555;
    margin-top: 0.5rem;
}

/* Gaya untuk Kartu Sertifikat */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-item {
    text-align: left;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-item h3 {
    font-size: 1.2rem;
    color: #444;
}

/* refined for mobile safety */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* ... existing styles ... */

/* Animasi Elegant Slide Up */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    /* Start hidden */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items if needed, or rely on natural scroll */
.portfolio-card:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-card:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-card:nth-child(3) {
    transition-delay: 0.3s;
}

.portfolio-card:nth-child(4) {
    transition-delay: 0.4s;
}

.portfolio-card:nth-child(5) {
    transition-delay: 0.5s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section-page {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        /* Full width cards on mobile */
        gap: 1.5rem;
    }

    .portfolio-content h3 {
        font-size: 1.25rem;
    }
}

@keyframes gradient-wave {
    0% {
        background-position: 0% 50%;
        /* Posisi awal gradien */
    }

    50% {
        background-position: 100% 50%;
        /* Posisi tengah */
    }

    100% {
        background-position: 0% 50%;
        /* Kembali ke posisi awal, membuat loop */
    }
}

.music-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #00000022;
    /* background: linear-gradient(#31b0ff, #d85ac5); */
    backdrop-filter: blur(5 0px);
    -webkit-backdrop-filter: blur(10px);
    color: #000000;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    /* Di bawah pop-up */
    transition: transform 0.2s ease-in-out;
}

.music-fab:hover {
    transform: scale(1.1);
}

/* Music Player Popup Container */
.music-player-container {
    position: fixed;
    bottom: 110px;
    /* Posisi di atas FAB */
    right: 30px;
    background-color: rgba(20, 20, 20, 0.8);
    /* Monochrome dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #E0E0E0;
    border-radius: 16px;
    padding: 20px;
    width: 350px;
    max-width: 90vw;
    z-index: 1001;
    /* Di atas FAB */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;

    /* Default state: hidden and non-interactive */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    /* SANGAT PENTING: Abaikan klik saat tersembunyi */
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

/* State saat pop-up terlihat */
.music-player-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    /* SANGAT PENTING: Terima klik saat terlihat */
}

.music-player-container .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #7F8C99;
    cursor: pointer;
}

/* Konten di dalam Music Player */
.music-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.album-cover {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
}

.music-info .song-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.music-info .artist-name {
    font-size: 0.9rem;
    color: #AAB8C5;
    margin: 0;
}

.progress-container .time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #AAB8C5;
    margin-top: 5px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #AAB8C5;
}

/* Tombol Play Utama */
.play-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
}

/* Custom Range Slider Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
}

.volume-slider {
    width: 80px;
}

input[type="range"]::-webkit-slider-runnable-track {
    background-color: #666666;
    border-radius: 10px;
    height: 5px;
}

input[type="range"]::-moz-range-track {
    background-color: #666666;
    border-radius: 10px;
    height: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -5px;
    background-color: #ffffff;
    border-radius: 50%;
    height: 15px;
    width: 15px;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    background-color: #ffffff;
    border-radius: 50%;
    height: 15px;
    width: 15px;
}

/* --- Wide Layout for Work Experience (4-Column Optimization) --- */
/* Breakout Technique for True Full Width */
#experience .container {
    width: 100vw !important;
    max-width: none !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 0.5rem !important;
    /* Thin Padding per user request */
}

/* Optimize Card Content for 4-Column Grid */
/* Optimize Card Content for 4-Column Grid */
.experience-list .job-card .card-logo {
    width: 85px;
    /* Larger Logo for visibility */
    height: 85px;
    margin-bottom: 0;
    margin-right: 1rem;
    /* Balanced gap */
    border-radius: 8px;
    /* Smooth corners */
    flex-shrink: 0;
}

.experience-list .job-card .card-header-row {
    display: flex;
    align-items: flex-start;
    /* Align top for multi-line titles */
    margin-bottom: 0.8rem;
    /* Tighter separation from desc */
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    /* Subtle divider */
    padding-bottom: 0.8rem;
}

.experience-list .job-card .card-info-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-list .job-card h3 {
    font-size: 1rem;
    /* Precise Title Size */
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.2;
    color: #222;
}

.experience-list .job-card .company {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
    color: #555;
}

.experience-list .job-card .period {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    background: #f5f5f5;
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    align-self: flex-start;
    /* Badge style */
    margin-top: 0.2rem;
}

.experience-list .job-card .job-desc {
    padding-left: 1.2rem;
    /* Indent slightly so outside bullets align with logo edge */
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.experience-list .job-card .job-desc li {
    font-size: 0.9rem;
    /* Clean readable size */
    line-height: 1.5;
    color: #444;
    margin-bottom: 0.5rem;
    list-style-type: disc;
    list-style-position: outside;
    /* Hanging indent */
    text-align: left;
}

/* Remove any potential double bullets from generic styles */
.experience-list .job-card .job-desc li::before {
    content: none !important;
}

/* Ensure reduced padding is active (Clean cleanup) */
.experience-list .job-card {
    padding: 1.25rem;
    /* Slightly tighter padding for 'Ringkas' feel */
}

/* --- Compact Split Layout --- */
.compact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 95%;
    /* Wider to fit content */
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 900px) {
    .compact-split-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Remove internal container padding constraints */
.compact-split-layout .container {
    width: 100%;
    padding: 0;
    max-width: none;
}

/* --- Compact Grids --- */
.education-grid,
.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column inside split */
    gap: 1.5rem;
    /* Increased gap slightly */
    padding: 0.5rem 0;
}

.cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Wider minmax for certs to prevent crushing */
}

/* Ensure consistent card height */
.education-card,
.cert-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Standardize Education Card --- */
/* .education-grid uses shared styles above */

.education-card {
    /* Standardize with Cert Item */
    background-color: #fff;
    padding: 1.5rem;
    /* Reduced padding */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    /* Ensure stacking context */
}

/* Ensure ALL content sits above the background pseudo-element */
.education-card>*,
.cert-item>*,
.skill-item>*,
.language-item>* {
    position: relative;
    z-index: 5;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-card .card-logo {
    margin-right: 0 !important;
    /* Remove side margin */
    margin-bottom: 1.25rem;
    /* Tighter gap */
    margin-bottom: 0.75rem;
    width: 70px !important;
    /* Smaller Logo */
    height: 70px !important;
    background: #f8fafc;
    border-radius: 16px !important;
    /* Rounded Square (Not Circle) */
    /* Circular like Certs */
    padding: 12px !important;
    border: 1px solid #f0f0f0;
    box-shadow: none !important;
    /* Use container style */
}

.education-card .card-details {
    width: 100%;
}

.education-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    /* Match Cert Title size */
}

.education-card .institution {
    justify-content: center;
    margin-bottom: 0.5rem;
}

.education-card .year,
.education-card .gpa {
    justify-content: center !important;
}

/* --- Improved Skills & Languages Layout --- */
.skills-grid,
.languages-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    /* Balanced gap */
    justify-content: center;
    margin: 2rem 0;
}

.skill-item,
.language-item {
    flex: 0 1 auto;
    /* Grow/Shrink based on content */
    width: auto;
    min-width: 0;
    /* Remove rigid min-width */
    padding: 0.75rem 1.25rem;
    /* Pill-like padding */
    border-radius: 50px;
    /* Pill shape */

    /* Row Layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Ensure Logo is neat */
.skill-item .skill-logo {
    margin-bottom: 0;
    /* Remove bottom margin */
    display: flex;
    /* Remove extra height from div */
    align-items: center;
}

.skill-item img {
    height: 24px !important;
    /* Force smaller size */
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0 !important;
    /* Remove any inherited radius */
    box-shadow: none !important;
    /* Remove shadows */
    background: transparent !important;
    /* Ensure no background */
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

/* Text adjustments */
.skill-item h3,
.language-item h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    text-align: left;

    /* Reset conflicting global styles */
    z-index: auto;
    position: static;
}

/* --- RESET INTERFERING STYLES FROM STYLE.CSS --- */
.skill-item::before,
.language-item::before {
    content: none !important;
    /* Remove the card overlay */
    background: none !important;
}

.skill-item,
.language-item {
    background-image: none !important;
    /* Remove background image inheritance */
    flex-basis: auto !important;
    /* Override flex-basis from style.css */
}

/* Specific adjustment for Language levels if implied */
.language-item p {
    margin: 0;
    font-size: 0.8em;
    color: #888;
    margin-left: 0.5rem;
}

.text-center {
    text-align: center;
}

/* ===================================================
   SKILLS SECTION — Clean White Elegant
   =================================================== */

.skills-section {
    position: relative;
    background: #ffffff;
}

.skills-section-bg {
    display: none;
}

/* ── Section Header ── */
.skills-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.75rem;
    position: relative;
    padding: 0 1.5rem;
}

.skills-eyebrow::before,
.skills-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28px;
    height: 1px;
    background: #ccc;
}
.skills-eyebrow::before { right: 100%; margin-right: -1.5rem; }
.skills-eyebrow::after  { left:  100%; margin-left:  -1.5rem; }

.skills-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    text-align: center;
}

.skills-header-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #000 0%, #ccc 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* ── Grid Layout — breakout dari container ── */
.skills-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ── Card ── */
.skill-category-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.skill-category-card:hover {
    transform: translateY(-6px);
    border-color: #000;
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

/* ── Card Number ── */
.skill-card-number {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    line-height: 1;
    letter-spacing: -2px;
    user-select: none;
    transition: color 0.35s ease;
}

.skill-category-card:hover .skill-card-number {
    color: rgba(0,0,0,0.07);
}

/* ── Card Header ── */
.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.skill-category-icon {
    width: 42px;
    height: 42px;
    background: #f4f4f4;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.skill-category-icon i {
    font-size: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

.skill-category-card:hover .skill-category-icon {
    background: #000;
    border-color: #000;
}

.skill-category-card:hover .skill-category-icon i {
    color: #fff;
}

.skill-category-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.2px;
    margin: 0;
}

/* ── Divider ── */
.skill-card-divider {
    height: 1px;
    background: linear-gradient(90deg, #e8e8e8 0%, transparent 100%);
    margin-bottom: 1.25rem;
}

/* ── List ── */
.skill-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.skill-category-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.skill-category-list li:hover {
    color: #111;
}

.skill-bullet {
    display: inline-block;
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    background: #bbb;
    border-radius: 50%;
    margin-top: 0.45rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.skill-category-list li:hover .skill-bullet {
    background: #000;
    transform: scale(1.4);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .skills-category-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .skills-category-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .skills-section-header h2 {
        font-size: 2rem;
    }
}

/* ===================================================
   GALLERY SECTION — Living Gallery
   =================================================== */

.gallery-section {
    background: #fafafa;
    padding-bottom: 5rem !important;
}

/* ── Header ── */
.gallery-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-header h2 {
    margin-bottom: 0.5rem;
}

.gallery-subtitle {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

/* ── Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
}

.gallery-item.wide   { grid-column: span 2; }
.gallery-item.tall   { grid-row:    span 2; }
.gallery-item.big    { grid-column: span 2; grid-row: span 2; }
.gallery-item.normal { grid-column: span 1; grid-row: span 1; }

/* ── Item ── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: #e8e8e8;

    /* Entrance: mulai tersembunyi, JS akan trigger masuk bertahap */
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition:
        opacity    0.55s ease,
        transform  0.55s ease,
        box-shadow 0.35s ease;
    will-change: transform, opacity;
}

.gallery-item.gallery-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

/* ── Gambar ── */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ── Shimmer skeleton (tampil selama gambar loading) ── */
.gallery-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #e8e8e8 0%,
        #f4f4f4 40%,
        #e8e8e8 80%
    );
    background-size: 200% 100%;
    animation: shimmer-sweep 1.4s infinite linear;
    z-index: 1;
    border-radius: inherit;
    transition: opacity 0.4s ease;
}

.gallery-item.img-loaded .gallery-shimmer {
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer-sweep {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ── Label kategori ── */
.gallery-label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem 0.3rem 0.65rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 6;
    pointer-events: none;
    transform: translateY(4px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-label i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.gallery-item.gallery-visible .gallery-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

/* ── Hover Overlay ── */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0, 0, 0, 0.45) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-overlay-inner i {
    color: #fff;
    font-size: 1.1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay-inner {
    transform: scale(1);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 8px;
    }

    .gallery-item.wide { grid-column: span 2; }
    .gallery-item.big  { grid-column: span 2; grid-row: span 2; }
}

/* ── Gallery Lightbox ── */
#gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#gallery-lightbox.active {
    display: flex;
}

#gallery-lightbox .lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

#gallery-lightbox .lb-img-wrap {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-lightbox .lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transition: opacity 0.25s ease;
}

#gallery-lightbox .lb-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
}

#gallery-lightbox .lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 3;
}

#gallery-lightbox .lb-close,
#gallery-lightbox .lb-prev,
#gallery-lightbox .lb-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
    font-size: 1rem;
}

#gallery-lightbox .lb-close:hover,
#gallery-lightbox .lb-prev:hover,
#gallery-lightbox .lb-next:hover {
    background: rgba(255,255,255,0.25);
}

#gallery-lightbox .lb-close { top: 20px;  right: 20px; }
#gallery-lightbox .lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
#gallery-lightbox .lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }