/* ===== FOOTER MODERN STYLE ===== */
footer {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
}

/* Logo & Description */
.footer-brand {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-logo i {
  font-size: 2rem;
  margin-right: 12px;
  color: #60a5fa;
}

.footer-logo:hover {
  transform: translateX(5px);
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 300px;
}

/* Newsletter */
.newsletter {
  margin: 25px 0;
}

.newsletter h5 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 2px #3b82f6;
}

.newsletter-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* Links Section */
.footer-links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #60a5fa;
  border-radius: 3px;
}

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

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

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

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #60a5fa;
  transition: width 0.3s ease;
}

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

.footer-links a:hover::before {
  width: 100%;
}

/* Contact Info */
.contact-info-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item-footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  font-size: 1.1rem;
  color: #60a5fa;
  margin-top: 3px;
}

.contact-text-footer {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
}

.contact-text-footer a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-text-footer a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #3b82f6;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Copyright */
.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Back to Top Button */
.back-to-top {
  position: absolute;
  top: -25px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.back-to-top:hover {
  background: #2563eb;
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
  footer {
    padding: 60px 0 25px;
  }

  .footer-links-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-about {
    max-width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    top: -20px;
    right: 20px;
  }
}