/* General Styles */
html {
    font-size: 16px;  /* 1rem = 16px */
    font-family: 'Montserrat', sans-serif;
  }
body {
  
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
  box-sizing: border-box;
  background-color: #e8f1fd ;
  overflow-x: hidden;
  position: relative;
}

main {
  padding: 2% 15%;
 

}
/* Headers and paragraph styles */
h1 {
    font-size: 2.625rem; /* 42px */
    margin-bottom: 1.5rem;
  }
  
  h2 {
    font-size: 2rem; /* 32px */
    margin-bottom: 1.25rem;
  }
  
  h3 {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 1rem;
    color:#a4a4a4;
    font-weight: normal;
  }
  
  h4 {
    font-size: 1rem; /* 16px */
    margin-bottom: 0.75rem;
  }
  
  p {
    font-size: 1.25rem; /* 18px */
    margin-bottom: 1rem;
    padding: 5px;
  }
  .strong{
    font-size: 1.5rem; 
    color: #0bfcfd;
    font-weight: 700;
  }
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Navbar */
header{
  height: 100px;
  position: fixed;
  top: 0px;
  width: 100%;
  padding: 12px 0px;
  box-shadow: 0 2px 5px rgba(34, 78, 128, 0.3);
  background-color: rgba(36,82,131, 0.9);
  transition: background-color 0.3s ease; 
}



.scrolled .navbar {
  background-color: #333; 
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.logo-img {
  width: 140px;
  height: auto;
  margin-right: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  position: relative;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li a {
  color: #fff;

  text-decoration: none;
  font-weight: bold;
  text-decoration: none;
}
/* Hover effect */
.nav-links li a:hover {
  color: #39e2f5; /* Light blue text on hover */
 
}
.nav-links.mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 64, 128, 0.95);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999; 
  text-align: center;
  
}
.nav-links.mobile.open li a {
  color: white; /* Default text */
  padding: 5px;
  display: block;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.nav-links.mobile.open li a:hover {
  color: #39e2f5; /* Light blue on hover */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.nav-links .mobile .open {
  display: flex;
}
@media (max-width: 1024px) {
    .hamburger {
      display: flex;
    }
  
    .nav-links {
      display: none;
    }
  
    .nav-links.mobile {
      display: none; 
    }
  
    .nav-links.mobile.open {
      display: flex;
      flex-direction: column;
      text-align: start;
      padding-left: 15px;
    }
   
    /*hero section*/
   section h1 {
        font-size: 2rem; 
    }
    section p {
        font-size: 1rem; 
    }


  }

  
section {
   
  /* height: 100vh; */
  display: flex;
 
  color: #fff;
  padding: 40px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease-in-out; 
}


section h2 {
    font-size: 2rem;
    display: contents;
    position: relative;
    text-align: left;
    color: #fff;
    margin: 0;
    animation: fadeIn 1.5s ease-in-out;
}
section h2::after {
    content: ""; /* Empty content */
    display: block; /* Makes the pseudo-element behave like a block element */
    width: 100%; /* Matches the width of the text */
    height: 1px; /* Thickness of the underline */
    background-color: #39e2f5; /* Green underline */
    position: static; /* Positions the underline relative to the header */
    bottom: -5px; /* Distance from the text */
    left: 0; /* Aligns underline with the start of the text */
    padding-right: 30px;
}
@media (max-width: 767px) {
    section h2 {
        font-size: 1.5rem; /* Reduce font size for mobile */
        text-align: left; /* Center the text on mobile */
    }

    section h2::after {
        width: 80%; /* Slightly smaller underline on mobile */
        bottom: -3px; /* Adjust the distance of the underline */
    
    }
}
section:in-view {
    background-color: transparent; /* Specific rule to detect in-view */
  }
  section:last-child {
    margin-bottom: 40px;
  }
  

.split-section {
    display: grid;
    grid-template-columns: 60% 40%; 
    gap: 2rem;
  
  }
/* Hero Section */
.hero-section {
    background: url("media/bg.jpeg") no-repeat center center;
    /* background: linear-gradient(to right, #365e8b, #6d9acb, #b0cdee); */
    background-size: cover; /* Ensure the background image covers the section */
    display: flex;
    justify-content: center;
    align-items: center;
   /*  height: 100vh; Make sure the section takes full height */
    text-align: center; /* Center the text */
 
}
.hero-section .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
.hero-section .logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hero-section .logo-container img {
    height: auto;
    width: 100%; /* Make image responsive */
    max-width: 200px; /* Set a max width for logo */
    display: block;
}



/* Section Styles */


.mision-section {
  /* background: url("media/mission.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to left, #365e8b, #6d9acb, #b0cdee);
  color: #fff;
  align-items: flex-start; 
  
}

/* Services Section */
.vision-section {
  /* background: url("media/vision.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to right, #365e8b, #6d9acb, #b0cdee);
  color: #fff;
  

}


.leadership-section {
  /* background: url("media/leadership.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to left, #365e8b, #6d9acb, #b0cdee);
  color: #fff;
}

.inovation-section {
  /* background: url("media/inovation.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to right, #365e8b, #6d9acb, #b0cdee);
  color: #fff;
}

.network-section {
  /* background: url("media/networks.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to left, #365e8b, #6d9acb, #b0cdee);
  color: #fff;
}



.ecosystem-section {
  background: 
    url("media/image13-nbg.png") no-repeat center center / contain, 
    linear-gradient(to right, #365e8b, #6d9acb, #b0cdee);
  background-size: contain, cover;
}


.ecosystem-section .split-section{
    display: grid;
    grid-template-columns: 50% 50%;
    height: 100vh; /* Ensures full viewport height */
    gap: 1rem;
}


  
.ecosystem-section .split-section .left-column  , 
.ecosystem-section .split-section .right-column{
    display: flex;
    justify-content: center;
    align-items: center; /* Align items at the bottom of the column */
   
    width: 85%;
}
/*ecosystem mobile*/
@media (max-width: 767px) {

  .ecosystem-section {
    background: linear-gradient(to left, #365e8b, #6d9acb, #b0cdee);
  }
  
    /* Reduce the height for mobile to avoid excessive white space */
    .ecosystem-section .split-section {
   
      grid-template-columns: 100%; /* Stack columns on top of each other */
      height: auto; /* Adjust height to auto for better fitting on smaller screens */
      gap: 1.5rem; /* Add more space between stacked sections */
    }
  
    /* Adjust header and container padding for mobile */
    .ecosystem-section .header {
      width: 100%; /* Make header take full width on mobile */
      text-align: center; /* Center-align the header text */
    }
  
    /* Adjust font sizes for mobile */
    .ecosystem-section .split-section .left-column p,
    .ecosystem-section .split-section .right-column p {
      font-size: 1.125rem; /* 16px on mobile */
      text-align: center; /* Center-align text on mobile */
      padding: 0 1rem; /* Add padding to avoid text touching the edges */
      font-weight: 700;
    }
  
    /* Adjust container padding for mobile */
    .ecosystem-section .container {
      padding: 2rem 1rem; /* Reduce padding on mobile for better spacing */
    }
  }

  .success-section {
    /* background: url("media/success.jpeg") no-repeat center center/cover; */
    background: linear-gradient(to left, #365e8b, #6d9acb, #b0cdee);
    background-size: cover; 
  }



.commitment-section {
  /* background: url("media/comitment.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to right, #365e8b, #6d9acb, #b0cdee);
}

.relations-section {
  /* background: url("media/relations.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to left, #365e8b, #6d9acb, #b0cdee);
  background-size: cover; 
}


.partner-section {
  /* background: url("media/partner.jpeg") no-repeat center center/cover; */
  background: linear-gradient(to right, #365e8b, #6d9acb, #b0cdee);
  background-size: cover; 
 
}

.partner-section .grid-section{
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: auto; 
    gap: 1rem; 
    padding: 1rem;
    line-height: 1;
    margin-top: 40px;
}
.grid-section .grid-item {
 
    background-color:#a4a4a4; 
    color: white; 
    padding: 1rem;
    text-align: center;
    border-radius: 8px; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(220, 220, 220, 0.3);
  transition: background-color 0.3s ease;
  }
  .grid-section .grid-item h4{
    color: #0bfcfd;
    /* text-transform: capitalize;
    font-weight: bold; */
  }
  @media (max-width: 767px) {
  
    .partner-section .grid-section {
      grid-template-columns: 50% 50%; 
      margin-top: 20px; 
      padding: 0;
    }
    .partner-section .grid-item  {
     
      padding: 0.5rem; 
    }
    .partner-section .grid-item p {
      font-size: 0.7rem;
    
    }
  
    .partner-section .grid-item h4 {
      font-size: 0.9rem; 
      
    }
  
  
    .partner-section .container {
      padding: 2rem 1rem;
    }
  
  
    .partner-section {
      background-size: 100% 100%; 
    }
  }
/* Footer */
footer {
    background: #004080;
    color: #fff;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px; 
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  footer .container {
    padding: 0 1rem; 
  }
  
  footer p {
    font-size: 1rem;
    margin: 0;
  }
  footer p a {
    font-size: 1rem;
   color: #fff;
  }

  @media (max-width: 767px) {
   
      main{
        width: 100%;
        padding: 17% 0%;
       
      }
      header {
        height: 100px;
        position: fixed;
        top: 0px;
        width: 100%;
        padding: 7px 0px;
        box-shadow: 0 2px 5px rgba(34, 78, 128, 0.3);
        background-color: rgba(36, 82, 131, 0.9);
        transition: background-color 0.3s ease;
    }
    footer {
      height: 80px;
    }
  
    footer .container {
      padding: 0 0.5rem; 
    }
  
    footer p {
      font-size: 0.875rem; 
    }

  
  }
/* Keyframes for Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Terms and Conditions */


/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* High z-index to be on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content Box */
.modal-content {
  position: relative; /* Ensure close button stays inside */
  background: white;
  padding: 20px;
  width: 50%;
  max-width: 500px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}
.modal-content h2, p.privacy, 
.modal-content h2,p.terms{
  font-size: 9px;
  text-align: left;
}
/* Close Button - Inside the Modal Box */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

/* Hover effect for Close Button */
.close:hover {
  color: red;
}

/* Popup container */
.popup {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 99%;

  background: white;
 
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default */
  z-index: 1000;
}

/* Popup content */
.popup-content {
  position: relative;
  text-align: center;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
