/**
 * API.DevWharf - Base Styles
 * Variables, resets, typography, and layout foundations
 */

/* ===============================
   CSS VARIABLES
   =============================== */

:root {
  /* Color Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(18, 18, 26, 0.8);

  --text-primary: #e0e0e0;
  --text-secondary: #888899;
  --text-muted: #555566;

  --accent-cyan: #00fff9;
  --accent-magenta: #ff00ff;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-yellow: #fbbf24;
  --accent-red: #ef4444;

  --glow-cyan: 0 0 20px rgba(0, 255, 249, 0.4);
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.4);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);

  /* Typography */
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  --font-display: "Orbitron", sans-serif;

  /* Spacing */
  --header-height: 80px;
}

/* ===============================
   RESET & BASE
   =============================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===============================
   MAIN CONTENT WRAPPER
   =============================== */

.main-content {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===============================
   PAGE HEADER
   =============================== */

.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.page-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-header .tagline {
  margin-top: 1rem;
}

/* ===============================
   HERO SECTION (Home Page)
   =============================== */

.hero {
  text-align: center;
  padding: 4rem 2rem 6rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.logo-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.main-logo {
  width: 500px;
  height: 400px;
  filter: drop-shadow(0 0 30px rgba(0, 255, 249, 0.6));
  animation: float 6s ease-in-out infinite;
}

/* ===============================
   TYPOGRAPHY
   =============================== */

.glitch-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    var(--accent-magenta) 50%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: glitch 5s infinite;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  letter-spacing: 2px;
}

/* ===============================
   SITE DESCRIPTION (Home Page)
   =============================== */

.site-description {
  max-width: 700px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-description p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
}

.site-description strong {
  color: var(--accent-cyan);
}

/* ===============================
   HERO ACTIONS
   =============================== */

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 1rem;
}

/* ===============================
   ANIMATIONS
   =============================== */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes glitch {
  0%,
  90%,
  100% {
    text-shadow: none;
  }
  92% {
    text-shadow:
      -2px 0 var(--accent-cyan),
      2px 0 var(--accent-magenta);
  }
  94% {
    text-shadow:
      2px 0 var(--accent-cyan),
      -2px 0 var(--accent-magenta);
  }
  96% {
    text-shadow:
      -1px 0 var(--accent-magenta),
      1px 0 var(--accent-cyan);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
