@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", serif;
}
/*_____________________________gen____________________*/
html {
  scroll-behavior: smooth;
}


/* WebKit Browsers */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-thumb {
  background: #414141;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9e9e9e;
}

::-webkit-scrollbar-track {
  background: #000000;
}


.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  display: flex;
  height: 15vh;
  align-items: center;
  justify-content: space-around;
  background-color: #fff;
  position: relative;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Adds shadow */
  position: fixed; /* Makes the navbar stick to the top of the page */
  top: 0;
  width: 100%;
  z-index: 999;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
nav.hidden {
  transform: translateY(-100%); /* Slides the navbar up */
}

nav.scrolled {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}
#logo:hover {
  cursor: default;
}

a,
.btn {
  transition: all 300ms ease;
}

#logo {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
#logo p {
  width: 250px;
  height: auto;
  font-weight: 700;
  font-size: 1.3em;
}
#logo img {
  width: 80px;
  height: auto;
  margin-right: 20px;
}

#links a {
  font-size: 1em;
  margin-right: 15px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  padding: 10px;
}
#links a.active {
  color: #5331ee;
}
#links a:hover {
  color: #5331ee;
}

.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #000;
}

@media only screen and (max-width: 1300px) {
  #links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  #links.active {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  #logo p {
    width: 150px;
    height: auto;
    font-weight: 700;
    font-size: 0.8em;
  }
  #logo img {
    margin-right: 10px;
    width: 60px;
    height: auto;
  }
  nav {
    height: 10vh;
  }
}
/*____________HOME__________________*/

/* Full-width home section with centered content */
#home_section {
  margin-top: 15vh;
  height: 85vh; /* Full height of the viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 5% 5%;
}

#background_video video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: brightness(0.5);
}

#centered_content {
  text-align: center;
  z-index: 1;
  color: #fff;
}

#centered_content h1 {
  font-size: 4em;
  margin-bottom: 20px;
}

#centered_content h4 {
  font-size: 1.7em;
  margin-bottom: 30px;
}

#home_buttons {
  margin-top: 20px;
}

#home_buttons .btn {
  text-decoration: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 15px;
  border: #fff solid 2px;
  font-size: 1em;
  margin: 10px;
  transition: all 0.3s ease-in-out;
}

#home_buttons .btn:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  #centered_content h1 {
    font-size: 2.5em;
  }

  #centered_content h4 {
    font-size: 1.2em;
  }

  #home_buttons .btn {
    font-size: 0.9em;
    padding: 8px 16px;
  }
  #home_section {
    margin-top: 9vh;
  }
  
}

section h2:hover {
  cursor: default;
}
section {
  margin: 0 auto;
  
  text-align: center;
  margin-bottom: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}
section h2 {
  font-size: 2rem;
  margin: 20px;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  display: inline-block;
  padding-bottom: 5px;
}
/****************about us******************/
#about_section {
  margin-top: 40px;
  width: 100%;
}

#about_content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

#about_content p {
  width: 50%;
  text-align: justify;
  font-size: 1.1em;
}

#about_content img {
  width: 30%;
  height: auto;
  animation: floatUpDown 2s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0); /* Start and end at original position */
  }
  50% {
    transform: translateY(-20px); /* Move up by 20px */
  }
}

/* Responsive Styles */
@media (max-width: 850px) {
  #about_content {
    flex-direction: column;
    align-items: center;
  }

  #about_content img {
    width: 80%;
    margin-bottom: 20px;
  }

  #about_content p {
    width: 90%;
    font-size: 1em; /* Adjust font size for smaller screens */
  }section h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }#home_section {
    
    border-radius: 0 0 0 0;
  }
}

/********************certificate_check_section******************/
#certificate_check_section{
  position: relative;
/*   background-color: #d4f0ff;
 */  
 background-image: linear-gradient(
    0deg,
    hsl(201deg 100% 92%) 0%,
    hsl(201deg 100% 92%) 10%,
    hsl(201deg 100% 92%) 18%,
    hsl(201deg 100% 93%) 26%,
    hsl(201deg 100% 93%) 33%,
    hsl(201deg 100% 93%) 40%,
    hsl(201deg 99% 94%) 46%,
    hsl(201deg 99% 94%) 52%,
    hsl(200deg 99% 94%) 58%,
    hsl(200deg 99% 95%) 63%,
    hsl(200deg 99% 95%) 69%,
    hsl(200deg 99% 95%) 74%,
    hsl(200deg 99% 96%) 79%,
    hsl(200deg 99% 96%) 84%,
    hsl(200deg 100% 96%) 89%,
    hsl(200deg 100% 97%) 95%,
    hsl(200deg 100% 97%) 100%
  );
 padding: 10px 0;
}

#cert_certificate {
  align-items: center;
  display: flex;
  
  justify-content: space-around;
}
#cert_certificate input {
  
  color: #000000;
  padding: .15rem .5rem;
  min-height: 40px;
  border-radius: 4px;
  outline: none;
  border: none;
  line-height: 1.15;
  box-shadow: 0px 10px 20px -18px;
}

#cert_certificate input:focus {
  border-bottom: 2px solid #5b5fc7;
  border-radius: 4px 4px 2px 2px;
}

#cert_certificate input:hover {
  outline: 1px solid lightgrey;
}
#cert_certificate form input {
  width: 100%;
  margin: 10px;
  
}
#cert_certificate form label {
  width: 100%;
}
#cert_certificate form {
  width: 40%;
}
#cert_certificate img {
  width: 40%;
  

}
#cert_certificate form button{
  padding: 1em 2em;
 background: none;
 border: 2px solid #fff;
 font-size: 15px;
 color: #131313;
 cursor: pointer;
 position: relative;
 overflow: hidden;
 transition: all 0.3s;
 border-radius: 12px;
 background-color: #489fec;
 font-weight: bolder;
 box-shadow: 0 2px 0 2px #000;
}
#cert_certificate form button:before{
  
 content: "";
 position: absolute;
 width: 100px;
 height: 120%;
 background-color: #79e5f5;
 top: 50%;
 transform: skewX(30deg) translate(-150%, -50%);
 transition: all 0.5s;
}
#cert_certificate form button:hover {
  background-color: #4cc9f0;
  color: #fff;
  box-shadow: 0 2px 0 2px #0d3b66;
 }
#cert_certificate form button:hover::before {
  transform: skewX(30deg) translate(150%, -50%);
  transition-delay: 0.1s;
 }
#cert_certificate form button:active {
  transform: scale(0.9);
 }

 /*  @media (max-width: 1000px) {
  #cert_certificate img {
    display: none;
  }
  #cert_certificate form {
    text-align: center;
    width: 90%;
  }#cert_certificate form .form-group{
    text-align: center;
  }

  #cert_certificate{
    display: block;
  }#cert_certificate form label {
    margin: 0 auto;
    width: auto;
    text-align: center;
  }
  #certificate-form{
text-align: center;  }
} */
/* CSS */
@media (max-width: 900px) {
  #cert_certificate img {
    display: none; /* Hide the image */
  }
  #cert_certificate {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #cert_certificate form {
    text-align: center;
    width: 80%;
  }
  #cert_certificate form .form-group {
    text-align: center;
  }
  #cert_certificate form label {
    margin: 0 auto;
    width: 80%;
    text-align: center;
  }#cert_certificate form input {
    margin: 10px 0;
    width: 80%; /* Adjust width for better centering */
    max-width: 400px; /* Optional: Limit max width */
    text-align: center; /* Center text inside the input */
  }
  #certificate-form {
    text-align: center;
  }.close-btn {
    top: 50px;
    right: 20px;
    }.close-btn i {
      font-size: 30px; /* Font Awesome icon size */
    }

}

@media (max-width: 1000px) {
  #cert_certificate img {
    display: none; /* Hide the image */
  }
  #cert_certificate {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #cert_certificate form {
    text-align: center;
    width: 59%;
  }
  #cert_certificate form .form-group {
    text-align: center;
  }
  #cert_certificate form label {
    margin: 0 auto;
    width: 80%;
    text-align: center;
  }#cert_certificate form input {
    margin: 10px 0;
    width: 80%; /* Adjust width for better centering */
    max-width: 400px; /* Optional: Limit max width */
    text-align: center; /* Center text inside the input */
  }
  #certificate-form {
    text-align: center;
  }.close-btn {
    top: 50px;
    right: 20px;
    }.close-btn i {
      font-size: 30px; /* Font Awesome icon size */
    }

}


/* Certificate Overlay */
.certificate-overlay {
  display: none; /* Hidden initially */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it appears on top of other content */
  animation: fadeIn 0.5s ease-in-out;
}

/* Certificate Container */
.certificate-container {
  position: relative;
  max-width: 90%; /* Adjust max-width to make it more responsive */
  max-height: 90%; /* Adjust max-height to avoid overflowing */
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Certificate Image */
#certificate-image {
  width: 100%;
  pointer-events: none;
  height: auto;
  max-width: 100%; /* Make the certificate image responsive */
  max-height: 80vh; /* Limit the height of the image to 80% of the viewport height */
  object-fit: contain; /* Ensure the full certificate is visible without being cut off */
  animation: slideUp 0.5s ease-in-out;
}

/* Watermark */
.watermark {
  position: absolute;
  top: 124%;
  text-align: center;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  width: 100%;
  opacity: 0.5;
  font-weight: bold;
  color: rgba(3, 0, 163, 0.2); /* Semi-transparent red */
  pointer-events: none; /* Prevent interaction with watermark */
  user-select: none;
  z-index: 10; /* Ensure it appears on top of the certificate */
}

/* Close Button (X) */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10; /* Ensure it stays on top */
}

.close-btn i {
  font-size: 24px; /* Font Awesome icon size */
}

.close-btn:hover {
  color: red;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
      transform: translateY(20px);
  }
  to {
      transform: translateY(0);
  }
}
/**************************acc************************/
.accreditation-section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}
.accreditation-section img {
  width: 35%;
  height: auto;
  border-radius: 8px;
  box-shadow: 10px 10px 20px -18px;

}
.accreditation-section .content {
  width: 55%;
}

.accreditation-section .content p {
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.6;
  color: #000000;
}





/***********************************/
:root {
  --primary-color: #0085de;
  --secondary-color: #2ecc71;
  --dark-bg: #000000;
  --light-bg: #ecf0f1;
  --text-color: #333;
}





.footer {
  display: flex;
  background-image: linear-gradient(
    0deg,
    hsl(0deg 0% 0%) 0%,
    hsl(209deg 100% 9%) 10%,
    hsl(205deg 100% 11%) 18%,
    hsl(201deg 100% 14%) 26%,
    hsl(199deg 100% 16%) 33%,
    hsl(197deg 100% 19%) 40%,
    hsl(195deg 100% 21%) 46%,
    hsl(198deg 65% 29%) 52%,
    hsl(199deg 51% 36%) 58%,
    hsl(200deg 43% 41%) 63%,
    hsl(200deg 37% 47%) 69%,
    hsl(201deg 37% 53%) 74%,
    hsl(201deg 42% 59%) 79%,
    hsl(201deg 49% 64%) 84%,
    hsl(201deg 59% 70%) 89%,
    hsl(202deg 75% 76%) 95%,
    hsl(202deg 100% 82%) 100%
  );
  color: white;
  padding: 50px 20px;
  gap: 40px;
}

.contact-form,
.contact-info {
  flex: 1;
  padding: 0 20px;
}

.footer-section-title {
  position: relative;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 10px;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 90%;
  padding: 12px 15px;
  border: 2px solid transparent;
  border-bottom: 2px solid var(--light-bg);
  background-color: rgba(0, 0, 0, 0.244);
  color: white;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.609);
}

.form-group textarea {
  min-height: 100px;
  max-height: 100px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-details {
  margin-bottom: 25px;
}

.contact-details p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-details i {
  margin-right: 15px;
  color: white;
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #000;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer {
      flex-direction: column;
      gap: 30px;
  }

  .contact-form,
  .contact-info {
      padding: 0 10px;
  }
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error textarea {
  border-bottom-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  position: absolute;
  bottom: -20px;
  left: 0;
}