@import url("https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --background: #1e1e2e;
  --surface: #181825;
  --foreground: #cdd6f4;
  --muted: #a6adc8;
  --primary: #f5e0dc;
  --secondary: #89b4fa;
  --accent: #f38ba8;
  --highlight: #a6e3a1;
  --border: #313244;
  --border-light: #45475a;
  --title-glow: rgba(245, 224, 220, 0.4);
  --pink: #f5c2e7;
  --mauve: #cba6f7;
  --peach: #fab387;
  --yellow: #f9e2af;
  --teal: #94e2d5;
  --lavender: #b4befe;
  --link-color: #fab387;
  --link-hover: #89b4fa;
  --post-title: #cba6f7;
  --post-subtitle: #f5c2e7;
  --post-date: #fab387;
  --post-author: #ea76cb;
  --post-summary: #a6e3a1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(203, 166, 247, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(137, 180, 250, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--mauve);
  color: var(--background);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:hover {
  color: var(--link-hover);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 4px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: 'Press Start 2P', monospace;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav a {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.25s ease, background 0.25s ease, text-shadow 0.25s ease;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--link-color);
  background: rgba(250, 179, 135, 0.08);
  text-shadow: 0 0 12px rgba(250, 179, 135, 0.4);
}

nav .separator {
  color: var(--border-light);
  font-size: 0.5rem;
  user-select: none;
}

header {
  text-align: center;
  padding: 60px 20px 40px;
}

.main-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--pink);
  text-shadow: 0 0 30px rgba(245, 194, 231, 0.3), 0 0 60px rgba(245, 194, 231, 0.1);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  animation: titleFadeIn 1s ease-out;
}

@keyframes titleFadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  font-weight: 300;
  animation: titleFadeIn 1s ease-out 0.2s both;
}

blockquote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--secondary);
  background: var(--surface);
  padding: 24px 28px;
  border-left: 3px solid var(--mauve);
  border-radius: 0 8px 8px 0;
  width: min(85%, 700px);
  margin: 30px auto;
  line-height: 1.8;
  animation: titleFadeIn 1s ease-out 0.4s both;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.nav-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 20px 50px;
  animation: titleFadeIn 1s ease-out 0.6s both;
}

.nav-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 36px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  min-width: 220px;
}

.nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--mauve);
  box-shadow: 0 8px 30px rgba(203, 166, 247, 0.1);
}

.nav-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--highlight);
  margin-bottom: 6px;
  transition: color 0.25s ease;
}

.nav-card:hover h2 {
  color: var(--teal);
}

.nav-card span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.section {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.section p {
  font-size: 1.05rem;
  color: var(--foreground);
  margin-bottom: 12px;
}

.section a {
  color: var(--pink);
  transition: color 0.25s ease;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.contact-item:hover {
  border-color: var(--border-light);
}

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-item a {
  font-size: 0.95rem;
}

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--pink);
  text-shadow: 0 0 20px rgba(245, 194, 231, 0.25);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 8px;
  animation: titleFadeIn 0.8s ease-out;
}

.blog-posts {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.post {
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.post:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
}

.post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--post-title);
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sub-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--post-subtitle);
  font-style: italic;
  margin-bottom: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.post-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--post-date);
  font-weight: 400;
}

.post-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--post-author);
  font-weight: 500;
}

.post-summary {
  font-size: 1rem;
  color: var(--post-summary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.read-more {
  font-family: 'JetBrains Mono', monospace;
  color: var(--pink);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.read-more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.post-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--foreground);
  margin-bottom: 18px;
  text-align: justify;
}

.post-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--mauve);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--border-light);
}

.blog-posts img,
.post img,
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.library-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.library-intro blockquote {
  width: 100%;
  font-style: normal;
  font-size: 1rem;
  color: var(--muted);
  border-left-color: var(--peach);
}

.library-intro blockquote a {
  color: var(--peach);
}

.library-intro blockquote a:hover {
  color: var(--yellow);
}

.library-section {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.library-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.library-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Lora', serif;
}

.library-table th,
.library-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.library-table th {
  background: var(--background);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.library-table td {
  color: var(--foreground);
}

.library-table tr:last-child td {
  border-bottom: none;
}

.library-table tr:hover td {
  background: rgba(203, 166, 247, 0.04);
}

.library-table a {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  transition: color 0.25s ease;
}

.library-table a:hover {
  color: var(--pink);
}

.container {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
  border-radius: 12px;
  width: min(90%, 580px);
  margin: 20px auto 60px;
  font-family: 'Lora', serif;
}

.container h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--pink);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.container label {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
  text-align: left;
  color: var(--secondary);
  font-weight: 500;
}

.container input,
.container select,
.container textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 18px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.95rem;
  font-family: 'Lora', serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.container input:focus,
.container textarea:focus {
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(203, 166, 247, 0.15);
  outline: none;
}

.radio-group {
  text-align: left;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.radio-group p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--highlight);
  margin-bottom: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  margin: 6px 0;
}

.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.radio-group input[type="radio"]:checked {
  border-color: var(--mauve);
  background: var(--mauve);
  box-shadow: 0 0 8px rgba(203, 166, 247, 0.3);
}

.radio-group input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--background);
  border-radius: 50%;
}

.radio-group label {
  font-size: 0.95rem;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

.radio-group label:hover {
  color: var(--mauve);
}

button {
  background: var(--mauve);
  color: var(--background);
  border: none;
  padding: 14px;
  margin-top: 10px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

button:hover {
  background: var(--lavender);
  box-shadow: 0 4px 20px rgba(180, 190, 254, 0.25);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 32px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--border-light);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--pink);
}

@media screen and (max-width: 600px) {
  header {
    padding: 40px 16px 24px;
  }

  .nav-cards {
    padding: 10px 16px 40px;
  }

  .nav-card {
    min-width: unset;
    width: 100%;
    padding: 20px 24px;
  }

  .section {
    margin: 0 12px 40px;
    padding: 24px 20px;
  }

  .post {
    padding: 20px;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 24px 20px;
    width: 95%;
  }

  nav {
    gap: 2px;
    padding: 10px 8px;
  }

  nav a {
    font-size: 0.55rem;
    padding: 5px 6px;
  }

  .library-table th,
  .library-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 1400px) {
  .section {
    max-width: 860px;
  }

  .library-section {
    max-width: 960px;
  }
}
