/* --- VARIABLES & RESET --- */
:root {
  --bg-dark: #050505;
  --bg-card: #0f1014;
  --primary: #00f3ff; /* Cyan Neon */
  --secondary: #bc13fe; /* Purple Neon */
  --text-main: #e0e0e0;
  --text-muted: #8a8a9b;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::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;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- UI COMPONENTS --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(
    10% 0,
    100% 0,
    100% 70%,
    90% 100%,
    0 100%,
    0 30%
  ); /* Cyberpunk shape */
}

.btn--glow {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

.btn--glow:hover {
  background: var(--primary);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
  transform: translateY(-2px);
}

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

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
}

.header__logo-icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 5px var(--primary));
}

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

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

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.header__burger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

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

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

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

  .header__burger {
    display: none;
  }
}

/* Mobile Menu Active State */
.header__nav.active {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  flex-direction: column;
  padding: 20px;
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

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

/* --- FOOTER --- */
.footer {
  background: #08090c;
  border-top: 1px solid rgba(188, 19, 254, 0.2);
  padding: 80px 0 20px;
  margin-top: auto; /* Push to bottom if content is short */
  position: relative;
  overflow: hidden;
}

/* Decorative glow for footer */
.footer::before {
  content: "";
  position: absolute;
  top: -50px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: var(--secondary);
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@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.5fr; /* Asymmetric grid */
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 20px;
  background: -webkit-linear-gradient(0deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.footer__title {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

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

.footer__link {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: padding-left 0.3s ease;
}

.footer__link:hover {
  color: var(--primary);
  padding-left: 10px;
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--text-main);
}

.footer__icon {
  color: var(--secondary);
  min-width: 24px;
}

.footer__bottom {
  margin-top: 60px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #555;
  font-size: 0.8rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* Header height offset */
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Затемнення поверх канвасу, щоб текст читався */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(188, 19, 254, 0.1),
    rgba(5, 5, 5, 0.8)
  );
  z-index: 2;
}

.hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  width: 100%;
}

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

/* Content Column */
.hero__content {
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  /* Скошений кут (Cyberpunk) */
  clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
}

.hero__badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7);
  }
  70% {
    opacity: 0.5;
    box-shadow: 0 0 0 10px rgba(0, 243, 255, 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
  }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 30px;
}

.hero__glitch {
  color: var(--secondary); /* Purple neon */
  position: relative;
  display: inline-block;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  border-left: 3px solid var(--primary);
  padding-left: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.hero__status {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
}

.hero__status-val {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

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

/* Decorative / Asymmetric Column */
.hero__decoration {
  display: none;
  position: relative;
}

@media (min-width: 992px) {
  .hero__decoration {
    display: block;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    /* Асиметрія: зміщуємо блок */
    transform: translateY(40px) translateX(20px);
    box-shadow: -20px 20px 0 rgba(188, 19, 254, 0.1);
  }
}

.hero__code-block {
  padding: 30px;
  font-family: "Courier New", monospace;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.8;
}

.hero__code-block span {
  display: block;
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  padding-bottom: 5px;
}

/* --- GLOBAL SECTION STYLES --- */
.section-padding {
  padding: 100px 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.text-neon {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 60px;
}

.highlight {
  color: var(--secondary);
  font-weight: 700;
}

/* --- ABOUT GRID (ASYMMETRY) --- */
/* --- ABOUT GRID (ASYMMETRY FIXED) --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* Desktop Grid Logic */
@media (min-width: 992px) {
  .about__grid {
    grid-template-columns: repeat(12, 1fr);
    /* Визначаємо явні рядки, щоб уникнути накладання */
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: start; /* Вирівнювання по верху */
  }

  /* Card 1: Left Big (Spans 2 rows height) */
  .tech-card--large {
    grid-column: 1 / 8;
    grid-row: 1 / 3; /* Займає обидва рядки по висоті */
    min-height: 100%; /* Розтягуємо на всю висоту сітки */
  }

  /* Card 2: Top Right */
  .tech-card--top-right {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
    margin-top: 30px; /* Невелике зміщення вниз для асиметрії */
  }

  /* Card 3: Bottom Right */
  .tech-card--bottom-right {
    grid-column: 8 / 13;
    grid-row: 2 / 3;
    margin-left: 20px; /* Зміщення вліво для асиметрії відносно верхньої */
    /* Більше немає негативного transform, тому не налізає */
  }

  /* Стилі для about__decoration видалені */
}

/* --- TECH CARDS STYLES --- */
/* Базові стилі карток залишаються тими самими... */
.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  /* Cyberpunk corners */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%
  );
  /* Забезпечуємо, щоб контент не вилазив, якщо картка стає меншою */
  display: flex;
  flex-direction: column;
}

.tech-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1; /* Текст займає вільний простір */
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
  transform: translateY(-5px);
  z-index: 5; /* Щоб при наведенні картка була вище сусідніх */
}

/* Neon glow line on hover */
.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--primary);
  opacity: 0.3;
  transition: var(--transition);
}

.tech-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--primary);
}

.tech-card__icon-box {
  margin-bottom: 25px;
  color: var(--secondary);
  width: 50px;
  height: 50px;
}

.tech-card__icon-box svg {
  width: 100%;
  height: 100%;
}

.tech-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
}

/* Card Decorations (Status, Loader) - Без змін */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00ff6a;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff6a;
  margin-right: 8px;
}

.tech-card__status {
  margin-top: auto; /* Притискаємо до низу картки */
  padding-top: 25px;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #00ff6a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-loader {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: auto; /* Притискаємо до низу картки */
  padding-top: 25px; /* Відступ замість margin-top, щоб не ламати flex */
  border-radius: 2px;
  overflow: hidden;
  box-sizing: content-box; /* Важливо для коректного padding */
}

.tech-loader__bar {
  width: 60%;
  height: 4px; /* Явна висота */
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: load 3s infinite ease-in-out;
}

@keyframes load {
  0% {
    width: 10%;
    transform: translateX(0);
  }
  50% {
    width: 80%;
    transform: translateX(20px);
  }
  100% {
    width: 10%;
    transform: translateX(0);
  }
}

/* --- Animation Fixes --- */
/* Видаліть попередній блок медіа-запиту для .tech-card--overlap.visible */
/* Тепер базової анімації достатньо */
.fade-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SERVICES SECTION --- */
.services {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(188, 19, 254, 0.05),
    transparent 70%
  );
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
}

@media (min-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center; /* Центруємо по вертикалі, щоб центральна картка могла бути вищою */
  }
}

/* Service Card Styles */
.service-card {
  background: rgba(15, 16, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Cyberpunk cut corner top-right */
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.service-card:hover {
  background: rgba(20, 21, 26, 0.8);
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Popular (Middle) Card */
.service-card--popular {
  background: rgba(188, 19, 254, 0.05); /* Slight purple tint */
  border: 1px solid var(--secondary);
  padding: 60px 30px; /* Taller */
  box-shadow: 0 0 30px rgba(188, 19, 254, 0.1);
  z-index: 2;
}

.service-card--popular:hover {
  box-shadow: 0 0 50px rgba(188, 19, 254, 0.2);
  border-color: var(--primary);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 30px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 15px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 80%);
}

/* Typography inside card */
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.service-card__price {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.service-card__price span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-desc {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* List */
.service-list {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-list li strong {
  color: #fff;
}

.service-list li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.service-list li.disabled {
  opacity: 0.5;
  text-decoration: line-through;
}

.service-list li.disabled svg {
  color: #555;
}

.service-btn {
  width: 100%;
  text-align: center;
  margin-top: auto; /* Push to bottom */
}

/* --- BLOG SECTION --- */
.blog {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, var(--bg-dark) 0%, #08090c 100%);
}

.blog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.blog__header-actions {
  max-width: 600px;
  text-align: right;
}

@media (max-width: 768px) {
  .blog__header-actions {
    text-align: left;
  }
  .desktop-only {
    display: none;
  }
}

.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

/* Button Outline Style (New) */
.btn--outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 25px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn--outline:hover {
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* --- BLOG LAYOUT (ASYMMETRY) --- */
.blog__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .blog__layout {
    grid-template-columns: 1.2fr 0.8fr; /* Великий зліва, менші справа */
  }
}

.blog__sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* --- BLOG CARD STYLES --- */
.blog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.04);
}

/* Featured Card Specifics */
.blog-card--featured .blog-card__img-box {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--bg-dark);
  color: var(--primary);
  padding: 5px 10px;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  border: 1px solid var(--primary);
}

.blog-card__content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card__meta {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
}

.blog-card__title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* Read More Link styled as Code */
.read-more {
  color: var(--secondary);
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Side Card Specifics */
.blog-card--side {
  border-left: 3px solid transparent; /* Accent border preparation */
}

.blog-card--side:hover {
  border-left-color: var(--primary);
}

.blog-card--side .blog-card__title {
  font-size: 1.2rem;
}

/* --- REVIEWS SECTION --- */
.reviews {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Background decoration (faint grid) */
.reviews::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
}

.reviews__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* Chat Card Style */
.chat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  max-width: 80%;
  position: relative;
  backdrop-filter: blur(5px);
  /* Neon glow on left border */
  border-left: 3px solid var(--primary);
  transition: var(--transition);
}

.chat-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: -5px 5px 20px rgba(0, 243, 255, 0.05);
}

/* Right aligned card (Simulating conversation) */
.chat-card--right {
  align-self: flex-end;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 3px solid var(--secondary);
}

.chat-card--right:hover {
  transform: translateX(-10px);
  box-shadow: 5px 5px 20px rgba(188, 19, 254, 0.05);
}

/* Mobile: Full width */
@media (max-width: 768px) {
  .chat-card {
    max-width: 100%;
  }
}

.chat-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.chat-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.chat-card__meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chat-card__user {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.chat-card__time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "Courier New", monospace;
}

.chat-card__icon {
  color: var(--text-muted);
  width: 18px;
  opacity: 0.5;
}

.chat-card__body p {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.6;
}

.chat-card__footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.status-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #00ff6a;
  font-family: "Courier New", monospace;
  opacity: 0.8;
}

.status-verified svg {
  width: 14px;
  height: 14px;
}

/* --- CONTACT SECTION --- */
.contact {
  position: relative;
  /* Darker background for contrast */
  background: #0b0c10;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

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

/* Left Side Info */
.contact__details {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 1.1rem;
}

.detail-item svg {
  color: var(--primary);
}

.terminal-status {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--secondary);
}

.terminal-status p {
  margin-bottom: 5px;
}

/* Right Side Form Box */
.contact__form-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  position: relative;
  /* Asymmetric shape */
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Custom Captcha */
.form-captcha {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
}

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

.captcha-container input {
  display: none; /* Hide default checkbox */
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary);
  position: relative;
  transition: var(--transition);
}

/* Checkmark effect */
.captcha-container input:checked + .captcha-box {
  background: var(--primary);
}

.captcha-container input:checked + .captcha-box::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
}

.captcha-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
}

/* Terms Checkbox */
.form-terms {
  margin-bottom: 30px;
}

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

.terms-container input {
  margin-top: 3px;
  accent-color: var(--secondary);
}

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

.form-btn {
  width: 100%;
}

.form-message {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}

.error-msg {
  color: #ff3333;
}

/* Success State */
.form-success {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 106, 0.1);
  border: 2px solid #00ff6a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #00ff6a;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

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

.cookie-popup {
  position: fixed;
  bottom: -150px;
  left: 20px;
  right: 20px;
  background: rgba(15, 16, 20, 0.95);
  border: 1px solid var(--secondary);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

@media (min-width: 768px) {
  .cookie-popup {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px 20px;
    right: auto;
    width: auto;
    max-width: 600px;
    min-width: 400px;
  }
}

.cookie-popup.active {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 0.9rem;
  flex-grow: 1;
}

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

.cookie-content p {
  margin: 0;
  line-height: 1.4;
}

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

.cookie-btn {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 10px 25px;
  flex-shrink: 0;
}

/* --- TEXT PAGES STYLES (Privacy, Terms, etc.) --- */
.pages {
  background: var(--bg-dark);
  min-height: 80vh; /* Щоб футер не "підстрибував" на коротких сторінках */
  position: relative;
}

/* Обмежувач ширини для тексту, щоб очі не бігали по всьому екрану */
.pages {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

/* Заголовки H2 всередині тексту */
.pages h2 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.6rem;
  margin-top: 50px; /* Відступ від попереднього блоку */
  margin-bottom: 20px;
  border-left: 4px solid var(--primary); /* Неонова лінія зліва */
  padding-left: 20px;
  line-height: 1.3;
}

/* Звичайний текст */
.pages p {
  margin-bottom: 20px;
  color: #d1d1d1; /* Трохи світліший для кращого контрасту */
}

/* Списки */
.pages ul {
  margin-bottom: 30px;
  padding-left: 10px;
  list-style: none; /* Прибираємо стандартні точки */
}

.pages li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

/* Кастомні маркери списку в стилі коду */
.pages li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary); /* Фіолетовий маркер */
  font-weight: 700;
  font-family: "Courier New", monospace;
}

/* Посилання в тексті */
.pages a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
  transition: var(--transition);
}

.pages a:hover {
  color: #fff;
  border-bottom-style: solid;
  text-shadow: 0 0 10px var(--primary);
}

/* Strong (жирний текст) */
.pages strong {
  color: #fff;
  font-weight: 600;
}
