/*
Theme Name: Hilquias Tech
Theme URI: https://www.hilquias.com
Author: Hilquias
Author URI: https://www.hilquias.com
Description: Tema WordPress tech para documentar projetos, estudos autodidatas, desenvolvimento web e inteligência artificial.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hilquias-tech
*/

:root {
  --bg: #070b12;
  --bg-soft: #0c121c;
  --panel: #101925;
  --panel-strong: #111d2b;
  --line: rgba(119, 151, 177, 0.14);
  --line-bright: rgba(46, 140, 255, 0.34);
  --text: #e9f0f5;
  --muted: #91a4b5;
  --accent-blue: #2e8cff;
  --accent-blue-soft: #6ab7ff;
  --hover-blue: #c5e4ff;
  --blue: #16a9e5;
  --orange: #ff7351;
  --purple: #a877ff;
  --tech-glow: rgba(46, 140, 255, 0.22);
  --circuit: rgba(46, 140, 255, 0.075);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --container: 1180px;
}

:root[data-theme="light"] {
  --bg: #d7d3ca;
  --bg-soft: #e5e0d6;
  --panel: #eee9df;
  --panel-strong: #f5f1e9;
  --line: rgba(68, 82, 98, 0.18);
  --line-bright: rgba(24, 112, 210, 0.34);
  --text: #1a2735;
  --muted: #43505e;
  --accent-blue: #0f5fad;
  --accent-blue-soft: #146fc9;
  --hover-blue: #083f7a;
  --tech-glow: rgba(15, 95, 173, 0.22);
  --circuit: rgba(15, 95, 173, 0.11);
  --shadow: 0 24px 58px rgba(51, 55, 59, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 15%, rgba(46, 140, 255, 0.13), transparent 34%),
    radial-gradient(circle at 5% 38%, rgba(22, 169, 229, 0.08), transparent 30%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--circuit) 48% 49%, transparent 49% 100%),
    linear-gradient(45deg, transparent 0 62%, var(--circuit) 62% 63%, transparent 63% 100%);
  background-size: 180px 180px, 230px 230px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
}

:root[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 80% 15%, rgba(46, 140, 255, 0.14), transparent 34%),
    radial-gradient(circle at 5% 38%, rgba(131, 113, 86, 0.1), transparent 30%);
}

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

p {
  margin: 0;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at top, black 15%, transparent 68%);
}

.page-grid::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 24%, var(--tech-glow) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 42%, var(--tech-glow) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 68%, var(--tech-glow) 0 1px, transparent 2px);
  background-size: 160px 160px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
}

:root[data-theme="light"] .site-header {
  background: rgba(225, 221, 211, 0.76);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 750 1.16rem/1 "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  letter-spacing: -0.08em;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  color: var(--accent-blue);
  background: rgba(46, 140, 255, 0.09);
  font: 700 1rem/1 "Cascadia Code", Consolas, monospace;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}

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

.nav-links .nav-cta {
  padding: 13px 23px;
  border-radius: 8px;
  color: #061112;
  background: var(--accent-blue);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  cursor: pointer;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--accent-blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: 76px 0 65px;
  align-items: center;
  gap: 55px;
  grid-template-columns: 0.93fr 1.07fr;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.pulse::before {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid var(--accent-blue);
  border-radius: inherit;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.85; transform: scale(0.65); }
  100% { opacity: 0; transform: scale(1.8); }
}

.hero h1 {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.3vw, 4.3rem);
  line-height: 1.08;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--accent-blue-soft), #46d7ff);
  background-clip: text;
}

.hero-description {
  max-width: 530px;
  margin-bottom: 39px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-description strong {
  color: var(--accent-blue);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 54px;
}

.button {
  display: inline-flex;
  min-height: 51px;
  padding: 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #071313;
  background: var(--accent-blue);
  box-shadow: 0 12px 30px rgba(46, 140, 255, 0.2);
}

.button.secondary {
  border: 1px solid var(--line-bright);
  color: var(--accent-blue);
  background: rgba(46, 140, 255, 0.05);
}

.hero-stats {
  display: flex;
  margin: 0;
  gap: 42px;
}

.hero-stats div {
  position: relative;
  min-width: 91px;
}

.hero-stats div + div::before {
  position: absolute;
  top: 8px;
  left: -23px;
  width: 1px;
  height: 45px;
  content: "";
  background: var(--line);
}

.hero-stats dt {
  margin-bottom: 5px;
  color: var(--accent-blue);
  font: 700 1.75rem/1.2 "Cascadia Code", Consolas, monospace;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-console {
  position: relative;
  padding: 44px 0 66px 35px;
}

.console-window {
  overflow: hidden;
  border: 1px solid rgba(119, 151, 177, 0.2);
  border-radius: 14px;
  background: #0b121c;
  box-shadow: var(--shadow);
}

.console-window::before {
  display: block;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.console-bar {
  display: flex;
  height: 51px;
  align-items: center;
  gap: 57px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(119, 151, 177, 0.15);
  color: #668092;
  font: 0.78rem "Cascadia Code", Consolas, monospace;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #2e8cff;
}

.console-content {
  min-height: 385px;
  padding: 35px 38px 29px;
  color: #c8d8e2;
  font: 0.87rem/2.05 "Cascadia Code", "Fira Code", Consolas, monospace;
}

.comment { color: #576b7d; }
.keyword { color: #c792ea; }
.class-name { color: #facb66; }
.function { color: #57d2ff; }
.string { color: #72c7ff; }
.indent { padding-left: 28px; }
.indent-2 { padding-left: 58px; }

.terminal-command {
  margin-top: 29px;
}

.prompt,
.success {
  color: var(--accent-blue);
}

.success {
  font-size: 0.84rem;
}

.floating-card {
  position: absolute;
  display: flex;
  padding: 13px 17px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  color: #dde8ee;
  background: #101a26;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
  font-weight: 650;
}

:root[data-theme="light"] .floating-card {
  color: var(--text);
  background: var(--panel-strong);
}

.card-python {
  right: 31px;
  bottom: 27px;
}

.card-web {
  bottom: -29px;
  left: 0;
}

.tech-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
  color: #43d7ff;
  background: rgba(22, 169, 229, 0.13);
  font: 700 0.92rem Consolas, monospace;
}

.tech-icon.web {
  color: #8ec8ff;
  background: rgba(46, 140, 255, 0.16);
  font-size: 0.76rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 43px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.14;
}

.heading-copy {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 66px;
  align-items: start;
}

.about-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--bg-soft);
}

.about-panel strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tags span {
  padding: 9px 14px;
  border: 1px solid rgba(46, 140, 255, 0.18);
  border-radius: 999px;
  color: var(--accent-blue);
  background: rgba(46, 140, 255, 0.05);
  font-size: 0.84rem;
}

.projects,
.discourse,
.blog-home,
.knowledge {
  border-block: 1px solid rgba(119, 151, 177, 0.07);
  background: rgba(12, 18, 28, 0.44);
}

:root[data-theme="light"] .projects,
:root[data-theme="light"] .knowledge {
  background: rgba(222, 217, 206, 0.62);
}

.project-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  position: relative;
  min-height: 420px;
  padding: 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.project-card::before,
.knowledge-card::before,
.blog-card::before,
.discourse-overview::before,
.server-card::before,
.community-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(46, 140, 255, 0.12), transparent 36%),
    linear-gradient(90deg, transparent 0 72%, rgba(46, 140, 255, 0.06));
  opacity: 0.8;
}

.project-card.featured {
  border-color: rgba(46, 140, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(46, 140, 255, 0.1);
}

.project-top {
  display: flex;
  margin-bottom: 34px;
  justify-content: space-between;
  align-items: center;
}

.project-index,
.stack,
.card-number {
  color: var(--accent-blue);
  font: 700 0.75rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
}

.status {
  padding: 8px 12px;
  border-radius: 99px;
  color: var(--accent-blue);
  background: rgba(46, 140, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
}

.status.future {
  color: var(--blue);
  background: rgba(22, 169, 229, 0.1);
}

.project-symbol {
  position: absolute;
  top: 85px;
  right: 34px;
  width: 67px;
  height: 67px;
  opacity: 0.85;
}

.network span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(46, 140, 255, 0.45);
}

.network span:nth-child(1) { left: 27px; }
.network span:nth-child(2) { top: 38px; left: 4px; }
.network span:nth-child(3) { top: 38px; right: 4px; }
.network span:nth-child(4) {
  top: 14px;
  left: 22px;
  width: 24px;
  height: 34px;
  border: solid rgba(46, 140, 255, 0.48);
  border-width: 1px 1px 0;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg);
  box-shadow: none;
}

.forum::before,
.forum::after {
  position: absolute;
  content: "";
  border: 2px solid var(--blue);
  border-radius: 8px;
}

.forum::before {
  inset: 4px 12px 26px 0;
}

.forum::after {
  inset: 27px 0 4px 21px;
}

.stack {
  margin-bottom: 14px;
}

.web-stack {
  color: var(--blue);
}

.project-card h3 {
  margin-bottom: 15px;
  font-size: 1.62rem;
}

.project-card > p:not(.stack) {
  max-width: 430px;
  color: var(--muted);
  font-size: 0.93rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 29px 0 0;
  list-style: none;
}

.project-features li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #adbdc8;
  background: rgba(7, 11, 18, 0.28);
  font-size: 0.78rem;
}

:root[data-theme="light"] .project-features li,
:root[data-theme="light"] .college-facts div {
  color: var(--muted);
  background: rgba(255, 253, 248, 0.38);
}

.discourse {
  border-bottom: 1px solid rgba(119, 151, 177, 0.07);
  background:
    radial-gradient(circle at 84% 18%, rgba(46, 140, 255, 0.08), transparent 26%),
    rgba(7, 11, 18, 0.52);
}

.discourse-intro {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.02fr 0.98fr;
}

.discourse-overview,
.server-card,
.server-details article,
.community-card,
.hostinger-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.discourse-overview,
.server-card {
  padding: 30px;
}

.discourse h3 {
  margin: 13px 0 12px;
  font-size: 1.3rem;
}

.discourse-overview p:not(.stack),
.server-details p,
.community-card p,
.hostinger-card p:not(.stack) {
  color: var(--muted);
  font-size: 0.88rem;
}

.discourse-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.discourse-tech span {
  padding: 8px 11px;
  border: 1px solid rgba(46, 140, 255, 0.2);
  border-radius: 7px;
  color: #7fbdff;
  background: rgba(46, 140, 255, 0.06);
  font: 700 0.72rem/1 "Cascadia Code", Consolas, monospace;
}

.install-list {
  display: grid;
  padding: 0;
  margin: 21px 0 0;
  gap: 12px;
  list-style: none;
}

.install-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b6c5cf;
  font-size: 0.83rem;
  line-height: 1.45;
}

:root[data-theme="light"] .install-list li {
  color: #2f3d4b;
}

:root[data-theme="light"] .discourse-tech span {
  border-color: rgba(15, 95, 173, 0.28);
  color: #0d5297;
  background: rgba(15, 95, 173, 0.08);
}

.install-list span,
.detail-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(46, 140, 255, 0.28);
  border-radius: 8px;
  color: var(--accent-blue);
  background: rgba(46, 140, 255, 0.07);
  font: 700 0.67rem/1 "Cascadia Code", Consolas, monospace;
}

.server-details {
  display: grid;
  margin-top: 20px;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.server-details article {
  padding: 24px;
}

.server-details h3 {
  margin-top: 17px;
  font-size: 1.02rem;
}

.discourse-projects {
  display: grid;
  margin-top: 42px;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.community-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.community-card::after {
  position: absolute;
  right: -43px;
  bottom: -66px;
  width: 154px;
  height: 154px;
  content: "";
  border: 1px solid rgba(46, 140, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(46, 140, 255, 0.025);
}

.community-card-top {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
}

.community-code {
  color: rgba(147, 202, 255, 0.55);
  font: 700 0.74rem/1 "Cascadia Code", Consolas, monospace;
}

.community-card h3 {
  font: 750 1.68rem/1.15 "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  letter-spacing: -0.09em;
}

.community-card h3 span {
  color: var(--accent-blue);
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 20px;
  gap: 8px;
  color: var(--accent-blue-soft);
  font-size: 0.84rem;
  font-weight: 750;
}

.text-link:hover,
.official-source a:hover {
  color: var(--hover-blue);
}

.section-more {
  margin-top: 22px;
}

.centered-link {
  justify-content: center;
  margin-top: 31px;
}

.hostinger-card {
  display: flex;
  padding: 26px 28px;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-color: rgba(46, 140, 255, 0.24);
  background:
    linear-gradient(110deg, rgba(46, 140, 255, 0.09), transparent 48%),
    var(--panel);
}

.hostinger-card h3 {
  margin: 11px 0 6px;
  font-size: 1.16rem;
}

.hostinger-card p:not(.stack) {
  max-width: 680px;
}

.hostinger-card .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.official-source {
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.76rem;
}

.official-source a {
  color: var(--accent-blue-soft);
  font-weight: 700;
}

.content-page {
  min-height: calc(100vh - 145px);
  padding-top: 104px;
}

.content-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.12;
}

.blog-layout {
  display: grid;
  align-items: start;
  gap: 28px;
  grid-template-columns: minmax(235px, 0.32fr) minmax(0, 1fr);
}

.blog-main {
  min-width: 0;
}

.blog-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.blog-widget {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(46, 140, 255, 0.09), transparent 42%),
    var(--panel);
}

.blog-widget::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.blog-widget-title {
  margin-bottom: 15px;
  color: var(--text);
  font: 750 0.88rem/1.25 "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  letter-spacing: -0.04em;
}

.blog-widget ul {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 9px;
  list-style: none;
}

.blog-widget li {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.blog-widget a {
  color: var(--accent-blue-soft);
  font-weight: 700;
}

.blog-widget a:hover {
  color: var(--hover-blue);
}

.blog-widget .search-form {
  display: grid;
  gap: 10px;
}

.blog-widget .search-field {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg-soft);
}

.blog-widget .search-submit {
  min-height: 40px;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  color: #f4f8fc;
  background: var(--accent-blue);
  font-weight: 800;
}

.posts-grid {
  display: grid;
  gap: 18px;
}

.post-card,
.article-content {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.post-card h2 {
  margin: 12px 0 9px;
  font-size: 1.35rem;
}

.post-card h2 a:hover {
  color: var(--hover-blue);
}

.post-card p,
.post-excerpt,
.article-content {
  color: var(--muted);
}

.pagination {
  margin-top: 20px;
}

.pagination .nav-links {
  position: static;
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.article-content {
  line-height: 1.75;
}

.article-content > * + * {
  margin-top: 1.15em;
}

.article-content a {
  color: var(--accent-blue-soft);
}

.blog-home {
  border-block: 1px solid rgba(119, 151, 177, 0.07);
  background:
    radial-gradient(circle at 14% 0%, rgba(46, 140, 255, 0.08), transparent 24%),
    rgba(12, 18, 28, 0.44);
}

:root[data-theme="light"] .blog-home,
:root[data-theme="light"] .discourse {
  background:
    radial-gradient(circle at 14% 0%, rgba(46, 140, 255, 0.1), transparent 24%),
    rgba(226, 221, 211, 0.68);
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -13px 0 30px;
}

.category-links a {
  padding: 9px 13px;
  border: 1px solid rgba(46, 140, 255, 0.2);
  border-radius: 999px;
  color: var(--accent-blue-soft);
  background: rgba(46, 140, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-links a:hover {
  border-color: rgba(46, 140, 255, 0.38);
  color: var(--text);
}

.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 245px;
  padding: 25px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.blog-card:hover {
  border-color: rgba(46, 140, 255, 0.28);
  transform: translateY(-3px);
}

.blog-card h3 {
  margin: 15px 0 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.blog-card h3 a:hover {
  color: var(--hover-blue);
}

.blog-card p,
.blog-card-excerpt {
  color: var(--muted);
  font-size: 0.86rem;
}

.blog-card .text-link {
  margin-top: auto;
  padding-top: 19px;
}

.roadmap .section-heading {
  margin-inline: auto;
  text-align: center;
}

.roadmap .eyebrow {
  justify-content: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 21px;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 103px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--line-bright) 16%, var(--line-bright) 84%, transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  padding: 25px 29px 25px 0;
  align-items: center;
  gap: 48px;
  grid-template-columns: 80px 1fr;
  border: 1px solid transparent;
  border-radius: 15px;
}

.timeline-item::before {
  position: absolute;
  left: 98px;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-blue);
}

.timeline-item.active {
  border-color: rgba(46, 140, 255, 0.24);
  background: rgba(46, 140, 255, 0.05);
}

.timeline-item.active::before {
  background: var(--accent-blue);
  box-shadow: 0 0 18px var(--accent-blue);
}

.timeline-date {
  color: var(--accent-blue);
  font: 700 0.8rem "Cascadia Code", Consolas, monospace;
  text-align: right;
}

.timeline-item h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.89rem;
}

.knowledge-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.college-overview {
  display: grid;
  padding: 34px;
  margin-bottom: 58px;
  gap: 38px;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid rgba(46, 140, 255, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0%, rgba(46, 140, 255, 0.14), transparent 45%),
    var(--panel);
}

.college-overview h3 {
  margin: 14px 0 12px;
  font-size: 1.55rem;
}

.college-overview p:not(.stack) {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.92rem;
}

.college-facts {
  display: grid;
  margin: 0;
  gap: 11px;
  grid-template-columns: repeat(3, 1fr);
}

.college-facts div {
  display: flex;
  min-height: 112px;
  padding: 16px 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: rgba(7, 11, 18, 0.34);
}

.college-facts dt {
  margin-bottom: 8px;
  color: var(--accent-blue);
  font: 700 1.18rem/1.1 "Cascadia Code", Consolas, monospace;
}

.college-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.knowledge-heading {
  margin-top: 4px;
}

.knowledge-card {
  position: relative;
  overflow: hidden;
  padding: 29px 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.knowledge-card:hover {
  border-color: rgba(46, 140, 255, 0.28);
  transform: translateY(-3px);
}

.knowledge-card .card-number {
  display: block;
  margin-bottom: 22px;
}

.knowledge-card h3 {
  margin-bottom: 11px;
  font-size: 1.08rem;
}

.knowledge-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.cta {
  padding-top: 95px;
  padding-bottom: 95px;
}

.cta-panel {
  padding: 70px 30px;
  border: 1px solid rgba(46, 140, 255, 0.22);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 110%, rgba(46, 140, 255, 0.16), transparent 42%),
    var(--bg-soft);
}

.cta-panel .eyebrow {
  justify-content: center;
}

.cta-panel h2 {
  max-width: 620px;
  margin: 0 auto 17px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-panel p:not(.eyebrow) {
  max-width: 630px;
  margin: 0 auto 35px;
  color: var(--muted);
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-switcher {
  display: flex;
  padding: 4px;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
}

.theme-switcher span {
  padding: 0 6px;
  color: var(--muted);
  font: 700 0.64rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-switcher button {
  padding: 7px 9px;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-switcher button:hover,
.theme-switcher button.active {
  color: #f4f8fc;
  background: var(--accent-blue);
}

.footer .brand {
  font-size: 1rem;
}

.footer .brand-mark {
  width: 39px;
  height: 36px;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 250ms; }

@media (max-width: 1000px) {
  .nav-links {
    gap: 15px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 70px;
    align-items: stretch;
  }

  .hero-console {
    max-width: 670px;
    width: 100%;
    margin-inline: auto;
  }

  .about {
    display: block;
  }

  .about .section-heading {
    margin-bottom: 30px;
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discourse-intro {
    grid-template-columns: 1fr;
  }

  .discourse-projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .college-overview {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    grid-template-columns: minmax(200px, 0.36fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .section {
    padding: 65px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 6px;
  }

  .nav-links .nav-cta {
    padding: 14px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.2vw, 3rem);
  }

  .hero-stats {
    gap: 30px;
  }

  .hero-stats div + div::before {
    left: -16px;
  }

  .hero-console {
    padding: 0 0 67px;
  }

  .console-content {
    min-height: auto;
    padding: 25px 18px 28px;
    overflow-x: auto;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .console-bar {
    gap: 22px;
    padding-inline: 13px;
    font-size: 0.69rem;
  }

  .card-python {
    right: 0;
    bottom: 25px;
  }

  .card-web {
    bottom: -22px;
  }

  .floating-card {
    padding: 10px 12px;
    font-size: 0.73rem;
  }

  .tech-icon {
    width: 34px;
    height: 34px;
  }

  .project-grid,
  .discourse-projects,
  .server-details,
  .blog-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .hostinger-card {
    align-items: stretch;
    flex-direction: column;
  }

  .hostinger-card .button {
    align-self: flex-start;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .college-overview {
    padding: 25px 21px;
  }

  .college-facts {
    grid-template-columns: 1fr;
  }

  .college-facts div {
    min-height: 82px;
  }

  .project-card {
    min-height: 0;
  }

  .timeline::before {
    left: 13px;
  }

  .timeline-item {
    display: block;
    padding: 22px 20px 22px 42px;
  }

  .timeline-item::before {
    left: 7px;
    top: 29px;
  }

  .timeline-date {
    display: block;
    margin-bottom: 8px;
    text-align: left;
  }

  .cta-panel {
    padding: 48px 21px;
  }

  .footer-content {
    flex-direction: column;
    gap: 22px;
  }

  .footer-left {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
