/* --- Variables & Reset --- */
:root {
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Palette: Dark Ocean & Neon */
  --color-bg: #0a0e17;
  --color-text: #e0e6ed;
  --color-text-muted: #94a3b8;
  --color-primary: #00c9ff; /* Cyan Neon */
  --color-accent: #92fe9d; /* Green Neon */
  --color-secondary: #7000ff; /* Purple Neon */

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  /* Spacing & Radius */
  --radius-xl: 40px;
  --radius-l: 24px;
  --radius-m: 16px;
  --container-width: 1280px;
  --header-height: 90px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- Background Gradients (Atmosphere) --- */
.bg-gradient-1,
.bg-gradient-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  animation: floatBlob 15s infinite alternate ease-in-out;
}

.bg-gradient-1 {
  width: 600px;
  height: 600px;
  background: var(--color-secondary);
  top: -100px;
  left: -100px;
}

.bg-gradient-2 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

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

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

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

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 50px; /* Hyper-rounded */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-heading);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  color: #fff;
}

.btn--glass:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 201, 255, 0.4);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.header__container {
  width: 90%;
  max-width: var(--container-width);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;

  /* Glassmorphism Header */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: var(--glass-shadow);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.header__nav {
  display: none; /* Mobile first hidden */
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

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

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

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

.header__link:hover {
  color: #fff;
}

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

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

.header__burger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* --- Main Placeholder --- */
.main {
  padding-top: 140px; /* Space for fixed header */
  min-height: 60vh;
}

/* --- Footer --- */
.footer {
  margin-top: 5rem;
  position: relative;
  padding: 4rem 0 2rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-top: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.footer__social-link:hover {
  background: var(--color-primary);
  color: #000;
  transform: translateY(-3px);
}

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

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

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

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

.footer__contact-item i {
  color: var(--color-primary);
  min-width: 20px;
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 2rem 0 6rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 85vh; /* Occupy most of the screen */
}

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

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Typography */
.hero__title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 4.5rem; /* Giant typography */
  }
}

.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 500px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

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

.hero__info i {
  color: var(--color-primary);
}

/* --- Visual Composition (Parallax) --- */
.hero__visual {
  position: relative;
  height: 500px;
  width: 100%;
  perspective: 1000px;
}

/* Glow behind visual */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}

.hero__card {
  position: absolute;
  z-index: 1;
  transition: transform 0.1s ease-out; /* Smooth JS movement */
}

/* Glass Panels styling */
.glass-panel {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px; /* Hyper-rounded */
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
}

.glass-panel--accent {
  background: rgba(0, 201, 255, 0.15);
  border-color: rgba(0, 201, 255, 0.3);
  color: #fff;
  font-weight: 600;
}

/* Card Positions */
.hero__card--1 {
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero__card--2 {
  bottom: 20%;
  left: 5%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero__card--3 {
  top: 45%;
  right: 25%;
  z-index: 2;
  animation: float 7s ease-in-out infinite 1s;
}

/* Card internals */
.card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

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

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

.card-text strong {
  font-size: 1.5rem;
  color: #fff;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  background-image: url("img/placeholder.png"); /* Placeholder usage */
  background-size: cover;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* --- Common Section Styles --- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

/* --- Bento Grid Layout --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }

  /* Grid Areas Placement */
  .bento-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-card--wide {
    grid-column: span 2;
  }
}

/* --- Bento Cards Styles --- */
.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 30px; /* Hyper-rounded per request */
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 201, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.bento-card--dark {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  border-color: rgba(146, 254, 157, 0.1);
}

.bento-content {
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-content h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  color: #fff;
}

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

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-wrapper--primary {
  background: rgba(0, 201, 255, 0.1);
  color: var(--color-primary);
}

.icon-wrapper--accent {
  background: rgba(146, 254, 157, 0.1);
  color: var(--color-accent);
}

/* Visualization Lines */
.tech-viz {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.5;
}

.data-line {
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 4px;
  width: 100%;
}

/* Award Card Specifics */
.centered {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.award-badge {
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.2) 0%,
    transparent 70%
  );
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  margin-bottom: 1rem;
}

.stars {
  color: #ffd700;
  margin-top: 0.5rem;
  letter-spacing: 5px;
}

/* Wide Card Specifics */
.row-content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 600px) {
  .row-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  min-width: 150px;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

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

/* --- Animation Classes (Intersection Observer target) --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Timeline / Solutions Section --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Vertical Neon Line */
.timeline__line {
  position: absolute;
  left: 20px; /* Mobile position */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-primary) 20%,
    var(--color-secondary) 80%,
    transparent 100%
  );
  box-shadow: 0 0 15px var(--color-primary);
  z-index: 0;
}

@media (min-width: 768px) {
  .timeline__line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline__item {
  display: flex;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Positioning for Desktop Zig-Zag */
@media (min-width: 768px) {
  .timeline__item {
    width: 50%;
    padding-right: 40px; /* Space from center */
    margin-left: 0;
    justify-content: flex-end;
  }

  .timeline__item--reverse {
    margin-left: auto; /* Push to right side */
    padding-right: 0;
    padding-left: 40px;
    justify-content: flex-start;
    flex-direction: row-reverse; /* Align text properly */
  }

  /* Fix text alignment inside the card for right side items */
  .timeline__item--reverse .timeline__card {
    text-align: left;
  }
}

/* Large Background Number */
.timeline__number {
  position: absolute;
  top: -20px;
  font-size: 6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  z-index: -1;
  left: 0;
}

@media (min-width: 768px) {
  .timeline__number {
    right: -30px;
    left: auto;
  }
  .timeline__item--reverse .timeline__number {
    left: -30px;
    right: auto;
  }
}

/* Glass Card Styles */
.timeline__card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 2rem;
  width: 100%;
  margin-left: 50px; /* Space for line on mobile */
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
}

@media (min-width: 768px) {
  .timeline__card {
    margin-left: 0;
    width: 100%;
    max-width: 450px;
  }
}

.timeline__card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.timeline__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary), rgba(0, 0, 0, 0));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  margin-bottom: 1rem;
}

.timeline__card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.timeline__card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.step-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(146, 254, 157, 0.1);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.btn--sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  margin-top: 0;
  text-decoration: none;
  display: inline-flex;
}

/* --- Masonry Grid (Reviews) --- */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 600px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid; /* Prevent card splitting between columns */
  margin-bottom: 1.5rem;
}

/* --- Card Styles --- */
.review-card,
.stat-card-visual,
.quote-card,
.cta-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 30px; /* Consistent rounded style */
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.review-card:hover,
.quote-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

/* Review Headers */
.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.review-name {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}

.stars-sm {
  font-size: 0.8rem;
  color: #ffd700;
  letter-spacing: 2px;
}

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

.mt-2 {
  margin-top: 0.8rem;
}
.review-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.flex-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card-visual {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(0, 201, 255, 0.05) 100%
  );
  border-color: rgba(0, 201, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label-sm {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.chart-simple {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 1rem;
}

.bar {
  width: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.bar.active {
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.stat-result {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.quote-card {
  background: var(--color-secondary);
  background: linear-gradient(
    135deg,
    rgba(112, 0, 255, 0.2),
    rgba(255, 255, 255, 0.02)
  );
  border: none;
  position: relative;
  padding: 2rem;
}

.quote-icon {
  color: rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA Tile */
.cta-tile {
  background: var(--color-accent);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.cta-tile h3 {
  color: #000;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cta-tile p {
  color: rgba(0, 0, 0, 0.7);
}

.cta-tile .btn {
  background: #000;
  color: #fff;
  border: none;
  justify-content: center;
}

.cta-tile .btn:hover {
  background: #333;
  color: #fff;
  transform: scale(1.02);
}

/* --- FAQ Section --- */
.container--narrow {
  max-width: 800px;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-trigger span {
  padding-right: 20px;
}

.faq-icon {
  color: var(--color-primary);
  transition: transform 0.3s ease;
  min-width: 24px;
}

/* Rotate icon when active */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* Accordion Animation */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-inner strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* --- Contact Section --- */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 201, 255, 0.1) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Form Box */
.contact-form-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 2.5rem;
  position: relative;
}

.form-header {
  margin-bottom: 2rem;
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 20px;
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
  transition: color 0.3s ease;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 1rem 1rem 1rem 3.5rem; /* Space for icon */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

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

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

.error-msg {
  display: none;
  color: #ff4757;
  font-size: 0.8rem;
  margin-top: 5px;
  padding-left: 20px;
}

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

.form-group.error .error-msg {
  display: block;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

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

.captcha-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.checkmark {
  height: 24px;
  width: 24px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--color-text-muted);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
}

.captcha-box:hover .checkmark {
  border-color: var(--color-primary);
}

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

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-box input:checked ~ .checkmark:after {
  display: block;
}

.checkmark-small {
  height: 18px;
  width: 18px;
  min-width: 18px; /* Prevent shrinking */
  background-color: transparent;
  border: 1px solid var(--color-text-muted);
  border-radius: 4px;
  position: relative;
}

.policy-box input:checked ~ .checkmark-small {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

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

.policy-box input:checked ~ .checkmark-small:after {
  display: block;
}

.label-text-small {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.label-text-small a {
  color: #fff;
  text-decoration: underline;
}

/* Submit Button */
.btn--primary {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: #fff;
  border: none;
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(0, 201, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 201, 255, 0.5);
  color: #fff;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 30px;
}

.info-card i {
  color: var(--color-primary);
  margin-bottom: 1rem;
  width: 30px;
  height: 30px;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

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

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 20px;
  z-index: 9999;
  display: none; /* Controlled by JS */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.cookie-content i {
  color: var(--color-accent);
  min-width: 24px;
}

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

.cookie-content a {
  color: #fff;
  text-decoration: underline;
}

.btn--xs {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.pages {
  padding-top: 180px; /* Збільшено відступ, щоб хедер не налізав */
  padding-bottom: 100px;
  min-height: 100vh; /* Щоб футер не "підстрибував" на коротких сторінках */
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
  line-height: 1.2;
}

/* Адаптив для мобільних, якщо там хедер менший */
@media (max-width: 768px) {
  .pages {
    padding-top: 150px;
  }

  .pages h1 {
    font-size: 2rem; /* Трохи менший шрифт для мобільного */
  }
}

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

.pages p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

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

.pages a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.pages a:hover {
  color: #fff;
  text-decoration: none;
}
/* --- Mobile Menu Logic --- */

@media (max-width: 991px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%; /* Одразу під хедером */
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95); /* Темний фон */
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDownMenu 0.3s ease-out;
  }

  .header__nav.is-active {
    display: flex;
  }

  .header__menu {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header__link {
    font-size: 1.1rem;
    display: block;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
