/* ============================================
   CLASS-MARKET - FOOTER CSS
   Footer Styling & Animations
============================================ */

.footer {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
  margin-top: 100px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

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

/* ============================================
   FOOTER CONTENT
============================================ */

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 60px;
  animation: fadeInUp 0.9s ease-out;
}

.footer-section {
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0s; }
.footer-section:nth-child(2) { animation-delay: 0.1s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }

.footer-section h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  animation: slideInRight 0.7s ease-out;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  border-radius: 2px;
  animation: expandWidth 0.6s ease-out 0.3s forwards;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 100%; }
}

.footer-section p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-size: 0.95rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.footer-section p br {
  display: none;
}

/* ============================================
   FOOTER LINKS
============================================ */

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 12px;
  animation: slideInRight 0.6s ease-out;
  animation-fill-mode: both;
}

.footer-section li:nth-child(1) { animation-delay: 0.2s; }
.footer-section li:nth-child(2) { animation-delay: 0.3s; }
.footer-section li:nth-child(3) { animation-delay: 0.4s; }

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section li a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #0ea5e9;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.footer-section a:hover {
  color: #0ea5e9;
  transform: translateX(8px);
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.footer-section li a:hover::before {
  transform: scale(1);
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, transparent);
  transition: width 0.3s ease;
}

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

/* ============================================
   FOOTER SOCIALS
============================================ */

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.footer-socials a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.footer-socials a:hover::before {
  left: 100%;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.4));
  border-color: rgba(59, 130, 246, 0.6);
  color: white;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.footer-socials a:hover svg {
  transform: rotate(15deg) scale(1.15);
}

/* ============================================
   FOOTER BOTTOM
============================================ */

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  text-align: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  transition: all 0.3s ease;
}

.footer-bottom p:hover {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.footer-bottom #currentYear {
  color: #0ea5e9;
  font-weight: 700;
}

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

@media (max-width: 1024px) {
  .footer {
    padding: 60px 0 25px;
  }

  .footer-content {
    gap: 40px;
  }

  .footer-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0 20px;
    margin-top: 60px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-section li {
    margin-bottom: 10px;
  }

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

  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  .footer-socials svg {
    width: 20px;
    height: 20px;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 40px 0 15px;
    margin-top: 50px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-section p {
    font-size: 0.85rem;
  }

  .footer-socials {
    gap: 12px;
  }

  .footer-socials a {
    width: 40px;
    height: 40px;
  }

  .footer-socials svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 420px) {
  .footer {
    padding: 30px 0 12px;
    margin-top: 40px;
  }

  .container {
    padding: 0 12px;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 0.8rem;
  }

  .footer-section li {
    margin-bottom: 8px;
  }

  .footer-section a {
    font-size: 0.85rem;
  }

  .footer-socials {
    gap: 10px;
  }

  .footer-socials a {
    width: 36px;
    height: 36px;
  }

  .footer-socials a:hover {
    transform: translateY(-4px) scale(1.08);
  }

  .footer-socials svg {
    width: 16px;
    height: 16px;
  }

  .footer-bottom {
    padding-top: 15px;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
}

/* ============================================
   ANIMATIONS
============================================ */

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
