/* ===== Footer Base Styles ===== */
.main-footer {
  background: #1a1a2e;
  color: #e6e6e6;
  padding: 3rem 0 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

/* ===== Footer Sections ===== */
.footer-about {
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  font-size: 2rem;
  margin-right: 0.5rem;
  color: #39e1e3;
}

.footer-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: #b8b8b8;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a42;
  color: #39e1e3;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: #39e1e3;
  color: white;
  transform: translateY(-3px);
}

/* Footer Links Section */
.footer-links {
  margin-bottom: 2rem;
}

.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #39e1e3;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #b8b8b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.footer-links a i {
  margin-right: 0.8rem;
  color: #39e1e3;
  font-size: 0.8rem;
  width: 15px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  color: #888;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid #2a2a42;
}

.footer-bottom p {
  margin: 0;
}

/* Back to Top Button */
.back-to-top {
  position: absolute;
  right: 1.5rem;
  top: -20px;
  width: 40px;
  height: 40px;
  background: #39e1e3;
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  background: white;
}

/* Responsive Adjustments */
@media (min-width: 993px) {
  .footer-container {
    padding: 0 3rem;
  }
  
  .back-to-top {
    right: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    right: 1.5rem;
    top: -15px;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 1rem;
  }
}