/* ICON BALI DIGITAL - Phase 2 R3 Site Core
   Consolidated in exact legacy order: style.css -> header.css -> mobile-navbar.css */

/* =========================
   RESET & GLOBAL
========================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Inter', sans-serif;
  background: #06111d;
  color: white;
  overflow-x: hidden;
}

a{
  text-decoration: none;
}

img{
  max-width: 100%;
  display: block;
}

.container{
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;
}

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

.section-title span{
  color: #58d5ff;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title h2{
  font-size: 54px;
  margin-top: 18px;
  font-weight: 800;
}

.section-title p{
  color: #b7c7d8;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.8;
}

/* =========================
   BACKGROUND BLUR
========================= */
.bg-blur{
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
}

.bg1{
  top: -250px;
  left: -200px;
  background: radial-gradient(circle, rgba(0,180,216,0.3), transparent 70%);
}

.bg2{
  bottom: -300px;
  right: -200px;
  background: radial-gradient(circle, rgba(0,119,182,0.3), transparent 70%);
}

/* BUTTONS CONFIG */
.btn-primary{
  padding: 18px 34px;
  border-radius: 60px;
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  color: white;
  font-weight: 600;
  box-shadow: 0 10px 35px rgba(0,180,216,0.3);
  transition: 0.3s;
}

.btn-primary:hover{
  transform: translateY(-4px);
}

.btn-secondary{
  padding: 18px 34px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: white;
}

/* =========================
   HERO OFFSET
========================= */
.hero-slider{
  padding-top: 180px;
}

/* ---- header.css ---- */

/* =========================
   NAVBAR
========================= */
.navbar{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(6,17,29,0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* =========================
   HEADER BRAND
========================= */
.header-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding-top: 10px;
}

/* =========================
   HEADER LOGO
========================= */
.header-logo{
  width: 52px;
  height: auto;
  object-fit: contain;
}

/* =========================
   LOGO TEXT
========================= */
.logo{
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(
    90deg,
    #58d5ff,
    #ffffff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* =========================
   NAV WRAPPER
========================= */
.nav-wrapper{
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   NAV MENU
========================= */
.nav-menu{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.nav-menu a{
  color: #dce7f2;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-menu a::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #58d5ff;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after{
  width: 100%;
}

.nav-menu a:hover{
  color: #58d5ff;
}

.nav-menu a.active {
    color: #4b8dff;
}

/* =========================
   NAV BUTTON
========================= */
/*
.nav-btn{
  padding: 14px 24px;
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    #0077B6,
    #00B4D8
  );
  color: white !important;
  font-weight: 600;
  box-shadow: 0 10px 35px rgba(0,180,216,0.3);
}
*/

.nav-btn {
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;

    color: #38bdf8;
    text-decoration: none;

    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 10px;

    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(8px);

    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: #38bdf8;
}

/* Container Utama Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Pastikan area hover cukup luas agar tidak terputus saat kursor bergerak ke bawah */
.dropdown::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Box Menu Dropdown */
.dropdown-content {
    display: none; /* Sembunyi secara default */
    position: absolute;
    top: 100%;
    left: 0%;
    transform: translateX(-50%); /* Agar rata tengah terhadap tulisan Products */
    background: #0f172a; /* Warna gelap solid agar teks terbaca */
    min-width: 280px;
    border: 1px solid rgba(88, 213, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999; /* Sangat penting agar tidak tertutup konten lain */
    padding: 10px 0;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

/* Styling Link di dalam Dropdown */
/*
.dropdown-content a {
    text-align: left !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
*/
/* Styling Link di dalam Dropdown - Diperbarui */
.dropdown-content a {
    color: #b7c7d8 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
    text-align: left !important; /* Pastikan teks rata kiri */
    line-height: 1.5 !important; /* Beri jarak antar baris agar mudah dibaca */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    white-space: normal; /* Izinkan teks turun ke bawah jika terlalu panjang */
}

/* Hilangkan garis bawah animasi default pada link di dalam dropdown */
.dropdown-content a::after {
    display: none;
}

/* Panah kecil di atas box dropdown (opsional) */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(88, 213, 255, 0.2);
}

/* Item terakhir tidak perlu garis bawah */
.dropdown-content a:last-child {
    border-bottom: none;
}

/* Efek Hover */
.dropdown-content a:hover {
    background: rgba(88, 213, 255, 0.1) !important;
    color: #58d5ff !important;
    padding-left: 25px !important; /* Efek geser sedikit ke kanan saat hover */
}

/* Tampilkan menu saat Products di-hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

/* Animasi muncul */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ---- mobile-navbar.css ---- */

/* ========================================
   MOBILE NAVBAR
======================================== */

.mobile-toggle {
    display: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    z-index: 2001;
}

@media (max-width: 1100px) {
    .nav-wrapper.active {
        right: 0;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu a {
        font-size: 16px;
        width: 100%;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: transform 0.3s ease;
    }

    .dropdown-content {
        position: relative !important;
        display: none !important;
        opacity: 0;
        visibility: hidden;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        min-width: 100%;
        margin-top: 12px;
        border-radius: 12px;
    }

    .dropdown-content::before {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
  
    .dropdown.active .dropdown-trigger i {
        transform: rotate(180deg);
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;

        background: rgba(0,0,0,0.6);

        opacity: 0;
        visibility: hidden;

        transition: all 0.3s ease;

        z-index: 1500;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========================================
   FORCE MOBILE NAVBAR
======================================== */

@media (max-width: 1100px) {

    .dropdown:hover .dropdown-content, 
    .dropdown.active .dropdown-content {
        animation: none !important; 
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .navbar {
        position: fixed !important; /* Mengubah dari relative menjadi fixed */
        top: 0;
        left: 0;
        background: rgba(8, 17, 31, 0.96); /* Beri background agar konten di bawahnya tidak tembus */
        backdrop-filter: blur(10px);
        box-sizing: border-box;
        z-index: 9999;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 18px;
        justify-content: center;
        position: relative;
        text-align: left;
    }

    .nav-wrapper {
        position: fixed !important;
        top: 100px;
        left: 50%;
        transform: translate(-50%);
        width: 90%;
        max-width: 360px;
        height: auto;
        max-height: calc(100vh - 120px);
        background: rgba(8, 17, 31, 0.96);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 24px;
        backdrop-filter: blur(20px);
        padding: 24px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-wrapper.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-toggle {
        display: block !important;
        font-size: 32px;
        color: #fff;
        cursor: pointer;
        z-index: 10000;
    }

    .dropdown-content a {
            display: block !important;
            width: 100% !important;
            text-align: left !important; /* Rata kiri di dalam kotak yang sudah simetris */
            padding: 12px !important;
            box-sizing: border-box;
        }

    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-content a {
        padding: 14px 12px;
        border-radius: 10px;
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.06);
    }

    .dropdown.active {
        margin-bottom: 14px;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 14px;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 9990;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 1100px) {

    /* 1. Ubah tinggi slider agar tidak kaku (auto/min-height) */
    .hero-slider {
        position: relative !important;
        margin-top: 0 !important; 
        height: auto !important; /* Mencegah pemotongan di bawah */
        margin-top: 0 !important;
        padding-top: 0 !important;
        min-height: auto; /* Memberi ruang minimal agar tetap terlihat seperti hero */
        overflow: visible !important; /* Memastikan konten yang meluber tetap terlihat */
    }

    /* 2. Sesuaikan pembungkus konten */
    .hero-wrapper {
        padding-top: 150px !important; /* Jarak dari header */
        padding-bottom: 40px !important; /* Ruang nafas di bawah agar tidak terpotong dots */
        height: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* 3. Atur slide agar mengikuti tinggi konten */
    .slide {
        position: relative !important; /* Ubah dari absolute jika sebelumnya absolute */
        display: none; /* Default slider biasanya menggunakan display none untuk slide tidak aktif */
        height: auto !important;
        top: 0 !important;
    }

    /* Pastikan slide yang aktif tetap terlihat */
    .slide.active {
        display: flex !important;
        flex-direction: column;
    }
}

/* RELEASE R7.1.3 — RESPONSIVE NAVIGATION BREAKPOINT FIX
   Mobile navigation starts at <=1100px to match responsive layout. */
