* {
  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;
}

.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;
}

.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%;
}

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

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

/* ================= 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 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);
}

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

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

.layanan-bg::before {
  content: "";
  position: absolute;
  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;
}

/* BASE CARD */
.layanan-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  text-align: left;
  border: 1px solid transparent;
}

.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 h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

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

.layanan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* CARD 1 */
.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 2 */
.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 3 */
.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;
}

/* BUTTON DEFAULT */
.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) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

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

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

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

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

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

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

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

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

  .catalog-image {
    width: 100%;
    max-width: 700px;
    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) {
  .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: 600px) {
  .nav-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

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

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