/* ===== Global ===== */
* {
  box-sizing: border-box; /* Prevent overflow from padding/margin */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h2, h3, h4 {
  color: #00ffff;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Desktop logo size */
.logo-container img {
  height: 80px; /* desktop default */
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 6px #00ffff) drop-shadow(0 0 12px #00ffff);
}

/* Tablets & small desktops */
@media (max-width: 991px) {
  .logo-container img {
    height: 60px; /* smaller on tablets */
  }
}

/* Phones */
@media (max-width: 480px) {
  .logo-container img {
    height: 50px; /* smaller on phones */
  }
}


.logo-container img:hover {
  transform: scale(1.2);
  /* stronger glow on hover */
  filter: drop-shadow(0 0 12px #00ffff) drop-shadow(0 0 24px #00ffff);
}


.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #00ffff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f2f5f5;
  z-index: 10001; /* Always on top */
}

/* ===== Slideshow ===== */
.slideshow {
  margin-top: 0px;
  overflow: hidden;
  width: 100%;
  height: 80vh;
  position: relative;
  transition: transform 0.3s ease;
  will-change: transform;
  border-radius: 0; /* remove rounded edges */
}

/* Slides */
.mySlides {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mySlides.active {
  display: block;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Grey overlay */
.slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade overlay blending into black */
.slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 1) 100%
  );
}

/* Caption */
.caption-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 100%;
  padding: 0 15px;
}

.caption {
  font-family: 'Oswald', sans-serif;
  font-size: 10rem;
  font-weight: 700;
  color: #338686;
  text-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .slideshow { height: 60vh; }
  .mySlides img { height: 60vh; }
}

@media (max-width: 480px) {
  .slideshow { height: 50vh; }
  .mySlides img { height: 50vh; }
  .caption { font-size: 2.5rem; }
}





/* ===== Video Section ===== */
.video-container {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease;
  will-change: transform;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===== Sections & Toggle ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.toggle-arrow {
  width: 24px;
  height: 24px;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.toggle-arrow.active {
  transform: rotate(90deg);
}

.toggle-content {
  display: none;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.toggle-content.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===== Fade-in sections ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Expertise List ===== */
.expertise-list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.expertise-narrative {
  font-weight: 400;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  color: #555;
}

/* ===== Customers ===== */
.customers-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.customer-logo {
  height: 100px;
}

.customers-title {
  text-align: center;
  margin-bottom: 1rem;
  color: #e9f1f1;
  font-size: 2rem;
  font-weight: 700;
}

/* ===== Contact ===== */
.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info .icon {
  width: 20px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.contact-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-logos .small-logo {
  height: 60px; 
}

.back-to-top {
  display: inline-block;
}

.back-to-top.show {
  opacity: 1;
}

/* ===== Footer ===== */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

/* ===== Divider ===== */
.divider {
  border: none;
  height: 2px;
  background-color: #fff;
  width: 0;
  margin: 40px auto;
}

.divider.fade-in.visible {
  animation: expandDivider 1s ease-out forwards;
}

@keyframes expandDivider {
  from { width: 0; margin-left: 50%; margin-right: 50%; }
  to { width: calc(100% - 40px); margin-left: 20px; margin-right: 20px; }
}

/* ===== Media Queries ===== */


/* Tablets & small desktops */
@media (max-width: 991px) {
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease;
  }

  /* Rotate icon when open */
  .menu-toggle i.active {
    transform: rotate(90deg);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;      /* start from navbar */
    width: 100%;
    max-height: 0;                     /* collapsed by default */
    overflow: hidden;
    position: fixed;
    top: 70px;                          /* align with bottom of navbar */
    left: 0;
    bottom: 0;                          /* stretch to bottom */
    padding-top: 2rem;                  /* space from navbar */
    gap: 1.5rem;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    transition: max-height 0.5s ease;
  }

  .nav-links.active {
    max-height: 100vh;                  /* JS will expand */
  }

  .nav-links a {
    font-size: 1.6rem;
    font-family: 'Oswald', sans-serif;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* staggered animation */
  .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active a:nth-child(5) { transition-delay: 0.5s; }
  .nav-links.active a:nth-child(6) { transition-delay: 0.6s; }
  .nav-links.active a:nth-child(7) { transition-delay: 0.7s; }
}


  .nav-links a:hover {
    color: #338686;
  }



  .slideshow {
    height: 60vh;
    margin-top: 50px; /* reduced top margin for mobile */
  }

  .mySlides img {
    height: 60vh;
  }



/* Phones */
@media (max-width: 480px) {
  .caption {
    font-size: 2.5rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .pillars-grid, .products-grid {
    gap: 1rem;
  }

  .slideshow {
    margin-top: 10px; /* smaller top margin for small phones */
  }
}

/* Reduce vertical gap between slideshow and Mindset */
#who .section-inner {
  padding-top: 0px;  /* reduce from 50px to 20px */
  padding-bottom: 50px; /* keep bottom padding as is */
}

/* Toggle Header Row */
.toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
}

.toggle-header h2 {
  margin: 0;
  font-size: 2rem;
  color: #00ffff;
}

.toggle-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.toggle-arrow.active {
  transform: rotate(90deg);
}

/* Toggle Content */
.toggle-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
  color: #fff;
}

.toggle-content.visible {
  max-height: 500px; /* enough for content */
  opacity: 1;
  transform: translateY(0);
}


/* ===== Toggle Content ===== */
.toggle-content {
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
  color: #fff; /* visible on black background */
}

.toggle-content.visible {
  max-height: 500px; /* enough for most content */
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: make footer/contact logos smaller & centered */
@media (max-width: 480px) {
  /* main logo shown in contact area */
  .contact-inner .contact-logo {
    height: 40px;      /* smaller on phones — change to 36/44 to taste */
    width: auto;
    display: block;
    margin: 0.6rem auto; /* center and add a little vertical spacing */
  }

  /* the small certification/customer logos */
  .contact-logos .small-logo {
    height: 36px;      /* keep them proportional to the main logo */
    width: auto;
  }

  /* reduce gaps so things stack compactly */
  .contact-logos {
    gap: 0.75rem;
    padding-bottom: 0.6rem;
  }
}

/* ===== Who We Are Section ===== */
#who-we-are {
  background: #000;               /* match rest of page background */
  color: white;                   /* text color */
  padding: 80px 20px;             /* spacing around section */
  text-align: center;             /* header centered */
  display: flex;
  flex-direction: column;         /* stack header above cards */
  align-items: center;            /* center everything horizontally */
}

#who-we-are h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
}

/* Grid container for cards */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1100px;
  justify-items: center;
}

/* Individual cards */
.who-item {
  background: #222;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, opacity 0.6s ease;
  opacity: 0;                     /* start hidden for fade-in */
  transform: translateY(20px);    /* slide up effect */
  width: 100%;
  max-width: 300px;
  text-align: left;
}

.who-item h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #00ffff;
  font-size: 1.2rem;
}

.who-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.5;
}

/* Fade-in visible state */
.who-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mouse Hover Zoom for Who We Are Cards ===== */
.who-item:hover {
  transform: scale(1.05); /* slight zoom */
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2); /* subtle cyan glow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
  #who-we-are h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .who-item {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #who-we-are h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .who-item {
    padding: 20px 15px;
  }
}

.gradient-text {
  color: white; /* fallback */
  background: linear-gradient(90deg, cyan var(--pct, 0%), white var(--pct, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text {
  color: white; /* fallback */
  background: linear-gradient(90deg, cyan var(--pct, 0%), white var(--pct, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;

  /* Hover zoom settings */
  transition: background 3s ease-out, transform 0.3s ease; /* keep gradient transition + add smooth transform */
}

.gradient-text:hover {
  transform: scale(1.1); /* zoom in 10% on hover */
}




