/* --- GLOBAL VARIABLES & RESET --- */
:root {
  --color-bg: #0a0b10;
  --color-surface: #14161f;
  --color-text-main: #e0e0e0;
  --color-text-muted: #858999;
  --color-accent: #00f0ff; /* Cyan Tech */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(0, 240, 255, 0.5);

  --font-main: "Inter", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  --container-width: 1280px;
  --border-radius: 2px; /* Sharp edges for utilitarian feel */
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  letter-spacing: 2px; /* Micro-animation */
}

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

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--color-text-main);
}

.header__logo-icon {
  color: var(--color-accent);
}

.header__nav {
  display: flex;
  align-items: center;
}

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

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

.header__link::before {
  content: "[";
  margin-right: 5px;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--color-accent);
}

.header__link::after {
  content: "]";
  margin-left: 5px;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--color-accent);
}

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

.header__link:hover::before,
.header__link:hover::after {
  opacity: 1;
}

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

.header__burger,
.header__close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
}

/* --- MOBILE MENU --- */
@media (max-width: 768px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--color-border);
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .header__close-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
  }

  .header__actions .btn {
    display: none; /* Hide CTA button in header on mobile to save space, assuming it's in menu or footer */
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0 0;
  margin-top: auto;
  font-family: var(--font-mono);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
}

.footer__title {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 5px;
  display: inline-block;
}

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

.footer__link {
  font-size: 0.9rem;
  color: var(--color-text-main);
  transition: padding-left 0.2s;
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer__col--brand .footer__logo-text {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--color-accent);
}

.footer__desc {
  margin-top: 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.footer__icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.footer__status {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #00ff66;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff66;
  border-radius: 50%;
  animation: blink 2s infinite;
}

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

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

.footer__note {
  margin-top: 5px;
  font-size: 0.75rem;
  opacity: 0.7;
}

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

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

/* --- HERO SECTION (Bento Grid) --- */
.hero {
  padding-top: 120px; /* Space for fixed header */
  padding-bottom: var(--spacing-lg);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 400px 150px;
  gap: var(--spacing-sm);
}

/* Block Styles */
.hero__item {
  background: rgba(20, 22, 31, 0.6);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition: border-color 0.3s ease;
}

.hero__item:hover {
  border-color: var(--color-border-hover);
}

/* Grid Placements */
.hero__item--main {
  grid-column: 1 / 3;
  grid-row: 1 / 3; /* Tall box on the left */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__item--visual {
  grid-column: 3 / 5;
  grid-row: 1 / 2; /* Wide box on top right */
  padding: 0; /* Remove padding for canvas */
}

.hero__item--stat {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.hero__item--info {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

/* Content Styles */
.hero__badge {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.8;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  font-weight: 400;
}

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

.hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 90%;
  margin-bottom: var(--spacing-md);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Visual Block (Canvas) */
#tech-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #050608;
}

.visual-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Stats Block */
.stat__value {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 5px;
}

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

.stat__bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.stat__fill {
  height: 100%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

/* Info Block */
.hero__item--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.info__icon {
  color: var(--color-accent);
  margin-bottom: 10px;
}

.info__title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.info__text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Tech Decor (Crosses) */
.corner-decor {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--color-text-muted);
  opacity: 0.3;
}

.corner-decor.top-left {
  top: 5px;
  left: 5px;
  border-right: none;
  border-bottom: none;
}
.corner-decor.top-right {
  top: 5px;
  right: 5px;
  border-left: none;
  border-bottom: none;
}
.corner-decor.bottom-left {
  bottom: 5px;
  left: 5px;
  border-right: none;
  border-top: none;
}
.corner-decor.bottom-right {
  bottom: 5px;
  right: 5px;
  border-left: none;
  border-top: none;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .hero__item--main {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .hero__item--visual {
    grid-column: 1 / 3;
    grid-row: 2;
    height: 300px;
  }
  .hero__item--stat {
    grid-column: 1 / 2;
    grid-row: 3;
  }
  .hero__item--info {
    grid-column: 2 / 3;
    grid-row: 3;
  }

  .hero__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
  }
  .hero__item--visual {
    height: 200px;
  }
  .hero__title {
    font-size: 2rem;
  }
}

/* --- SERVICES SECTION --- */
.section {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

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

.section-subtitle {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* Grid Layout */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

/* Service Card Style */
.service-card {
  background: rgba(20, 22, 31, 0.4);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  background: rgba(20, 22, 31, 0.8);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

/* Wide Card Modifier */
.service-card--wide {
  grid-column: span 2;
  background: linear-gradient(
    145deg,
    rgba(20, 22, 31, 0.6),
    rgba(0, 240, 255, 0.05)
  );
}

/* Card Header */
.service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.service-card__id {
  letter-spacing: 1px;
}

.service-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-main);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 5px #00ff66;
}

.status-dot.warning {
  background: #ffcc00;
  box-shadow: 0 0 5px #ffcc00;
}

/* Card Body */
.service-card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

/* Tech Specs List (for wide card) */
.tech-specs {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tech-specs li {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 2px;
}

/* Card Footer & Link */
.service-card__footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto;
}

.service-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transition: letter-spacing 0.3s ease;
}

.service-link:hover {
  letter-spacing: 2px;
  text-decoration: none;
}

/* Decorative Background Text */
.service-bg-text {
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 10rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .service-card--wide {
    grid-column: span 1;
  }
}

/* --- TECHNOLOGY SECTION --- */
.tech__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--spacing-sm);
  min-height: 300px;
}

.tech-card {
  background: rgba(20, 22, 31, 0.4);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
}

/* Card Info */
.tech-card--info {
  justify-content: space-between;
}

.tech-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.tech-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.tech-stat {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Card List (Center) */
.tech-card--list {
  padding: 0;
  overflow: hidden;
}

.tech-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.tech-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: background 0.2s;
}

.tech-row:last-child {
  border-bottom: none;
}

.tech-row:hover {
  background: rgba(0, 240, 255, 0.05);
}

.tech-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.tech-name i {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.tech-status {
  color: #00ff66;
  font-size: 0.75rem;
}

/* Card Decor (Code snippet) */
.tech-card--decor {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.code-snippet {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
}

.c-gray {
  color: #666;
}
.c-blue {
  color: #569cd6;
}
.c-yellow {
  color: #dcdcaa;
}
.c-green {
  color: #6a9955;
}

/* --- BLOG SECTION (LOGS) --- */
.blog__grid {
  display: flex;
  flex-direction: column;
  gap: 1px; /* Gap for border effect */
  background: var(--color-border); /* Color of the gap lines */
  border: 1px solid var(--color-border);
}

.log-entry {
  background: var(--color-bg); /* Reset background over the gap color */
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 0;
  transition: background 0.3s;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.02);
}

.log-date {
  padding: 2rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border-right: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
}

.log-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.log-tags {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--color-accent);
  color: #000;
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.log-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 400;
}

.log-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.btn-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Responsive Tech & Blog */
@media (max-width: 900px) {
  .tech__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .log-entry {
    grid-template-columns: 1fr;
  }

  .log-date {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

/* --- FAQ SECTION --- */
.faq__console {
  background: #050505;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.console-header {
  background: var(--color-surface);
  padding: 10px 15px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.faq__list {
  padding: 1rem;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 0;
  text-align: left;
  color: var(--color-text-main);
  font-family: var(--font-mono); /* Terminal font */
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

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

.faq__question .prompt {
  color: var(--color-accent);
  font-weight: bold;
}

/* Accordion Animation Logic */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.answer-content {
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
/* --- CONTACT SECTION --- */
.contact {
  position: relative;
  padding-bottom: 100px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Left Side */
.contact__badge {
  font-family: var(--font-mono);
  color: #00ff66;
  background: rgba(0, 255, 102, 0.1);
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

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

.contact__desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 90%;
}

.contact__features {
  margin-bottom: 3rem;
}

.contact__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  color: var(--color-text-main);
}

.contact__features i {
  color: var(--color-accent);
  width: 20px;
}

/* Right Side: Form Wrapper */
.contact__form-wrapper {
  background: rgba(20, 22, 31, 0.6);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(10px);
}

/* Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  width: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  padding: 1rem 1rem 1rem 3rem; /* Space for icon */
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s;
  border-radius: 0; /* Tech style */
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.form-input:focus + .input-icon, /* This handles icon color on focus if using sibling selector, but since icon is before, we use JS or simpler css */
.input-wrapper:focus-within .input-icon {
  color: var(--color-accent);
}

.form-hint {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 5px;
  display: block;
  font-family: var(--font-mono);
}

/* Custom Checkbox */
.form-check {
  display: flex;
  align-items: flex-start; /* Align top for long text */
  margin-bottom: 1.5rem;
  position: relative;
}

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

.check-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  gap: 10px;
  line-height: 1.4;
  user-select: none;
}

.custom-check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.check-input:checked + .check-label .custom-check {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.check-input:checked + .check-label .custom-check::after {
  content: "✓";
  color: #000;
  font-weight: bold;
  font-size: 14px;
}

/* Captcha Box */
.captcha-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.captcha-box .form-check {
  margin-bottom: 0;
  align-items: center;
}

.captcha-icon {
  color: var(--color-text-muted);
  width: 24px;
  height: 24px;
}

/* Submit Button Full Width */
.btn--full {
  width: 100%;
}

/* Success Message Overlay */
.form-success {
  display: none; /* Hidden by default */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 22, 31, 0.95);
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid #00ff66;
}

.form-success.is-visible {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 255, 102, 0.1);
  color: #00ff66;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

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

.success-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__info {
    text-align: center;
  }
  .contact__features {
    display: inline-block;
    text-align: left;
  }
}

/* --- FORM VALIDATION STYLES --- */
.input-error {
  border-color: #ff3333 !important;
  background: rgba(255, 51, 51, 0.05) !important;
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.2) !important;
  animation: shake 0.4s ease-in-out;
}

.error-msg {
  display: none;
  color: #ff3333;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 5px;
  padding-left: 5px;
}

.error-pulse {
  border-color: #ff3333 !important;
  animation: pulseRed 1s infinite;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes pulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 51, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(10, 11, 16, 0.95);
  border: 1px solid var(--color-accent);
  padding: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

.cookie-icon {
  color: var(--color-accent);
}

.cookie-title {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #fff;
}

.cookie-text p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

/* --- LEGAL PAGES STYLES (privacy.html etc) --- */
.pages {
  padding: 120px 0 80px; /* Top padding for fixed header */
  min-height: 100vh;
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1rem;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.pages p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 800px;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

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

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

.pages strong {
  color: #fff;
}
