/* ========================================
   FOOTER - DARK PREMIUM DESIGN
   ======================================== */

#footer {
  position: relative;
  background: linear-gradient(135deg, #0F0F1E 0%, #1A1A2E 50%, #1E2A4A 100%);
  padding: 100px 6% 40px;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 63, 168, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(75, 200, 192, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 118, 42, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

#footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 63, 168, 0.5) 20%, rgba(75, 200, 192, 0.5) 50%, rgba(244, 118, 42, 0.5) 80%, transparent 100%);
  box-shadow: 0 0 20px rgba(75, 200, 192, 0.3);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Footer Grid - 4 Columns */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
}

/* Footer Column */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* Brand Column */
.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 43px;
  margin-bottom: 16px;
  object-fit: contain;
  align-self: flex-start;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  text-align: left;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 63, 168, 0.4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  border-color: rgba(75, 200, 192, 0.6);
  background: linear-gradient(135deg, rgba(75, 200, 192, 0.2), rgba(139, 63, 168, 0.2));
  color: #4BC8C0;
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 24px rgba(75, 200, 192, 0.4), 0 0 20px rgba(75, 200, 192, 0.25);
}

/* Column Title */
.footer-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #4BC8C0, #8b3fa8);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(75, 200, 192, 0.2);
}

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

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

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 2.4;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #4BC8C0, transparent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(8px);
}

.footer-links a:hover::before {
  width: 8px;
}

/* Bottom Bar - Fancy Style */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 63, 168, 0.5) 25%, rgba(75, 200, 192, 0.5) 50%, rgba(244, 118, 42, 0.5) 75%, transparent 100%);
  box-shadow: 0 0 15px rgba(75, 200, 192, 0.3);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-credit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-credit a {
  color: #4BC8C0;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

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

.footer-credit a:hover {
  color: #FFFFFF;
}

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

/* Back to Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4762A, #F06420);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(244, 118, 42, 0.3);
}

.btn-back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  transform: scale(1.12) translateY(0);
  box-shadow: 0 8px 24px rgba(244, 118, 42, 0.5);
}

.btn-back-to-top svg {
  color: #FFFFFF;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  #footer {
    padding: 60px 5% 32px;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }
  
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #footer {
    padding: 48px 5% 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-col:last-child {
    grid-column: 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 24px;
  }
  
  .btn-back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
  
  .btn-back-to-top svg {
    width: 18px;
    height: 18px;
  }
}
