/* ==========================================
   1. GLOBAL RESET & FULLSCREEN SETUP
   ========================================== */
*, ::before, ::after {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden;
    background-color: #0b0f19 !important; /* Theme Dark Slate */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================
   2. HEADER & NAVBAR (DYNAMIC SCROLL EFFECT)
   ========================================== */
header, .navbar-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
    padding: 0.1rem 2.5rem;
    
    /* Transisi halus saat berganti warna */
    transition: background-color 0.4s ease, padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hanya berikan background linear-gradient di halaman depan SAAT BELUM DI-SCROLL */
body.home-page header:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    border-bottom: 0px solid transparent;
}

/* State saat di-scroll ATAU di halaman selain beranda (Background Biru, Teks Hitam) */
header.scrolled, 
.navbar-overlay.scrolled,
body:not(.home-page) header {
    padding: 0.1rem 2.5rem;
    background: #86ceeb !important; /* Warna Biru (Blue-400) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #000000 !important;
}

/* Memaksa seluruh teks, judul brand, link, dan ikon di dalam header yang di-scroll menjadi hitam */
header.scrolled *,
body:not(.home-page) header * {
    color: #000000 !important;
}

/* Pengecualian khusus untuk sub-teks kecil pada logo agar tetap terbaca jelas (bisa disesuaikan gelap/abu tua) */
header.scrolled span.text-red-200,
body:not(.home-page) header span.text-red-200 {
    color: #1e293b !important; 
}

header.scrolled .nav-dropdown-menu *,
header.scrolled .group .absolute * {
    color: inherit;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Dropdown Menu Style */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 13rem;
    background-color: #0f172a;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.group:hover .nav-dropdown-menu {
    display: block;
}

/* ==========================================
   3. HERO SECTION (FULL BLEED BACKGROUND)
   ========================================== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0 !important; /* Penuh sampai batas atas layar */
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Soft dark gradient di bagian bawah agar teks terbaca tanpa menutupi gambar */
    background: linear-gradient(to top, rgba(11, 15, 25, 0.85) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* ==========================================
   4. HERO CONTENT POSITION & TYPOGRAPHY
   ========================================== */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: flex-start; 
    padding-top: 55vh; /* Mengunci teks mulai dari 55% ketinggian layar */
    padding-left: 5rem;
    padding-right: 3rem;
}

.hero-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #fbbf24; /* Amber-400 */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-title-serif {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0 0 0.5rem 0;
}

.hero-description {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 300;
    max-width: 32rem;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   5. SWIPER CUSTOM INDICATOR
   ========================================== */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #ffffff !important;
    width: 24px !important;
    border-radius: 9999px !important;
}

/* ==========================================
   6. SUBSEKTOR SECTION
   ========================================== */
.subsektor-section {
    background-color: #0b0f19;
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.subsektor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1.5rem;
    max-width: 76rem;
    margin: 0 auto;
}

.subsektor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 6.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.subsektor-item:hover {
    transform: translateY(-5px);
}

.subsektor-icon-bg {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: #38bdf8;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
    transition: all 0.3s ease;
}

.subsektor-item:hover .subsektor-icon-bg {
    background-color: #7dd3fc;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.subsektor-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.25;
}