/* Modern Footer Styles */
.custom-footer {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 30px rgba(30, 58, 138, 0.3);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

/* Decorative pattern overlay */
.custom-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
  opacity: 0.4;
  pointer-events: none;
}

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

.footer-main {
  margin-bottom: 3rem;
}

.footer-brand {
  text-align: left;
}

.footer-brand h5 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.footer-description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 400px;
}

.footer-contact {
  text-align: right;
}

.footer-contact h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  color: rgba(255, 255, 255, 0.7);
  width: 20px;
  text-align: center;
  margin-right: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  color: white;
  transform: scale(1.1);
}

.contact-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-item a:hover {
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2.5rem 0 2rem;
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

.footer-links a:hover {
  color: white;
}

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

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-social a:active {
  transform: translateY(-1px);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.scroll-to-top.show {
  display: flex;
  animation: slideInUp 0.3s ease;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #1E40AF, #60A5FA);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Company stats in footer */
.footer-stats {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-stats .row {
  text-align: center;
}

.footer-stat-item {
  padding: 1rem;
}

.footer-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-contact {
    text-align: left;
    margin-top: 2rem;
  }
  
  .contact-item {
    justify-content: flex-start;
  }
  
  .footer-social {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .custom-footer {
    margin-top: 3rem;
    padding: 3rem 0 1.5rem;
  }

  .footer-main {
    margin-bottom: 2rem;
  }

  .footer-brand,
  .footer-contact {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-brand h5 {
    font-size: 1.8rem;
  }

  .footer-description {
    max-width: none;
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    order: -1;
  }

  .footer-divider {
    margin: 2rem 0 1.5rem;
  }

  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .footer-stats {
    margin: 1.5rem 0;
    padding: 1.5rem;
  }

  .footer-stat-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .custom-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-brand h5 {
    font-size: 1.6rem;
  }

  .contact-item {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .footer-stats {
    padding: 1rem;
  }

  .footer-stat-item {
    padding: 0.5rem;
  }

  .footer-stat-number {
    font-size: 1.5rem;
  }

  .footer-stat-label {
    font-size: 0.8rem;
  }
}