.bg-blocker,
.bg-blocker * {
    pointer-events: none !important;
}

/* ANIMASI (fade-up, fade-left) tetap jalan */
.fade-up,
.fade-left {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-left {
    transform: translateX(-20px);
}

.show-animate {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Semua section jadi satu layar penuh */
section {
    min-height: 100vh;
    display: flex;
    align-items: center; /* tengah vertikal */
    justify-content: center; /* tengah horizontal */
}

/* Tetapi hero tetap pakai layoutnya sendiri */
section:first-of-type {
    display: block !important;
    min-height: 85vh !important;
}

/* Container tetap rapi */
section > div,
section .max-w-6xl {
    margin-top: auto;
    margin-bottom: auto;
}

/* Untuk ABOUT biar tidak terlalu rapat atas-bawah */
#about {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Untuk SERVICES kontennya ke tengah */
/* --- TOMBOL SLIDER --- */

/* Tombol */
.service-btn {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}
.service-btn:hover {
    background: rgba(56, 189, 248, 0.9);
    color: black;
}

/* DESKTOP — banyak card */
#serviceScroll {
    overflow-x: auto;
    padding-bottom: 1rem;
}

/* MOBILE — hanya 1 card, fullscreen style mirip MITRA */
@media (max-width: 768px) {
    #serviceScroll {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #serviceScroll .service-card {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        scroll-snap-align: center;
        margin: 0 auto;
    }

    #serviceScroll .service-card img {
        height: 200px !important;
        object-fit: cover;
    }
}

/* --- PERBAIKAN UTAMA UNTUK SERVICES --- */
#services {
    min-height: 100vh !important; /* jangan 100vh */
    display: block !important; /* jangan flex */
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Pastikan container tidak auto-center */
#services .max-w-6xl {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Untuk PROJECTS bagian grid tidak ketarik ke bawah */
#projects .max-w-6xl {
    padding-top: 1rem;
}

/* Untuk CONTACT biar form & info tetap ditengah */
#contact .max-w-6xl {
    padding-top: 2rem;
}

/* Smooth scroll global */
html {
    scroll-behavior: smooth;
}

/* Style default nav link */
.nav-link {
    transition: color 0.25s ease;
}

/* Nav aktif */
.nav-active {
    color: #38bdf8 !important; /* sky-400 */
    font-weight: 600;
}

/* Underline active (opsional, biar keren) */
.nav-active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #38bdf8;
    margin-top: 3px;
    border-radius: 2px;
}

#projects {
    padding-top: 1rem !important;
}
#services {
    padding-top: 0.5rem !important;
}

#projects .project-card {
    scale: 0.92; /* Mengecilkan ukuran total */
    transform-origin: top; /* Supaya mengecil ke atas, bukan ke tengah */
}

#projects .project-image {
    height: 130px !important; /* dari h-40 (160px) → 130px */
}
