/* =========================================================
   GloVaTech Navbar
   ========================================================= */

.main-navbar {
  height: 76px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    height 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1050;
}

.main-navbar.navbar-scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.navbar-container {
  height: 100%;
}


/* =========================================================
   BRAND
   ========================================================= */

.navbar-brand-custom {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #212529;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.navbar-brand-custom:hover {
  color: #212529;
  transform: translateY(-1px);
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;

  background: linear-gradient(
    135deg,
    rgba(25, 135, 84, 0.16),
    rgba(25, 135, 84, 0.07)
  );

  color: #198754;
  font-size: 1.15rem;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.navbar-brand-custom:hover .brand-logo {
  transform: rotate(-7deg) scale(1.06);
  background: rgba(25, 135, 84, 0.18);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.6px;
}

.brand-text span {
  color: #198754;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar-menu {
  margin-left: auto;
}

.navbar-nav-custom {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item-custom {
  position: relative;
}

.nav-link-custom {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 42px;
  padding: 9px 13px;

  border: 0;
  border-radius: 10px;

  background: transparent;

  color: #495057;
  text-decoration: none;

  font-size: 0.91rem;
  font-weight: 550;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.nav-link-custom i {
  font-size: 0.95rem;
}

.nav-link-custom:hover {
  color: #198754;
  background: rgba(25, 135, 84, 0.07);
}

.nav-link-custom:active {
  transform: scale(0.97);
}


/* =========================================================
   ACTIVE DROPDOWN
   ========================================================= */

.dropdown-active > .nav-link-custom {
  color: #198754;
  background: rgba(25, 135, 84, 0.09);
}

.dropdown-trigger {
  font-family: inherit;
}

.dropdown-chevron {
  font-size: 0.65rem !important;
  transition: transform 0.25s ease;
}


/* =========================================================
   DROPDOWN PANEL
   ========================================================= */

.dropdown-custom {
  position: relative;
}

.dropdown-panel {
  position: absolute;

  top: calc(100% + 12px);
  right: 0;

  width: 285px;

  padding: 12px;

  background: rgba(255, 255, 255, 0.98);

  border: 1px solid rgba(25, 135, 84, 0.09);

  border-radius: 16px;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.05);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  animation: navbarDropdownShow 0.22s ease both;

  z-index: 1100;
}


/* Dropdown arrow */

.dropdown-panel::before {
  content: "";

  position: absolute;

  top: -6px;
  right: 25px;

  width: 12px;
  height: 12px;

  background: #fff;

  border-left: 1px solid rgba(25, 135, 84, 0.09);
  border-top: 1px solid rgba(25, 135, 84, 0.09);

  transform: rotate(45deg);
}


/* =========================================================
   DROPDOWN HEADER
   ========================================================= */

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 8px 8px 10px;
}

.dropdown-header-icon {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.dropdown-header-icon i {
  font-size: 1rem;
}

.dropdown-header strong {
  display: block;

  color: #212529;

  font-size: 0.88rem;
  font-weight: 700;
}

.dropdown-header small {
  display: block;

  margin-top: 2px;

  color: #8a939b;

  font-size: 0.73rem;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.dropdown-divider-custom {
  height: 1px;

  margin: 3px 5px 7px;

  background: rgba(0, 0, 0, 0.06);
}


/* =========================================================
   DROPDOWN LINKS
   ========================================================= */

.dropdown-link {
  position: relative;

  display: flex;
  align-items: center;

  gap: 11px;

  min-height: 58px;

  padding: 8px 9px;

  margin: 3px 0;

  border-radius: 11px;

  color: #495057;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.dropdown-link:hover {
  color: #198754;
  background: rgba(25, 135, 84, 0.065);
  transform: translateX(3px);
}

.dropdown-link-icon {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #f3f8f5;
  color: #198754;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.dropdown-link:hover .dropdown-link-icon {
  background: rgba(25, 135, 84, 0.13);
  transform: scale(1.05);
}

.dropdown-link-icon i {
  font-size: 0.95rem;
}

.dropdown-link-content {
  min-width: 0;
  flex: 1;
}

.dropdown-link-content strong {
  display: block;

  color: #343a40;

  font-size: 0.86rem;
  font-weight: 650;
}

.dropdown-link:hover .dropdown-link-content strong {
  color: #198754;
}

.dropdown-link-content small {
  display: block;

  margin-top: 2px;

  color: #9299a0;

  font-size: 0.7rem;

  white-space: nowrap;
}

.dropdown-link > .bi-arrow-right {
  color: #adb5bd;
  font-size: 0.8rem;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.dropdown-link:hover > .bi-arrow-right {
  color: #198754;
  transform: translateX(3px);
}


/* =========================================================
   LOGIN
   ========================================================= */

.nav-login {
  margin-left: 8px;
}

.login-button-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 100px;
  min-height: 42px;

  padding: 8px 16px;

  border-radius: 10px;

  background: #198754;

  color: #fff;
  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 650;

  box-shadow: 0 5px 15px rgba(25, 135, 84, 0.15);

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.login-button-custom:hover {
  color: #fff;

  background: #157347;

  transform: translateY(-2px);

  box-shadow:
    0 9px 22px rgba(25, 135, 84, 0.24);
}

.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.9rem;
}


/* =========================================================
   MOBILE TOGGLE
   ========================================================= */

.navbar-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 8px;

  border: 0;
  border-radius: 10px;

  background: transparent;

  cursor: pointer;
}

.navbar-toggle span {
  display: block;

  width: 22px;
  height: 2px;

  margin: 5px auto;

  border-radius: 10px;

  background: #343a40;

  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.navbar-toggle:hover {
  background: rgba(25, 135, 84, 0.07);
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes navbarDropdownShow {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   TABLET & MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

  .main-navbar {
    height: 70px;
  }

  .main-navbar.navbar-scrolled {
    height: 66px;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    left: 12px;
    right: 12px;

    padding: 10px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(0, 0, 0, 0.05);

    border-radius: 16px;

    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    max-height: calc(100vh - 90px);

    overflow-y: auto;

    animation: mobileMenuShow 0.2s ease both;
  }

  .navbar-menu.mobile-open {
    display: block;
  }

  .navbar-nav-custom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .nav-item-custom {
    width: 100%;
  }

  .nav-link-custom {
    display: flex;

    width: 100%;
    min-height: 46px;

    justify-content: flex-start;

    padding: 11px 13px;
  }

  .dropdown-trigger {
    justify-content: flex-start;
  }

  .dropdown-chevron {
    margin-left: auto;
  }

  .dropdown-panel {
    position: relative;

    top: auto;
    right: auto;

    width: 100%;

    margin: 3px 0 6px;

    padding: 8px;

    border-radius: 13px;

    background: rgba(25, 135, 84, 0.035);

    border: 1px solid rgba(25, 135, 84, 0.08);

    box-shadow: none;

    animation: mobileDropdownShow 0.2s ease both;
  }

  .dropdown-panel::before {
    display: none;
  }

  .dropdown-header {
    padding: 8px;
  }

  .dropdown-link {
    min-height: 54px;
  }

  .nav-login {
    width: 100%;
    margin: 7px 0 0;
  }

  .login-button-custom {
    width: 100%;
    min-height: 46px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

  .main-navbar {
    height: 66px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;

    border-radius: 10px;
  }

  .brand-text {
    font-size: 1.18rem;
  }

  .navbar-menu {
    left: 8px;
    right: 8px;
  }

  .dropdown-link-content small {
    font-size: 0.68rem;
  }
}


@keyframes mobileMenuShow {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes mobileDropdownShow {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   GloVaTech Brand Animation
   ========================================================= */

.navbar-brand-custom {
  position: relative;
  animation: brandEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Logo CPU */

.brand-logo {
  position: relative;
  overflow: hidden;

  animation:
    brandIconEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
    brandIconFloat 4s ease-in-out 1s infinite;
}

/* Efek cahaya yang melewati icon */

.brand-logo::after {
  content: "";

  position: absolute;

  top: -40%;
  left: -80%;

  width: 45%;
  height: 180%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );

  transform: rotate(20deg);

  animation: logoShine 3.5s ease-in-out 1.5s infinite;
}

.brand-logo i {
  position: relative;
  z-index: 2;

  animation: cpuPulse 2.8s ease-in-out infinite;
}


/* Text */

.brand-text {
  position: relative;

  animation: brandTextEntrance
    0.8s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.18s
    both;
}


/* GloVaTech green part */

.brand-text span {
  position: relative;

  display: inline-block;

  animation: techReveal
    0.7s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.35s
    both;
}


/* Animated underline */

.brand-text::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -5px;

  width: 0;
  height: 2px;

  border-radius: 10px;

  background: linear-gradient(
    90deg,
    #198754,
    #20c997
  );

  animation: brandUnderline 1s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.8s
    forwards;
}


/* Hover */

.navbar-brand-custom:hover .brand-logo {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(25, 135, 84, 0.18);
}

.navbar-brand-custom:hover .brand-text {
  letter-spacing: -0.2px;
}

.navbar-brand-custom:hover .brand-text::after {
  width: 100%;
}


/* =========================================================
   KEYFRAMES
   ========================================================= */

@keyframes brandEntrance {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes brandIconEntrance {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-20deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}


@keyframes brandTextEntrance {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@keyframes techReveal {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@keyframes brandIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}


@keyframes cpuPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}


@keyframes logoShine {
  0% {
    left: -80%;
  }

  35%,
  100% {
    left: 140%;
  }
}


@keyframes brandUnderline {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .navbar-brand-custom,
  .brand-logo,
  .brand-logo i,
  .brand-text,
  .brand-text span,
  .brand-text::after {
    animation: none !important;
    transition: none !important;
  }
}

.footer-section {
  position: relative;
  background: #111827;
  color: #fff;
  overflow: hidden;
}

/* Decorative background */

.footer-section::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  top: -180px;
  right: -100px;
  background: rgba(25, 135, 84, 0.08);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.footer-section::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  bottom: -160px;
  left: -100px;
  background: rgba(25, 135, 84, 0.06);
  border-radius: 50%;
  pointer-events: none;
}


/* =========================
   LOGO
========================= */

.footer-logo {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: rgba(25, 135, 84, 0.12);
  color: #20c997;

  font-size: 1.35rem;

  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.footer-logo:hover {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(25, 135, 84, 0.2);
}

/* =========================
   DESCRIPTION
========================= */

.footer-description {
  max-width: 580px;

  color: #9ca3af;

  line-height: 1.8;

  font-size: 0.95rem;

  text-align: justify;

  text-justify: inter-word;
}


/* =========================
   SOCIAL
========================= */

.footer-social {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 10px;

  color: #9ca3af;

  text-decoration: none;

  background: rgba(255, 255, 255, 0.03);

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.footer-social:hover {
  color: #fff;

  background: #198754;

  border-color: #198754;

  transform: translateY(-4px);
}


/* =========================
   TITLE
========================= */

.footer-title {
  position: relative;

  margin-bottom: 1.3rem;

  color: #fff;

  font-size: 1rem;

  font-weight: 700;
}

.footer-title::after {
  content: "";

  display: block;

  width: 30px;
  height: 2px;

  margin-top: 8px;

  background: #198754;

  border-radius: 10px;
}


/* =========================
   NAVIGATION LINKS
========================= */

.footer-links {
  padding: 0;
  margin: 0;

  list-style: none;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;

  color: #9ca3af;

  text-decoration: none;

  font-size: 0.9rem;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-links a i {
  color: #198754;

  font-size: 0.85rem;

  transition: transform 0.25s ease;
}

.footer-links a:hover {
  color: #fff;

  transform: translateX(4px);
}

.footer-links a:hover i {
  transform: translateX(2px);
}


/* =========================
   CONTACT
========================= */

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  color: #9ca3af;

  text-decoration: none;

  font-size: 0.88rem;

  line-height: 1.5;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-contact-item:hover {
  color: #fff;

  transform: translateX(3px);
}

.footer-contact-icon {
  flex-shrink: 0;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: rgba(25, 135, 84, 0.1);

  color: #20c997;

  font-size: 0.85rem;
}


/* =========================
   DIVIDER
========================= */

.footer-divider {
  margin: 0;

  border: 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  opacity: 1;
}


/* =========================
   BOTTOM
========================= */

.footer-bottom {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding: 22px 0;

  color: #6b7280;

  font-size: 0.82rem;
}

.footer-email {
  color: #9ca3af;

  text-decoration: none;

  transition:
    color 0.25s ease;
}

.footer-email:hover {
  color: #20c997;
}


/* =========================
   RESPONSIVE
========================= */


@media (max-width: 767.98px) {

  .footer-section {
    text-align: left;
  }

  .footer-description {
    max-width: 100%;
    text-align: justify;
    line-height: 1.75;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

}

@media (max-width: 575.98px) {

  .footer-section .row {
    row-gap: 2rem !important;
  }

  .footer-logo {
    width: 42px;
    height: 42px;
  }

  .footer-social {
    width: 40px;
    height: 40px;
  }

  .footer-bottom {
    padding: 20px 0;
  }

}

/* =====================================================
   READ ARTICLE BUTTON
===================================================== */

.read-article-btn {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px 10px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #198754;

  background: #198754;
  color: #ffffff;

  font-size: 0.88rem;
  font-weight: 700;

  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.16);

  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.35s ease;

  text-decoration: none;
}

.read-article-btn:hover {
  color: #ffffff;
  background: #157347;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(25, 135, 84, 0.24);
}

.read-article-btn:active {
  transform: translateY(-1px);
}

.read-article-text {
  position: relative;
  z-index: 2;
}

.read-article-icon {
  position: relative;
  z-index: 2;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);

  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

.read-article-btn:hover .read-article-icon {
  transform: translate(3px, -3px) rotate(2deg);
  background: rgba(255, 255, 255, 0.24);
}

.read-article-icon i {
  font-size: 0.85rem;
  transition: transform 0.35s ease;
}

.read-article-btn:hover .read-article-icon i {
  transform: translate(1px, -1px);
}

.read-article-shine {
  position: absolute;
  top: 0;
  left: -120%;

  width: 70%;
  height: 100%;

  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );

  transform: skewX(-20deg);
  transition: left 0.65s ease;

  pointer-events: none;
}

.read-article-btn:hover .read-article-shine {
  left: 140%;
}

@media (max-width: 575.98px) {
  .read-article-btn {
    min-height: 46px;
    padding: 9px 11px 9px 17px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .read-article-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .read-article-btn,
  .read-article-icon,
  .read-article-icon i,
  .read-article-shine {
    transition: none;
  }

  .read-article-btn:hover {
    transform: none;
  }

  .read-article-btn:hover .read-article-icon {
    transform: none;
  }
}