/*
```````````````````````````````````````````````````````````````````
GENERAL STYLES

``````````````````````````````````````````````````````````````````
*/
html {
  width: 100%;
  height: 100%;
  color: rgb(19, 18, 18);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Merriweather", serif;
  line-height: 1.6;
  color: #333;
  font-weight: 300;
}


/* 
````````````````````````````````````````````````````````````````````````

NAVBAR/ HEADER SECTION

````````````````````````````````````````````````````````````````````````
*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a0a0a;
  position: relative;
  width: 100%;
  top: 0;
  margin: 0 auto;
  z-index: 1000; /* Ensure the header is on top */
}

header img {
  height: 90px;
  border-radius: 50px;
  margin-left: 30px;
}


.nav-container ul {
  list-style: none;
  display: flex;
  z-index: 1003; /* Ensure the menu appears above the content */
  gap: 20px;
  padding: 30px;
  margin-right: 40px;
}

.nav-container a:hover {
  color: indianred;
}

.nav-container a {
  text-decoration: none;
  color: #fefafa;
  font-weight: bold;
  font-size: 18px;
  padding: 10px;
}

.active {
  border-bottom: 1px solid indianred;
}

.hamburger-menu {
  display: none;
  font-size: 29px;
  cursor: pointer;
  margin-right: 20px;
  color: whitesmoke;
  z-index: 1002; /* Highest z-index to ensure it's always on top */
}

#container-bg {
  background: url("https://cdn.pixabay.com/photo/2023/10/13/14/39/book-8312948_1280.jpg")
    no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  height: 100%;
  width: 100%;
}

.hero-section {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.hero-content {
  margin-top: 200px;
  animation: fadeIn 2s ease-in-out;
}

.hero-content h1 {
  font-size: 40px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 18px;
  margin: 20px;
  font-style: italic;
  font-weight: bolder;
}

.btn-down {
  margin: 0 auto;
  text-align: center;
}

.btn-down .fa-solid {
  color: white;
  font-size: 40px;
  position: absolute;
  bottom: 0px;
  transform: translate(-50%, -50%);
}

.cta-button {
  padding: 10px 20px;
  background: #000;
  color: #eaeaea;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.cta-button:hover {
  background: #555;
}

/* Button Down Arrow */
.btn-down .fa-solid {
  color: #fff;
  font-size: 36px;
  animation: bounce 2s infinite;
}

/* 
``````````````````````````````````````````````````````````````````````

ABOUT SECTION

``````````````````````````````````````````````````````````````````````
*/
.about-section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f9f9f9;
  z-index: 1; /* Low z-index to keep it behind the menu */
  animation: fadeIn 1.5s ease-in-out; /* Animation applied to the section */
}

.about-section h2 {
  font-size: 25px;
  margin-bottom: 10px;
  color: #010101;
}

.about-section hr {
  width: 30px;
  padding: 0;
  margin: auto;
  border: 2px solid #ff9800;
}

.about-content p {
  font-size: 16px;
  color: #000000;
  margin: 20px 0;
  padding: 50px 0;
  line-height: 1.8;
  animation: slideUp 1s ease-out; /* Animation applied to paragraphs */
}

.about-list {
  margin-top: 20px;
  text-align: left;
  display: flex;
  justify-content: center;
}

.about-list p{
  font-size: 15px;
  margin: 0;
  color: #000000;
  line-height: 1.5;
  animation: slideUp 1s ease-out;
}

.about-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-list li {
  font-size: 18px;
  color: #000000;
  margin: 10px 0;
  display: flex;
  align-items: center;
  animation: slideIn 1s ease-out; /* Animation applied to list items */
}

.about-list i {
  color: #f90b13;
  margin-right: 10px;
}

/* Initial state of elements before animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.9s ease-out;
}

/* When element is in view, trigger the animation */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 
`````````````````````````````````````````````````````````````````````

SERVICE SECTION

``````````````````````````````````````````````````````````````````````
*/
.services-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f1f1f1;
  animation: fadeIn 1.5s ease-in-out;
  margin-bottom: 200px;
}

.services-section h2 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #333;
}

.services-section hr {
  width: 50px;
  margin: 10px auto;
  border: 2px solid #ff9800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-item {
  padding: 20px;
  background: #000000;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgb(7, 62, 73);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateX(-50px); /* Initially positioned to the left */
}

.service-item.show {
  opacity: 1;
  transform: translateX(0); /* Slide in from the left */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth transition */
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-item i {
  font-size: 40px;
  color: #ff9800;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fafafa;
}

.service-item p {
  font-size: 16px;
  color: #f6eeee;
  line-height: 1.6;
}


/* 
````````````````````````````````````````````````````````````````````

CONTACT SECTION

````````````````````````````````````````````````````````````````````
*/
.contact-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f4f4f4;
  animation: fadeIn 1.5s ease-in-out;
}

.contact-section h2 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #333;
}

.contact-section hr {
  width: 50px;
  margin: 10px auto;
  border: 2px solid #ff9800;
}

.contact-section p {
  margin-bottom: 20px;
  font-size: 18px;
  color: #555;
}

.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  animation: slideUp 1s ease-out;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  width: 90%;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff9800;
  outline: none;
}

.submit-btn {
  padding: 10px 20px;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #e68a00;
}

.contact-info {
  max-width: 300px;
  text-align: left;
  animation: slideIn 1s ease-out;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #333;
}

.contact-info p {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ff9800;
}


/* 
```````````````````````````````````````````````````````````````````
CERTIFICATION SECTION

``````````````````````````````````````````````````````````````````
*/

.cert-section {
  padding: 40px 20px;
  text-align: center;
  background-color: #f1f1f1;
}

.cert-section h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.cert-section hr {
  width: 50px;
  margin: 10px auto;
  border: 2px solid #ff9800;
}

.pdf-container {
  margin-top: 20px;
}

.download-link {
  margin-top: 15px;
}

.download-link a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  background-color: #ff9800;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
}

.download-link a:hover {
  background-color: #e68a00;
}

.download-link i {
  margin-right: 8px;
}


/* Arrow Up Button Styles */
#arrowUp {
  position: fixed;
  bottom: 20px;
  right: 20px;
 background-color: #000;
  color: white;
  padding: 15px;
 border-radius: 50%;
  cursor: pointer;
  
  display: none;
}
#arrowUp:hover {
  background-color: #e5e6e7;
  color: #416286;
}
.fa-circle-up {
  font-size: 35px;
}

/* 
````````````````````````````````````````````````````````````````````````

FOOTER SECTION 

```````````````````````````````````````````````````````````````````````

*/
.footer-section {
  background-color: #0a0a0a;
  color: #f4f4f4;
  padding: 40px 20px;
  text-align: left;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  height: 90px;
  border-radius: 50px;
  margin-left: 30px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #ddd;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #ff9800;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 5px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #ff9800;
}

.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer-contact h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #ff9800;
}

.footer-contact p {
  margin-bottom: 5px;
  font-size: 14px;
  color: #ddd;
}

.footer-contact a {
  color: #ff9800;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #e68a00;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 10px;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.footer-bottom a {
  color: #ff9800;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #e68a00;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .nav-container ul {
    display: none;
    flex-direction: column;
    position: absolute;
    width: 150px;
    text-align: center;
    top: 70px;
    right: 10px;
    background: #1e1d1d;
    padding: 10px;
    border-radius: 8px;
  }

  .nav-container ul.active {
    display: flex;
  }

  .hero-content {
    margin-top: 150px;
    animation: fadeIn 2s ease-in-out;
  }
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
