/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 100px 0 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #000000 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 220, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 220, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

/* Top glowing line */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100, 220, 255, 0.2) 20%,
    rgba(53, 118, 197, 0.5) 50%,
    rgba(100, 220, 255, 0.2) 80%,
    transparent 100%
  );
}

/* Circuit SVG Background */
.footer-circuit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  opacity: 0.4;
  pointer-events: none;
}

.circuit-line {
  stroke-dasharray: 8 4;
  animation: circuit-dash 20s linear infinite;
}

.cl-2 {
  animation-delay: -10s;
}

@keyframes circuit-dash {
  to {
    stroke-dashoffset: -100;
  }
}

.circuit-node {
  animation: node-pulse 2s ease-in-out infinite;
}

.circuit-node:nth-child(odd) {
  animation-delay: -1s;
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.traveling-light {
  filter: drop-shadow(0 0 6px rgba(100, 220, 255, 0.8));
}

/* Footer Main Layout */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-link {
  display: inline-flex;
  width: fit-content;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-brand-link:hover .footer-logo-img {
  opacity: 1;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

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

.social-link:hover {
  background: rgba(100, 220, 255, 0.1);
  border-color: rgba(100, 220, 255, 0.3);
  color: var(--accent);
}

/* Navigation Columns */
.footer-nav-cols {
  display: flex;
  gap: 100px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 120px;
}

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.footer-nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-nav-list a:hover {
  color: var(--accent);
}

.footer-nav-list a:hover::after {
  transform: scaleX(1);
}

/* Status Column */
.footer-status-col {
  display: flex;
  justify-content: flex-end;
}

.footer-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  padding: 1rem;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.footer-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(71, 186, 90, 0.4) 30%,
    rgba(71, 186, 90, 0.6) 50%,
    rgba(71, 186, 90, 0.4) 70%,
    transparent 100%
  );
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  background: #47ba5a;
  border-radius: 50%;
  position: relative;
}

.status-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(71, 186, 90, 0.3);
  border-radius: 50%;
  animation: status-ring 2s ease-out infinite;
}

@keyframes status-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.status-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-metrics {
  display: flex;
  gap: 24px;
}

.status-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-metric .metric-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-metric .metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .5rem 1rem;
  background: linear-gradient(135deg, rgba(100, 220, 255, 0.15) 0%, rgba(53, 118, 197, 0.15) 100%);
  border: 1px solid rgba(100, 220, 255, 0.3);
  border-radius: .35rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-cta-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.footer-cta-btn:hover {
  background: linear-gradient(135deg, rgba(100, 220, 255, 0.25) 0%, rgba(53, 118, 197, 0.25) 100%);
  border-color: rgba(100, 220, 255, 0.5);
  box-shadow: 0 8px 24px rgba(100, 220, 255, 0.15);
}

.footer-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Animated gradient line - enhanced */
.animated-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(100, 220, 255, 0.3) 15%,
    rgba(100, 220, 255, 0.7) 30%,
    rgba(53, 118, 197, 0.7) 50%,
    rgba(100, 220, 255, 0.7) 70%,
    rgba(100, 220, 255, 0.3) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gradient-flow 6s linear infinite;
}

.animated-divider::before {
  content: '';
  position: absolute;
  inset: -10px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(100, 220, 255, 0.15) 30%,
    rgba(53, 118, 197, 0.15) 50%,
    rgba(100, 220, 255, 0.15) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gradient-flow 6s linear infinite;
  filter: blur(10px);
}

@keyframes gradient-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animated pulse dot on divider */
.animated-divider .pulse-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 10px var(--accent),
    0 0 20px var(--accent),
    0 0 40px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.7;
  }
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(100, 220, 255, 0.6);
  border-radius: 50%;
  animation: float-particle 15s linear infinite;
}

.particle::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: inherit;
  border-radius: inherit;
  filter: blur(4px);
  opacity: 0.5;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 25%; animation-delay: -3s; animation-duration: 22s; background: rgba(53, 118, 197, 0.6); }
.particle:nth-child(3) { left: 40%; animation-delay: -6s; animation-duration: 16s; }
.particle:nth-child(4) { left: 55%; animation-delay: -9s; animation-duration: 20s; background: rgba(53, 118, 197, 0.6); }
.particle:nth-child(5) { left: 70%; animation-delay: -12s; animation-duration: 24s; }
.particle:nth-child(6) { left: 85%; animation-delay: -15s; animation-duration: 17s; background: rgba(255, 200, 100, 0.5); }

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) scale(1);
  }
  100% {
    transform: translateY(-10vh) scale(0);
    opacity: 0;
  }
}

/* ============================================
   GLOW LINES (SVG-based decorations)
   ============================================ */
.glow-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow-lines svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.glow-lines .line-path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
}

.glow-lines .line-path.cyan {
  stroke: url(#cyan-gradient);
  filter: drop-shadow(0 0 8px rgba(100, 220, 255, 0.5));
}

.glow-lines .line-path.purple {
  stroke: url(#purple-gradient);
  filter: drop-shadow(0 0 8px rgba(53, 118, 197, 0.5));
}

/* Animated line drawing */
.glow-lines .animated-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 4s ease-in-out infinite alternate;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* Scroll-triggered fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for bento cards */
.bento-card.fade-in:nth-child(1) { transition-delay: 0s; }
.bento-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.bento-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.bento-card.fade-in:nth-child(4) { transition-delay: 0.3s; }
.bento-card.fade-in:nth-child(5) { transition-delay: 0.4s; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.footer-bottom-left p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-right a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-right a:hover {
  color: var(--text-primary);
}

.footer-tech-stack {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tech-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-icon-small {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-icon-small svg {
  width: 16px;
  height: 16px;
}

.tech-icon-small:hover {
  color: var(--accent);
  opacity: 1;
}


@media (max-width: 768px) {
  .footer-nav-col--services {
    display: none;
  }
}
