/* --- GLOBAL VARIABLES & RESET --- */
:root {
  /* Palette: Cyberpunk / Neon Dark */
  --bg-body: #050507;
  --bg-card: #0f0f16;
  --primary: #00f0ff; /* Neon Cyan */
  --secondary: #7000ff; /* Neon Purple */
  --accent: #ff0055; /* Hot Pink */
  --text-main: #e0e0e0;
  --text-muted: #8a8a9b;
  --white: #ffffff;

  /* Geometry */
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  /* Typography */
  --font-head: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

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

ul {
  list-style: none;
}

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

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

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
}

.header__container {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(15, 15, 22, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px; /* Hyper-rounded */
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

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

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

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

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

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

.header__cta {
  background: var(--primary);
  color: #000;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.header__cta:hover {
  background: var(--white);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

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

/* Mobile Menu Styles */
@media (max-width: 991px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-body);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__link {
    font-size: 1.5rem;
    font-family: var(--font-head);
  }

  .header__burger {
    display: block;
    z-index: 1001; /* Above nav */
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-card);
  padding: 80px 0 20px;
  margin-top: 100px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* Neon glow at the top of footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
  box-shadow: 0 0 30px var(--secondary);
}

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

.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--white);
  display: block;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--white), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

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

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

.footer__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

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

@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
}
/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* offset for fixed header */
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 700px;
  background: rgba(15, 15, 22, 0.4); /* Glassmorphism light */
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius-lg); /* Hyper-rounded 32px+ */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

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

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

/* Text Gradient Effect */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(112, 0, 255, 0.3));
}

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

/* --- BUTTONS --- */
.hero__actions {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px; /* Hyper-rounded */
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--white);
  color: var(--bg-body);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
  background: var(--primary);
  box-shadow: 0 0 30px var(--primary);
  transform: translateY(-3px);
}

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

.btn--outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

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

.hero__stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 5px;
}

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

/* --- MOUSE SCROLL ANIMATION --- */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__content {
    padding: 30px 20px;
  }
  .hero__stats {
    flex-direction: column;
    gap: 20px;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* --- BENTO GRID (Capabilities) --- */
.capabilities {
  padding: 100px 0;
  position: relative;
}

/* Background gradient spot */
.capabilities::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  width: 400px;
  height: 400px;
  background: var(--secondary);
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}

/* --- BENTO CARDS --- */
.bento-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg); /* 32px rounded */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Modifiers for Grid Spanning */
.bento-card--wide {
  grid-column: span 2;
}

.bento-card--tall {
  grid-row: span 2;
}

/* Icons */
.bento-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.bento-card:hover .bento-icon {
  background: var(--primary);
  color: var(--bg-body);
  box-shadow: 0 0 15px var(--primary);
}

/* Content typography */
.bento-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

/* Highlighted Card Style */
.bento-card--highlight {
  background: linear-gradient(
    135deg,
    rgba(112, 0, 255, 0.1),
    rgba(15, 15, 22, 1)
  );
  border: 1px solid rgba(112, 0, 255, 0.2);
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.bento-link:hover {
  color: var(--white);
  gap: 10px;
}

/* Glow Effect inside card */
.bento-bg-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
}

/* --- RESPONSIVE GRID --- */
@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tall card becomes normal on tablet to avoid layout breaks */
  .bento-card--tall {
    grid-row: span 1;
  }
}

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

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

/* --- PRACTICE SECTION --- */
.practice {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, #0a0a0e 100%);
}

.practice__steps {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.practice__step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Zig-Zag Logic */
.practice__step--reverse {
  flex-direction: row-reverse;
}

.practice__content {
  flex: 1;
  max-width: 500px;
}

.step-number {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.5;
}

.practice__content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.practice__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- VISUALS (CSS UI MOCKUPS) --- */
.practice__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ui-card {
  width: 100%;
  max-width: 450px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg); /* Hyper-rounded */
  padding: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.practice__step:hover .ui-card {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(0, 240, 255, 0.15);
}

/* UI Header dots */
.ui-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.ui-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ui-dot:nth-child(1) {
  background: #ff5f56;
}
.ui-dot:nth-child(2) {
  background: #ffbd2e;
}

/* UI Body Elements */
.ui-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ui-message {
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  max-width: 80%;
  line-height: 1.4;
}

.ui-message--ai {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ui-message--user {
  background: var(--secondary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ui-input-area {
  margin-top: 10px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.ui-cursor {
  color: var(--primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Processing State Styles */
.ui-body--center {
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.ui-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

.ui-status {
  color: var(--primary);
  font-family: monospace;
  font-size: 0.9rem;
}

.ui-code-lines span {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 8px;
  border-radius: 4px;
  width: 150px;
}

.ui-code-lines span:nth-child(2) {
  width: 100px;
}
.ui-code-lines span:nth-child(3) {
  width: 180px;
}

/* Success State Styles */
.ui-card--success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(145deg, var(--bg-card), rgba(0, 240, 255, 0.05));
}

.ui-icon-check {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px var(--primary);
}

.ui-card--success h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.ui-stat-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.ui-stat-row strong {
  color: var(--white);
}

/* --- RESPONSIVE PRACTICE --- */
@media (max-width: 991px) {
  .practice__step {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .practice__step--reverse {
    flex-direction: column; /* Reset visual order on mobile */
  }

  .practice__content {
    max-width: 100%;
  }
}

/* --- LEARNING SECTION (Accordion) --- */
.learning {
  padding: 100px 0;
  position: relative;
}

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

.learning__cta-box {
  background: rgba(112, 0, 255, 0.1);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-top: 40px;
}

.learning__cta-box p {
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 600;
}

/* Accordion Styles */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion__item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg); /* Hyper-rounded */
  overflow: hidden;
  transition: var(--transition);
}

.accordion__item.active {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.accordion__trigger {
  width: 100%;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.accordion__icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__text {
  padding: 0 30px 30px 30px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- REVIEWS SECTION (Horizontal Scroll) --- */
.reviews {
  padding: 100px 0;
  overflow: hidden; /* Hide scrollbar overflow */
}

.reviews__scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px; /* Space for scrollbar/shadow */
  padding-left: 20px;
  padding-right: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar visually but keep functionality */
  scrollbar-width: none;
}

.reviews__scroller::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-width: 350px;
  max-width: 350px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 30px;
  scroll-snap-align: center;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

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

.review-card__avatar {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.review-card__name {
  font-size: 1.1rem;
  color: var(--white);
}

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

.review-card__stars {
  margin-left: auto;
  color: #ffbd2e;
  letter-spacing: 2px;
}

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

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

  .review-card {
    min-width: 300px;
  }
}
/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(to top, rgba(112, 0, 255, 0.1), transparent);
  z-index: -1;
}

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

/* Info Side */
.contact__feat-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
}

.contact__feat-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact__feat-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--white);
}

.contact__feat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form Side */
.contact__form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px; /* Hyper-rounded inputs */
  padding: 16px 20px 16px 50px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

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

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

/* Validation Styles */
.form-input.error {
  border-color: var(--accent);
}

.error-msg {
  display: none;
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 5px;
  margin-left: 10px;
}

.form-input.error ~ .error-msg,
.captcha-box.error ~ .error-msg,
.custom-checkbox input.error ~ .checkmark ~ .error-msg {
  display: block;
}

/* Custom Captcha */
.captcha-box {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition);
  width: fit-content;
}

.captcha-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.captcha-box.error {
  border-color: var(--accent);
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #aaa;
  border-radius: 4px;
  background: #fff;
}

.captcha-text {
  font-size: 0.95rem;
  color: var(--text-main);
}

.captcha-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.captcha-check-icon {
  display: none;
  color: #00c853;
  width: 24px;
  height: 24px;
}

.captcha-box.checked .captcha-checkbox {
  display: none;
}

.captcha-box.loading .captcha-checkbox {
  display: none;
}

.captcha-box.loading .captcha-spinner {
  display: block;
}

.captcha-box.checked .captcha-spinner {
  display: none;
}

.captcha-box.checked .captcha-check-icon {
  display: block;
}

/* Custom Checkbox (Consent) */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

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

.checkmark {
  height: 22px;
  width: 22px;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

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

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

.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;
}

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

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

/* Button & Success Message */
.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

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

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: block;
}

.form-success {
  display: none; /* Hidden by default */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
  border-radius: var(--radius-lg);
}

.form-success.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.form-success i {
  width: 60px;
  height: 60px;
  color: #00c853;
  margin-bottom: 20px;
}

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

@media (max-width: 991px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
  .contact__info {
    text-align: center;
  }
  .contact__features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Hidden initially */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: rgba(15, 15, 22, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px; /* Hyper-rounded */
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.cookie-icon {
  color: var(--secondary);
  display: flex;
  align-items: center;
}

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

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

.cookie-btn {
  background: var(--white);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    border-radius: 20px;
    padding: 20px;
  }
  .cookie-btn {
    width: 100%;
  }
}

/* --- LEGAL PAGES STYLING (privacy.html etc.) --- */
/* Ці стилі працюватимуть для сторінок політик */
.pages {
  padding: 120px 0 80px; /* Offset for fixed header */
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--white), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.pages p {
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: 1.05rem;
}

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

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

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

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

.pages a:hover {
  color: var(--secondary);
}
