:root {
  /* Colors */
  --bg-main: #0f172a;
  --bg-secondary: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #8b5cf6; /* Electric Violet */
  --accent-secondary: #06b6d4; /* Cyber Cyan */
  --accent-glow: rgba(139, 92, 246, 0.4);

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Shapes */
  --radius-full: 50px; /* Hyper-rounded */
  --radius-card: 32px;
  --container-width: 1280px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

ul {
  list-style: none;
}

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

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

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

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.header__link {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

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

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

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

.header__actions-mobile {
  display: none;
  margin-top: 20px;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* FOOTER */
.footer {
  background-color: var(--bg-secondary);
  padding: 80px 0 30px;
  border-top-left-radius: var(--radius-full);
  border-top-right-radius: var(--radius-full);
  margin-top: 50px;
}

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

/* Додай це правило для іконки логотипу у футері */
.footer__logo-icon {
  width: 40px; /* Фіксований розмір, як у хедері або трохи більше */
  height: auto;
  flex-shrink: 0; /* Забороняємо іконці сплющуватися */
}

/* Переконайся, що контейнер логотипу вирівнює текст та іконку */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none; /* Прибираємо підкреслення, якщо є */
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

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

.footer__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-secondary);
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-main);
}

.footer__list,
.footer__list-contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.footer__link:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

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

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__subtext {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .header__menu {
    display: none; /* Hide default menu */
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right var(--transition-fast);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

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

  .header__nav .header__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .header__link {
    font-size: 1.2rem;
  }

  .header__actions .header__btn {
    display: none; /* Hide desktop CTA */
  }

  .header__actions-mobile {
    display: block;
  }

  .header__burger {
    display: flex;
  }

  /* Burger Animation */
  .header__burger.is-active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .header__burger.is-active .header__burger-line:nth-child(2) {
    opacity: 0;
  }
  .header__burger.is-active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

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

  .footer__col--brand,
  .footer__col--contacts {
    grid-column: span 2;
  }
}

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

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

  .footer__col--brand,
  .footer__col--contacts,
  .footer__col--nav,
  .footer__col--legal {
    grid-column: span 1;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Padding top accounts for fixed header */
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Background Glow Effects */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: floatGlow 10s infinite alternate;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -100px;
  left: -100px;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  bottom: 50px;
  right: -50px;
  animation-delay: 2s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

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

/* Hero Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 25px;
  font-weight: 500;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
}

.hero__title {
  font-size: 4.5rem; /* Huge Typography */
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.03em;
}

/* Cursor blinking effect for typing animation */
.txt-type {
  color: var(--accent-primary);
  border-right: 0.1em solid var(--text-muted);
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% {
    border-color: transparent;
  }
  50% {
    border-color: var(--text-muted);
  }
  100% {
    border-color: transparent;
  }
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__info i {
  color: var(--accent-secondary);
  width: 18px;
}

.hero__stats {
  display: flex;
  gap: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

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

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Visual Side - Breaking the grid with rounded shapes */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 600px;
  border-radius: 200px 200px 40px 40px; /* Hyper rounded asymmetrical */
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.05);
}

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

.hero__image-wrapper:hover .hero__img {
  transform: scale(1.05);
}

/* Floating Elements */
.hero__floating-card {
  position: absolute;
  bottom: 60px;
  left: -40px;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero__fc-icon {
  width: 40px;
  height: 40px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__fc-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.hero__fc-text span {
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

/* Mobile Responsive Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__desc {
    margin: 0 auto 40px;
  }

  .hero__actions {
    justify-content: center;
    flex-direction: column;
    gap: 20px;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    margin-top: 20px;
  }

  .hero__image-wrapper {
    height: 400px;
    max-width: 100%;
  }

  .hero__floating-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 90%;
    animation: none; /* Disable float on mobile to save layout */
  }
}

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

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

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

.section-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.text-accent {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.text-accent::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--accent-secondary);
  opacity: 0.3;
  z-index: -1;
  transform: skewX(-20deg);
}

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

.badge-caps {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

/* BENTO GRID (Capabilities) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.bento-card--large {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(
    160deg,
    rgba(30, 41, 59, 0.6),
    rgba(15, 23, 42, 0.8)
  );
}

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

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-box--secondary {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-secondary);
}

.icon-box--accent {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-top: auto;
}

.link-arrow:hover gap {
  gap: 12px;
}

/* Wide card specific layout */
.bento-content-row {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
}

.ui-mockup {
  background: var(--bg-main);
  padding: 15px;
  border-radius: 12px;
  width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-mockup span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.loading-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 60%;
  background: var(--accent-primary);
  animation: loadingAnim 2s infinite ease-in-out;
}

@keyframes loadingAnim {
  0% {
    width: 0%;
  }
  50% {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}

/* SOLUTIONS SECTION (Pill/Card Style) */
.solutions {
  background-color: #0c1222; /* Slightly darker */
}

.solutions__bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.solutions-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.solution-item {
  position: relative;
}

.solution-item--highlight {
  margin-top: -30px; /* Breaking the grid vertically */
}

.solution-card {
  background: var(--bg-secondary);
  border-radius: 40px; /* Hyper rounded */
  padding: 40px 30px;
  height: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-fast);
}

.solution-item--highlight .solution-card {
  background: linear-gradient(145deg, #1e293b, #2d3b55);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 20px 50px -20px rgba(139, 92, 246, 0.15);
}

.solution-card:hover {
  transform: translateY(-10px);
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 20px;
  right: 30px;
  line-height: 1;
}

.solution-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  margin-top: 20px;
}

.feature-list {
  margin: 25px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list li i {
  width: 18px;
  height: 18px;
  color: var(--accent-secondary);
}

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-main);
}

.btn--outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.mt-auto {
  margin-top: auto;
}

.small-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  opacity: 0.6;
}

/* Animations Classes */
.reveal-text,
.reveal-up,
.reveal-side {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-side {
  transform: translateX(-30px);
}

.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

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

  .bento-card--large {
    grid-column: span 2;
    grid-row: auto;
  }

  .solutions-wrapper {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .solution-item--highlight {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--wide {
    grid-column: span 1;
  }
  .bento-content-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* LEARNING SECTION (Timeline) */
.learning {
  background: var(--bg-main);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px; /* Space for line */
}

/* The neon line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--accent-primary),
    var(--accent-secondary),
    transparent
  );
  box-shadow: 0 0 10px var(--accent-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 30px;
}

.timeline-marker {
  position: absolute;
  left: -20px; /* Aligns with line center (line is at 0, padding-left 30) -> left 0 relative to parent? No, absolute to item */
  /* Correction for alignment */
  left: -44px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--bg-main);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.marker-final {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: #fff;
  width: 40px;
  height: 40px;
  left: -49px;
  top: -5px;
}

.timeline-content {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 30px 30px 30px; /* Asymmetric rounding */
  padding: 25px;
  transition: var(--transition-fast);
}

.timeline-content:hover {
  background: rgba(30, 41, 59, 0.6);
  transform: translateX(10px);
  border-color: rgba(139, 92, 246, 0.3);
}

.timeline-content--highlight {
  background: linear-gradient(
    145deg,
    rgba(6, 182, 212, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 15px;
}

.timeline-tag svg {
  width: 14px;
  height: 14px;
}

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

/* REVIEWS (Infinite Marquee) */
.reviews {
  overflow: hidden; /* Hide scrollbars */
  padding-bottom: 50px;
}

.section-title--center {
  text-align: center;
  margin-bottom: 50px;
}

.marquee-wrapper {
  width: 100%;
  position: relative;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused; /* Pause on hover for readability */
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 15px));
  } /* -50% because we duplicated content, -15px for half gap */
}

.review-card {
  width: 350px;
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.review-header h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.review-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 15px;
}

.review-rating {
  color: #f1c40f; /* Gold for stars */
  font-size: 1rem;
  letter-spacing: 2px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }
  .timeline-marker {
    left: -35px;
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
  .marker-final {
    left: -42px;
    width: 35px;
    height: 35px;
  }
  .review-card {
    width: 280px;
  }
}

/* CONTACT SECTION */
.contact {
  background: linear-gradient(to bottom, var(--bg-main), #1a1a2e);
  overflow: hidden;
}

.contact__bg-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

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

.contact__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.contact__icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact__item a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

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

/* FORM STYLES */
.contact__form-wrapper {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.form__title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
}

.form__group {
  margin-bottom: 20px;
  position: relative;
}

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

.form__input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  outline: none;
}

.form__input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form__input.error {
  border-color: #ef4444;
}

.form__error {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  margin-left: 10px;
}

.form__input.error + .form__error {
  display: block;
}

#captchaError {
  display: none;
  margin-bottom: 10px;
}
#captchaError.visible {
  display: block;
}

/* Custom Captcha */
.captcha-container {
  background: #f9f9f9; /* Light bg like real captcha */
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 20px;
  user-select: none;
  min-width: 250px;
  position: relative;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  margin-right: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-checkbox:hover {
  border-color: #b2b2b2;
}

.captcha-text {
  color: #000;
  font-size: 14px;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
}

.captcha-logo-img {
  width: 32px;
  position: absolute;
  right: 10px;
  opacity: 0.5;
}

.captcha-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #4a90e2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.captcha-check-icon {
  display: none;
  width: 20px;
  height: 20px;
  color: #009688;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.captcha-container.solved .captcha-spinner {
  display: none;
}
.captcha-container.solved .captcha-check-icon {
  display: block;
}
.captcha-container.solved .captcha-checkbox {
  border: none;
}

/* Legal Checkbox */
.form__checkbox-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.custom-checkbox {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

.form__checkbox-wrapper label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.form__checkbox-wrapper a {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.btn--full {
  width: 100%;
}

/* Success Message */
.form__success {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.form__success h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* COOKIE POPUP */
/* COOKIE POPUP - FIXED */
.cookie-popup {
  position: fixed;
  bottom: -100%; /* Ховаємо повністю за межі екрану */
  right: 20px;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавний виїзд */
}

.cookie-popup.show {
  bottom: 20px;
}

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

.cookie-content svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-content a {
  color: var(--accent-secondary);
  text-decoration: underline;
  transition: color 0.3s;
}

.cookie-content a:hover {
  color: var(--accent-primary);
}

/* Mobile Adaptation for Cookie Popup */
@media (max-width: 576px) {
  .cookie-popup {
    right: 15px;
    left: 15px; /* Розтягуємо по ширині */
    max-width: none; /* Прибираємо обмеження ширини */
    flex-direction: row; /* На мобільному залишаємо рядком, якщо влазить */
    align-items: center;
    padding: 15px 20px;
    border-radius: 15px;
  }

  .cookie-popup.show {
    bottom: 15px; /* Відступ від низу на мобільному */
  }

  .cookie-content {
    flex-direction: column; /* Текст під іконкою, якщо мало місця, або іконку можна приховати */
  }

  /* Якщо хочеш, щоб кнопка була на всю ширину на дуже малих екранах */
  .cookie-popup {
    flex-direction: column;
  }

  .cookie-content {
    flex-direction: row;
    margin-bottom: 5px;
  }

  .cookie-popup .btn {
    width: 100%;
  }
}

/* STYLES FOR POLICY PAGES (Standard Text Pages) */
.pages {
  padding: 140px 0 80px;
  min-height: 80vh;
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-main);
  text-align: center;
}

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

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

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

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

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

/* Mobile Contact */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
  .contact__info {
    text-align: center;
  }
  .contact__desc {
    margin: 0 auto 40px;
  }
  .contact__details {
    align-items: center;
  }
}
