/* =========================================================
   HEADER + RESPONSIVE NAVBAR
   PT Modern Aulia Mandiri
========================================================= */

:root {
  --navy: #081828;
  --navy-light: #10263a;
  --teal: #3a9e8f;
  --teal-light: #5fc4b4;
  --white: #ffffff;
  --text: #c2d4e0;

  --font-main: 'DM Sans', sans-serif;

  --header-height: 74px;

  --transition:
    all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================================
   HEADER
========================================================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: var(--header-height);

  display: flex;
  align-items: center;

  z-index: 9999;

  background: transparent;
  transition: var(--transition);

  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(8, 24, 40, 0.96);
  backdrop-filter: blur(10px);

  border-color: rgba(58, 158, 143, 0.15);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.35);
}

/* =========================================================
   LOGO
========================================================= */

.logo img {
  max-height: 42px;
  transition: var(--transition);
}

.logo img:hover {
  transform: translateY(-1px);
}

/* =========================================================
   DESKTOP NAVBAR
========================================================= */

.navmenu {
  display: flex;
  align-items: center;
  @media (max-width: 1199px) {
    display: none;
  }
}

.navmenu ul {
  display: flex;
  align-items: center;

  gap: 4px;

  list-style: none;

  margin: 0;
  padding: 0;
}

.navmenu ul li {
  position: relative;
}

.navmenu ul li a {
  position: relative;

  display: flex;
  align-items: center;

  padding: 10px 16px;

  color: var(--text);

  text-decoration: none;

  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  transition: var(--transition);
}

/* Hover underline */

.navmenu ul li a::after {
  content: "";

  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;

  height: 1px;

  background: linear-gradient(
    90deg,
    var(--teal),
    var(--teal-light)
  );

  transform: scaleX(0);
  transform-origin: left;

  transition: var(--transition);
}

.navmenu ul li a:hover {
  color: var(--white);
}

.navmenu ul li a:hover::after,
.navmenu ul li a.active::after {
  transform: scaleX(1);
}

.navmenu ul li a.active {
  color: var(--teal-light);
}

/* CTA BUTTON */

.navmenu ul li:last-child a {
  border: 1px solid rgba(58,158,143,0.3);

  border-radius: 8px;

  background: rgba(58,158,143,0.08);

  padding-inline: 20px;
}

.navmenu ul li:last-child a::after {
  display: none;
}

.navmenu ul li:last-child a:hover {
  background: rgba(58,158,143,0.16);
}

/* =========================================================
   MOBILE TOGGLE
========================================================= */

.mobile-nav-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border-radius: 8px;

  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: var(--teal-light);

  background: rgba(58,158,143,0.08);

  border: 1px solid rgba(58,158,143,0.2);

  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: rgba(58,158,143,0.16);
  color: var(--white);
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 1199px) {

  .mobile-nav-toggle {
    display: flex;
    position: relative;
    z-index: 10001;
  }

  .navmenu {
    position: fixed;

    top: 0;
    right: -100%;

    width: 320px;
    max-width: 82%;

    height: 100vh;

    background:
      linear-gradient(
        180deg,
        var(--navy-light),
        var(--navy)
      );

    padding:
      90px 24px 30px;

    overflow-y: auto;

    transition: 0.45s ease;

    z-index: 10000;

    border-left:
      1px solid rgba(58,158,143,0.15);

    box-shadow:
      -10px 0 40px rgba(0,0,0,0.45);
  }

  /* ACTIVE MENU */

  body.mobile-nav-active .navmenu {
    right: 0;
  }

  /* OVERLAY */

  body.mobile-nav-active::before {
    content: "";

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.55);

    backdrop-filter: blur(3px);

    z-index: 9998;
  }

  body.mobile-nav-active {
    overflow: hidden;
  }

  /* MOBILE MENU */

  .navmenu ul {
    flex-direction: column;
    align-items: stretch;

    gap: 6px;
  }

  .navmenu ul li {
    width: 100%;
  }

  .navmenu ul li a {
    width: 100%;

    padding: 14px 16px;

    border-radius: 10px;

    font-size: 0.82rem;

    letter-spacing: 0.15em;
  }

  .navmenu ul li a::after {
    display: none;
  }

  .navmenu ul li a:hover,
  .navmenu ul li a.active {
    background: rgba(58,158,143,0.12);

    transform: translateX(4px);
  }

  /* CTA */

  .navmenu ul li:last-child a {
    margin-top: 10px;

    justify-content: center;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

  :root {
    --header-height: 66px;
  }

  .logo img {
    max-height: 36px;
  }

  .navmenu {
    width: 100%;
    max-width: 100%;
  }
}
/* FORCE MOBILE NAV FIX */

@media (max-width: 1199px) {

  #navmenu {
    display: block !important;
  }

  #navmenu ul {
    display: flex !important;
    flex-direction: column !important;

    position: relative !important;

    opacity: 1 !important;
    visibility: visible !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;

    width: 100% !important;

    padding: 0 !important;
    margin: 0 !important;

    transform: none !important;
  }

  #navmenu li {
    display: block !important;
    width: 100% !important;
  }

  #navmenu a {
    display: block !important;
    width: 100% !important;

    color: white !important;
  }

}
html,
body {
  overflow-x: hidden;
}