/* --- Variables & Reset --- */
:root {
  --bg-dark: #0a0b14;
  --bg-deep: #050508;
  --primary-neon: #00f0ff; /* Cyan Neon */
  --accent-neon: #7000ff; /* Purple Neon */
  --text-main: #e0e0e0;
  --text-muted: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);

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

  --container-width: 1240px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: --font-body;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(112, 0, 255, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 240, 255, 0.1) 0%,
      transparent 40%
    );
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
}

/* --- Container --- */
[class*="__container"] {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header (Glassmorphism + Sticky) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10, 11, 20, 0.7);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
}

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

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

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

/* Micro-interaction: Link Hover */
.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-neon);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 8px var(--primary-neon);
}

.header__link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

/* Button Styles (Glow Effect) */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px; /* Slight round, mostly sharp */
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: none;
  outline: none;
}

.btn--glow {
  background: transparent;
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), inset 0 0 0 rgba(0, 240, 255, 0);
  transition: all 0.4s ease;
}

.btn--glow:hover {
  background: var(--primary-neon);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
}

/* Burger Menu */
.header__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

/* Asymmetric Footer Grid */
.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 20px;
}

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

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #fff;
  position: relative;
  display: inline-block;
}

.footer__title::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-neon);
  box-shadow: 0 0 5px var(--accent-neon);
}

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

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

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

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

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--accent-neon);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__copyright {
  margin-top: auto;
  font-size: 0.8rem;
  color: #555;
}

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

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.4s ease;
    border-top: 1px solid var(--glass-border);
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__burger {
    display: block;
  }

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Background Glow Blobs */
.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.hero__glow--1 {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-neon), transparent);
}

.hero__glow--2 {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--primary-neon), transparent);
}

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

/* Content Side */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--primary-neon);
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
}

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

.hero__title {
  font-size: 4.5rem; /* Гігантський заголовок */
  line-height: 1.1;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(90deg, #fff 0%, var(--primary-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

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

.hero__btn {
  font-size: 1.1rem;
  padding: 14px 32px;
}

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

.hero__stat-val {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-heading);
}

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

/* Visual Side (Glass Cards) */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  position: absolute;
}

.glass-card--main {
  width: 100%;
  height: 100%;
  max-width: 450px;
  max-height: 400px;
  padding: 20px;
  z-index: 1;
  transform: rotate(-2deg); /* Легка асиметрія */
  display: flex;
  flex-direction: column;
}

.glass-card__header {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

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

.glass-card__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* Декоративні елементи всередині картки */
.chart-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-neon), transparent);
}
.chart-bar {
  height: 10px;
  width: 70%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.chart-bar.short {
  width: 40%;
}

.glass-card--float {
  bottom: 40px;
  right: -20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--primary-neon);
  z-index: 2;
  min-width: 180px;
  transform: rotate(2deg); /* Протилежний кут */
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.glass-card--float span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.glass-card--float strong {
  color: var(--primary-neon);
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.icon-up {
  color: var(--primary-neon);
  margin-bottom: 5px;
}

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

  .hero__actions {
    justify-content: center;
  }

  .hero__badge {
    margin: 0 auto 24px;
  }

  .hero__visual {
    height: 400px;
    margin-top: 40px;
  }

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

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .glass-card--float {
    right: 0;
    bottom: 0;
  }
}

/* --- Global Section Styles --- */
.section-padding {
  padding: 100px 0;
}

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

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

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

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

/* --- Bento Grid Layout --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 24px;
}

/* Стилізація окремих блоків */
.bento-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

/* Hover Effect: Neon Glow Border & Scale */
.bento-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-neon);
  box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
}

/* Модифікатори розмірів сітки */
.bento-item--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(112, 0, 255, 0.1) 100%
  );
}

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

/* Внутрішній контент */
.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-title {
  font-size: 1.5rem;
  margin: 20px 0 10px;
  font-weight: 600;
}

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

/* Icons */
.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-neon);
  margin-bottom: 10px;
}

.icon-box.color-accent {
  background: rgba(112, 0, 255, 0.1);
  color: var(--accent-neon);
}

.icon-box--lg {
  width: 70px;
  height: 70px;
}

.icon-box--lg i {
  width: 32px;
  height: 32px;
}

/* Декоративні елементи */
.bento-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.05;
  z-index: 1;
  transform: rotate(-15deg);
  transition: transform 0.5s ease;
}

.bento-bg-icon i {
  width: 200px;
  height: 200px;
  color: #fff;
}

.bento-item:hover .bento-bg-icon {
  transform: rotate(0deg) scale(1.1);
}

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

.header-flex .bento-title {
  margin: 0;
}

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

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

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

  .bento-item--wide {
    grid-column: span 1;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* --- Technology Section --- */
.technology {
  background-color: #08080c; /* Трохи темніший фон для контрасту */
  overflow: hidden;
}

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

/* Steps List */
.tech-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.tech-step {
  display: flex;
  gap: 24px;
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tech-step:hover,
.tech-step.active {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--glass-border);
}

.tech-step__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: color 0.3s ease;
}

.tech-step:hover .tech-step__num,
.tech-step.active .tech-step__num {
  color: var(--primary-neon);
  opacity: 1;
}

.tech-step__title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #fff;
}

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

/* --- Visual System (Right Side) --- */
.technology__visual {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tech-system {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Core (Ядро) */
.system-core {
  position: absolute;
  z-index: 10;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.core-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #444, #000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-neon);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  position: relative;
  z-index: 2;
}

.core-icon {
  color: var(--primary-neon);
  width: 40px;
  height: 40px;
}

/* Анімація пульсації ядра */
.core-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-neon);
  opacity: 0.2;
  z-index: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Стан Active для ядра */
.system-core.active .core-inner {
  background: var(--primary-neon);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.6);
}
.system-core.active .core-icon {
  color: #000;
}

/* 2. Orbit (Орбіта) */
.system-orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite;
  transition: all 0.5s ease;
}

.orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--text-muted);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

/* Стан Active для Орбіти */
.system-orbit.active {
  border-color: var(--accent-neon);
  box-shadow: 0 0 30px rgba(112, 0, 255, 0.1);
}
.system-orbit.active .orbit-dot {
  background: var(--accent-neon);
  box-shadow: 0 0 15px var(--accent-neon);
}

/* 3. Satellite (Супутник) */
.system-satellite {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spinReverse 25s linear infinite;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.sat-card {
  position: absolute;
  top: 0;
  right: 20px;
  background: rgba(20, 20, 30, 0.9);
  border: 1px solid var(--glass-border);
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.85rem;
  backdrop-filter: blur(5px);
}

.sat-card i {
  width: 16px;
  height: 16px;
  color: #27c93f;
}

@keyframes spinReverse {
  100% {
    transform: rotate(-360deg);
  }
}

/* Стан Active для Супутника */
.system-satellite.active {
  opacity: 1;
}
.system-satellite.active .sat-card {
  border-color: #27c93f;
  box-shadow: 0 0 20px rgba(39, 201, 63, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .technology__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tech-steps {
    align-items: center; /* Центруємо кроки */
  }

  .tech-step {
    text-align: left;
    max-width: 500px;
    width: 100%;
  }

  .technology__visual {
    margin-top: 40px;
  }
}

/* --- Courses Section --- */
.courses {
  position: relative;
  /* Легкий візерунок сітки на фоні */
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.courses__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.15), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center; /* Центрування по вертикалі, щоб виділена картка була більшою */
  perspective: 1000px; /* Для 3D ефекту */
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

/* Holographic Card Styles */
.holo-card {
  background: rgba(20, 20, 30, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2px; /* Місце для градієнтного бордера */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.holo-card__content {
  background: rgba(10, 11, 20, 0.9);
  border-radius: 18px;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Hover Effect 3D */
.holo-card:hover {
  transform: translateY(-15px) rotateX(2deg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.holo-card__header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.holo-card__title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.holo-card__price {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 5px;
}

.holo-card__sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.holo-card__list {
  margin-bottom: 40px;
  flex-grow: 1; /* Притискає кнопку до низу */
}

.holo-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #ddd;
  font-size: 0.95rem;
}

.holo-card__list li i {
  width: 18px;
  height: 18px;
  color: var(--primary-neon);
  flex-shrink: 0;
}

.holo-card__list li.disabled {
  color: rgba(255, 255, 255, 0.2);
  text-decoration: line-through;
}

.holo-card__list li.disabled i {
  color: rgba(255, 255, 255, 0.2);
}

/* Featured Card Modifier (Central) */
.holo-card--featured {
  transform: scale(1.05);
  border: 1px solid var(--primary-neon);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
  z-index: 2;
}

.holo-card--featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
}

.holo-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-neon);
  color: #000;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 0 0 10px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  z-index: 3;
}

/* Buttons inside cards */
.btn--outline {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  transition: all 0.3s ease;
}

.btn--outline:hover {
  background: #fff;
  color: #000;
}

.full-width {
  width: 100%;
  display: block;
}

/* Footer note */
.courses__footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
}

.courses__footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 50px;
}

.courses__footer i {
  width: 16px;
  height: 16px;
  color: var(--primary-neon);
}

/* Responsive */
@media (max-width: 1024px) {
  .courses__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 50px auto 0;
  }

  .holo-card--featured {
    transform: scale(1); /* Прибираємо збільшення на мобільному */
    order: -1; /* Ставимо найважливішу картку першою */
  }

  .holo-card--featured:hover {
    transform: translateY(-5px);
  }
}

/* --- Mentors Section --- */
.mentors {
  position: relative;
  overflow: hidden;
}

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

.mentors__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.highlight-text {
  color: var(--primary-neon);
  font-weight: 600;
  border-bottom: 1px dashed var(--primary-neon);
}

.mentors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Mentor Card */
.mentor-card {
  background: transparent;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mentor-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
}

/* Image with Pulse */
.mentor-card__img-box {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mentor-card__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  background-color: #1a1a2e; /* Фон під заглушкою */
}

/* Анімація пульсації */
.mentor-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-neon);
  z-index: 1;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.mentor-card:hover .mentor-pulse {
  border-color: var(--primary-neon);
  animation-duration: 1.5s;
}

@keyframes pulse-ring {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 160%;
    height: 160%;
    opacity: 0;
  }
}

/* Text Content */
.mentor-card__name {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: #fff;
}

.mentor-card__role {
  font-size: 0.9rem;
  color: var(--primary-neon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  font-weight: 600;
}

.mentor-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Social Icons */
.mentor-card__socials {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.mentor-card__socials a {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.mentor-card__socials a:hover {
  color: #fff;
  transform: scale(1.1);
}

.mentor-card__socials i {
  width: 20px;
  height: 20px;
}

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

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

  .mentor-card {
    padding: 20px 0;
  }
}

/* --- Contact Section --- */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* Фоновий градієнт знизу */
  background: radial-gradient(
    circle at 50% 100%,
    rgba(112, 0, 255, 0.1),
    transparent 50%
  );
}

.contact__container {
  width: 100%;
  max-width: 600px; /* Вузька колонка для фокусу */
  margin: 0 auto;
  padding: 0 20px;
}

.contact__wrapper {
  background: rgba(10, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Декоративна лінія зверху */
.contact__wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-neon),
    transparent
  );
}

.contact__header {
  text-align: center;
  margin-bottom: 30px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 16px 14px 44px; /* Паддінг зліва для іконки */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

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

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary-neon);
}

/* Error styles */
.error-msg {
  color: #ff5f56;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none; /* Сховано за замовчуванням */
}

.form-input.error {
  border-color: #ff5f56;
}

.form-input.error + .error-msg {
  display: block;
}

/* Custom Checkbox & Captcha */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.checkmark {
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark {
  border-color: var(--text-muted);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary-neon);
  border-color: var(--primary-neon);
}

/* Checkmark Icon */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

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

/* Captcha specific styles */
.captcha-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.captcha-box {
  margin-bottom: 0;
}

.captcha-icon {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Button spacing */
.form-submit-btn {
  margin-top: 20px;
  font-size: 1.1rem;
  padding: 16px;
}

/* Success Message Overlay */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark); /* Перекриваємо форму */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 10;
}

.success-message.active {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 80px;
  height: 80px;
  color: #27c93f;
  margin-bottom: 20px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-message h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.success-message p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 600px) {
  .contact__wrapper {
    padding: 30px 20px;
  }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100%;
  max-width: 400px;
  background: rgba(10, 11, 20, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--primary-neon);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  padding: 24px;
  border-radius: 16px;
  z-index: 9999;

  /* Animation State: Hidden */
  opacity: 0;
  transform: translateY(50px);
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-popup.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.cookie-content {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.cookie-icon-box {
  color: var(--primary-neon);
  flex-shrink: 0;
}

.cookie-text {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.5;
}

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

.cookie-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
}

/* Responsive Cookie */
@media (max-width: 480px) {
  .cookie-popup {
    bottom: 0;
    right: 0;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

/* --- Styles for Legal Pages (Privacy, Terms, etc.) --- */
/* Цей клас .pages треба давати секції в окремих html файлах */
.pages {
  padding: 120px 0 80px; /* Відступ зверху під фіксований хедер */
  min-height: 100vh;
}

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

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: #fff;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
}

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

.pages p {
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

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

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

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

.pages strong {
  color: #fff;
}
