/* ------------------------
   FOOTER BASE
------------------------- */
.footer {
  background: linear-gradient(135deg, #0b0f19, #111827);
  color: #f5f5f5;
  font-family: "Poppins", sans-serif;
  padding: 3rem 1.5rem 1rem;
  border-top: 3px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------------
   MAIN CONTENT GRID
------------------------- */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0ea5e9;
}

/* ------------------------
   CONTACT
------------------------- */
.contact-us-header {
  margin-bottom: 1rem !important;
}

.contact-us-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #0ea5e9;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-us-link:hover {
  color: #38bdf8;
  transform: translateY(-1px);
}

.contact-logo {
  height: 32px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contact-us-link:hover .contact-logo {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-info p {
  margin: 0.3rem 0;
  line-height: 1.5;
}

.contact-link {
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.3s;
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ------------------------
   SOCIAL LINKS
------------------------- */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.social-links a[aria-label*="LinkedIn"]:hover { color: #0a66c2; background: #fff; }
.social-links a[aria-label*="Twitter"]:hover { color: #1da1f2; background: #fff; }
.social-links a[aria-label*="Facebook"]:hover { color: #1877f2; background: #fff; }
.social-links a[aria-label*="Instagram"]:hover { 
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); 
  color: #fff;
}

/* ------------------------
   CERTIFICATIONS (with logos)
------------------------- */
.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
  align-items: center;
}

.certification-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.certification-logo:hover {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.2);
}

/* ------------------------
   LEGAL
------------------------- */
.footer-legal {
  text-align: center;
  margin: 1rem 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.legal-links {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
}

.legal-link {
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.3s;
}

.legal-link:hover {
  color: #fff;
  text-decoration: underline;
}

.legal-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ------------------------
   FOOTER BOTTOM
------------------------- */
.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ------------------------
   BACK TO TOP BUTTON
------------------------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 27px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 
    0 8px 32px rgba(30, 64, 175, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10002;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  backdrop-filter: blur(10px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 40px rgba(30, 64, 175, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.back-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

/* Dark theme styles */
html.dark .back-to-top {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: 
    0 8px 32px rgba(30, 64, 175, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

html.dark .back-to-top:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 
    0 12px 40px rgba(30, 64, 175, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

html.dark .back-to-top i {
  color: white;
}

html.dark .back-to-top:hover i {
  color: #e2e8f0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    bottom: 90px;
    right: 27.5px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    bottom: 85px;
    right: 21px;
  }
}

/* ------------------------
   WHATSAPP FLOATING BUTTON - CLEAN VERSION
------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 
    0 4px 20px rgba(37, 211, 102, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
}


.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 
    0 8px 30px rgba(37, 211, 102, 0.5),
    0 4px 15px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.whatsapp-float:active {
  transform: scale(1.05);
  transition: all 0.1s ease;
}

.whatsapp-float i {
  color: white !important;
  transition: all 0.3s ease;
}

.whatsapp-float:hover i {
  transform: scale(1.1);
}


/* Dark mode support */
html.dark .whatsapp-float {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 
    0 4px 20px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark .whatsapp-float:hover {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 
    0 8px 30px rgba(37, 211, 102, 0.6),
    0 4px 15px rgba(0, 0, 0, 0.3);
}

html.dark .whatsapp-float i {
  color: white !important;
}

html.dark .whatsapp-float:hover i {
  color: white !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 65px;
    height: 65px;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
    font-size: 1.8rem;
  }
}

/* ------------------------
   FOOTER LOGO SECTION - CENTERED
------------------------- */
.footer-logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  padding: 0;
  width: 100%;
}

.footer-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.footer-logo {
  height: 100px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1) saturate(1.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: logoFloat 6s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.1),
      0 2px 8px rgba(0, 0, 0, 0.05);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.15) contrast(1.15) saturate(1.2);
    box-shadow: 
      0 8px 30px rgba(0, 0, 0, 0.15),
      0 4px 15px rgba(0, 0, 0, 0.08);
  }
}

.footer-logo-container:hover .footer-logo {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.2) contrast(1.2) saturate(1.3);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation-play-state: paused;
}

/* Subtle glow effect on hover */
.footer-logo-container:hover .footer-logo::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 20px;
  z-index: -1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* ------------------------
   POWERED BY CTRLWEB
------------------------- */
.footer-powered {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #f5f5f5;
  opacity: 0.85;
}

.footer-powered a.ctrlweb-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  display: inline-block;
  animation: glowPulseText 2.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.footer-powered a.ctrlweb-link:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.9),
               0 0 24px rgba(56, 189, 248, 0.7),
               0 0 36px rgba(56, 189, 248, 0.6);
  transform: scale(1.05);
}

/* Glow animation */
@keyframes glowPulseText {
  0%, 100% {
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.6),
                 0 0 12px rgba(56, 189, 248, 0.4);
  }
  50% {
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.9),
                 0 0 24px rgba(56, 189, 248, 0.7),
                 0 0 36px rgba(56, 189, 248, 0.5);
  }
}


/* ------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 768px) {
  .contact-us-link {
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  
  .contact-logo {
    height: 28px;
  }
  
  .social-links {
    justify-content: center;
  }
  .certifications {
    justify-content: center;
  }
  
  .footer-logo-section {
    margin: 1.5rem 0;
  }
  
  .footer-logo {
    height: 120px;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .contact-us-link {
    font-size: 1rem;
    gap: 0.4rem;
  }
  
  .contact-logo {
    height: 24px;
  }
  
  .footer-logo-section {
    margin: 1.5rem 0;
  }
  
  .footer-logo {
    height: 140px;
    max-width: 180px;
  }
}

@media (max-width: 360px) {
  .contact-us-link {
    font-size: 0.95rem;
    gap: 0.3rem;
  }
  
  .contact-logo {
    height: 22px;
  }
  
  .footer-logo-section {
    margin: 1.5rem 0;
  }
  
  .footer-logo {
    height: 120px;
    max-width: 160px;
  }
}
