@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
    --deepblue-color:  #101586;
    --darkblue-color: #10139d;
    --royalblue-color: #0404cb; 
    --mediumblue-color: #2e4add;
    --lightblue-color: #cfeaef;

    --darkpurple-color: #8c74ed;
    --mediumpurple-color: #5b62db;
    --lightpurple-color: #7b84e3;

    --darkgrey-textcolor: #535252;
    --hover-color:#48cae4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

/* Top Bar Styles */
.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: var(--lightblue-color);
    color: var(--darkgrey-textcolor);
    padding: 10px 15px;
    font-size: 14px;
    z-index: 99; /* Ensure it stays on top */
}

/* Contact Information Section */
.contact-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-item i {
    color: var(--royalblue-color);
}

/* Scrolling Text Section */
.scrolling-text {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    margin-left: 20px;
    min-width: 0; /* Ensures proper space allocation */
}

.scrolling-text p {
    display: inline-block;
    animation: scroll-text 40s linear infinite;
}

/* Keyframes for Scrolling Text */
@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Navbar General Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--deepblue-color);
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Brand Logo and Name */
  .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  /* Navigation Links */
  .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    font-weight: 450;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    font-size: 14px;
  }
  
  .nav-links li a:hover {
    color: var(--hover-color); /* Change text color to blue on hover */
  }
  
  .nav-links li a:hover::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hover-color);
    border-radius: 2px;
    transition: 0.3s ease-in-out;
  }
  
  /* Search Bar */
  .search-container {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .search-bar {
    width: 0;
    padding: 8px;
    border: none;
    border-radius: 4px;
    outline: none;
    transition: 0.3s ease;
    opacity: 0;
  }
  
  .search-container .search-icon,
  .search-container .close-icon {
    cursor: pointer;
    color: white;
    font-size: 18px;
    margin-left: 10px;
  }
  
  .search-container .close-icon {
    display: none;
  }
  
  .search-container.active .search-bar {
    width: 200px;
    opacity: 1;
  }
  
  .search-container.active .search-icon {
    display: none;
  }
  
  .search-container.active .close-icon {
    display: block;
  }
  
  /* Hamburger Menu for Small Screens */
  .hamburger-menu {
    display: none;
    cursor: pointer;
  }
  
  .hamburger-menu i {
    font-size: 24px;
    color: white;
  }
 

/* Small Devices (e.g., smartphones, max-width: 600px) */
@media screen and (max-width: 600px) {
    /* Navbar Layout */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    /* Hamburger Menu on Left */
    .hamburger-menu {
        order: 1;
        display: block;
    }

    /* Brand Logo in Center */
    .navbar-brand {
        order: 2;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
    }

    /* Search Icon on Right */
    .search-container {
        order: 3;
        display: flex;
        justify-content: flex-end;
    }

    /* Hamburger Menu Behavior */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 250px;
        background-color: var(--deepblue-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.show {
        display: flex;
    }

    /* Search Bar */
    .search-container {
        position: relative;
    }

    .search-bar {
        display: none;
        position: absolute;
        top: 100%; /* Position under the navbar */
        left: 50%;
        transform: translateX(-90%)!important; /* Center it */
        margin-top: 22px;
        width: 80%; /* Medium width */
        max-width: 400px; /* Ensure it's not too wide */
        padding: 12px;
        background-color: var(--lightblue-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        opacity: 1;
        border-radius: 4px;
        box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    }

    .search-container.active .search-bar {
        display: block;
    }

    .search-container.active .search-icon {
        display: none;
    }

    .search-container.active .close-icon {
        display: block;
    }
}

/* iPad Air/Mini (min-width: 768px and max-width: 834px) */
@media screen and (min-width: 768px) and (max-width: 834px) {
    /* Navbar Layout */
    .navbar {
        padding: 15px 20px;
    }

    .hamburger-menu {
        order: 1;
        display: block;
    }

    .navbar-brand {
        order: 2;
        justify-content: center;
        flex-grow: 1;
    }

    .search-container {
        order: 3;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 250px;
        background-color: var(--deepblue-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        display: flex;
    }

    /* Search Bar */
    .search-bar {
        display: none;
        position: absolute;
        top: 100%; /* Position under the navbar */
        left: 50%;
        transform: translateX(-90%) !important; /* Center it */
        width: 80%; /* Medium width */
        max-width: 500px; /* Adjust width for iPads */
        padding: 12px;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .search-container.active .search-bar {
        display: block;
    }
}

/* Additional Adjustment for Search Bar */
@media screen and (max-width: 600px) {
    .search-bar {
        display: none;
        position: absolute;
        top: 100%; /* Position under the navbar */
        left: 50%; /* Start at the center */
        transform: translateX(-50%); /* Center it */
        width: 70%; /* Medium width */
        max-width: 400px; /* Ensure it's not too wide */
        margin-top: 22px;
        padding: 12px;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        opacity: 1;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .search-container.active .search-bar {
        display: block;
    }
}

/* Header Styles */
.header {
  margin-top: 0;
  background: url('images/associates\ page.webp') no-repeat center center/cover;
  height: 450px; /* Adjust height as needed */
  color: white;
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: flex-end; /* Align content at the bottom */
  position: relative;
  z-index: 0;
  margin-bottom: 30px;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 57, 0.7); /* Dark blue overlay with transparency */
  z-index: 0; /* Ensure the overlay is below the content */
}

.header .header-content {
  position: absolute;
  bottom: 20px; /* Adjust distance from the bottom */
  text-align: center; /* Center text horizontally */
  width: 100%; /* Ensure content stretches across the width of the header */
}

.header h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 0; /* Remove bottom margin if there is one */
  animation: fadeIn 2s ease-out;
  background: linear-gradient(to right, #e1fbff, #58daf4); /* Bright blue gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(0, 122, 255, 0.8); /* Add glowing effect */
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;

}


.header p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeIn 3s ease-in;
    background: linear-gradient(to right, white, white); /* Bright blue gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px white(0, 122, 255, 0.8); /* Add glowing effect */
    font-family: 'Sans-serif';
}

.btn-contact {
    display: inline-block;
    padding: 12px 24px; /* Slightly larger padding for a bold look */
    background: var(--mediumblue-color); /* Button color */
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px; /* Rounded corners for a pill-shaped button */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 2.5s ease-out; /* Subtle fade-in for entrance */
}

.btn-contact:hover {
    background: var(--hover-color); /* Use hover color for interactivity */
    transform: scale(1.1); /* Slightly larger on hover for emphasis */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* More shadow for hover effect */
}

/* Animation for fading in */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Associates Section Styling */

.associates-section {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 50px 10%; /* Adjust the padding for better responsiveness */
  overflow: hidden;
  margin-top: 0; /* Ensure no top margin if it follows directly after header */
}

.associates-section {
  opacity: 0;
  transition: opacity 1s ease;
}

.associates-section.visible {
  opacity: 1;
}


.image-container {
  flex: 1;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

.image-container img {
  width:450px !important;
  height: 350px !important;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.text-container {
  flex: 1;
  animation: slideInRight 2s ease-in-out;
}

.text-container h2 {
  font-size: 28px !important;
  color: var(--royalblue-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-style: 'Poppins'; /* Modern and stylish font */
  position: relative;
  text-align: center;
  animation: fadeIn 2s ease-in forwards;
}

.text-container h2::after {
  content: "";
  display: block;
  width: 80px; /* Length of the underline */
  height: 4px; /* Thickness of the underline */
  background: linear-gradient(90deg, #0404cb, #48cae4); /* Gradient effect */
  border-radius: 2px; /* Rounded edges */
  margin: 8px auto 0; /* Center the underline */
  animation: slideIn 1s ease-in forwards;
}

.text-container p {
  font-size: 15px !important;
  color: #555;
  line-height: 1.3;
  text-align: justify;
  animation: fadeIn 2.5s ease-in forwards;
  margin-top: 1.5rem;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(50%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* New Keyframe Animation for Underline */
@keyframes slideIn {
  0% {
    width: 0;
  }
  100% {
    width: 80px;
  }
}


@media (max-width: 992px) {
  .associates-section {
    flex-direction: column;
    padding: 30px 5%;
    gap: 2rem;
  }

  .image-container {
    order: 1; /* Move image below text on smaller screens */
    width: 100%;
  }

  .text-container {
    text-align: center;
    margin-bottom: 2rem; /* Ensure space between image and text */
  }

  .text-container h2 {
    font-size: 24px;
  }

  .text-container p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .associates-section {
    padding: 20px 5%;
  }

  .text-container h2 {
    font-size: 22px;
  }

  .text-container p {
    font-size: 16px;
  }
}


@media (max-width: 600px) {
  .associates-section {
      margin-top: 20px;
    padding: 15px 5%;
    gap: 1.5rem; /* Adjust the gap between the image and text */
  }

  .text-container h2 {
    font-size: 20px;
  }

  .text-container p {
    font-size: 14px;
  }

  .image-container {
    width: 100%; /* Ensure image container takes full width */
    padding: 10px; /* Add padding around the image */
    box-sizing: border-box; /* Include padding in the width calculation */
    display: flex;
    justify-content: center; /* Center-align the image within the container */
  }

  .image-container img {
    width: 180px; /* Set a fixed width */
    height: 160px; /* Set a fixed height */
    margin: 0 auto; /* Center-align the image */
    border-radius: 5px;
    display: block; /* Ensure proper block-level layout for centering */
  }
}


  .text-container p {
    font-size: 14px;
  }

  .image-container img {
    border-radius: 5px; /* Adjust the image border radius on very small screens */
    width: 340px;
    height: 200px;
    margin-left: 10px;
    margin-right: 10px;
  }

/* Media Query for devices with screen width min 768px (iPad Mini, iPad Air) */
@media (min-width: 768px) and (max-width: 1024px) {
  .associates-section {
      padding: 40px 8%; /* Slightly less padding on tablets */
      gap: 1.5rem; /* Adjust the gap between the image and text */
      flex-direction: row-reverse; /* Image should be on the right */
  }

  .image-container img {
      width: 360px; /* Adjust image size to fit tablet screen */
      height: 310px; /* Adjust height accordingly */
      align-items: center; /* Ensure the image is centered vertically */
  }

  .text-container h2 {
      font-size: 18px;
      color: var(--royalblue-color);
      margin-bottom: 1rem;
      text-transform: uppercase;
      font-style: 'Poppins'; /* Modern and stylish font */
      position: relative;
      text-align: center;
      animation: fadeIn 2s ease-in forwards;    }

  .text-container p {
      font-size: 12px!important ;
      color: #555;
      text-align: justify;
      animation: fadeIn 2.5s ease-in forwards;
      margin-top: 1.5rem;   
      line-height: 1.5rem
   }
}




.why-choose-us {
  padding: 50px;
  text-align: center;
}
/* Base hidden state for boxes */
.why-choose-us-box {
  opacity: 0;
  transform: translateY(40px) skewY(1deg) scale(0.95);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

/* Scroll-triggered visible state */
.why-choose-us-box.visible {
  opacity: 1;
  transform: translateY(0) skewY(0deg) scale(1);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Hover effect – subtle lift and gradient accent */
.why-choose-us-box:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0,0,0,0.2);
  background: linear-gradient(155deg, #10139d, #48cae4);
}

/* Icon – elegant pop on hover */
.why-choose-us-box:hover .why-choose-us-icon {
  transform: scale(1.15) rotateZ(2deg);
  transition: transform 0.3s ease;
}

/* Heading fade-in */
.why-choose-us-text-container h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.why-choose-us-text-container h2.fadeInText {
  opacity: 1;
  transform: translateY(0);
}


.why-choose-us-text-container h2 {
  font-size: 28px;
  color: var(--royalblue-color, #0404cb);
  margin-bottom: 1rem;
  text-transform: uppercase;
  position: relative;
  animation: fadeIn 2s ease-in forwards;
}

.why-choose-us-text-container h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0404cb, #48cae4);
  border-radius: 2px;
  margin: 8px auto 0;
  animation: slideIn 1s ease-in forwards;
}

.why-choose-us-boxes-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensures wrapping if needed */
  margin-top: 30px;
}

.why-choose-us-box {
  flex: 1 1 calc(33.33% - 20px); /* 3 boxes per row with space considered */
  max-width: 300px;
  padding: 20px;
  background: linear-gradient(155deg, var(--royalblue-color, #10139d), var(--lightblue-color, #2f9eb2));
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #fff;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.why-choose-us-box:hover {
  background: var(--deepblue-color, #040480);
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.why-choose-us-icon {
  font-size: 40px;
  margin-bottom: 10px;
  color: #fff;
  transition: transform 0.3s ease-in-out;
}

.why-choose-us-box:hover .why-choose-us-icon {
  transform: scale(1.2);
}

.why-choose-us-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.why-choose-us-box p {
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .why-choose-us-box {
      flex: 1 1 calc(50% - 20px); /* 2 boxes per row */
  }
}

@media (max-width: 768px) {
  .why-choose-us-boxes-container {
      flex-direction: column; /* Stacks boxes vertically */
      align-items: center;
  }

  .why-choose-us-box {
      flex: 1 1 100%; /* Full width for smaller screens */
      max-width: 90%;
      margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .why-choose-us-text-container h2 {
      font-size: 22px;
  }

  .why-choose-us-box {
      padding: 15px;
  }

  .why-choose-us-icon {
      font-size: 30px;
  }

  .why-choose-us-box h3 {
      font-size: 18px;
  }

  .why-choose-us-box p {
      font-size: 12px;
  }
}

/* Keyframe Animations */
@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

@keyframes slideIn {
  0% {
      width: 0;
  }
  100% {
      width: 80px;
  }
}

/* Section Padding */
.industries {
  padding: 40px 20px;
  background: #f8f9fa; /* light background to distinguish */
}

/* Section Heading Styling */
.industries .heading-container {
  text-align: center;
  margin-bottom: 30px;
}

.industries h2 {
  font-size: 28px;
  color: var(--royalblue-color, #0404cb);
  margin-bottom: 1rem;
  text-transform: uppercase;
  position: relative;
  animation: fadeIn 2s ease-in forwards;
}

.industries h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0404cb, #48cae4);
  border-radius: 2px;
  margin: 8px auto 0;
  animation: slideIn 1s ease-in forwards;
}

.industries p {
  color: #6c757d;
  font-size: 16px;
}

/* Industries List Styling */
.industries-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

/* Individual Box Styling */
.industries-list > li {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

/* Hover Effects */
.industries-list > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(72, 202, 228, 0.5);
}

/* Icons */
.industries-list i {
  display: inline-block;
  -webkit-background-clip: text;
  background-image: linear-gradient(90deg, #0404cb, #48cae4);
  color: transparent;
  font-size: 35px;
  padding: 10px;
}

/* Heading */
.industries-list h3 {
  font-size: 16px;
  color: var(--royalblue-color);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Description */
.industries-list p {
  margin-top: 12px;
  color: #555;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .industries-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .industries-list {
    grid-template-columns: 1fr;
  }
}

/* Hidden state before reveal */
.industries-list > li {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Visible when in viewport */
.industries-list > li.show {
  opacity: 1;
  transform: translateY(0);
}



footer {
  background-color: var(--deepblue-color);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: #97e5f5;
  margin-bottom: 15px;
  font-size: 23px;
  text-decoration: underline;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 5px 0;
}

.footer-column ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
  font-weight: 600px;
}

.footer-column ul li a:hover {
  color: var(--hover-color);
}

.footer-column p {
  margin: 10px 0;
}

.footer-column form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column form input {
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
}



.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 20px;
}

.footer-left,
.footer-right {
  flex: 1;
  text-align: center;
}

.footer-left img {
  max-height: 50px;
  margin-bottom: 10px;
}

.footer-right img {
  max-height: 50px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
