/* footer.css - Complete Footer Styling with Dark Theme */

/* ===== CSS Variables ===== */
:root {
  --primary-purple: #7825CF;
  --light-purple: #a37ad9;
  --accent-cyan: #3EEBFF;
  --bg-black: #0a0a0a;
  --bg-darker: #050505;
  --white: #ffffff;
  --text-light: #b0b0b0;
  --text-dark: #e5e5e5;
}

/* ===== Footer Main Section ===== */
.site-footer {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
  color: var(--white);
  padding: 4rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Decorative Background Elements */
.site-footer::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: floatCircle 8s ease-in-out infinite;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(62, 235, 255, 0.05);
  border-radius: 50%;
  animation: floatCircle 10s ease-in-out infinite reverse;
}

@keyframes floatCircle {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  50% { 
    transform: translate(-30px, 30px) scale(1.1); 
  }
}

/* ===== Footer Container Grid ===== */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* ===== Footer Brand Section ===== */
.footer-brand {
  animation: fadeInUp 0.8s ease-out;
}

.brand-logo {
  width: 150px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.brand-logo:hover {
  transform: scale(1.08);
}

.footer-brand .tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

/* ===== Footer Links Section ===== */
.footer-links,
.footer-contact,
.footer-socials {
  animation: fadeInUp 0.8s ease-out;
}

.footer-links {
  animation-delay: 0.1s;
}

.footer-contact {
  animation-delay: 0.2s;
}

.footer-socials {
  animation-delay: 0.3s;
}

.footer-links h3,
.footer-contact h3,
.footer-socials h3 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-socials h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  left: -15px;
  opacity: 1;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--bg-darker);
  background: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-contact li i {
  margin-right: 0.5rem;
  color: var(--accent-cyan);
  width: 16px;
  display: inline-block;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Social Icons ===== */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scale(0);
  transition: transform 0.4s ease;
  border-radius: 50%;
  z-index: -1;
}

.social-icons a:hover::before {
  transform: scale(1);
}

.social-icons a:hover {
  color: var(--primary-purple);
  transform: translateY(-5px) rotate(360deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 16px rgba(62, 235, 255, 0.5);
}

/* ===== Footer Bottom ===== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.footer-bottom .heart {
  color: #ff0000;
  animation: heartbeat 1.5s ease infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  border-radius: 50%;
  background: #25D366;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.whatsapp-float:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 8px 16px rgba(37, 211, 102, 0.6));
}

.whatsapp-float.pulse {
  animation: whatsappPulse 1s ease;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 16px rgba(120, 37, 207, 0.5);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  color: var(--white);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.scroll-top:hover {
  transform: translateY(-8px) scale(1.15);
  background: var(--white);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 20px rgba(62, 235, 255, 0.6);
  color: var(--primary-purple);
}

.scroll-top:hover svg {
  animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== Fade In Up Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
  }

  .brand-logo {
    width: 130px;
    margin: 0 auto 1rem;
    display: block;
  }

  .footer-links h3::after,
  .footer-contact h3::after,
  .footer-socials h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a::before {
    display: none;
  }

  .social-icons {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 95px;
    left: 20px;
    width: 55px;
    height: 55px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2.5rem 1rem 1rem;
  }

  .footer-container {
    gap: 1.5rem;
  }

  .brand-logo {
    width: 120px;
  }

  .footer-brand .tagline {
    font-size: 0.9rem;
  }

  .footer-links h3,
  .footer-contact h3,
  .footer-socials h3 {
    font-size: 1rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }

  .whatsapp-float {
    bottom: 95px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .scroll-top {
    width: 42px;
    height: 42px;
  }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
  .site-footer {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-black) 100%);
    border-top: 1px solid rgba(120, 37, 207, 0.3);
  }

  .site-footer::before,
  .site-footer::after {
    opacity: 0.3;
  }
}