/* Footer */
.footer {
  background: black;
  color: #ffffff;
  padding: 80px 0 30px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    #1f2937,
    #00abf0
  ); /* blue-purple line */
}

/* Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

/* Column Titles */
.footer-col h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, black, #00abf0);
  border-radius: 3px;
}
.footer-col {
  padding: 20px;
}
/* About Text */
.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-size: 16px;
  margin: 20px 0; /* Top and bottom spacing */
  line-height: 1.6; /* Optional: improves readability */
}

/* Social Icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-social a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none; /* Removes underline */
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: linear-gradient(to right, black, #00abf0);
  transform: translateY(-5px);
}
.footer-social a i {
  font-size: 25px;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, black, #00abf0);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #00abf0;
  transform: translateX(5px);
}

.footer-links a:hover::after {
  width: 20px;
}

/* Bottom Text */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom p {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom p {
    font-size: 14px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(to right, #6c5ce7, #00abf0);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

/* Hover effect */
.back-to-top:hover {
  background: linear-gradient(to right, black, #00abf0);
  transform: translateY(-4px);
}

/* Show the button when needed */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Smooth icon animation */
.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p {
  font-size: 16px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
