* {
  padding: 0;
  margin: 0;
}

/* Global */
.btn-custom-left-right {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: none;
  padding: 10px 20px;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-custom-left-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #218838;
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-custom-left-right:hover::before {
  left: 0;
}

.btn-custom-left-right:hover {
  color: #fff;
}

.title {
  position: relative;
  display: inline-block;
  font-size: 3rem;
  font-weight: bold;
  color: #198754;
  margin: 0 auto 40px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
}

.title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background-color: #28a745;
  border-radius: 2px;
}

/* Nav */
#navbar .nav-link {
  position: relative;
  color: #eee;
  transition: color 0.3s ease;
  margin: 0.5rem;
}

#navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #28a745;
  transition: width 0.3s ease;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
  color: #28a745;
}

#navbar .nav-link:hover::after,
#navbar .nav-link.active::after {
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../assets/images/bg.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About */
#about ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* services*/
#services h3 {
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}

#services h3:hover {
  color: #198754;
}

/* Footer */
footer {
  background: #212529;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
}

/* ================================================ */
body {
  background-color: #f9f5f0;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.upload-container {
  max-width: 500px;
  margin: 80px auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  flex: 1;
}

.upload-title {
  font-weight: 600;
  color: #198754;
  margin-bottom: 20px;
}

#preview {
  display: none;
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
}

.btn-upload {
  background-color: #198754;
  color: white;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
}

.btn-upload:hover {
  color: #fff;
  background-color: #1d6443;
  transform: scale(1.03);
}

.alert-success {
  margin-top: 20px;
  display: none;
}

.coins-box {
  background: #e8f3ea;
  padding: 10px;
  border-radius: 10px;
  color: #2f4f2f;
  font-weight: 600;
  margin-bottom: 15px;
}

.coins-animate {
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
footer {
  background: #212529;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/*-----------------------------------------*/
.link-item {
  position: relative;
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 5px;
}

.link-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 3px;
  background-color: #4caf50;
  transition: all 0.4s ease;
  transform: translateX(-50%);
  border-radius: 5px;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
}

.link-item:hover::after,
.link-item.active::after {
  width: 60%;
}

.nav-link:hover {
  color: #4caf50 !important;
}

.link-item.active {
  color: #4caf50 !important;
}