/* Global */
body {
  font-family: "Roboto", sans-serif;
  background-color: #f4f4f4;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent; /* fully transparent */
  z-index: 10; /* ensure it’s above hero content */
}

.navbar .nav-link {
  color: white; /* default link color */
}

.navbar .nav-link.active {
  color: #f8dd57 !important; /* active link */
}

.navbar .nav-link:hover {
  color: #f8dd57; /* hover yellow */
}

.navbar .NxGen-Header {
  color: #fff;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("image/server-room.webp") center center/cover no-repeat;
  color: white;
  height: 95vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

/* About overlay wrapper */
.about-overlay {
  position: relative;
  margin-top: -180px; /* pulls it upward to overlap hero */
  z-index: 5;
}

.about-card {
  position: relative;
  background: #fff;
  color: #2f3261;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem 2rem;
  margin-top: -100px; /* overlap hero */
  overflow: visible; /* allow image to escape */
}

.about-img {
  position: relative;
  width: 125%; /* make image wider than column */
  height: 125%; /* make image taller than column */
  object-fit: cover; /* crop properly */
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transform: translate(20px, 0px); /* push outside card */
  z-index: 2;
}

/* Meet partners */
.logo-marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center; /* center everything vertically */
  background: #f8f9fa;
  height: 150px; /* ensure consistent marquee height */
}

.marquee-track {
  display: flex;
  align-items: center; /* center logos vertically inside the track */
  gap: 3rem; /* spacing between logos */
  animation: marquee 35s linear infinite;
}

.marquee-track img {
  display: block;
  object-fit: contain; /* preserve proportions */
  height: 100px; /* uniform height */
  margin: 0 40px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.marquee-track img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.meet-partners h1 {
  color: #2f3261;
}

/* Contact Us */
.contact-us {
  margin-top: 5rem;
  background-color: #212344;
  color: white;
}

.contact-section .form-label {
  color: #e7ecf7;
}

.contact-section .form-control {
  background: transparent;
  border: 1px solid #aab0c0;
  color: #fff;
  border-radius: 0.25rem;
}

.contact-section .form-control:focus {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.contact-section .btn-outline-light {
  border-width: 1px;
}

/* Alert */
.alert-box {
  position: fixed;
  top: 20px;
  right: 20px;
  width: auto;
  z-index: 9999;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet & below (iPad, small laptops) */
@media (max-width: 1280px) {
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* fully transparent */
    z-index: 10; /* ensure it’s above hero content */
  }

  /* Hero: slightly lower height + smaller text */
  .hero {
    padding-top: 2rem;
    overflow: hidden;
  }
  /* About: soften overlap */
  .about-overlay {
    margin-top: -80px;
  }

  .about-card {
    margin-top: -40px;
  }

  .about-img {
    width: 110%;
    height: 110%;
    transform: translate(10px, 10px);
  }

  .contact-us .col-lg-6.ps-5 {
    padding-top: 2.5rem !important; /* adds space above "Get in Touch" */
  }

  /* Contact columns: reduce heavy side padding on tablet */
  .contact-us .pe-5,
  .contact-us .ps-5 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
  }

  /* Map iframe: responsive width */
  .contact-us iframe {
    width: 100% !important;
    height: 350px;
  }

  /* Marquee: slightly smaller height & logos */
  .logo-marquee {
    height: 120px;
  }

  .marquee-track img {
    height: 80px;
    margin: 0 24px;
  }
}

/* Mobile (phones) */
@media (max-width: 853px) {
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 10;
  }
  /* Hero: smaller text, more padding */
  .hero {
    padding-top: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  /* About: turn off overlap, stack nicely */
  .about-overlay {
    margin-top: 0; /* no overlap on small screens */
    padding: 2rem 1rem; /* some breathing room */
  }

  .about-card {
    margin-top: 0; /* remove negative offset */
    padding: 1.5rem 1.25rem; /* slightly tighter padding for small screens */
  }

  .about-img {
    position: static; /* let it flow normally */
    width: 100%; /* fit inside screen */
    height: auto; /* keep proportion */
    transform: none; /* remove horizontal shift */
  }

  /* Meet partners section */
  .logo-marquee {
    height: 100px;
  }

  .marquee-track {
    gap: 2rem;
    animation-duration: 45s; /* slightly slower on mobile */
  }

  .marquee-track img {
    height: 60px;
    margin: 0 16px;
  }

  /* Contact section: stack nicely */
  .contact-us {
    margin-top: 3rem;
  }

  .contact-us .col-lg-6.ps-5 {
    padding-top: 2.5rem !important; /* adds space above "Get in Touch" */
  }

  .contact-us .pe-5,
  .contact-us .ps-5 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .contact-us iframe {
    width: 100% !important;
    height: 260px;
  }
}
