/* Core layout + minimal refined styling */

:root {
  --bg: #0b0c0f;
  --fg: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(0, 0, 0, 0.45);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background video */
#background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.55);
  transform: translateZ(0);
  z-index: -2;
}

/* Subtle overlay for readability */
.content-container::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      80vmax 80vmax at 50% 20%,
      rgba(255, 255, 255, 0.06),
      transparent 55%
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
  z-index: -1;
  pointer-events: none;
}

/* Main container */
#container {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 28px 18px;
  gap: 18px;
}

.brand {
  width: 100%;
  max-width: 860px;
  display: flex;
  justify-content: center;
}

.logo-text {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.nav-links {
  width: 100%;
  max-width: 860px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.page-footer {
  width: 100%;
  max-width: 860px;
  display: flex;
  justify-content: center;
}

.coordinates {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(560px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in oklab, #000 78%, #fff 22%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.10);
}

.modal-content {
  padding-top: 8px;
}

.modal-content p {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

.es-content {
  display: none;
}

.language-toggle {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
}

.copy-email {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-message {
  display: none;
  margin-left: 8px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .nav-links a {
    transition: none;
  }
}

