@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-color: #f8f8f8;
}
body, html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Top Info Bar Styling */
.top-info-bar {
  width: 100%;
  background: linear-gradient(180deg, #1141B0 0%, #1E90FF 100%);
  padding: 0.75rem 2rem;
  color: white;
  position: relative;
  height: 140px;
  overflow-x: hidden;
}

.top-info-bar.hidden {
  transform: scaleY(0);
  height: 0;
  padding: 0;
}

.top-info-bar a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.top-info-bar a:hover {
  opacity: 0.8;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
  .top-info-bar {
      font-size: 0.8rem;
  }
  
  .contact-info {
      flex-direction: column;
      align-items: flex-start;
      space-y: 4px;
  }
  
  .social-links {
      display: none;
  }
}

@media (max-width: 480px) {
  .top-info-bar {
      padding: 5px 0;
  }
  
  .contact-info a {
      font-size: 0.75rem;
  }
}




/* Top Info Bar dengan Background Gradient yang diperluas */
.top-info-bar {
  background: linear-gradient(180deg, #1141B0 0%, #1E90FF 100%);
  padding: 0.75rem 2rem;
  color: white;
  position: relative;
  height: 140px; /* Menambah tinggi sedikit */
}

.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  gap: 2rem;
  align-items: center;
}
/* Contact Info Styling */
.contact-info-wrapper {
  background: linear-gradient(145deg, #ffffff, #f5f7ff);
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
/* Contact Info Bar */
#contact-info-bar {
  position: relative;
  z-index: 60;
  padding: 4px 20px; /* Menambah padding kanan kiri */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0; /* Memastikan tidak ada margin */
  margin-left: 80px; /* Menambah margin kiri */
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.nav-menu a {
  color: #4B5563;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-menu a:hover {
  color: #1141B0;
}

/* Language Selector */
.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid #E5E7EB;
}
/* Navbar Styling */
header {
  position: relative;
  max-width: 1850px; /* Memperlebar max-width */
  transition: all 0.3s ease-in-out;
  margin-top: -80px; /* Menyesuaikan margin-top */
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem; /* Menambah padding kanan kiri */
  width: 100%; /* Memastikan lebar penuh */
  /* Menghilangkan margin atas */
}
/* Scroll Effect */
header.scrolled nav {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  animation: slideDown 0.5s forwards;
}
.globe-icon {
  color: #4B5563;
}
/* Navbar Container Styling */
.navbar-container {
  background: white;
  border-radius: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 40;
  max-width: 1850px;
  padding: 1rem 2rem;
  transform: translateY(30px); /* Mendorong navbar ke bawah */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar-container {
      margin: -20px 1rem 0;
      padding: 1rem;
  }
  
  .logo-partner-container {
      gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
      display: none;
  }
  
  .mobile-menu-button {
      display: block;
  }
}

/* Top Info Bar Styling */
.top-info-bar {
  width: 100%;
  background: linear-gradient(180deg, #1141B0 0%, #1E90FF 100%);
  padding: 0.75rem 2rem;
  color: white;
  position: relative;
  height: 100px; /* Mengurangi tinggi dari 150px menjadi 60px */
  overflow: hidden;
}

/* Container untuk info */
.info-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}


nav.container {
  width: 100%;
  max-width: 1850px;
  margin-top: -80px; /* Menyesuaikan margin-top */
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 2rem;
  background: white;
  border-radius: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Mega Menu Styling */
.mega-menu {
  width: 280px;
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  animation: fadeInDown 0.3s ease;
}

.mega-menu-item {
  position: relative;
}
/* Submenu Styling */
.submenu {
  position: absolute;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(229, 231, 235, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transform: translateY(-15px) scaleY(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100; /* Menaikkan z-index */
  display: none;
  margin-top: 0.5rem; /* Menambah jarak dari parent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.submenu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
  display: block;
  animation: submenuFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* Responsive Design */
@media (max-width: 768px) {
  .info-container {
      padding: 0 0.5rem;
  }
  
  nav.container {
      margin: 0 1rem;
      padding: 1rem;
  }
}

/* Mega Menu adjustments */
.mega-menu {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Hover Effects */
@media (min-width: 992px) {
  .mega-menu-item:hover > .dropdown-item.has-submenu {
      background-color: #f8f9fa;
      color: #1141B0;
  }

  .mega-menu-item:hover > .dropdown-item .submenu-arrow {
      transform: rotate(-90deg);
  }

  .mega-menu-item:hover > .submenu {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
  }
}

/* Mobile Styling */
@media (max-width: 991.98px) {
  .mega-menu {
      width: 100%;
      position: static;
      box-shadow: none;
      padding: 0;
  }

  .submenu {
      position: static;
      width: 100%;
      box-shadow: none;
      padding-left: 20px;
      opacity: 1;
      visibility: visible;
      transform: none;
      display: none;
  }

  .mega-menu-item.show > .submenu {
      display: block;
  }

  .dropdown-item.has-submenu {
      padding: 12px 15px;
  }

  .submenu-arrow {
      transform: rotate(90deg);
  }

  .mega-menu-item.show .submenu-arrow {
      transform: rotate(-90deg);
  }
}

/* Animasi untuk mobile toggle */
@media (max-width: 991.98px) {
  .navbar-toggler {
      border: none;
      padding: 0;
  }

  .navbar-toggler:focus {
      box-shadow: none;
  }

  .navbar-collapse {
      max-height: 80vh;
      overflow-y: auto;
  }

  .mega-menu-item {
      border-bottom: 1px solid #eee;
  }

  .mega-menu-item:last-child {
      border-bottom: none;
  }
}

.bg-colour {
  position: absolute;
  z-index: -1;
  align-items: center;
  max-width: 2000px;
}

.hero-section {
    position: relative;
    margin-top: -64px;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
  }
  
  .gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      #1a5fa3 0%,
      #f8f8f8 50%,
      #f8f8f8 100%
    ); /* Blue to white gradient */
    z-index: -1;
  }
  
  /* Footer Styles */
.footer {
  background: linear-gradient(to bottom, #000000, #1b2637);
  color: white;
  padding: 4rem 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  width: auto;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-description {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-link {
  color: #9ca3af;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: #9ca3af;
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

.operation-hours {
  list-style: none;
  padding: 0;
}

.operation-item {
  display: flex;
  align-items: center;
  color: #9ca3af;
}

.operation-icon {
  color: #60a5fa;
  width: 20px;
  text-align: center;
  margin-right: 0.75rem;
}

.operation-indent {
  margin-left: 1.5rem;
}

.support-phone {
  color: #4ade80;
}

.location-section {
  margin-bottom: 1rem;
}

.location-title {
  color: #60a5fa;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.location-address {
  color: #9ca3af;
}

.contact-email {
  display: flex;
  align-items: center;
  color: #9ca3af;
  transition: color 0.3s;
  margin-top: 1rem;
}

.contact-email:hover {
  color: white;
}

.contact-icon {
  color: #60a5fa;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Footer Bottom Section */
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
  margin-top: 3rem;
  text-align: center;
  position: relative;
  margin-bottom: 0;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copyright-text {
  color: #9ca3af;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copyright-text i.fa-copyright {
  color: #9ca3af;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.copyright-text i.fa-circle {
  color: #4b5563;
  margin: 0 0.75rem;
  font-size: 0.25rem;
  vertical-align: middle;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.footer-bottom-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-bottom-link:hover {
  color: white;
}

.footer-bottom-link:not(:last-child)::after {
  content: "•";
  color: #4b5563;
  margin-left: 1.5rem;
}

/* Fix for footer gap */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}
