/* Footer Styles */
.site-footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #ffffff;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

/* Decorative gradient orbs */
.site-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  position: relative;
  z-index: 1;
}

/* Main Footer Grid */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
}

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

.footer-logo {
  margin-bottom: 20px;
  line-height: 1;
}

.footer-logo img {
  height: 65px;
  width: auto;
  max-width: 250px;
  display: block;
}

.footer-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer Columns */
.footer-column {
  min-width: 180px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.3s ease;
}

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

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

/* Contact Info */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: #6366f1;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

/* Newsletter Section */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  margin: 50px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.newsletter-content p {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 450px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.newsletter-form button {
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

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

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  
  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-column {
    text-align: left;
  }
  
  .footer-newsletter {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    max-width: 100%;
    width: 100%;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 0;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    grid-column: span 1;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
  
  .footer-contact-item {
    justify-content: center;
  }
  
  .footer-newsletter {
    padding: 30px 20px;
    margin: 40px 0;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .site-footer {
    padding: 40px 0 0;
  }
  
  .footer-container {
    padding: 0 15px;
  }
  
  .footer-logo {
    font-size: 1.75rem;
  }
  
  .footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
  }
  
  .footer-social {
    gap: 10px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  
  .footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .footer-contact-item {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-contact-item svg {
    margin-top: 0;
  }
  
  .newsletter-content h3 {
    font-size: 1.25rem;
  }
  
  .newsletter-content p {
    font-size: 0.85rem;
  }
  
  .newsletter-form input {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .newsletter-form button {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    padding: 20px 0;
    font-size: 0.75rem;
  }
  
  .footer-legal {
    gap: 15px;
  }
}
