/* ================================================================
   FOOTER — CYBER TERMINAL EDITION
================================================================ */

.main-footer {
  position: relative;
  background: #020408;
  border-top: 1px solid transparent;
  padding: 70px 24px 0;
  margin-top: 100px;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #00f2ff 20%,
    #ff2d55 50%,
    #a855f7 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: borderFlow 4s linear infinite;
}
@keyframes borderFlow {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.main-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,242,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-brand .highlight {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}
.footer-brand .highlight span {
  color: #00f2ff;
  text-shadow: 0 0 20px rgba(0,242,255,0.6), 0 0 50px rgba(0,242,255,0.2);
}

.footer-brand .tagline {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff2d55;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-bio {
  color: #4a5568;
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 320px;
  border-left: 2px solid rgba(0,242,255,0.2);
  padding-left: 14px;
}

.footer-terminal-badge {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,242,255,0.04);
  border: 1px solid rgba(0,242,255,0.12);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.72rem;
  color: #00f2ff;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}
.footer-terminal-badge::before {
  content: '▶';
  font-size: 0.6rem;
  opacity: 0.6;
}

.footer-group h4 {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}
.footer-group h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 1.5px;
  background: #00f2ff;
  box-shadow: 0 0 8px rgba(0,242,255,0.6);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}
.footer-links li a i {
  font-size: 0.65rem;
  color: #00f2ff;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}
.footer-links li a:hover {
  color: #fff;
  background: rgba(0,242,255,0.04);
  border-color: rgba(0,242,255,0.1);
  padding-left: 16px;
}
.footer-links li a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.cyber-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: #555;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.social-card i {
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.social-card span {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-card.instagram { --c: #e1306c; }
.social-card.github    { --c: #e5e7eb; }
.social-card.linkedin  { --c: #0a66c2; }
.social-card.whatsapp  { --c: #25d366; }

.social-card::before {
  background: linear-gradient(135deg, var(--c, #00f2ff) 0%, transparent 100%);
}
.social-card:hover {
  border-color: var(--c, #00f2ff);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--c, #00f2ff);
}
.social-card:hover::before { opacity: 0.08; }
.social-card:hover i { color: var(--c, #00f2ff); transform: scale(1.2); }

.footer-divider {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #2d3748;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.security-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00f2ff;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.status-dot {
  width: 7px; height: 7px;
  background: #00f2ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f2ff, 0 0 16px rgba(0,242,255,0.4);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.5; }
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
    text-align: center;
  }

  .footer-brand .highlight { font-size: 1.7rem; }
  .footer-bio { border-left: none; padding-left: 0; margin: 0 auto; }
  .footer-terminal-badge { margin: 16px auto 0; }

  .footer-group h4::after { left: 50%; transform: translateX(-50%); }
  .footer-links li a { justify-content: center; }

  .cyber-social-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
  .social-card { justify-content: center; }
  .social-card span { display: none; }

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

