/* ------------------------------------
   Footer Section
   Complete CSS for actual footer HTML
   ------------------------------------ */

/* Main Footer Container */
.footer-section {
  background: var(--bg-primary, #0d1117);
  border-top: 1px solid var(--border-color, #30363d);
  padding: 60px 0 40px;
  margin-top: 80px;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg, 2rem);
}

/* Footer Top Section */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Footer Column Base Styles */
.footer-column {
  opacity: 1;
  animation: fadeInUp 0.8s ease;
}

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

/* Brand Column */
.footer-column.footer-brand {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-primary, #c9d1d9);
}

.footer-logo svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color, #58a6ff);
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #c9d1d9);
}

.footer-tagline {
  color: var(--text-secondary, #8b949e);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Footer Stats */
.footer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.footer-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-stats .stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color, #58a6ff);
}

.footer-stats .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted, #6e7681);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Column Headings */
.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #c9d1d9);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer-links a {
  color: var(--text-secondary, #8b949e);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary-color, #58a6ff);
  transform: translateX(4px);
}

/* Contact Column */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary, #8b949e);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-item:hover {
  color: var(--primary-color, #58a6ff);
  transform: translateX(4px);
}

.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-item:hover svg {
  opacity: 1;
}

/* Footer CTA Button */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1f6feb, #1861d1);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.footer-cta:hover {
  background: linear-gradient(135deg, #1861d1, #1451a7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 111, 235, 0.25);
  color: white !important;
}

.footer-cta span {
  color: white !important;
}

.footer-cta svg {
  fill: white !important;
}

/* Footer Middle - Tech Stack Section */
.footer-middle {
  padding: 24px 0;
  margin: 24px 0;
  border-top: 1px solid var(--border-color, #30363d);
  border-bottom: 1px solid var(--border-color, #30363d);
}

.tech-stack-section {
  text-align: center;
}

.tech-heading {
  font-size: 0.75rem;
  color: var(--text-muted, #6e7681);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: block;
}

.tech-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-item {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.7;
}

.tech-item svg {
  width: 20px;
  height: 20px;
}

.tech-item:hover {
  background: var(--primary-color, #58a6ff);
  border-color: var(--primary-color, #58a6ff);
  opacity: 1;
  transform: scale(1.15);
}

.tech-item:hover svg path {
  fill: white !important;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-color, #30363d);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary, #161b22);
  border: 1px solid var(--border-color, #30363d);
  border-radius: 50%;
  color: var(--text-secondary, #8b949e);
  transition: all 0.3s ease;
  position: relative;
}

.social-link:hover {
  background: var(--primary-color, #58a6ff);
  border-color: var(--primary-color, #58a6ff);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

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

/* Copyright */
.footer-copyright {
  color: var(--text-muted, #6e7681);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-copyright a {
  color: var(--text-muted, #6e7681);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: var(--primary-color, #58a6ff);
}

/* Footer Legal Section */
.footer-legal {
  color: var(--text-muted, #6e7681);
  font-size: 0.875rem;
  text-align: center;
}

.footer-legal p {
  margin-bottom: 0.5rem;
  color: var(--text-muted, #6e7681);
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--text-secondary, #8b949e);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
}

.legal-links a:hover {
  color: var(--primary-color, #58a6ff);
  text-decoration: underline;
}

.legal-links .separator {
  color: var(--text-muted, #6e7681);
  opacity: 0.5;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--primary-color, #3f51b5);
  color: white !important;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
  padding: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color-dark, #3949ab);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(63, 81, 181, 0.4);
  color: white !important;
}

.back-to-top svg {
  width: 24px !important;
  height: 24px !important;
  fill: white !important;
  display: inline-block !important;
  max-width: none !important;
  min-width: 24px !important;
}

.back-to-top svg path {
  fill: white !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-column.footer-brand {
    grid-column: span 3;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-column.footer-brand {
    grid-column: span 1;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

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

  .social-links {
    justify-content: center;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 8px;
  }

  .back-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 20px !important;
    height: 20px !important;
    fill: white !important;
    display: inline-block !important;
    max-width: none !important;
    min-width: 20px !important;
  }
  
  .back-to-top svg path {
    fill: white !important;
  }
}

@media (max-width: 480px) {
  .footer-section {
    padding: 40px 0 30px;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-top {
    gap: 24px;
  }

  .footer-logo span {
    font-size: 1.1rem;
  }

  .footer-stats {
    gap: 16px;
  }

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