/* --- VARIABLES --- */
:root {
  /* Palette: Retro UI / Terminal */
  --color-bg: #0a0a0a; /* Deep Black */
  --color-bg-alt: #121212; /* Slightly Lighter Black */
  --color-text: #e0e0e0; /* Off-white for readability */
  --color-primary: #00ff41; /* Matrix Green */
  --color-primary-dim: rgba(0, 255, 65, 0.1);
  --color-accent: #ff00ff; /* Magenta Glitch Accent */
  --color-border: #333333; /* Dark Gray Grid Lines */

  /* Typography */
  --font-main: "Work Sans", sans-serif; /* For body text */
  --font-mono: "Space Mono", monospace; /* For headers & UI elements */

  /* Spacing */
  --container-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Borders & UI */
  --border-radius-sm: 2px;
  --border-radius-md: 4px; /* Boxy feel */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET & GLOBAL --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Background Grid Texture */
  background-image: linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --- TYPOGRAPHY UTILS --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-dim);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  color: #fff;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__menu {
  display: flex;
  gap: 2rem;
}

.header__link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
  color: #888;
}

.header__link:hover,
.header__link.active {
  color: var(--color-primary);
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.header__link:hover::after {
  width: 100%;
}

.header__item--mobile-only {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.header__burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: auto; /* Push to bottom if content is short */
  font-family: var(--font-mono);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* 4 Columns */
  gap: 2rem;
  margin-bottom: var(--spacing-lg);
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}

.footer__desc {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-main);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  color: #fff;
}

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

.footer__title {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.85rem;
  color: #aaa;
}

.footer__link:hover {
  color: #fff;
  padding-left: 5px; /* Micro-interaction */
}

.footer__list--icons li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #aaa;
}

.footer__list--icons svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer__note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #666;
  border: 1px dashed #444;
  padding: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
}

.footer__decoration {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-bg-alt);
    border-left: 1px solid var(--color-border);
    padding: 6rem 2rem;
    transition: var(--transition);
  }

  .header__nav.open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
  }

  .header__item--mobile-only {
    display: block;
    margin-top: 1rem;
  }

  .header__actions .btn {
    display: none; /* Hide main CTA on mobile header, move to menu */
  }

  .header__burger {
    display: flex;
    z-index: 1100; /* Above nav */
  }

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

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- HERO SECTION & BENTO GRID --- */
.hero {
  padding-top: calc(80px + var(--spacing-md)); /* Header height + spacing */
  padding-bottom: var(--spacing-lg);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1rem;
  width: 100%;
}

/* Base Card Style */
.bento-card {
  background-color: rgba(18, 18, 18, 0.8);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.bento-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.05);
}

/* Corner Decorations (Retro UI corners) */
.bento-card::before,
.bento-card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid transparent;
  transition: var(--transition);
}

.bento-card:hover::before {
  top: 0;
  left: 0;
  border-top-color: var(--color-primary);
  border-left-color: var(--color-primary);
}
.bento-card:hover::after {
  bottom: 0;
  right: 0;
  border-bottom-color: var(--color-primary);
  border-right-color: var(--color-primary);
}

/* --- GRID AREAS --- */
/* Main Block: Spans 2 cols, 2 rows */
.bento-card--main {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: center;
  background: radial-gradient(circle at top right, #1a1a1a 0%, transparent 40%),
    rgba(18, 18, 18, 0.9);
}

/* Visual Block: Right side vertical */
.bento-card--visual {
  grid-column: span 1;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

/* Small Blocks */
.bento-card--feature {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-card--stat {
  grid-column: span 1;
  grid-row: span 1;
  background-color: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
}

/* Ticker Block: Full width bottom */
.bento-card--ticker {
  grid-column: span 4;
  padding: 1rem 0; /* Less padding for ticker */
  background: var(--color-bg-alt);
}

/* --- CONTENT STYLES --- */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: blink 2s infinite;
}

.bento-card__header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero__subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero__note {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
}

.hero__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bento-card--stat p {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

/* --- ANIMATIONS & DECOR --- */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Ticker Animation */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}
.ticker {
  display: inline-block;
  animation: ticker 20s linear infinite;
}
.ticker span {
  display: inline-block;
  padding-left: 2rem;
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
}
@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Circle Loader in Visual Card */
.circle-loader {
  width: 60px;
  height: 60px;
  border: 4px solid #333;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 2s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mono-xs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-primary);
  letter-spacing: 2px;
}

/* Matrix Background Effect (Simple CSS version) */
.matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 1rem;
  word-break: break-all;
  overflow: hidden;
  color: var(--color-primary);
  pointer-events: none;
}

/* Scanline */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 255, 65, 0.5);
  opacity: 0.5;
  animation: scan 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes scan {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

/* Responsive Grid */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card--main {
    grid-column: span 2;
  }
  .bento-card--visual {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
  }
  .bento-card--feature {
    grid-column: span 1;
  }
  .bento-card--stat {
    grid-column: span 2;
  }
  .bento-card--ticker {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--main,
  .bento-card--visual,
  .bento-card--feature,
  .bento-card--stat,
  .bento-card--ticker {
    grid-column: span 1;
    grid-row: auto;
  }
  .hero__title {
    font-size: 1.8rem;
  }
}

/* --- SHARED SECTION STYLES --- */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.section-header__deco {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #aaa;
}

/* --- COURSES MODULES (Bento/Retro UI) --- */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.course-module {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  /* Backdrop filter for glass effect */
  backdrop-filter: blur(5px);
}

.course-module:hover {
  border-color: var(--color-primary);
  background: rgba(26, 26, 26, 0.8);
}

/* Highlighted Module (Center one) */
.course-module--highlight {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.1) inset;
}

.course-module__status {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.status-indicator {
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  background: #555;
}

.status-indicator--active {
  background: var(--color-primary);
  box-shadow: 0 0 5px var(--color-primary);
}
.status-indicator--wait {
  background: #ffaa00;
}

.course-module__body {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.course-module__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  flex-shrink: 0;
}

.course-module__icon svg {
  width: 32px;
  height: 32px;
}

.course-module__info {
  flex-grow: 1;
}

.course-module__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.course-module__desc {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.course-module__meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #666;
}

.course-module__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.course-module__meta svg {
  width: 14px;
  height: 14px;
}

/* Footer & Progress Bar */
.course-module__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.tech-progress {
  flex-grow: 1;
  margin-right: 2rem;
}

.tech-progress__bar {
  height: 4px;
  background: var(--color-primary);
  position: relative;
  margin-bottom: 0.5rem;
  /* Animated striped background */
  background-image: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.3) 25%,
    transparent 25%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.3) 75%,
    transparent 75%,
    transparent
  );
  background-size: 10px 10px;
  animation: stripes 1s linear infinite;
}

.tech-progress__bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -100%;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.tech-progress__bar--wait {
  background: #ffaa00;
}

.tech-progress__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #666;
}

@keyframes stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 20px 0;
  }
}

/* Small buttons for courses */
.btn--sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
}
.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  border-color: #555;
  color: #555;
}

/* Decorations */
.corner-deco {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-primary);
  opacity: 0.5;
}
.corner-deco.top-right {
  top: -2px;
  right: -2px;
  border-bottom: none;
  border-left: none;
}
.corner-deco.bottom-left {
  bottom: -2px;
  left: -2px;
  border-top: none;
  border-right: none;
}

.glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03) 0px,
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .course-module__body {
    flex-direction: column;
    gap: 1rem;
  }
  .course-module__icon {
    width: 48px;
    height: 48px;
  }
  .course-module__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .tech-progress {
    width: 100%;
    margin-right: 0;
  }
  .course-btn {
    width: 100%;
    justify-content: center;
  }
  .course-module__meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- METHODOLOGY (PIPELINE) --- */
.methodology-section {
  background-color: var(--color-bg); /* Keep dark */
  overflow: hidden;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pipeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* The central connecting line */
.pipeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-border) 0,
    var(--color-border) 10px,
    transparent 10px,
    transparent 20px
  );
  transform: translateX(-50%);
  z-index: 0;
}

/* Nodes Wrapper */
.pipeline-node {
  display: flex;
  justify-content: flex-end; /* Default: Card on Left */
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
}

.pipeline-node--right {
  justify-content: flex-start; /* Card on Right */
  padding-right: 0;
  padding-left: 50%;
}

/* Marker (The circle on the line) */
.pipeline-node__marker {
  position: absolute;
  top: 20px;
  left: 50%; /* Center relative to container */
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #000;
  border: 2px solid var(--color-border);
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 2;
  transition: var(--transition);
}

.pipeline-node:hover .pipeline-node__marker {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-dim);
}

/* The Card Content */
.pipeline-node__card {
  width: 90%; /* Slight offset from center line */
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  position: relative;
  margin: 0 2rem; /* Spacing from line */
  transition: var(--transition);
}

.pipeline-node:hover .pipeline-node__card {
  border-color: var(--color-primary);
  transform: translateY(-5px);
}

/* Connector line from Marker to Card */
.pipeline-node::before {
  content: "";
  position: absolute;
  top: 40px;
  width: 2rem;
  height: 1px;
  background: var(--color-border);
  z-index: 1;
  transition: var(--transition);
}

.pipeline-node:not(.pipeline-node--right)::before {
  right: 50%; /* Connects from center to left */
}

.pipeline-node--right::before {
  left: 50%; /* Connects from center to right */
}

.pipeline-node:hover::before {
  background: var(--color-primary);
}

/* Card Typography */
.pipeline-title {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pipeline-subtitle {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  font-family: var(--font-main);
}

.pipeline-text {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.pipeline-text strong {
  color: #fff;
  font-weight: 600;
}

/* Terminal Command Look */
.pipeline-cmd {
  background: #000;
  border-left: 2px solid var(--color-primary);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.pipeline-action {
  margin-top: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* End Marker */
.pipeline-end {
  position: relative;
  text-align: center;
  background: #000;
  width: fit-content;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--color-border);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .pipeline-line {
    left: 20px;
    transform: none;
  }

  .pipeline-node,
  .pipeline-node--right {
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    padding-left: 60px; /* Space for marker on left */
    margin-bottom: 3rem;
  }

  .pipeline-node__marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .pipeline-node__card {
    width: 100%;
    margin: 0;
  }

  /* Hide horizontal connectors on mobile or adjust */
  .pipeline-node::before {
    display: none;
  }
}

/* --- MENTORS (DATABASE STYLE) --- */
.mentors-section {
  background-color: #050505; /* Slightly darker bg */
}

.database-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.db-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.db-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Image Area with Filters */
.db-card__visual {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.db-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2); /* Black & White filter */
  transition: var(--transition);
}

.db-card:hover .db-card__img {
  filter: grayscale(0%) contrast(1); /* Color on hover */
  transform: scale(1.05);
}

.db-card__overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.25rem 0.5rem;
  border: 1px solid #555;
}

.db-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-primary);
  letter-spacing: 1px;
}

/* Data Area */
.db-card__data {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.db-header {
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.db-name {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.db-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
}

/* Stats Grid inside card */
.db-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  background: #000;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
}

.db-stat {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.db-stat .label {
  color: #666;
  margin-bottom: 2px;
}
.db-stat .value {
  color: #fff;
  font-weight: 700;
}

.db-quote {
  font-size: 0.9rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Link/Button styled as link */
.db-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
  display: inline-block;
}

.db-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 992px) {
  .database-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .database-grid {
    grid-template-columns: 1fr;
  }
  .db-card__visual {
    height: 200px;
  }
}

/* --- FAQ (TERMINAL STYLE) --- */
.faq-section {
  padding-bottom: var(--spacing-xl);
}

.faq-terminal {
  background: #000;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.terminal-title {
  margin-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #888;
}

.faq-list {
  padding: 1rem;
}

.faq-item {
  border-bottom: 1px solid #222;
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  color: #ccc;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}
.faq-question.active {
  color: var(--color-primary);
  font-weight: 700;
}
.prompt {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.log-response {
  padding: 0 0 1rem 1.5rem;
  color: #888;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(
    to bottom,
    var(--color-bg) 0%,
    rgba(0, 255, 65, 0.05) 100%
  );
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-specs {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #888;
}

.visual-matrix {
  height: 100px;
  margin-top: 2rem;
  background-image: radial-gradient(#333 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.3;
}

/* Form Styles */
.contact-form-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
}

.contact-form-box::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid var(--color-border);
  z-index: -1;
  opacity: 0.5;
}

.form-header {
  font-family: var(--font-mono);
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  border-bottom: 1px dashed #333;
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #aaa;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #555;
  transition: var(--transition);
}

.form-input {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  padding: 1rem 1rem 1rem 3rem; /* Space for icon */
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.form-input:focus + .input-icon,
.form-input:not(:placeholder-shown) + .input-icon {
  /* Keep icon lit if filled */
  color: var(--color-primary);
}

/* Validation Errors */
.error-msg {
  display: none;
  color: #ff5f56;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}
.form-group.error .form-input {
  border-color: #ff5f56;
}
.form-group.error .input-icon {
  color: #ff5f56;
}
.form-group.error .error-msg {
  display: block;
}

/* Custom Checkbox */
.checkbox-group {
  display: flex;
  flex-direction: column;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #aaa;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #000;
  border: 1px solid #555;
  flex-shrink: 0;
  transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--color-primary);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox a {
  color: var(--color-text);
  text-decoration: underline;
}

/* Captcha Specific */
.captcha-group {
  background: #111;
  padding: 1rem;
  border: 1px solid #333;
  margin-bottom: 1.5rem;
}

/* Messages */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--color-primary);
  padding: 1.5rem;
  z-index: 2000;
  display: none; /* Hidden by default, JS will show it */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.cookie-title {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.cookie-text p {
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.4;
}

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .cookie-banner {
    width: 90%;
    left: 5%;
    right: 5%;
    bottom: 20px;
  }
}

/* --- TEXT PAGES (Privacy, Terms, etc.) --- */
.pages {
  padding-top: calc(80px + var(--spacing-lg)); /* Header offset */
  padding-bottom: var(--spacing-xl);
  min-height: 80vh;
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.last-updated {
  font-family: var(--font-mono);
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.pages {
  max-width: 800px;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.pages p {
  margin-bottom: 1.5rem;
  color: #bbb;
  font-size: 1rem;
}

.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: #bbb;
}

.pages li {
  margin-bottom: 0.5rem;
}

.pages li strong {
  color: #fff;
}

.pages a {
  color: var(--color-primary);
  text-decoration: underline;
}

.pages a:hover {
  text-decoration: none;
}
