/* --- VARIABLES & RESET --- */
:root {
  /* Palette: Airy Pastel */
  --color-bg: #f8fafc;
  --color-bg-alt: #ffffff;
  --color-primary: #8b5cf6; /* Pastel Purple */
  --color-primary-hover: #7c3aed;
  --color-secondary: #a78bfa;
  --color-accent: #34d399; /* Mint Green */
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Typography */
  --font-main: "Outfit", sans-serif;

  /* Spacing & Shapes */
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 40px -10px rgba(139, 92, 246, 0.15);
  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

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

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

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px; /* Hyper-rounded pill shape */
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header__container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.header__logo-icon {
  color: var(--color-accent);
}

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

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

.header__link {
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* --- FOOTER --- */
.footer {
  background-color: var(--color-bg-alt);
  padding: 80px 0 20px;
  margin-top: 80px;
  border-top-left-radius: 60px; /* Big rounded top corners */
  border-top-right-radius: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

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

.footer__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 15px;
}

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

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

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

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

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

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

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

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

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

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

  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: calc(var(--header-height) + 20px + 10px);
    left: 20px;
    right: 20px;
    background: white;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__menu {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: center;
  }

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

  .footer {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Top padding accounts for fixed header */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Styles for JS generated bubbles */
.hero__bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  opacity: 0.1;
  filter: blur(40px);
  animation: floatBubble 10s infinite ease-in-out;
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

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

.hero__content {
  max-width: 650px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background-color: rgba(139, 92, 246, 0.1);
  color: var(--color-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__title {
  font-size: 4rem; /* Big Typography */
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 24px;
}

.hero__title-accent {
  color: var(--color-primary);
  background: -webkit-linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero__actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn--secondary {
  background-color: white;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero__info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

.hero__icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* Hero Visual Area */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__circle-deco {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.2) 0%,
    rgba(248, 250, 252, 0) 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero__card {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 350px;
  transform: rotate(-3deg);
  animation: floatCard 6s ease-in-out infinite;
}

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

.hero__card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}

.hero__card-text {
  display: flex;
  flex-direction: column;
}

.hero__card-text strong {
  font-size: 1.1rem;
  color: var(--color-text-main);
}

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

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

  .hero__content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__visual {
    height: 300px;
  }
}

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

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__btn {
    width: 100%;
  }
}

/* --- METHODOLOGY (Bento Grid) --- */
.section-padding {
  padding: 100px 0;
}

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

.text-primary {
  color: var(--color-primary);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

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

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

/* Card Base Styles */
.bento-card {
  border-radius: var(--radius-lg); /* 30px */
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27),
    box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Card Variations (Positioning) */
.bento-card--large {
  grid-column: span 1;
  grid-row: span 2;
}

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

/* Color Themes (Airy Pastel) */
.bento-card--purple {
  background: linear-gradient(145deg, #f3e8ff, #ffffff);
}

.bento-card--green {
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
}

.bento-card--blue {
  background: linear-gradient(145deg, #eff6ff, #ffffff);
}

.bento-card--orange {
  background: linear-gradient(145deg, #fff7ed, #ffffff);
}

/* Card Content */
.bento-icon-bg {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--color-text-main);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-icon-bg {
  transform: rotate(15deg) scale(1.1);
  color: var(--color-primary);
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

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

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

.link-arrow i {
  width: 18px;
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translate(3px, -3px);
}

.bento-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.circle-btn {
  width: 60px;
  height: 60px;
  background: var(--color-text-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bento-card:hover .circle-btn {
  background: var(--color-primary);
  transform: scale(1.1);
}

/* Animation Classes (Scroll Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

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

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

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

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

  .bento-card--large,
  .bento-card--wide {
    grid-column: span 1;
  }
}

/* --- PROGRAMS SECTION --- */
.programs__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

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

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-main);
}

.nav-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.1);
}

/* Scroller Container */
.programs__scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px; /* Space for shadow */
  padding-left: 5px; /* Visual padding */
  padding-right: 5px;

  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

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

/* Program Card */
.program-card {
  min-width: 400px;
  scroll-snap-align: start;
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Card Themes */
.program-card--start {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

.program-card--pro {
  background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%);
  box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
  border: 2px solid rgba(139, 92, 246, 0.1);
}

.program-card--expert {
  background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.15);
}

/* Card Content */
.program-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.program-card__tag--accent {
  background: var(--color-primary);
  color: white;
}

.program-card__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.program-card__desc {
  color: var(--color-text-muted);
  margin-bottom: 30px;
  line-height: 1.5;
}

.program-card__list {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.program-card__list li i {
  width: 18px;
  height: 18px;
  color: var(--color-text-main);
  opacity: 0.7;
}

.program-card__bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.program-card__price {
  font-size: 1.5rem;
  font-weight: 700;
}

.btn--white {
  background: white;
  color: var(--color-text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn--white:hover {
  background: var(--color-text-main);
  color: white;
}

/* Abstract Background Blobs */
.program-card__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}

.deco-blob--1 {
  width: 200px;
  height: 200px;
  background: #bfdbfe;
  top: -50px;
  right: -50px;
}

.deco-blob--2 {
  width: 250px;
  height: 250px;
  background: #c4b5fd;
  bottom: -80px;
  right: -60px;
}

.deco-blob--3 {
  width: 220px;
  height: 220px;
  background: #6ee7b7;
  top: 40%;
  right: -80px;
}

/* Responsive */
@media (max-width: 768px) {
  .program-card {
    min-width: 300px;
    padding: 30px;
  }

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

/* --- TECHNOLOGY SECTION (Dark Block) --- */
.tech-card {
  background-color: #1e1b4b; /* Deep Indigo/Black */
  border-radius: 50px; /* Super rounded */
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  box-shadow: 0 30px 60px rgba(30, 27, 75, 0.3);
}

.tech-badge {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #a78bfa;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tech-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-desc {
  font-size: 1.1rem;
  color: #94a3b8; /* Slate 400 */
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.tech-desc strong {
  color: white;
}

/* Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.tech-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px; /* Rounded icon box */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #a78bfa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tech-item:hover .tech-icon-box {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.1) rotate(5deg);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.tech-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.tech-item p {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Actions */
.tech-actions {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  padding: 30px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-cta-text {
  color: #e2e8f0;
}

.tech-buttons {
  display: flex;
  gap: 15px;
}

.btn--glow {
  background: #8b5cf6;
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  border: none;
}

.btn--glow:hover {
  background: #7c3aed;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn--outline:hover {
  background: white;
  color: #1e1b4b;
}

/* Decorative Glows */
.tech-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.tech-glow--1 {
  background: #8b5cf6;
  top: -100px;
  left: -100px;
}

.tech-glow--2 {
  background: #34d399;
  bottom: -100px;
  right: -100px;
}

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

@media (max-width: 600px) {
  .tech-card {
    padding: 40px 20px;
    border-radius: 30px;
  }

  .tech-title {
    font-size: 2rem;
  }

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

  .tech-buttons {
    flex-direction: column;
    width: 100%;
  }

  .tech-buttons .btn {
    width: 100%;
  }
}

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

.review-card {
  background: white;
  border-radius: 30px; /* Hyper-rounded */
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

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

.review-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 1rem;
}

.review-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
}

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

.review-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 15px;
  color: #fbbf24; /* Star Yellow */
}

.review-card__stars .lucide {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.review-card__text strong {
  color: var(--color-primary);
  font-weight: 600;
  font-style: normal;
}

/* Responsive */
@media (max-width: 992px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  background: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 100%);
  position: relative;
  overflow: hidden;
}

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

/* Left Side Info */
.contact__info {
  position: relative;
}

.contact__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact__desc strong {
  color: var(--color-primary);
}

.contact__deco-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  top: -50px;
  left: -50px;
  z-index: -1;
}

.contact__form-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 40px; /* Hyper-rounded */
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  min-height: 500px;
}

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

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

.form__input-wrapper {
  position: relative;
}

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

.form__input {
  width: 100%;
  padding: 15px 20px 15px 50px; /* Space for icon */
  border-radius: 50px; /* Pill shape */
  border: 1px solid var(--color-border);
  background: white;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

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

.form__input:focus + .form__icon,
.form__input-wrapper:focus-within .form__icon {
  color: var(--color-primary);
}

.form__error {
  display: block;
  font-size: 0.8rem;
  color: #ef4444; /* Red */
  margin-top: 5px;
  margin-left: 15px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  height: 0;
  overflow: hidden;
}

.form__group.error .form__error {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 5px;
}

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

/* Custom Checkbox (Terms) */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 10px;
}

.custom-checkbox input {
  display: none;
}

.checkbox-box {
  width: 24px;
  height: 24px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: white;
}

.custom-checkbox input:checked + .checkbox-box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-box i {
  width: 16px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkbox-box i {
  opacity: 1;
  transform: scale(1);
}

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

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

.custom-captcha {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: fit-content;
  cursor: pointer;
  user-select: none;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-captcha input {
  display: none;
}

.captcha-box {
  width: 28px;
  height: 28px;
  border: 2px solid #c5c5c5;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-captcha input:checked + .captcha-box {
  border-color: transparent;
}

.captcha-check-icon {
  width: 20px;
  color: #0f9d58;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  position: absolute;
  z-index: 2;
}

.custom-captcha input:checked + .captcha-box .captcha-check-icon {
  opacity: 1;
  transform: scale(1);
}

.captcha-text {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
  margin-right: 20px;
}

.captcha-logo {
  width: 32px;
  opacity: 0.7;
  margin-left: auto;
}

.form__submit-btn {
  width: 100%;
  margin-top: 20px;
  font-size: 1.1rem;
  padding: 15px;
}

.form__success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
}

.form__success.active {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  margin-bottom: 20px;
}

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

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

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

  .contact__info {
    text-align: center;
    margin-bottom: 40px;
  }

  .contact__deco-circle {
    left: 50%;
    transform: translateX(-50%);
  }
}

.cookie-popup {
  position: fixed;
  bottom: -100%; /* Ховаємо внизу екрану */
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}

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

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-text h4 {
  margin-bottom: 5px;
  color: var(--color-text-main);
}

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

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

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.btn-cookie-accept {
  flex: 1;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cookie-accept:hover {
  background: var(--color-primary-hover);
}

.btn-cookie-decline {
  padding: 10px 15px;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
}

.btn-cookie-decline:hover {
  background: #f3f4f6;
}

.pages {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  background-color: var(--color-bg);
}

.pages .container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow-soft);
  max-width: 900px; /* Обмежуємо ширину для зручного читання */
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

/* Типографіка заголовків */
.pages h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
  line-height: 1.2;
}

.pages h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-top: 40px;
  margin-bottom: 15px;
}

.pages h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Основний текст */
.pages p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Списки */
.pages ul,
.pages ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.pages li {
  margin-bottom: 8px;
  list-style-type: disc;
  padding-left: 5px;
}

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

.pages a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

.pages .date {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .pages .container {
    padding: 30px 20px;
  }

  .pages h1 {
    font-size: 2rem;
  }

  .pages h2 {
    font-size: 1.3rem;
  }
}
