/* ==========================================
   1. VARIABLE & RESET STYLE
   ========================================== */
:root {
    --primary-orange: #FF6B35;
    --primary-pink: #FF3366;
    --primary-blue: #00B4DB;
    --bg-light: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --gradient-accent: linear-gradient(135deg, #FF6B35, #FF3366, #00B4DB);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.25);
    --transition-fast: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; /* Ubah menjadi transparan */
    backdrop-filter: blur(0px);    /* Efek blur dimatikan saat transparan */
    box-shadow: none;             /* Sembunyikan bayangan saat di atas */
    z-index: 2000;
    transition: var(--transition-fast); /* Transisi halus saat warna berubah */
}

/* Header saat di-scroll (Berubah ke warna putih bawaan file Anda) */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95); /* Warna putih transisi sesuai tema awal */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Teks link header saat transparan */
header:not(.scrolled) .nav-link {
    color: #5c5c5c;
}

header:not(.scrolled) .hamburger span {
    background: #ffffff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.logo img {
    height: 43px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.logo span {
    font-weight: 1000;
    font-size: 1.4rem;
    letter-spacing: -0.3px;
    line-height: 1;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition-fast);
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link i.menu-icon {
    display: none;
}

.mobile-menu-header, .mobile-socials {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    z-index: 2005;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
    background: var(--primary-pink);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
    background: var(--primary-pink);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   3. HOME / BERANDA SECTION
   ========================================== */
#beranda {
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #1a1a1a;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.hero-image-container:hover img {
    transform: scale(1.03);
}

.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 40px 35px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.88) 0%, 
        rgba(0, 0, 0, 0.5) 60%, 
        transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #FFFFFF;
    z-index: 2;
}

.hero-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, var(--primary-orange) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-content {
    background-color: var(--bg-card);
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--primary-orange);
}

.about-text {
    color: var(--text-dark);
    font-weight: 410;
    margin-bottom: 12px;
    font-size: 0.96rem;
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    word-spacing: -0.5px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ==========================================
   4. LAYANAN KAMI SECTION
   ========================================== */
#layanan {
    padding: 80px 0;
    background-color: #F4F7F6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 8px 0 5px 0;
    transition: var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--primary-orange);
}

/* ==========================================
   5. GALERI SECTION
   ========================================== */
#galeri {
    padding: 80px 0;
    background-color: #FFFFFF;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.carousel-item {
    position: absolute;
    width: 320px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: pointer;
    user-select: none;
    background-color: #000;
}

.carousel-item img, .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 6;
    pointer-events: none;
}

.carousel-item.active .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.item-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.play-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.8rem;
    z-index: 7;
    pointer-events: none;
}

.carousel-item.active {
    transform: translateX(0) scale(1.1) translateZ(0);
    z-index: 10;
    box-shadow: var(--shadow-3d);
    opacity: 1;
    filter: brightness(1);
}

.carousel-item.prev {
    transform: translateX(-240px) scale(0.85) translateZ(-100px);
    z-index: 5;
    opacity: 0.7;
    filter: brightness(0.8);
}

.carousel-item.next {
    transform: translateX(240px) scale(0.85) translateZ(-100px);
    z-index: 5;
    opacity: 0.7;
    filter: brightness(0.8);
}

.carousel-item.far-prev {
    transform: translateX(-400px) scale(0.7) translateZ(-200px);
    z-index: 1;
    opacity: 0.3;
    filter: brightness(0.6);
}

.carousel-item.far-next {
    transform: translateX(400px) scale(0.7) translateZ(-200px);
    z-index: 1;
    opacity: 0.3;
    filter: brightness(0.6);
}

.carousel-item.hidden {
    opacity: 0;
    transform: translateX(0) scale(0.5);
    pointer-events: none;
    z-index: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: white;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-btn:hover {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
    transform: scale(1.05);
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.open .lightbox-content {
    transform: scale(1);
}

/* Sesuaikan kontainer agar dinamis mengikuti rasio asli gambar/video */
.lightbox-media-container {
    position: relative;
    width: auto;
    max-width: 100%;
    max-height: 70vh; /* Agar tidak memakan seluruh layar tinggi */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: transparent; /* Hilangkan background hitam kaku */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-media-container img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-media-container video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.sound-toggle-btn {
    display: none;
    margin-top: 15px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: var(--transition-fast);
}

.sound-toggle-btn:hover {
    transform: scale(1.05);
}

.lightbox-caption {
    margin-top: 10px;
    color: #FFFFFF;
    text-align: center;
}

.lightbox-caption h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.lightbox-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 3010;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--primary-orange);
    transform: scale(1.1);
}

/* ==========================================
   HUBUNGI KAMI (DESKTOP & MOBILE RESPONSIVE)
   ========================================== */
#kontak {
    padding: 60px 0;
    background-color: #F4F7F6;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.contact-desc {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-orange);
    margin-top: 4px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
    word-break: break-word;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #FAFAFA;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background: #FFFFFF;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* ==========================================
   7. FOOTER
   ========================================== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================
   8. PERBAIKAN TAMPILAN MOBILE (PERBAIKAN Z-INDEX)
   ========================================== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 110px;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        width: 90%;
        max-width: 360px;
        max-height: 75vh; 
        overflow-y: auto; 
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 24px;
        padding: 25px 20px 20px 20px; 
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 2010;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
    }

    .mobile-menu-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    .mobile-logo-wrapper img {
        height: 50px;
        width: auto;
    }

    .mobile-brand-title {
        margin-top: 4px;
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        background: var(--gradient-accent);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 15px;
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link i.menu-icon {
        display: inline-block;
        font-size: 1.1rem;
        background: var(--gradient-accent);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        width: 24px;
        text-align: center;
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;
        margin-top: 15px;
        padding: 14px 18px;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 16px;
    }

    .social-btn {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .social-btn i {
        font-size: 1.25rem;
        background: var(--gradient-accent);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .social-btn:active {
        transform: scale(0.92);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .hero-image-overlay {
        padding: 30px 20px 20px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }

    .hero-content {
        padding: 20px;
    }

    .carousel-wrapper {
        height: 380px;
    }

    .carousel-item {
        width: 240px;
        height: 320px;
    }

    .carousel-item.prev {
        transform: translateX(-140px) scale(0.8) translateZ(-100px);
    }

    .carousel-item.next {
        transform: translateX(140px) scale(0.8) translateZ(-100px);
    }

    .carousel-item.far-prev, .carousel-item.far-next {
        opacity: 0;
    }
}

/* ==========================================
   9. FLOATING WHATSAPP BUTTON (CUSTOM BRAND COLOR)
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    color: #FFFFFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 30px rgba(255, 51, 102, 0.6);
    color: #FFFFFF;
}

.whatsapp-float .tooltip-text {
    visibility: hidden;
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(5px);
    color: #FFF;
    text-align: center;
    border-radius: 8px;
    padding: 6px 12px;
    position: absolute;
    z-index: 1;
    right: 115%;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
}

/* ==========================================
   RESPONSIVE KONTAK SECTION (MOBILE FIX)
   ========================================== */
@media (max-width: 768px) {
    #kontak {
        padding: 40px 0;
    }

    .contact-wrapper {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 20px 16px !important;
        border-radius: 16px;
    }

    .contact-info {
        padding: 0 !important;
        border-radius: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-info h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .contact-desc {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .info-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
    }

    .info-item i {
        font-size: 1.05rem;
        margin-top: 3px;
        flex-shrink: 0;
    }

    .info-item strong,
    .info-item p {
        font-size: 0.85rem;
        margin: 0;
        word-break: break-word;
    }

    .contact-form {
        padding: 20px 15px !important;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        gap: 12px;
    }

    .contact-form .form-group {
        margin-bottom: 0;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        font-size: 0.85rem;
        padding: 10px 12px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .contact-form .btn-submit {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

.testimoni-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimoni-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.testimoni-text {
    font-style: italic;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimoni-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimoni-user img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #ccc;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Status Aktif / Terbuka */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px 20px;
}

/* ================= ==========================
   STYLING TESTIMONI (FIXED CONTRAST & CARD)
   ========================================== */
.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.testimoni-card {
    background: #ffffff; /* Latar belakang kartu putih solid */
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    padding: 28px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimoni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

.testimoni-stars {
    color: #f59e0b; /* Warna bintang kuning emas terang */
    font-size: 1.25rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimoni-text {
    font-style: italic;
    color: #334155 !important; /* Warna teks gelap tegas (Slate-700) */
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimoni-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimoni-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0ea5e9; /* Latar default avatar jika gambar tak ada */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimoni-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimoni-user h4 {
    margin: 0;
    color: #0f172a !important; /* Warna nama sangat gelap */
    font-weight: 700;
    font-size: 1rem;
}

.testimoni-user small {
    color: #64748b !important; /* Warna subtitle/jabatan */
    font-size: 0.85rem;
}

/* ================= ==========================
   STYLING FAQ (ACCORDION CONTRAST FIX)
   ========================================== */
.faq-container {
    max-width: 850px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff; /* Kartu FAQ Putih */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #0ea5e9; /* Highlight biru saat dibuka */
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.08);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: #0f172a !important; /* Warna teks pertanyaan sangat jelas */
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    color: #0ea5e9; /* Warna ikon panah */
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: #334155 !important; /* Warna teks jawaban gelap tegas */
    line-height: 1.7;
    font-size: 0.98rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 24px 24px;
}

/* animasi tambahn */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* animasi text filosofi */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.hero-badge {
    animation: floating 3s ease-in-out infinite;
}

/* animasi tmbol wa */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(255, 107, 53, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.whatsapp-float {
    animation: pulse-ring 2s infinite;
}

/* ==========================================
   TESTIMONI HORIZONTAL SCROLL (MOBILE ONLY)
   ========================================== */
@media (max-width: 768px) {
    .testimoni-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 15px; /* Ruang untuk scrollbar */
        padding-left: 5px;
        padding-right: 5px;
    }

    .testimoni-card {
        flex: 0 0 85%; /* Menampilkan 1 kartu besar + sedikit mengintip kartu berikutnya */
        max-width: 85%;
        scroll-snap-align: center; /* Kartu otomatis 'snap' ke tengah saat di-scroll */
    }

    /* Sembunyikan scrollbar agar tampilan tetap bersih */
    .testimoni-grid::-webkit-scrollbar {
        display: none;
    }
    .testimoni-grid {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}

.carousel-wrapper {
    touch-action: pan-y; /* Mencegah bentrok antara swipe horizontal galeri dengan scroll vertikal halaman */
}


/* ==========================================
   HERO SLIDER ELEGANT SECTION
   ========================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #000;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.4s ease;
}

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

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1.15);
  transition: transform 8s ease-out;
  will-change: transform;
}

.slide-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -1;
  transform: scale(1.08);
  will-change: transform;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.75) 100%);
  z-index: 0;
}

.slide.active .slide-bg {
  transform: scale(1);
}

/* ==========================================
   PERBAIKAN MEDIA DESKTOP vs MOBILE (GAMBAR & VIDEO)
   ========================================== */

/* 1. Tampilan Desktop (Layar > 1024px) */
@media (min-width: 1025px) {
  .slide-bg-mobile {
    display: none !important;
  }
  div.slide-bg-desktop {
    display: block !important;
  }
  video.slide-bg-desktop {
    display: block !important;
  }
}

/* 2. Tampilan Mobile & Tablet (Layar <= 1024px) */
@media (max-width: 1024px) {
  .slide-bg-desktop {
    display: none !important;
  }
  div.slide-bg-mobile {
    display: block !important;
  }
  video.slide-bg-mobile {
    display: block !important;
  }
}

.slide-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1000px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtitle-top {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 2vw, 16px);
  font-weight: 600;
  letter-spacing: clamp(3px, 1vw, 8px);
  text-transform: uppercase;
  color: #ffaa5a;
  margin-bottom: clamp(12px, 2vw, 20px);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 6vw, 55px);
  font-weight: 900;
  letter-spacing: clamp(2px, 0.8vw, 4px);
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: clamp(15px, 2.5vw, 25px);
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(25px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.char-space {
  display: inline-block;
  width: 0.3em;
}

.subtitle-bottom {
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: clamp(1px, 0.4vw, 1px);
  font-weight: 300;
  color: #d8d8d8;
  font-weight: 400;
  margin-bottom: clamp(25px, 4vw, 35px);
  max-width: 650px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(10px, 1.2vw, 11px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #00c6ff 100%);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.slide.show-text .subtitle-top {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.slide.show-text .char {
  opacity: 1;
  transform: translateY(0);
}

.slide.show-text .subtitle-bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.slide.show-text .btn-group {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

/* ELEGANT DOTS STYLING */
.dots-container {
  position: absolute;
  bottom: clamp(25px, 5vh, 45px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.dot-wrapper {
  padding: 8px 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dot {
  width: 12px;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.35);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.dot-wrapper:hover .dot {
  background-color: rgba(255, 255, 255, 0.7);
}

.dot-wrapper.active .dot {
  width: 32px;
  background-color: #ff6b35;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

body.dots-inactive .dots-container {
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
}

/* ==========================================
   GLOBAL PERFORMANCE & RESPONSIVE RESET
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden; /* Mencegah layar goyang menyamping di HP */
  width: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Optimasi Performa Media */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Penyesuaian Responsivitas Font & Container Utama */
@media (max-width: 768px) {
  section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==========================================
   1. KHUSUS DESKTOP (Layar > 768px)
   ========================================== */
@media (min-width: 769px) {
    /* Header transparan saat di atas */
    header:not(.scrolled) {
        background-color: transparent;
        backdrop-filter: blur(0px);
        box-shadow: none;
    }

    /* Teks link header transparan khusus desktop */
    header:not(.scrolled) .nav-link {
        color: #FFFFFF;
    }
}

/* ==========================================
   2. KHUSUS MOBILE (Layar <= 768px)
   ========================================== */
@media (max-width: 768px) {
    /* Tombol hamburger tetap putih jika header transparan di atas */
    header:not(.scrolled) .hamburger span {
        background-color: #FFFFFF;
    }

    /* Pastikan link di dalam pop-up mobile SELALU warna bawaan 
       (Mengabaikan status .scrolled pada header) */
    .nav-menu .nav-link {
        color: var(--text-color, #333333);
    }
}

/* ==========================================
   3. EFEK SCROLLED GENERAL
   ========================================== */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Placeholder background halus saat media dari Supabase belum selesai dimuat */
.hero-image-container,
.service-img,
.carousel-item,
.slide-bg-video {
    background-color: #1e293b; /* Warna latar slate gelap elegan */
    background-image: linear-gradient(110deg, #1e293b 8%, #334155 18%, #1e293b 33%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite linear;
}

@keyframes skeleton-shine {
    to {
        background-position-x: -200%;
    }
}

.hero-title, 
.hero-slider h1 {
  word-break: keep-all;       /* Mencegah pemotongan kata di tengah huruf */
  overflow-wrap: break-word; /* Memutus baris secara utuh per kata */
  font-size: clamp(1.8rem, 5vw, 3.5rem); /* Ukuran font fleksibel sesuai lebar layar */
}