:root {
  --bg: #0f0f12;
  --card: #15151a;
  --muted: #9aa0a6;
  --text: #e7e9ea;
  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --ok: #10b981;
  --err: #ef4444;
  --ring: rgba(124, 58, 237, 0.35);
}

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

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  background: url("/assets/images/background-lines-white.webp") center/cover
      no-repeat fixed,
    radial-gradient(
      1000px 600px at 20% -10%,
      rgba(124, 58, 237, 0.15),
      transparent 100%
    ),
    radial-gradient(
      800px 500px at 100% 0%,
      rgba(124, 58, 237, 0.12),
      transparent 100%
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  place-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Animations */
@keyframes floatIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

/* Content */
.content {
  flex: 1;
  place-items: center;
  padding: 80px 20px;
}

.about {
  background: radial-gradient(
      1000px 600px at 20% -10%,
      rgba(124, 58, 237, 0.15),
      transparent 100%
    ),
    radial-gradient(
      800px 500px at 100% 0%,
      rgba(124, 58, 237, 0.12),
      transparent 100%
    ),
    var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  max-width: 1000px;
  width: 100%;
  animation: floatIn 0.6s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 40px;
}

.about:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.about h1 {
  margin-bottom: 15px;
  font-size: 2rem;
  text-align: center;
  color: #f5f5f5;
}

.about p.sub {
  margin-bottom: 30px;
  margin-top: 30px;
  font-size: 1.2rem;
}

.about img {
  width: 100%;
  border-radius: 20px;
}

@keyframes floatIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.9;
  }
}

.voltz-container {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: inherit;
}

.voltz {
  flex: 1;
  justify-content: center;
  max-width: 291px;
  margin-left: 11px;
  margin-right: 11px;
}

/* === Footer === */
footer {
  background-color: #222;
  color: #bbb;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ==== Page Transition (FADE) ==== */
:root {
  --pt-duration: 150ms; /* keep in sync with your brand tempo */
}

/* Full-screen overlay that fades away on load and fades in on exit */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none; /* let clicks pass through during reveal */
  background: radial-gradient(
      1000px 600px at 20% -10%,
      rgba(124, 58, 237, 0.15),
      transparent 40%
    ),
    radial-gradient(
      800px 500px at 100% 0%,
      rgba(124, 58, 237, 0.12),
      transparent 40%
    ),
    var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  /* Start fully visible, then fade out on load */
  opacity: 1;
  animation: pt-fade-out var(--pt-duration) ease both;
}

/* On exit, fade overlay back in to cover the page */
body.transition-out #page-transition {
  pointer-events: auto; /* block clicks during exit */
  animation: pt-fade-in var(--pt-duration) ease both;
}

/* Keyframes */
@keyframes pt-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.001;
  } /* near-zero to avoid paint flashes */
}

@keyframes pt-fade-in {
  from {
    opacity: 0.001;
  }
  to {
    opacity: 1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #page-transition,
  body.transition-out #page-transition {
    animation: none !important;
    opacity: 0 !important;
    display: none !important;
  }
}
