/* 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 (New Card Style) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Slightly wider cards */
    gap: 2rem;
    padding: 1rem 0;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    /* For image cropping */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    width: calc(100% - 2rem);
    /* Inset image */
    margin: 1rem auto 0;
    /* Center it */
    height: 160px;
    background-color: #f8fafc;
    /* Slightly darker bg for contrast */
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    /* Rounded corners */
    border: 1px solid #e2e8f0;
    /* Contrast border for white images */
    cursor: zoom-in;
    /* Indicate clickable */
}

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

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Image Overlay (View Icon) */
.portfolio-image::after {
    content: '\f00e';
    /* FontAwesome 'search-plus' or 'eye' */
    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: 2rem;
    z-index: 10;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Change icon if it has a direct link */
.portfolio-image.has-link::after {
    content: '\f35d';
    /* FontAwesome 'external-link-alt' */
}

/* Update cursor for linked images */
.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;
}

.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;
    /* Match container */
    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 {
    /* Inherit existing img styles but ensure fit */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Typography & Badges */
.portfolio-meta {
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--highlight-color);
    background: rgba(var(--highlight-rgb), 0.1);
    background: #e0f2fe;
    color: #0284c7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.portfolio-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

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

/* Tech Stack Chips (Many2Many Tags) */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    font-size: 0.75rem;
    color: #334155;
    background: #f8fafc;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

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

/* Action Buttons */
.portfolio-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

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

.btn-github {
    background-color: #24292e;
    color: #fff;
}

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

.btn-demo {
    background-color: #fff;
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
}

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

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

.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;
}