/* ====== RESET ====== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #183446;
  color: #fff;
}

/* ===== HEADER + NAV (replace the old header/nav block) ===== */

/* keep your :root and reset above this block */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--prussian-blue, #022f40);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  box-sizing: border-box;
}

/* logo */
header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
header .logo img {
  height: 36px;
  width: auto;
}

/* hamburger (hidden on desktop) */
.menu-toggle {
  display: none;              /* will show on small screens */
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* main menu as horizontal list on desktop */
header nav ul,
#menu,
#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* pastikan submenu juga tidak kasih indent/bullet */
#menu li ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

#menu {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* menu items */
#menu > li {
  position: relative; /* for dropdown positioning */
}
#menu a {
  color: #fff;
  text-decoration: none;
  padding: 6px 0;
  font-weight: 600;
  display: inline-block;
  transition: color .18s ease;
}
#menu a:hover,
#menu a.active {
  color: var(--blue-ncs, #0090c1);
}

/* desktop dropdown */
#menu li ul {
  position: absolute;
  top: calc(100%);
  left: 0;
  min-width: 180px;
  background: var(--prussian-blue, #022f40);
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  display: none;
  z-index: 1200;
}
#menu li ul li a {
  padding: 8px 12px;
  white-space: nowrap;
  display: block;
}

/* show on hover (desktop) */
#menu li:hover > ul {
  display: block;
}
/* Misi: tanpa bullet + icon ceklis */
#misi ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#misi ul li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
#misi ul li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: #38aecc;      /* pacific-cyan */
  font-weight: 700;
  line-height: 1;
}


/* ===== MOBILE BEHAVIOR ===== */
@media (max-width: 768px) {

  /* show hamburger */
  .menu-toggle {
    display: block;
    margin-left: auto; /* pushes it to the right */
  }

  /* hide desktop horizontal menu; we'll use vertical menu panel */
  #menu {
    display: none;
    position: absolute;
    top: 70px;            /* under header */
    left: 0;
    right: 0;
    background: var(--prussian-blue, #022f40);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }

  /* show when JS toggles .show */
  #menu.show {
    display: flex;
  }

  /* full width items */
  #menu > li {
    width: 100%;
  }
  #menu > li > a {
    padding: 12px 20px;
  }

  /* dropdowns become accordion-style (collapsed by default) */
  #menu li ul {
    position: static;
    display: none;
    padding-left: 12px;
    box-shadow: none;
    background: transparent;
  }

  /* when parent li has .open, show submenu */
  #menu li.open > ul {
    display: flex;
    flex-direction: column;
  }

  /* submenu links style on mobile */
  #menu li ul li a {
    padding: 10px 20px;
    color: #e6f7fb;
  }
}


/* ====== HERO SLIDER ====== */
/* Pastikan gambar di slider selalu penuh & responsif */
.hero-slider {
  position: relative;
  width: 100vw;   /* penuh lebar layar */
  height: 100vh;  /* penuh tinggi layar */
  overflow: hidden;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* supaya nggak gepeng atau terpotong aneh */
  display: block;
}


.slide {
  position: absolute;
  width: 100vw;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  left: 0;
  right: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  width: 100vw;
  height: 100%;
  background: rgba(2, 47, 64, 0.4);
  top: 0;
  left: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  padding: 0 15px;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 5px;
}

/* ====== BUTTON ====== */
.btn-primary {
  display: inline-block;
  background-color: #0090c1;
  color: white;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 144, 193, 0.6);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #046e8f;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(4, 110, 143, 0.8);
}

/* ====== SECTION ====== */
section {
  padding: 60px 30px;
  background: #183446;
  text-align: center;
}

#tentang,
#portfolio,
#kontak {
  margin-top: 20px;
  background: #022f40;
}

h2 {
  margin-bottom: 15px;
  color: #38aecc;
}


/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  header {
    display: flex;
    align-items: flex-start;
    height: auto;
    padding: 15px 15px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  header nav ul li {
    width: 100%;
  }

  header nav ul li ul {
    position: absolute;
    box-shadow: none;
    background: #03354a;
    padding-left: 20px;
    margin-top: 0;
  }

  header nav ul li:hover ul {
    display: block;
  }
}

/* ====== FOOTER ====== */
footer {
  text-align: center; /* posisi teks di tengah */
  padding: 20px 0;
  background-color: #03354a; /* bisa diganti sesuai desain */
  font-size: 14px;
}
footer p {
  margin: 0;           /* hapus margin default */
  text-align: center;   /* center horizontal */
  font-size: 14px;
  font-family: Arial, sans-serif; /* contoh font */
}

#kontak a {
  color: white;
  padding: 40px 20px;
  text-align: center;
}