:root {
    --blue: #1565c0;
    --blue-dark: #0d47a1;
    --blue-light: #1976d2;
    --yellow: #ffc107;
    --yellow-dark: #f9a825;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; overflow-x: hidden; }
.container, .container-fluid { max-width: 100%; }

/* ===== NAVBAR ===== */
#mainNav {
    background: #111111 !important;
    padding: 14px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
#mainNav .navbar-brand { font-size: 1.15rem; padding: 0; }
#mainNav .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; padding: 6px 12px !important; }
#mainNav .nav-link:hover { color: var(--yellow) !important; }
#mainNav .container { display: flex; align-items: center; justify-content: space-between; }

@media(max-width:991px) {
    #mainNav .container { padding-left: 12px !important; padding-right: 12px !important; }
    #mainNav .navbar-brand { flex: 1; }
}

/* ===== LOGO ===== */
.logo-wika {
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
    text-transform: lowercase;
}
.logo-circle {
    width: 54px;
    height: 54px;
    background: #e84c00;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-wh {
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 0.42rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Logo tetap sama di semua ukuran layar */
@media (max-width: 991px) {
    .logo-wika {
        font-size: 2rem !important;
    }
    .logo-circle {
        width: 54px !important;
        height: 54px !important;
    }
    .logo-wh {
        font-size: 1.15rem !important;
    }
    .logo-sub {
        font-size: 0.42rem !important;
    }
}

/* ===== BUTTONS ===== */
.btn-blue {
    background: var(--blue);
    color: #1e1212;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-blue:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(13,71,161,0.4); }
.btn-yellow {
    background: var(--yellow);
    color: #1a1a1a;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-yellow:hover { background: var(--yellow-dark); color: #1a1a1a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,193,7,0.4); }
.text-yellow { color: var(--yellow) !important; }

/* ===== HERO CAROUSEL ===== */
.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
#heroCarousel, #heroCarousel .carousel-inner, #heroCarousel .carousel-item {
    overflow: hidden;
    max-width: 100vw;
}
.slide-1 { background: #ffffff; }
.slide-2 { background: #f8f9ff; }
.slide-3 { background: #f0f4ff; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.carousel-item { min-height: 100vh; }
.hero-text-col { padding: 100px 0 80px; position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(21,101,192,0.1);
    border: 1px solid rgba(21,101,192,0.4);
    color: var(--blue);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 18px;
}
.hero-desc { color: #444; font-size: 1rem; line-height: 1.8; margin-bottom: 28px; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-lbl { font-size: 0.72rem; color: #666; margin-top: 2px; }

/* Hero image box */
.hero-img-box {
    width: 380px; height: 420px;
    border-radius: 20px;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero-img-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-badge-float {
    position: absolute;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.hero-badge-float.top { top: 10px; left: 10px; }
.hero-badge-float.bottom { bottom: 10px; right: 10px; }

/* Carousel controls */
.carousel-control-prev, .carousel-control-next {
    width: 50px; height: 50px;
    background: rgba(21,101,192,0.15);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    border: 2px solid rgba(21,101,192,0.3);
    transition: all 0.3s;
}
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: rgba(21,101,192,0.3); border-color: var(--blue); }
.carousel-indicators [data-bs-target] {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(21,101,192,0.3);
    border: 2px solid rgba(21,101,192,0.5);
    margin: 0 5px;
}
.carousel-indicators .active { background: var(--blue); border-color: var(--blue); transform: scale(1.3); }

/* ===== SECTION COMMON ===== */
.section-badge {
    display: inline-block;
    background: rgba(21,101,192,0.1);
    border: 1px solid rgba(21,101,192,0.3);
    color: var(--blue);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-badge-light {
    display: inline-block;
    background: rgba(255,193,7,0.2);
    border: 1px solid rgba(255,193,7,0.5);
    color: var(--yellow);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}
.section-title span {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT ===== */
.about-img-box {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 20px;
    height: 380px;
    color: #fff;
}
.about-icon { font-size: 8rem; opacity: 0.9; }

/* ===== KEUNGGULAN ===== */
.keunggulan-card {
    background: #fff;
    border: 2px solid #e8f0fe;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s;
    height: 100%;
}
.keunggulan-card:hover {
    border-color: var(--blue);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(21,101,192,0.12);
}
.keunggulan-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: #fff;
}
.keunggulan-card h5 { font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
.keunggulan-card p { color: #666; font-size: 0.9rem; margin: 0; }

/* ===== LAYANAN ===== */
.section-blue { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); }
.layanan-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    color: #fff;
    transition: all 0.3s;
    height: 100%;
    backdrop-filter: blur(5px);
}
.layanan-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--yellow);
}
.layanan-icon {
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}
.layanan-card h5 { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.8rem; }
.layanan-card p { color: rgba(255,255,255,0.8); font-size: 0.92rem; line-height: 1.7; }

/* ===== CTA ===== */
.section-yellow { background: var(--yellow); }

/* ===== TESTIMONI ===== */
.testi-card {
    background: #fff;
    border: 1px solid #e8f0fe;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    position: relative;
}
.testi-card::before {
    content: '"';
    position: absolute;
    top: 10px; right: 20px;
    font-size: 5rem;
    color: rgba(21,101,192,0.08);
    font-family: Georgia, serif;
    line-height: 1;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(21,101,192,0.12); border-color: var(--blue); }
.testi-card p { color: #555; line-height: 1.7; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 45px; height: 45px;
    background: var(--blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== KONTAK ===== */
.kontak-info-card {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}
.kontak-icon {
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.kontak-form-card {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #e8f0fe;
}
.kontak-form-card .form-control,
.kontak-form-card .form-select {
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
}
.kontak-form-card .form-control:focus,
.kontak-form-card .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

/* ===== FOOTER ===== */
.footer-main { background: #0d1b2a; }
.footer-link { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; display: block; margin-bottom: 6px; transition: color 0.3s; }
.footer-link:hover { color: var(--yellow); }
.footer-social {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}
.footer-social:hover { background: var(--yellow); color: #1a1a1a; border-color: var(--yellow); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 70px; height: 70px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 5px 25px rgba(37,211,102,0.5);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s;
    animation: wa-pulse 2s ease-in-out infinite;
}
.wa-float::after { content: none; }
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 5px 40px rgba(37,211,102,0.8), 0 0 0 12px rgba(37,211,102,0.1); }
}
.wa-float:hover { transform: scale(1.1); color: #fff; animation: none; box-shadow: 0 10px 35px rgba(37,211,102,0.7); }

/* Phone Float */
.phone-float {
    position: fixed;
    bottom: 112px; right: 30px;
    width: 70px; height: 70px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(21,101,192,0.5);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s;
    animation: phone-pulse 2s ease-in-out infinite;
}
@keyframes phone-pulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(21,101,192,0.5); }
    50% { box-shadow: 0 5px 40px rgba(21,101,192,0.8), 0 0 0 12px rgba(21,101,192,0.1); }
}
.phone-float:hover { transform: scale(1.1); color: #fff; animation: none; box-shadow: 0 10px 35px rgba(21,101,192,0.7); }

/* ===== GALERI ===== */
.galeri-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    will-change: transform, opacity;
}
.galeri-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(21,101,192,0.25);
    border-color: var(--blue);
}
.galeri-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
}
.galeri-item:hover img { transform: scale(1.08); }
.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21,101,192,0.8), rgba(13,71,161,0.8));
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 9px;
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay i { color: #fff; font-size: 2.5rem; }

.galeri-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.galeri-caption {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.15s;
}

.galeri-item:hover .galeri-caption {
    opacity: 1;
    transform: translateY(0);
}

.galeri-item:hover .galeri-overlay i {
    animation: pulse 0.4s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Animasi fade-in untuk galeri saat scroll - sudah dihandle via JS + transition */

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== GALERI FADE-IN KIRI KANAN ===== */
.galeri-reveal {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
/* Kolom 1 (kiri) → masuk dari kiri */
.galeri-reveal.from-left {
    transform: translateX(-80px);
}
/* Kolom 2 (tengah) → masuk dari bawah */
.galeri-reveal.from-bottom {
    transform: translateY(60px);
}
/* Kolom 3 (kanan) → masuk dari kanan */
.galeri-reveal.from-right {
    transform: translateX(80px);
}
/* Saat visible */
.galeri-reveal.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-text-col { padding: 80px 0 20px; }
    .hero-title { font-size: 1.8rem; }
    .hero-stats { gap: 0.8rem !important; flex-wrap: wrap !important; }
    .stat-num { font-size: 1.2rem; }
    .stat-lbl { font-size: 0.65rem; }
    .wa-float {
        bottom: 20px; right: 16px;
        width: 62px; height: 62px;
        font-size: 2rem;
    }
    .phone-float {
        bottom: 94px; right: 16px;
        width: 62px; height: 62px;
        font-size: 1.8rem;
    }
    .about-img-box { height: 220px; }
    .about-icon { font-size: 5rem; }
    .hero-img-box {
        width: 260px;
        height: 200px;
        margin-top: 10px;
        margin-bottom: 30px;
    }
    .hero-badge-float { display: none !important; }
    #heroCarousel .row { margin-left: 0 !important; margin-right: 0 !important; }
    #heroCarousel .container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ===== HERO MINI BOX ===== */
.hero-mini-box {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    margin-top: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.mini-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.mini-slide.active {
    opacity: 1;
}
@media(max-width:991px){
    .hero-mini-box { width: 200px; height: 160px; margin-top: 8px; margin-bottom: 8px; }
}
@media(max-width:576px){
    .hero-mini-box { width: 160px; height: 130px; margin-top: 6px; }
}
