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

:root {
  --bg-color: #dfe7f1;
  --primary-color: #0a4a97;
  --text-color: #1d3f6e;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 28px 0 10px;
  background-color: #e8f0f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo img {
  width: 48px;
}

.logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -6px;
  background-color: var(--primary-color);
  transition: 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

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

.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 700;
}

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

.arrow-icon {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.has-dropdown:hover .arrow-icon {
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  padding: 4px;
}

/* ================= HERO ================= */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 30px 0;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.hero-text {
  max-width: 550px;
}

.hero-text h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--primary-color);
  margin-bottom: 30px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #0a4a97, #0a4a97);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.05s ease;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #3b5c85;
  max-width: 550px;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  transition: transform 0.9s ease, opacity 0.9s ease;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: #0a4a97;
  border-radius: 50%;
  top: 20%;
  right: 10%;
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: scale(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 0;
  box-shadow: none;
}

.hero-image img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.hero-achievements {
  width: 100%;
  max-width: 550px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.achievement-box {
  width: 100%;
  min-width: 0;
  background: #bbd6f7;
  padding: 18px 16px;
  border-radius: 18px;
  text-align: left;
  transition: all 0.3s ease;
}

.achievement-box h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-weight: 700;
  color: #0a4a97;
  margin-bottom: 8px;
}

.achievement-box p {
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.4;
  color: #4a6b91;
  margin: 0;
  word-break: break-word;
}

.achievement-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(10, 74, 151, 0.15);
}

/* ================= LAYANAN ================= */
.layanan {
  padding: 50px 0px;
  background: #dfe8f3;
}

.layanan-bg {
  width: 100%;
  min-height: 620px;
  border-radius: 0px;
  overflow: visible;
  padding: 100px 0;
  background-image: url("img/layanan.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.layanan-bg::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: rgba(10, 74, 151, 0.65);
}

.layanan-content {
  position: relative;
  z-index: 2;
}

.layanan-header {
  text-align: left;
  margin-bottom: 60px;
}

.layanan-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.layanan-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.7;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.layanan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 32px;
  min-height: 270px;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  text-align: left;
  border: 1px solid transparent;
}

.layanan-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 36px rgba(10, 74, 151, 0.18);
}

.layanan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.layanan-card::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 140px;
  height: 140px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  opacity: 0.18;
  pointer-events: none;
}

.layanan-card .btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.layanan-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.layanan-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-jalan {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,248,252,0.96));
  border-color: rgba(255, 255, 255, 0.1);
}

.card-jalan::after {
  background-image: url("img/Jalan.svg");
}

.card-jalan h3 {
  color: #0a4a97;
}

.card-jalan p {
  color: #4a6b91;
}

.card-jalan .btn-secondary {
  border: 1px solid #0a4a97;
  color: #0a4a97;
}

.card-jalan .btn-secondary:hover {
  background: #0a4a97;
  color: #fff;
}

.card-kustom {
  background: linear-gradient(135deg, rgba(240,246,255,0.98), rgba(223,238,255,0.96));
  border-color: rgba(59, 109, 179, 0.14);
}

.card-kustom::after {
  background-image: url("img/Kustom.svg");
}

.card-kustom h3 {
  color: #2f5f9d;
}

.card-kustom p {
  color: #45688f;
}

.card-kustom .btn-secondary {
  border: 1px solid #2f5f9d;
  color: #2f5f9d;
}

.card-kustom .btn-secondary:hover {
  background: #2f5f9d;
  color: #fff;
}

.card-instalasi {
  background: linear-gradient(135deg, rgba(230,240,255,0.98), rgba(212,230,255,0.96));
  border-color: rgba(91, 139, 200, 0.16);
}

.card-instalasi::after {
  background-image: url("img/Instalasi.svg");
}

.card-instalasi h3 {
  color: #3f6fae;
}

.card-instalasi p {
  color: #4d6f96;
}

.card-instalasi .btn-secondary {
  border: 1px solid #3f6fae;
  color: #3f6fae;
}

.card-instalasi .btn-secondary:hover {
  background: #3f6fae;
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ================= KATALOG ================= */
.catalog-section {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  background: #dfe8f3;
}

.catalog-container {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 40px;
}

.catalog-content {
  max-width: 720px;
}

.catalog-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  color: #0b4a99;
  margin-bottom: 20px;
}

.catalog-description {
  font-size: 20px;
  line-height: 1.8;
  font-weight: 400;
  color: #0b4a99;
  max-width: 720px;
  margin-bottom: 32px;
}

.catalog-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 2px solid #0b4a99;
  border-radius: 999px;
  text-decoration: none;
  color: #0b4a99;
  font-size: 18px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.catalog-button:hover {
  background: #0b4a99;
  color: #ffffff;
  transform: translateY(-2px);
}

.catalog-button .arrow {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.catalog-button:hover .arrow {
  transform: translateX(6px);
}

.catalog-image-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.catalog-image {
  width: 150%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translateX(250px) translateY(-40px);
  transition: transform 0.9s ease, opacity 0.9s ease;
}

/* ================= CTA ================= */
.cta {
  padding: 100px 0;
  text-align: center;
  background: #0b4a99;
}

.cta-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #f5f8fc;
  line-height: 1.4;
  margin-bottom: 24px;
}

.cta p {
  font-size: 1.1rem;
  color: #f5f8fc;
  line-height: 1.8;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 600;
  color: #0b4a99;
  background: #f5f8fc;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(10, 74, 151, 0.25);
}

/* ================= FOOTER ================= */
.footer {
  background: #ffffff;
  color: #0a4a97;
  padding-top: 70px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px;
}

.footer-logo span {
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-left p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 400px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer ul li a {
  color: #0a4a97;
  text-decoration: none;
  transition: 0.3s;
}

.footer ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(11, 53, 143, 0.342);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ================= REVEAL EFFECT ================= */
.reveal-bottom,
.reveal-left,
.reveal-right {
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.9s ease, opacity 0.9s ease;
}

.reveal-bottom {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-bottom.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-bottom.out {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-left.out {
  opacity: 0;
  transform: translateX(-30px);
}

.reveal-right.out {
  opacity: 0;
  transform: translateX(30px);
}

/* ================= HERO FADE OUT ================= */
.reveal-hero .hero-text,
.reveal-hero .hero-image {
  opacity: 1;
  transition: transform 0.9s ease, opacity 0.9s ease;
  will-change: transform, opacity;
}

.reveal-hero.out .hero-text {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-hero.out .hero-image {
  opacity: 0;
  transform: translateX(40px);
}

/* ================= DELAY ================= */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.5s;
}

.delay-4 {
  transition-delay: 0.7s;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 16px;
  }

  /* ================= FIX DROPDOWN MOBILE ================= */

  /* Batalkan efek hover di mobile — touch men-trigger :hover dan dropdown langsung muncul */
  .has-dropdown:hover .dropdown-menu {
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* Dropdown hanya muncul saat JS menambahkan class .active */
  .has-dropdown.active .dropdown-menu {
    display: block;
  }

  /* Arrow ikut rotate saat aktif */
  .has-dropdown.active .arrow-icon {
    transform: rotate(180deg);
  }

  /* Reset hover arrow agar tidak bentrok */
  .has-dropdown:hover .arrow-icon {
    transform: none;
  }

  .has-dropdown.active:hover .arrow-icon {
    transform: rotate(180deg);
  }

  /* ================= DROPDOWN MOBILE LAYOUT ================= */
  .dropdown-menu {
    position: static;
    min-width: 100%;
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0 0 0;
    margin-top: 8px;
    /* Hilangkan transisi — mencegah layout shift saat toggle */
    transition: none;
  }

  .dropdown-menu a {
    padding: 8px 0 8px 20px;
  }

  .has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ================= LAYOUT RESPONSIVE ================= */
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-text p {
    margin: 0 auto;
    max-width: 600px;
  }

  .hero-achievements {
    max-width: 600px;
    margin: 32px auto 0;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image::before {
    content: none;
    display: none;
    width: 0;
    height: 0;
    background: none;
  }

  .layanan-grid {
    grid-template-columns: 1fr;
  }

  .layanan-card {
    text-align: center;
  }

  .layanan-card .btn-secondary {
    align-self: center;
  }

  .layanan-bg {
    padding: 60px 20px;
  }

  .catalog-section {
    padding: 0px 0 80px;
  }

  .catalog-container {
    grid-template-columns: 1fr;
    gap: 2px;
    text-align: center;
  }

  .catalog-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .catalog-description {
    margin-left: auto;
    margin-right: auto;
  }

  .catalog-image-wrapper {
    order: -1;
    justify-content: center;
    margin-bottom: 0;
  }

  .catalog-image {
    width: 100%;
    max-width: 360px;
    transform: none;
  }

  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left p {
    margin: 0 auto;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-achievements {
    gap: 10px;
    margin-top: 28px;
  }

  .achievement-box {
    padding: 14px 10px;
    border-radius: 16px;
  }

  .achievement-box h3 {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .achievement-box p {
    font-size: 11px;
    line-height: 1.3;
  }

  .cta {
    padding: 70px 20px;
  }

  .cta h2 {
    font-size: 1.8rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .catalog-title {
    font-size: 32px;
  }

  .catalog-description {
    font-size: 16px;
    line-height: 1.7;
  }

  .catalog-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .catalog-button .arrow {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    gap: 12px;
  }

  .logo span {
    font-size: 1.2rem;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-achievements {
    gap: 8px;
  }

  .achievement-box {
    padding: 12px 8px;
    border-radius: 14px;
  }

  .achievement-box h3 {
    font-size: 22px;
  }

  .achievement-box p {
    font-size: 10px;
  }

  .nav-menu {
    width: min(220px, 90vw);
  }
}

/* ================= CONTACT PAGE ================= */
.contact-page {
  background: #dfe8f3;
}

.contact-section {
  padding: 70px 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-left {
  padding-top: 20px;
}

.contact-title {
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 700;
  color: #0a4a97;
  max-width: 520px;
  margin-bottom: 24px;
}

.contact-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #234f8d;
  max-width: 460px;
  margin-bottom: 70px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 40px;
  margin-bottom: 40px;
}

.contact-info-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a4a97;
  margin-bottom: 12px;
}

.contact-info-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #234f8d;
  max-width: 280px;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #0a4a97;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(10, 74, 151, 0.12);
}

.contact-map {
  width: 100%;
  max-width: 590px;
  height: 160px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-card {
  background: #f7f7f7;
  border-radius: 34px;
  padding: 46px 52px 50px;
  box-shadow: 0 20px 50px rgba(10, 74, 151, 0.06);
}

.contact-form-card h2 {
  font-size: 3.4rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0a4a97;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0a4a97;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1.6px solid #2a5aa3;
  border-radius: 16px;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: #0a4a97;
  padding: 14px 18px;
  outline: none;
  transition: all 0.25s ease;
}

.form-group input {
  height: 52px;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0a4a97;
  box-shadow: 0 0 0 3px rgba(10, 74, 151, 0.08);
}

.contact-submit {
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid #0a4a97;
  border-radius: 999px;
  background: transparent;
  color: #0a4a97;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-submit:hover {
  background: #0a4a97;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ================= CONTACT RESPONSIVE ================= */
@media (max-width: 992px) {
  .contact-section {
    padding: 50px 0 70px;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .contact-left {
    display: block;
    padding-top: 0;
  }

  .contact-title {
    font-size: 3rem;
    max-width: 100%;
  }

  .contact-subtitle {
    margin-bottom: 40px;
    max-width: 100%;
  }

  .contact-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .contact-map {
    max-width: 100%;
    margin-top: 24px;
  }

  .contact-form-card {
    width: 100%;
    max-width: 100%;
    padding: 36px 28px 36px;
  }

  .contact-form-card h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-title {
    font-size: 2.4rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-form-card h2 {
    font-size: 2.2rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
  }
}

/* ================= FADE ON LOAD ================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= BIAR GAADA UNDERLINE DI TITLE ================= */
.logo,
.footer-logo {
  text-decoration: none;
  color: inherit;
}

/* ================= DROPDOWN (DESKTOP) ================= */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  list-style: none;
}

.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1d3f6e;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f0f6ff;
  color: var(--primary-color);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .arrow-icon {
  transform: rotate(180deg);
}

/* Mobile: hover dimatikan, pakai click via .active */
@media (max-width: 992px) {
  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .has-dropdown:hover .arrow-icon {
    transform: none;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 0 0;
    margin-top: 8px;
    min-width: 100%;
  }

  .has-dropdown.active .arrow-icon {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding: 8px 0 8px 20px;
  }

  .has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ================= BIAR SMOOTH PAS NGESCROLL KE HYPERLINK ================= */
html {
  scroll-behavior: smooth;
}

#layanan {
  scroll-margin-top: 100px;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 999px;

  background: #0a4a97;
  color: #ffffff;

  font-size: 20px;
  font-weight: bold;

  cursor: pointer;

  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: #083870;
}

/* ================= PROFILE PAGE ================= */

.profile-page {
  position: relative;
  background: #dfe8f3;
  z-index: 0;
}

/* layer warna bawah, dimulai di belakang gallery */
.profile-page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 610px; /* ubah disini buat ubah start beda warna */
  width: 100%;
  height: calc(100% - 470px - 300px); /* dikurangi tinggi footer */
  background: #f7f9fc;
  z-index: 0;
}

.profile-hero,
.profile-gallery,
.profile-story,
.subsidiaries,
.footer {
  position: relative;
  z-index: 1;
}

.profile-hero {
  padding: 90px 0 50px;
  text-align: center;
}

.profile-hero h1 {
  font-size: 2.2rem;
  color: #0a4a97;
  margin-bottom: 20px;
}

.profile-hero p {
  max-width: 800px;
  margin: auto;
  line-height: 1.8;
}

/* GALERI */

.profile-gallery {
  padding: 40px 0 80px;
}

.profile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-gallery-card {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(10, 74, 151, 0.08);
}

/* PROFIL 1 & 3 */
.profile-gallery-card:nth-child(1),
.profile-gallery-card:nth-child(3) {
  height: 260px;
}

/* PROFIL 2 & 4 */
.profile-gallery-card:nth-child(2),
.profile-gallery-card:nth-child(4) {
  height: 140px;
  align-self: center;
}

.profile-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* framing per gambar */
.profile-gallery-card:nth-child(1) img {
  object-position: center 35%;
}

.profile-gallery-card:nth-child(2) img {
  object-position: center 25%;
}

.profile-gallery-card:nth-child(3) img {
  object-position: center 50%;
}

.profile-gallery-card:nth-child(4) img {
  object-position: center 60%;
}

/* STORY */

.profile-story {
  padding: 50px 0 100px;
}

.profile-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.profile-video-frame {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.profile-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-story-text h2 {
  font-size: 2.2rem;
  color: #0a4a97;
  margin-bottom: 20px;
}

.profile-story-text p {
  line-height: 1.8;
}

/* ANAK PERUSAHAAN */

.subsidiaries {
  text-align: center;
  padding-bottom: 100px;
}

.subsidiaries h2 {
  margin-bottom: 40px;
  color: #0a4a97;
}

.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
}

.subsidiary-item img {
  max-width: 120px;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .profile-page::before {
    top: 520px;
    height: calc(100% - 520px);
  }

  .profile-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-story-grid {
    grid-template-columns: 1fr;
  }

  .subsidiaries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .profile-page::before {
    top: 580px;
    height: calc(100% - 580px);
  }

  .profile-gallery-grid {
    grid-template-columns: 1fr;
  }

  .profile-gallery-card:nth-child(2),
  .profile-gallery-card:nth-child(4) {
    align-self: stretch;
  }

  .subsidiaries-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= FIX MOBILE & TABLET ================= */
@media (max-width: 992px) {

  /* semua card sama tinggi */
  .profile-gallery-card {
    height: 200px !important;
  }

  /* reset align tengah */
  .profile-gallery-card:nth-child(2),
  .profile-gallery-card:nth-child(4) {
    align-self: stretch !important;
  }

}

@media (max-width: 992px) {

  /* matikan layer split background */
  .profile-page::before {
    display: none;
  }

  /* kembalikan ke warna default */
  .profile-page {
    background: #dfe8f3;
  }

}

/* ================= ON/OFF VIDEO DI PROFIL ================= */
.video-sound-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  border: none;
  border-radius: 999px;

  padding: 8px 14px;
  font-size: 0.85rem;

  cursor: pointer;

  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.video-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}