html {
  scroll-padding-top: 70px;
}

body {
  font-family: "Lexend", sans-serif;
}

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  margin: 0 10px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.hover-underline::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #000000;
  transition: width 0.3s;
}

.hover-underline:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar-nav .nav-link {
    margin: 5px 0;
    text-align: center; 
  }

  footer {
    font-size: 0.8rem;
  }
}

header ul li a:hover {
  text-decoration: underline;
}

#about img {
  transition: transform 0.3s ease-in-out;
}

#about img:hover {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  text-align: center;
}

.card-title {
  margin-bottom: 10px;
}

.card-text {
  margin-top: 10px;
  flex-grow: 1;
}

.section-title {
  position: relative;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6dbe00;
  margin-bottom: 30px;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #6dbe00;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

footer {
  background: #000000;
  padding: 20px 0;
}

footer p {
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  footer {
    font-size: 0.8rem;
    text-align: center;
  }

  .card-body {
    text-align: center;
  }

  .section-title {
    text-align: center;
  }

  .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .col-md-4 {
    width: 100%;
    margin-bottom: 20px;
  }

  .col-md-6 {
    text-align: center;
  }
  
  .card-img-top {
    object-fit: contain;
    height: 250px;
  }

  #hero h1,
  #hero p {
    text-align: center;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-title {
  animation: fadeInUp 1s ease-out;
}
