/* =========================================
SECTION: GLOBAL FOOTER
DESCRIPTION: Main footer layout and components
========================================= */

/* ========================================
   LEASEKEY FOOTER STYLES
   Theme Colors: #0091ff (Blue), #ff006e (Pink)
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #ffffff;
}

/* Demo Content */
.demo-content {
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0091ff 0%, #ff006e 100%);
  color: white;
}

.demo-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.demo-content p {
  font-size: 1.2rem;
}

/* ========================================
   FOOTER MAIN SECTION
   ======================================== */
.footer {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 4rem 30px;
  overflow: hidden;
  color: #ffffff;
}

/* Animated Background Orbs */
.footer-bg-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatOrb 20s ease-in-out infinite;
}

.footer-orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.footer-orb-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #ff006e, #0091ff);
  bottom: -150px;
  right: -100px;
  animation-delay: 5s;
}

.footer-orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #0091ff, #00f2fe);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Footer Container */
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

/* Footer Columns - Glassmorphism Cards */
.footer-col {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  opacity: 0;
  transform: translateY(30px);
}

.footer-col.footer-animate {
  animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-col:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-8px);
  box-shadow: 0 15px 45px 0 rgba(0, 145, 255, 0.3);
  border-color: rgba(0, 145, 255, 0.3);
}

/* Column Headings */
.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 1px;
  color: #ffffff;
  position: relative;
  padding-bottom: 15px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #0091ff, #ff006e);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-col:hover h3::after {
  width: 80px;
}

/* Footer Description */
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

/* Info Boxes */
.footer-info-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.footer-info-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 145, 255, 0.3);
  transform: translateX(8px);
}

.info-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-info-box:hover .info-icon {
  transform: rotate(360deg) scale(1.1);
}

.info-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-text strong {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

.info-text span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Footer Links */
.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  position: relative;
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 10px;
}

.footer-links a:hover::before {
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(0, 145, 255, 0.8);
}

/* Social Icons */
.social-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 25px;
}

.social-icon {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  border-radius: 12px;
}

.social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.social-icon:hover svg {
  fill: white;
  transform: scale(1.2);
}

.social-icon:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 145, 255, 0.5);
  box-shadow: 0 10px 25px rgba(0, 145, 255, 0.3);
}

/* ========================================
   FOOTER BOTTOM BAR
   ======================================== */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 10;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.footer-bottom-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0091ff, #ff006e);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

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

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 145, 255, 0.2);
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0091ff, #ff006e);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
  position: relative;
  z-index: 1;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 145, 255, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer {
    padding: 60px 2rem 25px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer {
    padding: 50px 1.5rem 20px;
  }

  .footer-col {
    padding: 25px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 15px;
  }

  .demo-content h1 {
    font-size: 2rem;
  }

  .demo-content p {
    font-size: 1rem;
  }

  .social-icons {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   SHINE EFFECT
   ======================================== */
.footer-col::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 4s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* END: GLOBAL FOOTER */
