:root {
  /* Palette: Retro-Futurism */
  --bg-dark: #050505;
  --bg-panel: #0f0f14;
  --primary: #00ffcc; /* Neon Cyan */
  --secondary: #ff00ff; /* Neon Magenta */
  --accent: #ffff00; /* Cyber Yellow */
  --text-main: #e0e0e0;
  --text-muted: #8a8a9b;

  /* Fonts */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Share Tech Mono", monospace; /* Monospace for tech vibe */

  /* Geometry: Strict */
  --border-width: 1px;
  --container-width: 1240px;
  --header-height: 80px;
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: linear-gradient(
      rgba(0, 255, 204, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
  background-size: 40px 40px; /* Grid background effect */
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Button Styles (Strict Geometry) */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  border: var(--border-width) solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* NO BORDER RADIUS */
  border-radius: 0;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--primary);
}

/* --- STAGE 1: HEADER STYLES --- */
.header {
  background-color: rgba(5, 5, 5, 0.95);
  border-bottom: var(--border-width) solid var(--primary);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 30px;
  /* Placeholder fallback style if SVG is missing */
  background: var(--primary);
  width: 30px;
  mask-image: url("img/logo.svg"); /* If you have the file */
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary);
}

.header__nav {
  display: none; /* Mobile first hidden */
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }

  .header__menu {
    display: flex;
    gap: 30px;
  }

  .header__link {
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
  }

  .header__link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
  }

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

  .header__link:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary);
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__burger {
  background: none;
  border: 1px solid var(--text-main);
  color: var(--text-main);
  padding: 5px;
  cursor: pointer;
  border-radius: 0; /* Strict geometry */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* Mobile Menu Active State */
.header__nav.is-active {
  display: flex;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--secondary);
  padding: 20px 0;
  flex-direction: column;
  align-items: center;
  animation: glitchSlide 0.3s ease-out forwards;
}

.header__nav.is-active .header__menu {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@keyframes glitchSlide {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- STAGE 2: FOOTER STYLES --- */
.footer {
  background-color: var(--bg-panel);
  border-top: var(--border-width) solid var(--secondary);
  padding-top: 60px;
  margin-top: auto; /* Push to bottom */
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer__title {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
  border-left: 3px solid var(--secondary);
  padding-left: 10px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link:hover {
  color: var(--primary);
  padding-left: 5px; /* Micro-interaction: shift */
}

.footer__tagline {
  margin: 15px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__eu-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px;
  margin-top: 15px;
  display: inline-flex;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.footer__contact-item i {
  color: var(--primary);
  min-width: 20px;
}

.footer__bottom {
  background-color: #000;
  padding: 20px 0;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Retro Grid Background Effect */
.hero__grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 255, 204, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 204, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  perspective: 500px;
  transform: scale(1.2);
  z-index: -1;
  opacity: 0.5;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--secondary);
  padding: 8px 16px;
  margin-bottom: 25px;
  font-size: 0.85rem;
  color: var(--secondary);
  background: rgba(255, 0, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__status-icon {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: blink 1.5s infinite;
}

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

/* Typography */
.hero__title {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  color: #fff;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

.text-highlight {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.hero__description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 500px;
  border-left: 2px solid var(--text-muted);
  padding-left: 20px;
}

.hero__highlight-text {
  color: var(--text-main);
  font-weight: 700;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.hero__sub-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.hero__sub-action i {
  color: var(--accent);
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.hero__stat-desc {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Visual / Image Frame */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--primary);
  background: rgba(0, 255, 204, 0.05);
  max-width: 100%;
}

.hero__img {
  filter: grayscale(100%) contrast(120%) brightness(0.8) sepia(20%)
    hue-rotate(130deg);
  mix-blend-mode: luminosity;
  border: 1px solid rgba(0, 255, 204, 0.3);
  width: 100%;
  height: auto;
  display: block;
}

/* Decorative Corners for Frame */
.corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--primary);
  z-index: 2;
}

.corner--tl {
  top: -2px;
  left: -2px;
  border-bottom: none;
  border-right: none;
}
.corner--tr {
  top: -2px;
  right: -2px;
  border-bottom: none;
  border-left: none;
}
.corner--bl {
  bottom: -2px;
  left: -2px;
  border-top: none;
  border-right: none;
}
.corner--br {
  bottom: -2px;
  right: -2px;
  border-top: none;
  border-left: none;
}

/* Scanline Animation */
.hero__scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 255, 204, 0.5);
  opacity: 0.6;
  animation: scanline 3s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes scanline {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* --- CAPABILITIES SECTION --- */
.capabilities {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  margin-bottom: 60px;
  border-left: 2px solid var(--primary);
  padding-left: 20px;
}

.section-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}

.section-title__prefix {
  color: var(--primary);
  font-size: 1rem;
  opacity: 0.7;
  margin-right: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-family: var(--font-body);
  max-width: 600px;
}

/* Grid Layout */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Strict borders: no gap, borders handled by items */
  gap: 0;
  border: var(--border-width) solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Grid Item Styling */
.cap-item {
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-width) solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  position: relative;
  transition: all 0.3s ease;
  /* Negative margin to collapse double borders */
  margin: -1px 0 0 -1px;
}

.cap-item:hover {
  background: var(--bg-panel);
  border-color: var(--primary);
  z-index: 10; /* Bring to front on hover */
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.05);
}

/* Grid Spanning */
@media (min-width: 1200px) {
  .cap-item--large {
    grid-row: span 2;
  }
  .cap-item--wide {
    grid-column: span 2;
  }
}

/* Item Content */
.cap-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.cap-item__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.cap-item:hover .cap-item__num {
  color: var(--primary);
}

.cap-item__header i {
  color: var(--secondary);
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.cap-item:hover .cap-item__header i {
  transform: scale(1.2) rotate(15deg);
  color: var(--primary);
}

.cap-item__title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 15px;
}

.cap-item__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.highlight {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Visual element for wide card */
.cap-item__content-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .cap-item__content-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cap-item__visual {
    text-align: right;
  }
}

.binary-stream {
  font-family: monospace;
  color: var(--secondary);
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 2px;
}

/* Hover Micro-interaction: Corner accent */
.cap-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent var(--primary) transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cap-item:hover::after {
  opacity: 1;
}

/* --- LIFESTYLE SECTION --- */
.lifestyle {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-dark);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Central Line */
.timeline__line {
  position: absolute;
  left: 20px; /* Mobile alignment */
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

/* Animated decorative line on top */
.timeline__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%; /* Length of the "beam" */
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  animation: beamDrop 3s infinite linear;
}

@keyframes beamDrop {
  0% {
    top: -30%;
  }
  100% {
    top: 100%;
  }
}

@media (min-width: 768px) {
  .timeline__line {
    left: 50%;
    margin-left: -1px;
  }
}

/* Timeline Item */
.timeline__item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  z-index: 1;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .timeline__item {
    width: 50%;
    padding-right: 50px;
    text-align: right;
  }

  .timeline__item--right {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 50px;
    text-align: left;
  }
}

/* Marker (Time + Square Node) */
.timeline__marker {
  position: absolute;
  left: 20px; /* Aligned with line on mobile */
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

@media (min-width: 768px) {
  .timeline__marker {
    left: 100%; /* Center on desktop */
    flex-direction: row;
    align-items: center;
  }

  .timeline__item--right .timeline__marker {
    left: 0;
    flex-direction: row-reverse;
  }
}

.timeline__node {
  width: 16px;
  height: 16px;
  background-color: var(--bg-dark);
  border: 2px solid var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  /* Strict square geometry */
  border-radius: 0;
  position: relative;
}

/* Inner square */
.timeline__node::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: var(--secondary);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline__item:hover .timeline__node::after {
  opacity: 1;
}

.timeline__time {
  font-family: var(--font-body);
  color: var(--primary);
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 8px;
  border: 1px solid var(--primary);
  font-size: 0.85rem;
  position: absolute;
  top: -30px; /* Position above node */
  white-space: nowrap;
}

@media (min-width: 768px) {
  .timeline__time {
    position: static;
    top: auto;
  }
  /* Push time text away from center line */
  .timeline__item .timeline__time {
    margin-left: 15px;
  }
  .timeline__item--right .timeline__time {
    margin-right: 15px;
    margin-left: 0;
  }
}

/* Content Box */
.timeline__content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-left: 40px; /* Space for line on mobile */
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline__content::before {
  /* Connector line from main line to box */
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  width: 20px;
  height: 1px;
  background: var(--secondary);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .timeline__content {
    margin-left: 0;
  }

  .timeline__content::before {
    left: 100%; /* For left items, connect to right */
  }

  .timeline__item--right .timeline__content::before {
    left: auto;
    right: 100%; /* For right items, connect to left */
  }
}

.timeline__item:hover .timeline__content {
  border-color: var(--primary);
  transform: translateY(-5px);
  background: rgba(0, 255, 204, 0.02);
}

.timeline__title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.timeline__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.highlight-text {
  color: var(--text-main);
  border-bottom: 1px dashed var(--accent);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.btn-link:hover {
  color: var(--primary);
  gap: 12px; /* Micro-animation on hover */
}

/* --- AUTOMATION SECTION --- */
.automation {
  padding: 100px 0;
  background-image: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050505 70%);
}

.console-wrapper {
  border: var(--border-width) solid var(--text-muted);
  background: #000;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.05);
}

/* Console Header */
.console-bar {
  background: var(--bg-panel);
  border-bottom: var(--border-width) solid var(--text-muted);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-dot {
  width: 10px;
  height: 10px;
  background: var(--text-muted);
  /* Strict geometry squares */
  border-radius: 0;
}

.console-title {
  margin-left: auto;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Console Body Layout */
.console-body {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .console-body {
    flex-direction: row;
    min-height: 350px;
  }
}

/* Sidebar (Tabs) */
.console-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: var(--border-width) solid var(--text-muted);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .console-sidebar {
    width: 30%;
    border-bottom: none;
    border-right: var(--border-width) solid var(--text-muted);
  }
}

.console-tab {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  text-align: left;
  color: var(--text-muted);
  font-family: "Share Tech Mono", monospace;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.console-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.console-tab.active {
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

/* Display Area */
.console-display {
  flex: 1;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

/* Scanline effect specifically for the screen area */
.console-display::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 0;
}

.console-content {
  display: none;
  position: relative;
  z-index: 1;
  animation: fadeInConsole 0.3s ease;
}

.console-content.active {
  display: block;
}

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

/* Typography in Console */
.console-heading {
  font-family: var(--font-body);
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 1px dashed rgba(0, 255, 204, 0.3);
  padding-bottom: 10px;
}

.console-text {
  margin-bottom: 20px;
  color: var(--text-main);
}

.status-ok {
  color: var(--accent);
  float: right;
}

.console-highlight {
  border: 1px solid var(--primary);
  background: rgba(0, 255, 204, 0.1);
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

.console-list {
  margin-left: 10px;
}

.console-list li {
  margin-bottom: 5px;
  color: var(--secondary);
}

/* Blinking cursor at end of active content (optional nice touch) */
.console-content.active::after {
  content: "_";
  display: inline-block;
  animation: blinkCursor 1s infinite;
  color: var(--primary);
}

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

/* --- EDUCATION SECTION --- */
.education {
  padding: 100px 0;
  position: relative;
  /* subtle striped background */
  background-image: repeating-linear-gradient(
    45deg,
    var(--bg-dark),
    var(--bg-dark) 10px,
    #0a0a0a 10px,
    #0a0a0a 20px
  );
}

.db-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border: var(--border-width) solid var(--text-muted);
  background: var(--bg-dark);
}

.db-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.db-item:last-child {
  border-bottom: none;
}

/* Accordion Header */
.db-header {
  width: 100%;
  padding: 20px 25px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-main);
  text-align: left;
  transition: background 0.3s;
}

.db-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Active State Styles */
.db-item.active .db-header {
  background: var(--bg-panel);
  color: var(--primary);
}

.db-status {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--secondary);
  margin-right: 15px;
  min-width: 70px;
}

.db-item.active .db-status {
  color: var(--primary);
}

.db-title {
  flex: 1;
  font-size: 1rem;
  padding-right: 20px;
}

.db-icon {
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}

.db-item.active .db-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Accordion Content */
.db-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 255, 204, 0.02);
}

.db-inner {
  padding: 25px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
  }
}

.contact__form-wrapper {
  background: rgba(15, 15, 20, 0.8);
  border: var(--border-width) solid var(--primary);
  padding: 40px;
  position: relative;
  backdrop-filter: blur(10px);
}

.contact__form-wrapper::before,
.contact__form-wrapper::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  transition: all 0.3s;
}
.contact__form-wrapper::before {
  top: -1px;
  left: -1px;
}
.contact__form-wrapper::after {
  bottom: -1px;
  right: -1px;
}

/* Form Fields */
.form__group {
  margin-bottom: 25px;
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form__input-wrapper {
  position: relative;
}

.form__input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--text-muted);
  padding: 15px 15px 15px 45px; /* Space for icon */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  border-radius: 0;
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
  background: rgba(0, 255, 204, 0.05);
}

.form__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  transition: color 0.3s;
}

.form__input:focus + .form__icon {
  color: var(--primary);
}

.form__error {
  color: var(--secondary);
  font-size: 0.75rem;
  position: absolute;
  bottom: -20px;
  left: 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
}

.form__group.error .form__input {
  border-color: var(--secondary);
}

.form__group.error .form__icon {
  color: var(--secondary);
}

.form__group.error .form__error {
  opacity: 1;
  transform: translateY(0);
}

.form__captcha {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  max-width: 300px;
}

.form__captcha {
  background: #222;
  border-color: #444;
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.captcha-label input {
  display: none;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: all 0.2s;
}

.captcha-label input:checked + .captcha-box {
  border-color: var(--primary);
}

.captcha-label input:checked + .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #fff;
}

.captcha-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.captcha-badge i {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.form__agreement {
  margin-bottom: 30px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--primary);
  position: relative;
  border-radius: 0;
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--primary);
}

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

.form__submit-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.form__submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-dark);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.form__submit-btn.loading .btn-text {
  display: none;
}

.form__submit-btn.loading .btn-loader {
  display: block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.success-message {
  display: none;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-panel);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 10;
  animation: fadeIn 0.5s ease;
}

.success-message.visible {
  display: flex;
}

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

.success-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  border-radius: 0;
}

.success-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.success-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Visual Side (Desktop) */
.contact__visual {
  display: none;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

@media (min-width: 992px) {
  .contact__visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.contact__scan {
  width: 100%;
  text-align: center;
  color: var(--primary);
  font-family: monospace;
  opacity: 0.5;
}

.scan-line {
  height: 2px;
  background: var(--primary);
  width: 100%;
  margin-bottom: 10px;
  box-shadow: 0 0 10px var(--primary);
}

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--primary);
  padding: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;

  transform: translateY(calc(100% + 40px));
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* Плавний виїзд */
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.cookie-popup.show {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .cookie-popup {
    left: auto;
    right: 30px;
    width: 450px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-icon {
  color: var(--secondary);
  min-width: 24px;
  flex-shrink: 0;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}

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

.cookie-btn {
  padding: 10px 25px;
  font-size: 0.85rem;

  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.pages {
  padding: 140px 0 80px; /* Header offset */
  background: var(--bg-dark);
  min-height: 100vh;
}

.pages .container {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  position: relative;
}

/* Decorative top line for pages */
.pages .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.pages h1 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 40px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 3px solid var(--secondary);
}

.pages p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.pages ul {
  list-style: none;
  margin-bottom: 25px;
  padding-left: 20px;
}

.pages li {
  margin-bottom: 10px;
  color: var(--text-main);
  position: relative;
}

.pages li::before {
  content: ">";
  color: var(--primary);
  position: absolute;
  left: -20px;
  font-family: monospace;
}

.pages strong {
  color: #fff;
}

.pages a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.pages a:hover {
  border-bottom-color: var(--primary);
}
/* Change [LOCKED] text content via CSS when active is tricky, 
   so we'll stick to color change, or use JS if strictly needed.
   Let's keep it simple CSS for visual first. */
