/* ========= RESET & VARIABEL DASAR ========= */
:root {
  --glass-bg: rgba(0, 75, 159, 0.2);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-light: rgba(255, 255, 255, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --text-light: #ffffff;
  --accent: #0072ff;
  --radius: 1rem;
  --blur: blur(18px);
  --padding: 1.5rem;
  --danger: #dc3545;
  --success: #28a745;
  --warning: #ffc107;
  --info: #17a2b8;
  --dark-bg: #121212;
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-text: #f0f0f0;
  --transition: all 0.3s ease-in-out;
  --font-size-base: 1rem;
  --font-size-sm: 0.95rem;
  --line-height-base: 1.6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========= BODY & FONT ========= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: #f3f4f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #111827;
  transition: var(--transition);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
}

button {
  background-color: #2575fc;
  color: #fff;
}

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

/* ========= NAVBAR (sesuai homepage baru) ========= */
.navbar {
  /* background: transparent; */
  background: #34b7ff;
  transition: all .35s ease;
  color: #fff !important;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar.scrolled {
  background: rgba(3,72,130,.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

@media (max-width:768px) {
  .navbar-nav .nav-item {
    border-bottom: 1px solid #e0e0e0;
  }
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff !important;
}

.nav-link {
  font-weight: 400;
  color: #fff !important;
  letter-spacing: .01em;
  transition: color 0.3s ease;
}

.nav-link:hover,
a:hover {
  color: #ffcb20 !important;
}

/* Panah collapse rotasi */
.arrow-toggle.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* ========= HERO (homepage) ========= */
.hero-wrap {
  min-height: 76vh;
  background: radial-gradient(circle at top, #034882 0%, #021d34 50%, #0f172a 100%);
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 25%, rgba(255,255,255,.04) 0%, rgba(3,72,130,0) 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.3rem;
  backdrop-filter: blur(12px);
  padding: 1.2rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
}

.hero-title {
  font-size: clamp(2.4rem, 3.7vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hero-sub {
  max-width: 550px;
  font-size: 1.02rem;
  color: rgba(255,255,255,.7);
}

.hero-cta .btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
}

.hero-media-float {
  background: rgba(255,255,255,1);
  border-radius: 1.2rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .hero-wrap {
    padding-top: 5rem;
  }
  .hero-media-float {
    margin-top: 2rem;
  }
}

/* ========= SECTION TITLE & BADGE ========= */
.section-title {
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .35rem;
}

.section-sub {
  color: #6b7280;
  max-width: 580px;
}

.nk-badge {
  background: rgba(3,72,130,.08);
  color: #034882;
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: inline-block;
  margin-bottom: .5rem;
}

/* ========= CARD GENERIC / NK CARD ========= */
.nk-card {
  background: #fff;
  border: 1px solid rgba(3,72,130,.04);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0,0,0,.04);
}

/* ========= TIMELINE (Visi Misi) ========= */
.timeline-modern {
  border-left: 2px solid rgba(3,72,130,.15);
  margin-left: 1rem;
}

.timeline-modern .item {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 1.5rem;
}

.timeline-modern .item::before {
  content: "";
  width: .9rem;
  height: .9rem;
  border-radius: 999px;
  background: #2575fc;
  position: absolute;
  left: -0.5rem;
  top: .4rem;
  border: 4px solid #f3f4f6;
  box-shadow: 0 0 0 4px rgba(37,117,252,.15);
}

/* ========= SOSIAL (hero) ========= */
.social-link a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: .35rem;
  color: #fff;
  transition: .2s;
}

.social-link a:hover {
  background: #fff;
  color: #034882;
}

/* ========= HEADER SECTION (halaman lain yang lama) ========= */
.header-section {
  background: linear-gradient(135deg, #2575fc, #034882);
  padding: 130px 15px 100px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.header-section h1 {
  font-weight: 700;
  font-size: 2.4rem;
}

@media (min-width: 768px) {
  .header-section h1 {
    font-size: 3.5rem;
  }
}

.header-section p.lead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 20px auto 40px;
  line-height: 1.7;
}

.bg-gradient {
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  z-index: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  line-height: 0;
}

.custom-wave {
  pointer-events: none;
  line-height: 0;
}

.custom-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ========= BUTTON KHUSUS HEADER LAMA ========= */
.btn-contact {
  background-color: #fff;
  color: #2575fc;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgb(255 255 255 / 0.6);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: #2575fc;
  color: #fff;
  box-shadow: 0 6px 20px rgb(37 117 252 / 0.7);
}

/* ========= ABOUT SECTION (lama) ========= */
.about-section {
  background: white;
  border-radius: 14px;
  padding: 60px 30px;
  max-width: 900px;
  margin: -80px auto 80px;
  box-shadow: 0 0 25px rgb(0 0 0 / 0.1);
  position: relative;
  z-index: 10;
  font-size: 1rem;
}

/* ========= DIVISIONS CARDS (bisa dipakai di halaman lain) ========= */
.division-card {
  border-radius: 5px;
  box-shadow: 0 0 15px rgb(0 0 0 / 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
  background: #fff;
  height: 100%;
  font-size: 0.95rem;
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgb(37 117 252 / 0.25);
}

.division-card h5 {
  color: #2575fc;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ========= SOCIAL ICONS (hal umum) ========= */
.social-icons a {
  font-size: 1.8rem;
  color: #444;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #2575fc;
}
.fa-facebook a:hover {
  color: #003366;
}
.fa-youtube a:hover {
  color: #b60000;
}
.fa-blog a:hover {
  color: #2575fc;
}
.fa-tiktok a:hover {
  color: #003366;
}
.fa-instagram a:hover {
  color: #b60049;
}

/* ========= FOOTER (disamakan dengan index) ========= */
footer {
  background: #021727;
  color: rgba(255,255,255,.5);
  padding: 25px 15px;
  text-align: center;
  font-size: 0.95rem;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========= SECTION BARU / PREVIEW / GRID ========= */
.content-slider,
.about2 {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.preview-section {
  padding: 60px 0;
}

.preview-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.preview-container img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  mix-blend-mode: color-burn;
}

.preview-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.preview-icon {
  font-size: 2rem;
  margin-right: 15px;
  color: #2575fc;
}

.preview-title {
  font-weight: 700;
  margin: 0;
  font-size: 1.25rem;
}

.tiktok-embed,
.youtube-embed {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.project-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card,
.gallery-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgb(37 117 252 / 0.25);
}

.gallery-card,
.card-text,
.gallery-info {
  border: none !important;
  box-shadow: none !important;
}

.project-image,
.gallery-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info,
.gallery-info {
  padding: 15px;
  font-size: 0.95rem;
}

/* ========= BLOG ========= */
.blog-post {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.blog-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-excerpt {
  margin-bottom: 15px;
  font-size: 1rem;
}

.read-more {
  color: #2575fc;
  font-weight: 600;
}

/* ========= NAV TABS (scrollable) ========= */
.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

/* Animasi dropdown Bootstrap - tidak bikin space di mobile */
.dropdown-menu {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Saat dropdown dibuka (class .show dari Bootstrap) */
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect hanya untuk layar lebar (desktop) */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========= TIMELINE LAMA (kalau dipakai di halaman lain) ========= */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 4px solid #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-icon {
  position: absolute;
  left: -30px;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 0 5px #fff, 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.timeline-content {
  margin-left: 30px;
}

@media (max-width: 768px) {
  .timeline {
    border-left: none;
    padding-left: 0;
  }
  .timeline-item {
    padding-left: 0;
  }
  .timeline-icon {
    position: relative;
    left: 0;
    margin-bottom: 15px;
  }
  .timeline-content {
    margin-left: 0;
  }
}

/* ========================= */
/*  HOMEPAGE (index.html)    */
/* ========================= */

/* Navbar efek saat di-scroll */
.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Hero */
.hero-wrap {
  min-height: 76vh;
  background: radial-gradient(circle at top, #034882 0%, #021d34 50%, #0f172a 100%);
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.04) 0%, rgba(3, 72, 130, 0) 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.3rem;
  backdrop-filter: blur(12px);
  padding: 1.2rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
}

.hero-title {
  font-size: clamp(2.4rem, 3.7vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 550px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-cta .btn {
  border-radius: 999px;
  padding-inline: 1.4rem;
}

.hero-media-float {
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Section heading */
.section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.section-sub {
  color: #6b7280;
  max-width: 580px;
}

/* Kartu generik NK */
.nk-card {
  background: #fff;
  border: 1px solid rgba(3, 72, 130, 0.04);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.04);
}

/* Timeline modern (Visi & Misi) */
.timeline-modern {
  border-left: 2px solid rgba(3, 72, 130, 0.15);
  margin-left: 1rem;
}

.timeline-modern .item {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 1.5rem;
}

.timeline-modern .item::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #2575fc;
  position: absolute;
  left: -0.5rem;
  top: 0.4rem;
  border: 4px solid #f3f4f6;
  box-shadow: 0 0 0 4px rgba(37, 117, 252, 0.15);
}

/* Badge kecil di judul section */
.nk-badge {
  background: rgba(3, 72, 130, 0.08);
  color: #034882;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Social link di hero */
.social-link a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: 0.35rem;
  color: #fff;
  transition: 0.2s;
}

.social-link a:hover {
  background: #fff;
  color: #034882;
}

/* Galeri dokumentasi – gambar kartu */
#galeri .nk-card img {
  height: 210px;
  object-fit: cover;
}