/* =========================================
   1. PENGATURAN DASAR & LATAR BELAKANG
========================================= */
html {
    scroll-behavior: smooth; 
    scroll-margin-top: 90px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* PERPADUAN LATAR BELAKANG:
       Lapisan Atas = Kaca Gelap Navy 88% biar teks tetap terbaca sangat jelas.
       Lapisan Bawah = Gambar Matriks Biru pilihan Wak */
    background: 
        linear-gradient(135deg, rgba(8, 15, 30, 0.88) 0%, rgba(5, 10, 20, 0.92) 100%),
        url('assets/bg-tekno.jpg');
        
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; /* Rahasia optik mahal: background terkunci diam */
    
    color: #f1f5f9;
    line-height: 1.6;
    padding-bottom: 100px; 
    min-height: 100vh;
}

/* =========================================
   2. NAVBAR STICKY (TEAL BRANDING)
========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 15, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.25);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 800;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 22px;
    list-style: none;
}

.nav-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #00d2ff; 
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* =========================================
   TOMBOL HAMBURGER (Sembunyi di Laptop)
========================================= */
.hamburger {
    display: none; /* Sembunyikan default */
    background: transparent;
    border: none;
    color: #00d2ff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* =========================================
   3. GLASS CARD KONTEN
========================================= */
header, section {
    width: 92%; 
    max-width: 550px; 
    margin: 24px auto; 
    padding: 32px; 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    border-radius: 20px; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    scroll-margin-top: 100px; 
    transition: transform 0.3s ease, border-color 0.3s ease; 
}

header:hover, section:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.5);
}

hr { display: none; }

/* =========================================
   4. ELEMEN TEKS & FOTO PROFIL
========================================= */
h1, h2 {
    background: linear-gradient(90deg, #00d2ff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    text-align: center;
    font-weight: bold;
}

header { text-align: center; }

header img {
    border-radius: 50%;
    padding: 3px; 
    background: linear-gradient(135deg, #00d2ff, #3a7bd5); 
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.5); 
    margin-bottom: 16px;
    width: 125px;
    height: 125px;
    object-fit: cover;
}

/* =========================================
   5. DAFTAR HARGA & LINK BISNIS
========================================= */
ul { list-style: none; }

li {
    padding: 12px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04); 
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

li:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(5px); 
    border-left: 3px solid #00d2ff;
}

section#other a {
    color: #00d2ff; 
    text-decoration: none;
    font-weight: bold;
    display: block;
}

/* =========================================
   6. TOMBOL WHATSAPP (CYAN BRANDING)
========================================= */
#wa-button {
    position: fixed; 
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #00d2ff 0%, #007bb5 100%); 
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    z-index: 9999; 
    transition: all 0.3s ease;
}

#wa-button:hover {
    transform: scale(1.06) translateY(-4px); 
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.85); 
}

#wa-button a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* =========================================
   7. ATURAN RESPONSIVE FLEKSIBEL
========================================= */
/* =========================================
   ATURAN RESPONSIVE (KHUSUS LAYAR HP)
========================================= */
/* =========================================
   DESAIN NAVBAR & MENU HAMBURGER (UNIVERSAL)
========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000; 
    background: rgba(8, 15, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.25);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Teks Logo Kiri Atas */
.nav-brand {
    font-weight: 800;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Tombol Hamburger Tampil Terus di Semua Layar */
.hamburger {
    display: block; 
    background: transparent;
    border: none;
    color: #00d2ff;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1); /* Efek membesar sedikit saat disentuh kursor laptop */
}

/* =========================================
   MENU DROPDOWN (ELEGAN FLOATING CARD)
========================================= */
.nav-menu {
    display: none; /* Disembunyikan sampai hamburger diklik */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Jarak melorot dari atas */
    right: 24px; /* Rapat ke kanan sejajar dengan ikon hamburger */
    width: 220px; /* Lebarnya kita batasi agar jadi kotak rapi, tidak full layar */
    background: rgba(8, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    border-radius: 16px; /* Sudut kotak melengkung manis */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.2);
    list-style: none;
}

/* Menu Tampil Saat Hamburger Diklik (Dijalankan oleh JavaScript) */
.nav-menu.active {
    display: flex; 
}

/* =========================================
   MEMBERSIHKAN GAYA KOTAK-KOTAK PADA MENU
========================================= */
.nav-menu li {
    width: 100%;
    text-align: left; /* Teks rata kiri agar lebih rapi */
    background: transparent !important; /* Paksa hilangkan background lama */
    border: none !important; /* Paksa hilangkan garis batas lama */
    margin: 0 !important; /* Paksa hilangkan jarak antar kotak */
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Hilangkan efek kotak bergeser dari li global saat disentuh */
.nav-menu li:hover {
    transform: none !important; 
}

/* Desain teks di dalam menu */
.nav-menu li a {
    display: block;
    padding: 14px 24px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Efek saat kursor menyentuh teks menu */
.nav-menu li a:hover {
    color: #00d2ff; 
    background: rgba(0, 210, 255, 0.1); /* Sorotan biru tipis transparan */
    padding-left: 32px; /* Teks sedikit meluncur ke kanan */
}

/* =========================================
   PENGATURAN LOGO BERDAMPINGAN DENGAN TEKS
========================================= */

/* Memaksa Logo dan Teks di Navbar sejajar rapi */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara logo dan huruf E */
}

/* Memaksa Logo dan Teks di Judul AI sejajar rapi di tengah */
.judul-ai {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Jarak antara logo AI dan kata Konsultasi */
}

/* Mengatur ukuran agar logo bertindak seperti Ikon kecil */
.ikon-kecil {
    height: 28px; /* Tinggi ikon untuk navbar */
    width: auto;
}

.ikon-kecil-ai {
    height: 35px; /* Tinggi ikon untuk judul AI (sedikit lebih besar) */
    width: auto;
}

/* =========================================
   CAROUSEL GALERI (HALAMAN UTAMA) - REVISI PORTRAIT
========================================= */
.carousel-container {
    width: 100%;
    overflow: hidden;
    margin: 16px 0 24px 0;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    padding-bottom: 12px;
}

.carousel-track::-webkit-scrollbar {
    display: none; 
}

/* Penyesuaian ukuran kotak untuk foto IG Story */
.carousel-slide {
    flex: 0 0 60%; /* Lebar dikurangi agar bentuk vertikalnya proporsional */
    height: 320px; /* Tinggi ditambah agar foto tidak terpotong parah */
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: center;
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* =========================================
   GRID KOTAK (UNTUK HALAMAN GALERI.PHP) - REVISI PORTRAIT
========================================= */
.grid-galeri {
    display: grid;
    /* Kolom minimal 120px agar di HP bisa berjejer 2-3 foto vertikal */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

/* Memaksa foto mengikuti proporsi Instagram Story */
.grid-galeri img {
    width: 100%;
    aspect-ratio: 9 / 16; /* Kunci rahasianya: Rasio vertikal 9:16 */
    height: auto; /* Biarkan tinggi menyesuaikan otomatis */
    object-fit: cover; 
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.grid-galeri img:hover {
    transform: scale(1.05);
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    z-index: 2;
    position: relative;
}

/* TOMBOL LIHAT SELENGKAPNYA */
.btn-selengkapnya {
    display: block;
    text-align: center;
    background: rgba(0, 210, 255, 0.05);
    color: #00d2ff !important;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-selengkapnya:hover {
    background: rgba(0, 210, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}
/* =========================================
   DESAIN CARD LAYANAN (SERVICES)
========================================= */
.service-cards-container {
    display: grid;
    /* Rahasia Mobile-First: Otomatis 1 kolom di HP, banyak kolom di Desktop */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    /* Transisi cubic-bezier untuk efek memantul (bouncy) yang elegan */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Efek Hover untuk Desktop */
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 210, 255, 0.8);
    /* Menggabungkan shadow luar dan glow bagian dalam kotak */
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2), inset 0 0 15px rgba(0, 210, 255, 0.05);
}

/* Transisi Halus pada Grup Tombol */
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}
.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.15);
    transform: translateY(-3px);
}

/* KELAS KHUSUS ANIMASI SCROLL (Jangan dihapus) */
.animasi-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.animasi-scroll.muncul {
    opacity: 1;
    transform: translateY(0);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.service-name {
    color: #00d2ff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.service-price {
    color: #ffffff;
    font-size: 1rem;
}

.service-time {
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Pembuat Animasi Muncul dari Bawah */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#other {
    margin-bottom: 120px; /* Memberi ruang kosong ekstra di bawah kotak Rekomendasi */
}
/* =========================================
   OPTIMASI KHUSUS MOBILE (ANTI-OVERFLOW & KENYAMANAN)
========================================= */

/* 1. Kunci layar agar tidak bocor geser ke kanan (Anti Horizontal Overflow) */
html, body {
    overflow-x: hidden; 
}

@media (max-width: 768px) {
    /* 2. Padding luar yang nyaman (tidak terlalu mepet pinggir HP) */
    .pricing-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* 3. Memaksa 1 kolom & menjaga jarak antar card tetap konsisten (16px) */
    .service-cards-container {
        grid-template-columns: 1fr; 
        gap: 16px;
        margin-top: 20px;
    }
    
    /* 4. Memastikan card nyaman di-tap (Area sentuh ideal) */
    .service-card {
        padding: 18px; 
    }

    /* 5. Mengamankan ukuran font agar tidak bikin mata pelanggan picek */
    .service-name {
        font-size: 1.1rem;
    }
    
    .service-desc {
        font-size: 0.95rem; /* Sedikit dibesarkan agar mudah dibaca */
        line-height: 1.5;
    }

    /* 6. Harga harus jadi bintang utama (dibesarkan & ditebalkan) */
    .service-price {
        font-size: 1.05rem; 
        color: #ffffff;
        font-weight: bold;
    }

    /* Badge waktu diperjelas padding-nya */
    .service-time {
        font-size: 0.8rem;
        padding: 6px 10px; 
    }
}
/* =========================================
   UKURAN LOGO NAVBAR
========================================= */
.nav-brand img {
    width: 45px; /* Silakan naikkan atau turunkan angka 45px ini sesuai selera */
    height: auto;
    margin-right: 10px; /* Jarak antara logo dengan tulisan ECHO SERVICE */
    vertical-align: middle; /* Memastikan logo sejajar lurus dengan teks */

	border-radius: 10px;
}
/* =========================================
   FINAL POLISH: AKSESIBILITAS & TYPOGRAPHY
========================================= */

/* 1. ACCESSIBILITY (a11y): Memberikan efek glow saat kolom input AI ditekan */
textarea:focus, input:focus {
    outline: none;
    border-color: #00d2ff !important;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
    background: rgba(0, 0, 0, 0.4) !important;
}

/* 2. SPACING & TYPOGRAPHY: Memberikan napas yang lebih lega antar kategori */
.category-title {
    font-size: 1.25rem;
    letter-spacing: 0.5px; /* Teks lebih elegan */
    margin-top: 32px !important; /* Jarak tegas dari elemen di atasnya */
    margin-bottom: 16px !important;
}

/* 3. UX: Memastikan interaksi klik terasa instan */
.btn-primary, .btn-secondary, button[type="submit"] {
    cursor: pointer;
    user-select: none; /* Mencegah teks ter-highlight saat di-tap cepat di HP */
}