/* --- Variables & Reset --- */
:root {
  /* Colors */
  --bg-dark: #0f0c29;
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --primary-color: #7b4eff; /* Neon Purple */
  --secondary-color: #00d2ff; /* Cyan */
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 15px;

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

  /* Spacing & Sizes */
  --header-height: 80px;
  --border-radius-lg: 30px;
  --border-radius-md: 20px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed; /* Creates depth */
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

ul {
  list-style: none;
}

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

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

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px; /* Hyper-rounded */
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.btn--primary {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 10px 20px rgba(123, 78, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(123, 78, 255, 0.5);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: 0.4s;
}

.header__container {
  background: rgba(15, 12, 41, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 50px; /* Floating capsule header */
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo-img {
  width: 32px;
  height: 32px;
}

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

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

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

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

/* Micro-animation: Underline slide */
.header__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--secondary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.header__toggle,
.header__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* --- Footer --- */
.footer {
  margin-top: 5rem;
  padding: 4rem 0 2rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* Asymmetric grid */
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

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

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.footer__link:hover {
  color: var(--secondary-color);
  transform: translateX(5px); /* Micro-animation: Slide right */
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.footer__bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
}

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

/* --- Responsive Design --- */
/* --- Responsive Design (Mobile Fixes) --- */
@media (max-width: 992px) {
  .header__container {
    padding: 0 1.5rem;
  }
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .header {
    top: 0;
    padding-top: 10px;
  }

  .header__container {
    border-radius: 20px;
    height: 60px; /* Smaller header on mobile */
  }

  .header__logo-text {
    font-size: 1.1rem;
  }

  /* Mobile Menu - Side Slide Style */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden to the right */
    width: 100%; /* Full width or use 80% for sidebar effect */
    height: 100vh;
    background: rgba(15, 12, 41, 0.98); /* Almost opaque background */
    backdrop-filter: blur(20px);
    padding: 6rem 2rem 4rem; /* Top padding clears space for close button */
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 100; /* Below the toggle button if you want toggle to stay visible */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
  }

  /* Active State */
  .header__nav.show-menu {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .header__link {
    font-size: 1.5rem; /* Bigger text for mobile */
    font-weight: 600;
  }

  /* Buttons */
  .header__toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101; /* Above the menu so it can close it */
    transition: transform 0.3s;
  }

  /* Close button inside menu (optional if toggle works) */
  .header__close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
  }

  .header__btn {
    display: none; /* Hide standard CTA, maybe add inside menu if needed */
  }

  /* Adjust Footer Grid */
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer__contacts,
  .footer__list {
    align-items: center;
  }

  /* Hero adjustments */
  .hero__title {
    font-size: 2.5rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Canvas Background */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind content */
  opacity: 0.6;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

/* Typography & Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(123, 78, 255, 0.2);
  border: 1px solid rgba(123, 78, 255, 0.4);
  border-radius: 50px;
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem); /* Giant responsive text */
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero__title-gradient {
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block; /* Break line visually */
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero__btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

/* Floating Glass Card (Asymmetric) */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  position: relative;
  transform: rotate(-3deg) translateY(20px); /* Breaking the grid */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}

.glass-card:hover {
  transform: rotate(0deg) translateY(0);
}

.hero__card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 10px 20px rgba(123, 78, 255, 0.4);
}

.hero__card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero__card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

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

.hero__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 2;
}

.hero__scroll:hover {
  opacity: 1;
}

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

.hero__scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.hero__scroll-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--text-main);
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

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

  .hero__actions {
    align-items: center;
  }

  .glass-card {
    transform: none; /* Reset rotation on mobile */
    max-width: 500px;
    margin: 0 auto;
  }

  .hero__stats {
    justify-content: center;
  }
}

/* --- SECTIONS COMMON --- */
.section-header {
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

/* Creative Underline for highlights */
.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary-color);
  opacity: 0.3;
  transform: skewX(-15deg);
  z-index: -1;
}

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

/* --- METHODOLOGY SECTION --- */
.methodology {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Background Glow Effect */
.methodology__bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(123, 78, 255, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.step-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Positioning variants for Asymmetry */
.step-card--left {
  justify-content: flex-start;
  padding-left: 5%;
}

.step-card--right {
  justify-content: flex-end;
  padding-right: 5%;
}

.step-card--center {
  justify-content: center;
}

/* Large decorative number behind card */
.step-card__number {
  position: absolute;
  font-size: 15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  z-index: -1;
  line-height: 1;
  user-select: none;
  transition: transform 0.5s ease;
}

.step-card--left .step-card__number {
  left: -20px;
  top: -40px;
}

.step-card--right .step-card__number {
  right: -20px;
  top: -40px;
}

.step-card--center .step-card__number {
  top: -50px;
}

/* The Glass Card itself */
.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Effect: Scale & Border Shine */
.glass-panel:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-card:hover .step-card__number {
  transform: scale(1.1); /* Number grows when card is hovered */
  color: rgba(255, 255, 255, 0.05);
}

.step-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.step-card__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.step-card__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.step-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #00ff9d; /* Green accent for "Free" */
  font-weight: 600;
}

.step-card__btn {
  margin-top: 1rem;
}

/* Animation Class (handled by JS later) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .step-card--left,
  .step-card--right,
  .step-card--center {
    justify-content: center;
    padding: 0;
  }

  .step-card__number {
    font-size: 10rem;
    top: -20px;
  }
}

/* --- BENTO GRID SECTION --- */
.program {
  padding: 4rem 0 8rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Individual Item Styles */
.bento-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px; /* Hyper-rounded per requirement */
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 78, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Grid Spans (The "Mosaic" Logic) */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(123, 78, 255, 0.05) 100%
  );
}

.bento-item--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(0, 210, 255, 0.05) 100%
  );
}

.bento-item--wide {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  align-items: center;
}

/* Content Styling */
.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-content--row {
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
}

.bento-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.bento-icon-wrapper--accent {
  background: var(--primary-color);
  color: white;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.bento-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bento-text--sm {
  font-size: 0.85rem;
}

/* Big faded icons for small cards */
.bento-big-icon {
  font-size: 3rem;
  width: 48px;
  height: 48px;
  color: var(--secondary-color);
  opacity: 0.8;
  margin-bottom: auto; /* Push text down */
}

/* Specific buttons */
.btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-circle:hover {
  background: var(--text-main);
  color: var(--bg-dark);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn--glass:hover {
  background: white;
  color: var(--bg-dark);
}

/* Decor for large card */
.bento-bg-decor {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(30px);
}

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

  /* On tablet, tall becomes normal or spans 2 rows depends on logic */
  .bento-item--tall {
    grid-column: span 1;
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .bento-item {
    min-height: 200px;
  }

  .bento-content--row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

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

/* --- REVIEWS SECTION (MARQUEE) --- */
.reviews {
  padding: 4rem 0 8rem;
  overflow: hidden; /* Hide horizontal scrollbar */
  position: relative;
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  /* Fade effect on sides */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.marquee {
  width: 100%;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content; /* Ensure width fits all cards */
}

/* Animations */
.marquee__track--left {
  animation: scrollLeft 40s linear infinite;
}

.marquee__track--right {
  animation: scrollRight 45s linear infinite; /* Slightly different speed */
}

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

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Move by half because of duplication */
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  } /* Start shifted */
  100% {
    transform: translateX(0);
  }
}

/* Review Card Styles */
.review-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 30px; /* Rounded corners requirement */
  padding: 2rem;
  width: 350px; /* Fixed width for smooth grid */
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
  border-color: rgba(123, 78, 255, 0.3);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.review-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
}

.review-card__stars {
  color: #ffd700; /* Gold */
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.review-card__text strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
  .review-card {
    width: 280px;
    padding: 1.5rem;
  }

  .marquee__track--left {
    animation-duration: 30s; /* Faster on mobile */
  }

  .marquee__track--right {
    animation-duration: 35s;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 6rem 0;
  position: relative;
}

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

.contact__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.contact__icon-box {
  width: 30px;
  height: 30px;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.contact__icon-box svg {
  width: 16px;
  height: 16px;
}

/* --- FORM STYLES --- */
.contact__form-wrapper {
  position: relative;
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem; /* Space for icon */
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 50px; /* Rounded inputs */
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
  outline: none;
}

.form-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.form-input:focus + .input-icon,
.form-input:not(:placeholder-shown) + .input-icon {
  /* Keep icon lit if text exists */
  color: var(--secondary-color);
}

/* Error State */
.form-input.error {
  border-color: #ff4e4e;
}
.error-msg {
  display: none;
  color: #ff4e4e;
  font-size: 0.8rem;
  margin-left: 1rem;
  margin-top: 0.3rem;
}
.form-input.error ~ .error-msg,
.captcha-container.error ~ .error-msg,
.checkbox-group.error ~ .error-msg {
  display: block;
}

/* --- CUSTOM CAPTCHA --- */
.captcha-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: fit-content;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.3s;
}

.captcha-container:hover {
  background: rgba(255, 255, 255, 0.08);
}

.captcha-container.error {
  border-color: #ff4e4e;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.captcha-loader {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.captcha-check {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  display: none;
}

.captcha-container.active .captcha-box {
  border-color: transparent;
}
.captcha-container.active .captcha-check {
  display: block;
}

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

/* --- CHECKBOX --- */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary-color);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-checkbox:checked {
  background: var(--secondary-color);
}

.custom-checkbox:checked::after {
  content: "✔";
  position: absolute;
  color: var(--bg-dark);
  font-size: 0.8rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

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

.form-btn {
  width: 100%;
  font-size: 1.1rem;
}

/* --- SUCCESS MESSAGE --- */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 41, 0.95); /* Matches theme bg */
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.success-message.visible {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  margin-bottom: 1.5rem;
}

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

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100%; /* Hidden initially */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 1000;
  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.show {
  bottom: 20px;
}

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

.cookie-icon {
  color: #ffd700;
  min-width: 24px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: white;
}

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

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

  .contact__info {
    text-align: center;
  }

  .contact__list {
    align-items: center;
  }

  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
}

/* --- PAGES (PRIVACY, TERMS etc) --- */
.pages {
  padding: 8rem 0 4rem; /* More top padding because of fixed header */
  min-height: 100vh;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: white;
}

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

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

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

.pages strong {
  color: var(--text-main);
}

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

/* --- Footer Logo Fix --- */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* Відступ між іконкою та текстом */
  margin-bottom: 1rem;
  text-decoration: none;
  /* На мобільних центруємо, якщо контейнер має text-align: center */
  justify-content: flex-start;
}

.footer__logo-img {
  width: 40px; /* Фіксована ширина */
  height: 40px; /* Фіксована висота */
  object-fit: contain; /* Щоб не розтягувалося */
  flex-shrink: 0; /* Щоб не стискалося */
}

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

/* Адаптив для центрування на мобільних (якщо потрібно) */
@media (max-width: 768px) {
  .footer__logo {
    justify-content: center; /* Центруємо лого по горизонталі */
  }
}
