/* VARIABLES & RESET */
:root {
  --bg-dark: #0a0a12;
  --bg-card: #13131f;
  --primary: #00f3ff; /* Neon Cyan */
  --secondary: #bc13fe; /* Neon Magenta */
  --text-main: #e0e0e0;
  --text-muted: #8a8a9b;
  --radius-xl: 50px; /* Hyper-rounded */
  --radius-lg: 30px;
  --font-head: "Orbitron", sans-serif;
  --font-body: "Exo 2", sans-serif;
  --glow-primary: 0 0 20px rgba(0, 243, 255, 0.4);
  --glow-secondary: 0 0 20px rgba(188, 19, 254, 0.4);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}
img {
  max-width: 100%;
  display: block;
}

/* UTILS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn--neon {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow:
    var(--glow-primary),
    inset 0 0 10px rgba(0, 243, 255, 0.1);
}

.btn--neon:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 40px var(--primary);
  transform: translateY(-3px) scale(1.05);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: 0.3s;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
  max-width: 1400px; /* Wider for header */
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.header__logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.header__nav {
  display: flex;
}

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

.header__link {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

.header__link:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(188, 19, 254, 0.6);
}

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

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

/* FOOTER */
.footer {
  background: linear-gradient(to top, #050508, var(--bg-card));
  padding: 80px 0 30px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  margin-top: 60px;
  border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer__logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.footer__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  color: var(--secondary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-card);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease-in-out;
    border-bottom-left-radius: var(--radius-xl);
  }

  .header__nav.active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .header__burger {
    display: block;
  }

  .header__link {
    font-size: 1.2rem;
  }

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

@media (max-width: 576px) {
  .header__container {
    padding: 0 20px;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Відступ під фіксований хедер */
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    #1a1a2e 0%,
    var(--bg-dark) 100%
  );
}

.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero__content {
  max-width: 800px;
  background: rgba(19, 19, 31, 0.4); /* Напівпрозорий фон для читабельності */
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.hero__badge-wrapper {
  margin-bottom: 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(0, 243, 255, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0, 243, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  color: #fff;
}

.hero__title-highlight {
  color: transparent;
  background: linear-gradient(90deg, var(--primary), #fff, var(--secondary));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
  text-shadow: 0 0 30px rgba(188, 19, 254, 0.3);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.7;
}

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

.hero__btn {
  padding: 16px 40px; /* Трохи більша кнопка для Hero */
  font-size: 1.1rem;
}

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

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

.hero__info-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

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

.hero__info-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

.hero__scroll-text {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__content {
    padding: 30px 20px;
    background: rgba(10, 10, 18, 0.6); /* Темніший фон на мобільному */
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .hero__btn {
    width: 100%;
    text-align: center;
  }
}

/* SECTION COMMON */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.text-highlight {
  color: var(--secondary);
}

.text-white {
  color: #fff;
}

/* METHODOLOGY GRID (BENTO STYLE) */
.methodology__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  grid-auto-rows: minmax(250px, auto); /* Мінімальна висота рядка */
  gap: 25px;
}

/* Base Card Styles */
.meth-card {
  background: linear-gradient(145deg, #13131f 0%, #0d0d15 100%);
  border-radius: var(--radius-lg); /* 30px */
  padding: 35px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.meth-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px -10px rgba(0, 243, 255, 0.15);
  border-color: rgba(0, 243, 255, 0.3);
}

/* Grid Spans (Breaking the Grid) */
.meth-card--large {
  grid-column: span 2;
  grid-row: span 1;
}

.meth-card--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(145deg, #1a1a2e 0%, #13131f 100%);
  border: 1px solid rgba(188, 19, 254, 0.1);
}

.meth-card--tall:hover {
  box-shadow: 0 10px 40px -10px rgba(188, 19, 254, 0.15);
  border-color: rgba(188, 19, 254, 0.3);
}

.meth-card--wide {
  grid-column: span 2;
}

/* Card Content */
.meth-card__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(0, 243, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 24px;
}

.meth-card__icon-wrap svg {
  width: 30px;
  height: 30px;
}

.icon-alt {
  background: rgba(188, 19, 254, 0.1);
  color: var(--secondary);
}

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

.meth-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.meth-card__list {
  margin-top: 30px;
}

.meth-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 500;
}

.meth-card__list i {
  color: var(--secondary);
  width: 18px;
  height: 18px;
}

/* Large Number Background */
.meth-card__bg-num {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-head);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  z-index: 1;
  pointer-events: none;
  transition: 0.4s;
}

.meth-card:hover .meth-card__bg-num {
  transform: scale(1.1) rotate(-5deg);
  color: rgba(255, 255, 255, 0.05);
}

/* Wide Card Layout */
.meth-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  z-index: 2;
}

.meth-card__info {
  max-width: 70%;
}

.btn-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn-icon:hover {
  transform: rotate(45deg) scale(1.1);
  background: #fff;
}

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

  .meth-card--tall {
    grid-column: span 2; /* На планшеті стає широким */
    grid-row: span 1;
  }

  .meth-card__list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }

  .methodology__grid {
    grid-template-columns: 1fr; /* Одна колонка на мобільному */
    gap: 15px;
  }

  .meth-card--large,
  .meth-card--tall,
  .meth-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .meth-card__bg-num {
    font-size: 5rem;
  }

  .meth-card__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .meth-card__info {
    max-width: 100%;
  }
}

/* COURSES SLIDER SECTION */
.courses__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

.courses__nav {
  display: flex;
  gap: 15px;
}

.courses__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

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

/* Slider Container */
.courses__slider-wrapper {
  position: relative;
}

.courses__slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px; /* Space for shadow/hover */
  /* Hide scrollbar styles */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.courses__slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Card Styles */
.course-card {
  flex: 0 0 400px; /* Fixed width */
  scroll-snap-align: start;
  background: rgba(19, 19, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 35px;
  position: relative;
  transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.course-card--highlight {
  background: linear-gradient(
    145deg,
    rgba(19, 19, 31, 0.8),
    rgba(0, 243, 255, 0.05)
  );
  border-color: rgba(0, 243, 255, 0.3);
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--secondary);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(188, 19, 254, 0.05);
}

.course-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge--hot {
  background: rgba(188, 19, 254, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(188, 19, 254, 0.3);
}

.course-card__head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.course-card__icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.course-card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
}

.course-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1; /* Pushes footer down */
}

.course-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.course-card__tags li {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.course-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.course-card__price {
  display: flex;
  flex-direction: column;
}

.course-card__price-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
}

.course-card__price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Progress Bar */
.courses__progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  border-radius: 2px;
  overflow: hidden;
}

.courses__progress-bar {
  width: 0%; /* JS will update this */
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.2s;
  box-shadow: 0 0 10px var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .course-card {
    flex: 0 0 85vw; /* Almost full width on mobile */
  }

  .courses__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .courses__nav {
    align-self: flex-end; /* Align buttons to right */
  }
}

/* TECH / TIMELINE SECTION */
.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

/* Central Neon Line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
  border-radius: 4px;
}

/* Moving Pulse Effect on Line */
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 200px; /* Length of the pulse */
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
  animation: pulseLine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 0;
}

@keyframes pulseLine {
  0% {
    top: -200px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.timeline__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
  opacity: 0; /* Hidden initially for JS animation */
  transform: translateY(50px);
  transition: 0.8s ease-out;
}

/* Item Animation State */
.timeline__item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Right alignment logic */
.timeline__item--right {
  flex-direction: row-reverse;
}

/* Marker (Center Circle) */
.timeline__marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow:
    0 0 20px rgba(0, 243, 255, 0.4),
    inset 0 0 10px rgba(0, 243, 255, 0.2);
  z-index: 2;
}

.timeline__marker svg {
  width: 24px;
  height: 24px;
}

/* Content Box */
.timeline__content {
  width: 45%;
  background: rgba(19, 19, 31, 0.8);
  backdrop-filter: blur(12px);
  padding: 40px;
  /* Asymmetric rounded corners */
  border-radius: 50px 10px 50px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: 0.3s;
}

.timeline__item--right .timeline__content {
  /* Mirror asymmetric corners */
  border-radius: 10px 50px 10px 50px;
  text-align: right;
}

.timeline__content:hover {
  transform: scale(1.03);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(188, 19, 254, 0.15);
}

.timeline__step {
  font-family: var(--font-head);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

.timeline__item--right .timeline__step {
  right: auto;
  left: 20px;
}

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

.timeline__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech__footer {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline::before,
  .timeline::after {
    left: 30px; /* Move line to left */
  }

  .timeline__marker {
    left: 30px;
    width: 40px;
    height: 40px;
  }

  .timeline__marker svg {
    width: 18px;
    height: 18px;
  }

  .timeline__item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 70px; /* Space for line */
    margin-bottom: 50px;
  }

  .timeline__item--right {
    flex-direction: column; /* Don't reverse on mobile */
  }

  .timeline__content {
    width: 100%;
    text-align: left;
    border-radius: 30px; /* Simpler radius on mobile */
  }

  .timeline__item--right .timeline__content {
    text-align: left;
    border-radius: 30px;
  }

  .timeline__step {
    right: 20px;
    left: auto;
  }
}

/* REVIEWS SECTION */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 35px;
  /* Chat Bubble Shape: TopL, TopR, BottomR, BottomL */
  border-radius: 40px 40px 40px 0;
  transition: 0.3s;
  position: relative;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Inverse style for "response" look */
.review-card--inverse {
  border-radius: 40px 40px 0 40px;
  background: linear-gradient(
    145deg,
    rgba(19, 19, 31, 0.9),
    rgba(188, 19, 254, 0.05)
  );
  border-color: rgba(188, 19, 254, 0.2);
}

.review-card--inverse:hover {
  border-color: var(--secondary);
}

/* Header */
.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.review-card__meta {
  flex-grow: 1;
}

.review-card__author {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 2px;
}

.review-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffd700; /* Gold for stars */
  font-weight: 700;
}

.review-card__rating svg {
  width: 16px;
  height: 16px;
  fill: #ffd700;
}

.review-card__body {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Card styling */
.review-card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 243, 255, 0.05);
  border: 1px dashed var(--primary);
  border-radius: 40px;
}

.cta-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin: 0 auto 15px;
}

.cta-title {
  font-family: var(--font-head);
  color: #fff;
  margin-bottom: 5px;
}

.cta-text {
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .review-card,
  .review-card--inverse {
    border-radius: 30px; /* Standard radius on mobile looks better */
  }
}

/* CONTACT SECTION */
.contact {
  padding-bottom: 120px;
}

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

.contact__content {
  padding-right: 20px;
}

.contact__features {
  margin-top: 40px;
}

.contact__features li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-main);
}

.contact__features svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

/* Form Container */
.contact__form-box {
  background: rgba(19, 19, 31, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

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

.form__label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-left: 15px;
}

.form__input-wrap {
  position: relative;
}

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

.form__input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px; /* Rounded inputs */
  padding: 15px 15px 15px 50px; /* Space for icon */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

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

.form__input:focus + .form__icon, /* If icon was after input */
.form__input:focus ~ .form__icon, /* Using general sibling combinator if structured differently, but here icon is before */
.form__input-wrap:focus-within .form__icon {
  color: var(--primary);
}

.form__error {
  color: #ff4d4d;
  font-size: 0.8rem;
  margin-top: 5px;
  margin-left: 15px;
  display: none; /* Hidden by default */
}

.form__error.active {
  display: block;
  animation: shake 0.3s ease;
}

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

/* Custom Captcha */
.captcha-box {
  background: #f9f9f9;
  border-radius: 4px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d3d3d3;
  max-width: 300px;
}

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

.captcha-label input {
  display: none;
}

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

.captcha-label input:checked + .captcha-custom {
  border-color: #009688;
}

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

.captcha-text {
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
}

.captcha-logo {
  height: 24px;
  opacity: 0.7;
}

/* Consent Checkbox */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 10px;
}

.consent-label input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: 0.3s;
}

.consent-label input:checked + .checkbox-custom {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.consent-label input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

/* Submit Button & Loader */
.form__btn {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

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

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

.form__btn.loading .btn-text {
  display: none;
}
.form__btn.loading .btn-loader {
  display: block;
}
.form__btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Success Message */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  z-index: 10;
  border-radius: var(--radius-xl);
  padding: 30px;
  animation: fadeIn 0.5s ease;
}

.form-success.active {
  display: flex;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 243, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

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

.success-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

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

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

  .contact__content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 30px;
  }

  .contact__features {
    display: inline-block;
    text-align: left;
  }
}

/* COOKIE POPUP */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Приховано за межами екрану */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(19, 19, 31, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.active {
  bottom: 30px;
}

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

.cookie-content svg {
  color: var(--secondary);
  min-width: 24px;
}

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

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

@media (max-width: 576px) {
  .cookie-popup {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px;
  }
  .cookie-content {
    flex-direction: column;
    margin-bottom: 15px;
  }
}

/* TECHNICAL PAGES STYLES (Privacy, Terms etc.) */
.pages {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.pages h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pages h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.pages p {
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.8;
}

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

.pages li {
  margin-bottom: 10px;
  padding-left: 10px;
}

.pages strong {
  color: #fff;
}

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

.pages a:hover {
  color: var(--primary);
}
html {
  scroll-behavior: smooth;
}
