@font-face {
    font-family: 'Zain';
    src: url("/fonts/Zain-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: 'Zain1';
    src: url("/fonts/Zain-Light.ttf") format("truetype");
    font-weight: 400;
}
html {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: black;
  text-decoration: none;

  font-family: Javanese text;
  font-size: 20px;
}

a:hover {
  color: #39a9f5;
}

/* Navigation*/
.div-nav {
  display: flex;
  gap: 40px;
  margin: 0 auto;
  position: relative;
  z-index: 9999;
  flex-wrap: wrap;
  /* Allow nav items to wrap */
  justify-content: center;
}

.drop-down {
  position: relative;
  width: auto;
  /* Changed from fixed 80px */
  min-width: 80px;
  z-index: 9999;

  display: inline-block;
  text-align: center;
}

.drop-down-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  /* Center dropdown */
  margin-top: 0;
  width: 150px;
  padding: 0px;
  background-color: rgb(237, 244, 252);
  border-radius: 5px;
  text-align: center;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.drop-down:hover .drop-down-content {
  display: block;
}

.a-content {
  font-size: 20px;
  display: block;
  padding: 10px;
}

.div-header {
  display: flex;
  gap: 30px;

  background-color: #ffffff;
  width: 100%;
  height: auto;
  /* Changed from fixed 50px */
  min-height: 50px;
  padding-top: 20px;
  padding-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
  /* Allow header content to wrap */
  justify-content: space-between;
}

.left-nav {
  width: 50%;
  background-color: rgb(237, 244, 252);
  border-radius: 10px 0px 0px 10px;
}

.right-nav {
  width: 50%;
  background-color: rgb(199, 226, 250);
  border-radius: 0px 10px 10px 0px;
}

.div-img {
  position: relative;
  animation: none;
  display: flex;
  margin-left: 30px;
  cursor: pointer;
}

/* Body 1*/
.div-body {
  background-image: linear-gradient(#050403, #03395c);
  margin-top: 0;
  min-height: 500px;
  /* Changed from height */
  height: auto;
  padding-bottom: 50px;
}

.div-btn {
  display: flex;
  gap: 10px;
  margin-right: 30px;
  flex-wrap: wrap;
}

button {
  padding: 7px 15px;

  height: auto;
  align-self: flex-start;
  background-color: #ffffff;
  border: 2px solid #0072bc;
  border-radius: 20px;
  color: #000000;
  font-size: 15px;
  font-family: "Lucida Sans Unicode";
}

button:hover {
  background-color: #0072bc;
  box-shadow: 0 0 8px #0072bc;
  color: #ffffff;
  transform: translateY(-5px);
  cursor: pointer;
}

.div-img-2 {
  margin-top: 50px;
  max-width: 100%;
  /* Ensure images don't overflow */
  height: auto;
}

.div-btn-2 {
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 100px;
  padding-left: 0;
  display: flex;
  gap: 30px;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
  flex-wrap: wrap;
}

.div-grey {
  background: #f2f2f2;
  padding: 60px 20px;
  text-align: center;
}

.div-para-3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 50px;
}

/* SHARED MARQUEE */
.marquee {
  overflow: hidden;
  width: 100%;
  margin-bottom: 25px;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
 
}

.marquee-track img {
  height: 80px;
  margin: 0 40px;
  object-fit: contain;

  opacity: 0.85;
  transition: 0.3s ease;
}

.marquee-track img:hover {
  filter: grayscale(0);

  opacity: 1;
  transform: scale(1.25);
 

}

/* LEFT → RIGHT */
.marquee-left .marquee-track {
  animation-direction: normal;
}

/* RIGHT → LEFT */
.marquee-right .marquee-track {
  animation-direction: reverse;
}

/* ANIMATION */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .marquee-track img {
    height: 80px;
    margin: 0 25px;
  }
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, #f2f2f200, transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, #05000000, transparent);
}

/*  */
.div-para-4 {
  min-height: 500px;
  /* Changed from height */
  height: auto;
  background-image: linear-gradient(#050403, #03395c);
  margin-top: 0px;
  padding: 3px;
}

/* Initial state for all animations */
.animate {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s ease-out;
}

.animate-to-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.animate-to-left {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.animate-to-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

/*display*/
.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.animate-to-up.show {
  opacity: 1;
  transform: translateY(0);
}

.animate-to-right.show {
  opacity: 1;
  transform: translateX(0);
}

.animate-to-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #0072bc;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .div-header {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;
    height: auto;
  }

  .div-img {
    order: 1;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .hamburger {
    display: flex !important;
    order: 2;
    margin-left: auto !important;
    margin-right: 20px !important;
  }

  .div-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: white;
    padding: 20px 0;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    order: 3;
  }

  .div-btn {
    display: none;
    width: 100%;
    justify-content: center;
    margin-right: 0;
    padding-bottom: 20px;
    order: 4;
  }

  .div-nav.mobile-active,
  .div-btn.mobile-active {
    display: flex;
  }

  .drop-down {
    width: 100%;
    text-align: center;
  }

  .drop-down-content {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
    transform: none;
    background-color: #f9f9f9;
    margin-top: 10px;
  }

  .drop-down:hover .drop-down-content {
    display: block;
  }

  .div-body,
  .div-grey,
  .div-para-4 {
    height: auto;
    min-height: auto;
  }

  .div-para-3 {
    font-size: 32px;
  }


}
.div-nav a.active {
    position: relative;
    font-weight: 600;
}

.div-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;          /* adjust spacing */
    width: 100%;
    height: 3px;          /* border thickness */
    background: linear-gradient(90deg, blue, black);
    border-radius: 3px;
}
