/* ============================================================
   FIX AOS & HORIZONTAL SCROLL (TAMBAHAN KHUSUS)
   ============================================================ */
/* Paksa AOS muncul karena overflow-x sering mematikan animasinya */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Mencegah scroll ke kanan */
    position: relative;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* Pastikan section tidak meledak tapi tidak mematikan AOS */
section, .footer {
    width: 100%;
    position: relative;
}

.container {
    max-width: 100%;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   STYLE ASLI KAMU (TIDAK ADA YANG DIHAPUS/DIKURANGI)
   ============================================================ */
:root { 
    --g-primary: #144c4d; 
    --g-secondary: #f8931f; 
    --g-dark: #111111; 
    --g-soft: #f4f7f7;
}

body { font-family: 'Josefin Sans', sans-serif; color: #444; line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Play', sans-serif; font-weight: 700; color: var(--g-primary); }

/* Hero Refinement */
.gspi-lp-hero, .gspi-lp-hero-section {
    min-height: 85vh;
    background: linear-gradient(135deg, rgba(20, 76, 77, 0.95), rgba(20, 76, 77, 0.7)), 
                url('{{ asset("assets/img/services/header/banjir/jakarta-mapping.webp") }}') no-repeat center center/cover;
    display: flex; align-items: center; color: #fff; padding: 100px 0;
}
.gspi-lp-hero-badge { 
    background: var(--g-secondary); color: #fff; padding: 8px 20px; border-radius: 4px; 
    font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 25px; display: inline-block; 
}

/* Section Styling */
.gspi-lp-story-card { 
    background: #fff; padding: 40px; border-radius: 15px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.06); border-left: 5px solid var(--g-secondary); 
}
.gspi-lp-tech-section { background: var(--g-primary); color: #fff; padding: 100px 0; position: relative; }
.gspi-lp-spec-box { 
    background: rgba(255,255,255,0.07); padding: 35px; border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.1); height: 100%; backdrop-filter: blur(5px);
}

.brief-list li { margin-bottom: 15px; display: flex; align-items: flex-start; }
.brief-list i { color: var(--g-secondary); margin-right: 15px; font-size: 1.1rem; }

/* 3D Viewer Styling */
.potree-wrapper { background: #000; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.2); position: relative; }
.potree-play-wrapper { transition: 0.3s; }

.gspi-tools {
    position: absolute; top: 20px; right: 20px; z-index: 10; display: none; gap: 10px;
}
.tool-btn-custom {
    background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px; border-radius: 5px; backdrop-filter: blur(10px); transition: 0.3s;
}
.tool-btn-custom:hover { background: var(--g-secondary); border-color: var(--g-secondary); }

/* Gallery Styling */
.library-item {
    position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 30px; height: 260px;
}
.library-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.library-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 25px;
    background: linear-gradient(transparent, rgba(20, 76, 77, 0.9)); color: #fff;
}
.library-item:hover img { transform: scale(1.1); }

.text-highlight { color: var(--g-secondary); font-weight: 700; }
.btn-warning { background-color: var(--g-secondary); border: none; color: #fff; padding: 12px 30px; }
.btn-warning:hover { background-color: #e0821b; color: #fff; }

.gspi-lp-hero-section .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}
.gspi-lp-hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.transition-hover:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(20, 76, 77, 0.1) !important;
    background: #fcfcfc !important;
}
.library-item-v2 {
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    height: 400px;
    border: 4px solid #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.library-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}
.library-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.library-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 76, 77, 0.95) 10%, rgba(20, 76, 77, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: 0.4s;
}
.overlay-content {
    transform: translateY(20px);
    transition: 0.4s;
}
.description-text {
    transition: 0.4s;
    display: block;
    max-height: 0;
    overflow: hidden;
}

/* Hover Effects V2 */
.library-item-v2:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(20, 76, 77, 0.2) !important;
}
.library-item-v2:hover img {
    transform: scale(1.15);
}
.library-item-v2:hover .library-glass-overlay {
    background: linear-gradient(to top, rgba(248, 147, 31, 0.9) 10%, rgba(20, 76, 77, 0.4) 100%);
}
.library-item-v2:hover .overlay-content {
    transform: translateY(0);
}
.library-item-v2:hover .description-text {
    opacity: 1 !important;
    max-height: 50px;
    margin-top: 10px;
}

/* =========================
   TABLET (≤ 992px)
========================= */
@media (max-width: 992px) {
    .gspi-lp-hero, .gspi-lp-hero-section {
        padding: 80px 20px;
        min-height: auto;
        text-align: center;
    }
    .gspi-lp-story-card { padding: 25px; }
    .gspi-lp-tech-section { padding: 70px 20px; }
    .gspi-lp-spec-box { padding: 25px; }
    .library-item-v2 { height: 300px; }
    .library-glass-overlay { padding: 20px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

/* =========================
   MOBILE (≤ 576px)
========================= */
@media (max-width: 576px) {
    .gspi-lp-hero, .gspi-lp-hero-section { padding: 60px 15px; }
    .gspi-lp-hero-badge { font-size: 0.7rem; padding: 6px 15px; }
    .gspi-lp-story-card { padding: 20px; border-left: 3px solid var(--g-secondary); }
    .gspi-lp-tech-section { padding: 50px 15px; }
    .gspi-lp-spec-box { padding: 20px; }
    .library-item-v2 { height: 240px; border-radius: 15px; }
    .overlay-content h5 { font-size: 1rem; }
    .description-text { font-size: 0.85rem; }

    .library-item-v2:hover { transform: none; box-shadow: none !important; }
    .library-item-v2:hover img { transform: none; }
    .transition-hover:hover { transform: none; box-shadow: none !important; }

    .btn-warning { width: 100%; text-align: center; }
}