body, html {
  overflow-x: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --primary: #0ea5e9;
  --secondary: #667eea;
  --bg-dark: #0a0e1a;
  --text: #ffffff;
  --text-dim: #94a3b8;
  --glow: rgba(14, 165, 233, 0.3);
  --footer-bg: #0a0e1a;
  --footer-text: #ffffff;
  --footer-border: #0ea5e9;
  --footer-active: #0ea5e9;
}

@media (prefers-color-scheme: light) {
  :root {
    --primary: #0284c7;
    --secondary: #7c3aed;
    --bg-dark: #ffffff;
    --text: #0f172a;
    --text-dim: #64748b;
    --glow: rgba(2, 132, 199, 0.2);
    --footer-bg: #f8fafc;
    --footer-text: #0f172a;
    --footer-border: #0284c7;
    --footer-active: #0284c7;
  }
}

body {
  position: relative;
  transition: 0.3s;
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  min-height: 100vh;
  background: var(--bg-dark);
}

.footer-tab {
  text-decoration: none;
  cursor: pointer;
}

.footer,
.footer-tab {
  color: var(--footer-text);
  transition: 0.3s;
  position: relative;
}

.footer-tab.active::after,
.footer-tab:hover::after {
  width: 100%;
}

.footer {
  background: var(--footer-bg);
  border-top: 2px solid var(--footer-border);
  padding: 18px 0;
  margin-top: auto;
  direction: ltr;
  width: 100%;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-tab {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  white-space: nowrap;
}

.footer-tab::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--footer-active);
  transition: width 0.3s;
}

.footer-tab.active {
  color: var(--footer-active);
  font-weight: 600;
  text-shadow: 0 0 8px var(--glow);
  position: relative;
}

.footer-tab.active::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -2px;
  width: 6px;
  height: 6px;
  background: var(--footer-active);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 1.5s infinite;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 8px;
  color: var(--text-dim);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.2);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 15px 0;
  }
  
  .footer-tabs {
    gap: 14px;
    margin-bottom: 12px;
  }
  
  .footer-tab {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  
  .copyright {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 12px 0;
  }
  
  .footer-content {
    padding: 0 15px;
  }
  
  .footer-tabs {
    gap: 10px;
  }
  
  .footer-tab {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
  
  .copyright {
    font-size: 0.7rem;
    margin-top: 6px;
  }
}
