/* ========= GENERAL RESET ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #ffffff;
  background-image:
    linear-gradient(160deg, rgba(11, 84, 179, 0.486) 5%, transparent 20%),
    linear-gradient(100deg, rgba(11, 84, 179, 0.486) 10%, transparent 40%),
    linear-gradient(120deg, rgba(11, 84, 179, 0.486) 20%, transparent 60%),
    linear-gradient(60deg, rgba(11, 84, 179, 0.486) 30%, transparent 80%),
    radial-gradient(ellipse at 50% 20%, rgba(11, 84, 179, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 60%, rgba(11, 84, 179, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 90%, rgba(11, 84, 179, 0.05) 0%, transparent 70%);
  background-repeat: no-repeat;
  background-size: 120% 120%;
  background-attachment: fixed;
  background-position: top center;

}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Global base font */
body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
}

/* ==== MAIN LABELS ==== */
h1,
h2,
.section h2,
.projects h2,
.about h2,
.certifications h2,
.group h2,
.stats-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 3.0rem;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* ==== SECONDARY LABELS (e.g. stat cards, small headings) ==== */
.stat-card p,
.card-text h3,
h3,
.read-more-btn,
.read-more,
.ceo-text h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.5rem;
  font-weight: 500;
}

/* ========= VIDEO BANNER ========= */
.video-banner {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-banner video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -1;
}

.video-overlay {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

/* ========= NAVBAR ========= */
/* ===== HEADER BASE ===== */
.transparent-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color .3s ease, box-shadow .3s ease;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* logo left, toggle/nav right */
}

.logo {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  color: #0d1c3f;
  transition: color .3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #00aaff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease-in-out;
}

.nav-links li a:hover::after {
  transform: scaleX(1);
}

.nav-links li a:hover {
  color: #00aaff;
}

.nav-links li a.active {
  color: #00cfff;
}

/* ===== HAMBURGER (hidden on desktop) ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #003C8B;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 50%;
  right: 10%;
  /* distance from right edge */
  transform: translateY(-50%);
  /* vertical center */
}


/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: #003C8B;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    /* full height drawer */
    width: 100%;
    /* not full screen */
    max-width: 280px;
    /* limit width */
    flex-direction: column;
    /* <<< force vertical */
    /* align to left */
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
    margin-top: 70vw;
    padding-top: 70%;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    transition: transform 1s ease-in-out;
    visibility: visible;
  }

  .nav-container {
    height: 10vh;

  }

  .nav-links li {
    width: 100%;
    /* make each link full width */
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #003C8B;
  }


}

/* ========= HERO TEXT ========= */
.hero-text {
  color: white;
  max-width: 700px;
  margin-top: 8rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background-color: #003C8B;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #002b65;
}

/* ========= ABOUT SECTION ========= */
.about-wrapper {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}


.image-slider-box {
  position: relative;
  width: 400px;
  height: 260px;
  overflow: hidden;
  border-radius: 15px;
  background-color: white;
  /* Optional: ensures it has a base */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  /* Strong black shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-slider-box:hover {
  transform: translateY(-5px);
  /* subtle lift */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  /* deeper shadow on hover */
}

.image-slider-box img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.6s ease;
  transform: translateX(0);
}

.image-slider-box img.slide-out {
  transform: translateX(-100%);
  opacity: 0;
}

.image-slider-box img.slide-in {
  transform: translateX(100%);
  opacity: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dots .dot.active {
  background-color: white;
}

.about-paragraph-container {
  flex: 1;
  max-width: 700px;
}

.about-paragraph {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.about-paragraph.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}

.read-more-btn {
  display: inline-block;
  color: #003C8B;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #003C8B;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background-color: #003C8B;
  color: white;
}

/* ========= SECTION & TYPO ========= */
.section {
  padding: 6rem 3rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

h2 {
  font-size: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

hr {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  margin: 2rem 0;
}

.about p {
  font-size: 1.2rem;
  line-height: 2;
  text-align: justify;
  padding: 1rem;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .image-slider-box {
    width: 100%;
    height: auto;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.9);
    /* or transparent if using video background */
    backdrop-filter: blur(10px);
    /* optional for nice frosted effect */
    transition: background-color 0.3s ease;
  }

  .transparent-header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }

}

/* === Smooth Slide Animation === */
.image-slider-box img {
  opacity: 1;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease;
}

.image-slider-box img.slide-out {
  transform: translateX(-100%);
  opacity: 0;
}

.image-slider-box img.slide-in {
  transform: translateX(100%);
  opacity: 0;
}

.ceo-message {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem;
  border-radius: 12px;
  position: relative;
  margin-top: 2rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ceo-message::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Dark overlay */
  border-radius: 12px;
}

.ceo-text {
  position: relative;
  max-width: 100%;
  padding-right: 60%;
  text-align: left;
  z-index: 2;
}

.ceo-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.ceo-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f1f1f1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.4s ease;
}

.ceo-text p.expanded {
  -webkit-line-clamp: unset;
}

.ceo-text .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #003C8B;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.ceo-text .read-more:hover {
  background-color: #002c652a;
}

@media (max-width: 768px) {
  .ceo-text {
    width: 100%;
    padding: 0;
  }
}

.project-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
}

.project-card {
  flex: 0 0 360px;
  margin: 1rem;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: scale(1.06);
  z-index: 2;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
  height: 100%;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: none;
}

.project-card:hover img {
  transform: none;
}

.project-card .card-text p {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.project-card:hover .card-text p {
  max-height: 160px;
  opacity: 1;
}

.card-text {
  padding: 1rem;
  text-align: center;
  background-color: white;
}

.card-text h3 {
  font-size: 1.4rem;
  color: #003C8B;
  margin-bottom: 0.3rem;
}

.card-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.pure-wavy-lines {
  width: 100vw;
  height: 300px;
  overflow: hidden;
  background: transparent;
  position: relative;
}

.pure-wavy-lines svg {
  width: 100%;
  height: 100%;
  display: block;
  preserveAspectRatio: none;
}

/* === Status Section === */
.stats-section {
  padding: 4rem 2rem;
  background: linear-gradient(90deg, #003C8B 0%, #d3e3f6 100%);
  color: white;
  text-align: center;
}

.stats-section .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  font-size: 40px;
  font-weight: bolder;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 250px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
}

.stat-card h3 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #fff;
}

.stat-card p {
  font-size: 1.1rem;
  color: #f1f1f1;
}

/* ============ CLIENTS SECTION ============ */
.clients-section {
  background: #f1f4f8;
  padding: 5rem 2rem;
  text-align: center;
}

.scroll-item img {
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}

.clients-section h2 {
  font-size: 2.5rem;
  color: #003C8B;
  font-family: 'Barlow Condensed', sans-serif;
  margin-bottom: 1rem;
}

.clients-section p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2rem;
  font-family: 'Marcellus', serif;
}

.client-scrollbar {
  overflow-x: auto;
  white-space: nowrap;
  cursor: grab;
  scroll-behavior: smooth;
  user-select: none;
  padding: 20px;
}

/* === AUTO SCROLL ANIMATION === */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Wrap logos in inner flex container to allow infinite scroll illusion */
.client-scroll-wrapper {
  display: flex;
  gap: 2rem;
  animation: autoScroll 60s linear infinite;
}

/* Pause animation on hover */
.client-scrollbar:hover .client-scroll-wrapper {
  animation-play-state: paused;
}

.client-scrollbar::-webkit-scrollbar {
  display: none;
}

.client-logo {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.client-logo:hover {
  transform: scale(1.5);
  z-index: 3;
}

/* ============ DARK MODE ============ */
.dark-mode body {
  background-color: #1b1b1b;
  color: #eee;
}

.dark-mode .subsidiaries-section {
  background: #2a2a2a;
}

.dark-mode .subsidiary-card {
  background: #333;
  color: #eee;
}

.dark-mode .clients-section {
  background: #1e1e1e;
}

.dark-mode .subsidiary-desc {
  color: #ddd;
}



/*======Certification=======*/

.certifications .container {
  max-width: 75%;
  margin: auto;
  text-align: center;
}

.cert-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cert-item {
  position: relative;
  cursor: pointer;
}

.cert-item img {
  max-height: 130px;
  transition: transform 0.3s ease;
}

.cert-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .cert-title-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Fullscreen-style popup centered */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 20px;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup img {
  max-height: 90vh;
  width: auto;
  object-fit: contain;
}

/* Show popup on hover */
.cert-item:hover .popup {
  display: block;
}

.cert-title-wrapper h2 {
  font-size: 2.8rem;
  /* slightly smaller than global 3rem */
}

/* === Smooth Popup Animation on Hover === */
@keyframes slowZoomIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.cert-item:hover .popup {
  display: block;
  animation: slowZoomIn 0.6s ease-out;
}

/* ====== Footer ======*/
footer {
  background: #003C8B;
  color: white;
  padding: 2rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  border-top: 4px solid #ccc;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  height: 50px;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d3e3f6;
}

.social-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

.contact-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.contact-inline .divider {
  color: #999;
  font-size: 18px;
}

.social-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.animated-navbar {
  transform: translateY(-100%);
  opacity: 0;
  animation: slideDownNavbar 0.7s ease-out forwards;
}


@keyframes slideDownNavbar {
  to {
    transform: translateY(0);
    opacity: 1;
  }

}

/* Mobile Fix for Certifications */
@media (max-width: 768px) {
  .cert-item:hover img {
    transform: none;
    /* prevent enlarge */
  }

  .cert-item:hover .popup {
    display: none;
    /* disable popup hover */
  }

  .cert-item img {
    max-height: 80px;
    /* smaller logos for mobile */
  }
}