/* Variables */
:root {
  --bg: #0a0a0a;
  --bg-card: #111;
  --bg-hover: #1a1a1a;
  --text: #fff;
  --text-dim: #777;
  --accent: #00b5e2;
  --font: "Outfit", system-ui, sans-serif;
  --container-padding: clamp(20px, 5vw, 40px);
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.25s var(--ease-apple);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dim);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.accent {
  color: var(--accent);
}

.white {
  color: var(--text);
}

/* Mouse Glow */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 181, 226, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  -webkit-filter: blur(80px);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s var(--ease-apple);
}

.mouse-glow.visible {
  opacity: 1;
}

/* Decorative Glow */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  z-index: 0;
}

.glow--center {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 181, 226, 0.2) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--container-padding);
}

.nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg) 50%,
    transparent 100%
  );
  z-index: -1;
}

.nav__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.nav__lang:hover {
  background: var(--bg-hover);
}

.nav__lang-option {
  color: var(--text-dim);
  transition: color 0.3s;
}

.nav__lang-divider {
  color: rgba(255, 255, 255, 0.2);
}

[data-lang="es"] .nav__lang-option[data-lang-value="es"],
[data-lang="en"] .nav__lang-option[data-lang-value="en"] {
  color: var(--accent);
}

/* Content */
.content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px 40px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Profile Header */
.links-header {
  text-align: center;
  margin-bottom: 32px;
}

.links-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.links-handle {
  font-size: 14px;
  color: var(--text-dim);
}

/* Links Grid */
.links-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.link-card:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.link-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 100px var(--container-padding) 24px;
  font-size: 12px;
}

.footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    var(--bg) 30%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

.footer__logo {
  font-size: 18px;
  font-weight: 800;
}

.footer__tagline {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.footer__tagline:hover {
  color: var(--accent);
}

.footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer__infra {
  font-family: "Red Hat Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer__infra:hover {
  opacity: 1;
}

.footer__year {
  color: var(--text-dim);
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .mouse-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .glow--center {
    width: 300px;
    height: 300px;
  }
}
