/*=============== LEGACY FOOTER CLASSES (for about.html compatibility) ===============*/

/* Legacy enhanced-footer class */
.enhanced-footer {
  background: linear-gradient(135deg, #0B1426 0%, #1A2847 100%);
  color: #e2e8f0;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.enhanced-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(39, 174, 96, 0.1) 0%, transparent 70%);
  z-index: 1;
}

/* Legacy footer-container class */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Legacy footer-content class */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Legacy footer-brand class */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Legacy footer-logo class */
.footer-logo {
  width: 180px;
  height: auto;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Legacy footer-description class */
.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 300px;
}

/* Legacy footer-social class */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Legacy social-link class */
.social-link {
  width: 45px;
  height: 45px;
  background: rgba(74, 144, 226, 0.2);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A90E2;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #4A90E2;
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Legacy footer-section class */
.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4A90E2;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  border-radius: 2px;
}

/* Legacy footer-links class */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1rem;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #4A90E2;
  padding-left: 1.5rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Legacy footer-contact class */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Legacy contact-item class */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.contact-item i {
  color: #27AE60;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Legacy footer-bottom class */
.footer-bottom {
  border-top: 1px solid rgba(74, 144, 226, 0.2);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* Legacy footer-copyright class */
.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Legacy footer-legal class */
.footer-legal {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-legal a:hover {
  color: #4A90E2;
}

.footer-legal a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -1.2rem;
  color: #4A90E2;
  opacity: 0.5;
}

/*=============== FOOTER STYLES ===============*/

/*=============== FOOTER ===============*/
.footer {
  background: linear-gradient(135deg, #0B1426 0%, #1A2847 100%);
  color: #e2e8f0;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(39, 174, 96, 0.1) 0%, transparent 70%);
  z-index: 1;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__logo {
  width: 180px;
  height: auto;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.footer__logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.footer__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social-link {
  width: 45px;
  height: 45px;
  background: rgba(74, 144, 226, 0.2);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A90E2;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer__social-link:hover {
  background: #4A90E2;
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.footer__section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4A90E2;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer__section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  border-radius: 2px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1rem;
}

.footer__links a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer__links a:hover {
  color: #4A90E2;
  padding-left: 1.5rem;
}

.footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer__contact-item i {
  color: #27AE60;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* ========== Footer Bottom ========== */
.footer__bottom {
  border-top: 1px solid rgba(74, 144, 226, 0.2);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer__copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

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

.footer__legal a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer__legal a:hover {
  color: #4A90E2;
}

.footer__legal a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -1.2rem;
  color: #4A90E2;
  opacity: 0.5;
}

/*=============== SCROLL TO TOP BUTTON ===============*/
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
}

.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 30px rgba(39, 174, 96, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/*=============== RESPONSIVE DESIGN FOR LEGACY CLASSES ===============*/
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .enhanced-footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 1rem;
  }
  
  .footer-logo {
    width: 150px;
  }
  
  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }
}

/*=============== RESPONSIVE DESIGN ===============*/
@media (max-width: 1024px) {
  .footer__content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer__container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer__social {
    justify-content: center;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer__legal {
    justify-content: center;
  }
  
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer__container {
    padding: 0 1rem;
  }
  
  .footer__logo {
    width: 150px;
  }
  
  .footer__social {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer__social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .footer__legal {
    flex-direction: column;
    gap: 1rem;
  }
}
