/* --- VARIABLES --- */
:root {
  --bg-dark: #050505;
  --bg-secondary: #0f0f11;
  --text-main: #e0e0e0;
  --text-muted: #888899;

  /* Cyberpunk Colors */
  --accent-neon: #ccff00; /* Acid Lime */
  --accent-blue: #00f0ff; /* Cyan */
  --border-color: #333333;

  /* Typography */
  --font-heading: "Syne", sans-serif;
  --font-body: "JetBrains Mono", monospace;

  /* Spacing */
  --container-width: 1400px;
  --section-gap: 120px;
}

/* --- RESET & BASE --- */
* {
  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);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- UTILS --- */
.text--accent {
  color: var(--accent-neon);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  color: var(--accent-neon);
  border: 1px solid var(--accent-neon);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Glitch Button Effect */
.btn--glitch::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-neon);
  z-index: -1;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn--glitch:hover {
  color: var(--bg-dark);
}

.btn--glitch:hover::before {
  transform: translateX(100%);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.header__nav {
  display: none;
}

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

.header__link {
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
}

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

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

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

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

/* Burger */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 20px;
  margin-top: auto;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer__col--brand {
  border-left: 2px solid var(--accent-neon);
  padding-left: 20px;
}

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

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

.footer__badge {
  display: inline-block;
  background: rgba(204, 255, 0, 0.1);
  color: var(--accent-neon);
  padding: 5px 10px;
  font-size: 0.75rem;
  border: 1px solid var(--accent-neon);
}

.footer__title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer__title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-blue);
}

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

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

.footer__link:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

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

.footer__contact-item i {
  color: var(--accent-neon);
  width: 20px;
  height: 20px;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 60px auto 0;
  padding: 20px;
  border-top: 1px solid #222;
  text-align: center;
  color: #555;
  font-size: 0.8rem;
}

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

  .header__burger {
    display: none;
  }

  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

/* Mobile Menu Active State */
.header__nav.active {
  display: flex;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--bg-dark);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.header__nav.active .header__menu {
  flex-direction: column;
  text-align: center;
}

.header__nav.active .header__link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

body.lock {
  overflow: hidden;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(0, 240, 255, 0.05),
    transparent 40%
  );
}

/* Background animated grid */
.hero__bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 50px 50px;
  z-index: 0;
  perspective: 1000px;
  transform: skewY(-5deg) scale(1.2);
  transform-origin: top left;
  pointer-events: none;
}

.hero__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  position: relative;
  z-index: 1;
  align-items: center;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

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

/* Typography */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.hero__line {
  display: block;
}

/* Description */
.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 50px;
  border-left: 2px solid var(--accent-neon);
  padding-left: 20px;
}

/* CTA Group */
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 200px;
}

.hero__info i {
  color: var(--accent-neon);
  min-width: 18px;
}

/* Stats (Asymmetric Element) */
.hero__stats {
  display: flex;
  gap: 60px;
  padding: 30px;
  background: rgba(15, 15, 17, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  position: relative;
  /* Breaking the grid visually */
  margin-right: -100px;
  border-right: none;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

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

/* --- VISUAL ABSTRACT ELEMENT --- */
.hero__visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The Cyber Shape (Rotating rectangle border) */
.cyber-shape {
  width: 350px;
  height: 450px;
  border: 2px solid var(--accent-blue);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.cyber-shape::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-neon);
  z-index: -1;
  opacity: 0.6;
}

.cyber-shape__inner {
  position: absolute;
  inset: 40px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating animation keyframes */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

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

  .hero__stats {
    margin-right: 0;
    border-right: 1px solid var(--border-color);
  }

  .hero__visual {
    display: none; /* Hide abstract shape on mobile to save space */
  }

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

/* --- TECH SECTION (Bento Grid) --- */
.tech {
  padding: var(--section-gap) 0;
  position: relative;
  background-color: var(--bg-dark);
}

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-blue);
  padding-left: 20px;
}

/* THE GRID */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 20px;
}

/* Card Base Styles */
.tech-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

/* Hover Effect: Cyber Border */
.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-neon);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
}

.tech-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Grid Spans */
.tech-card--large {
  grid-column: span 2;
  grid-row: span 1;
}

.tech-card--tall {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(0, 240, 255, 0.05) 100%
  );
}

.tech-card--wide {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: rgba(204, 255, 0, 0.05);
  border-color: rgba(204, 255, 0, 0.2);
}

/* Inner Content */
.tech-card__icon-wrap {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 20px;
  color: var(--accent-blue);
  border: 1px solid #333;
}

.tech-card:hover .tech-card__icon-wrap {
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}

.tech-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.tech-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Decorative Tech Text */
.tech-card__deco {
  margin-top: auto;
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--accent-blue);
  opacity: 0.5;
  letter-spacing: 2px;
}

/* List inside card */
.tech-list {
  margin-top: auto;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}

.tech-list li i {
  width: 16px;
  height: 16px;
  color: var(--accent-neon);
}

/* Promo Card specific */
.promo-content {
  max-width: 60%;
}

.promo-card .tech-card__title {
  margin-bottom: 5px;
  color: var(--accent-neon);
}

.promo-card .tech-card__text {
  margin-bottom: 0;
}

/* Small Button Variant */
.btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border: 1px solid var(--accent-neon);
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn--small:hover {
  background: var(--accent-neon);
  color: #000;
}

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

  .tech-card--tall {
    grid-column: span 2; /* Full width on tablet */
    grid-row: span 1;
  }
}

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

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

  .tech-card--wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .promo-content {
    max-width: 100%;
  }
}

/* --- SOLUTIONS SECTION --- */
.solutions {
  padding: var(--section-gap) 0;
  background-color: var(--bg-dark);
}

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

.solutions__top {
  margin-bottom: 60px;
}

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

/* Menu (Left) */
.solutions__menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #222;
}

.solutions__item {
  padding: 25px 0;
  border-bottom: 1px solid #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.sol-num {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-right: 20px;
  color: #444;
}

.sol-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  flex-grow: 1;
}

.sol-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--accent-neon);
}

/* Active/Hover State for Menu Item */
.solutions__item:hover,
.solutions__item.active {
  color: #fff;
  padding-left: 20px; /* Slight shift */
  border-bottom-color: var(--accent-blue);
}

.solutions__item.active .sol-name,
.solutions__item:hover .sol-name {
  color: var(--accent-blue);
}

.solutions__item.active .sol-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Display (Right) - Terminal Look */
.solutions__display {
  background: rgba(15, 15, 17, 0.6);
  border: 1px solid var(--border-color);
  min-height: 400px;
  position: relative;
  padding: 40px;
  border-radius: 4px;
  overflow: hidden;
}

/* Decorative corner markers for terminal feel */
.solutions__display::before,
.solutions__display::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-neon);
  transition: 0.3s;
}

.solutions__display::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.solutions__display::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* Content Blocks */
.sol-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.sol-content.active {
  display: block;
}

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

.sol-content__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.sol-content__header i {
  width: 32px;
  height: 32px;
  color: var(--accent-neon);
}

.sol-content__header h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
}

.sol-content__body p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.sol-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #ddd;
}

.sol-features li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-family: monospace;
  font-weight: bold;
}

.sol-content__footer {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-blue);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: monospace;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.link-arrow {
  color: var(--accent-neon);
  font-size: 0.9rem;
  font-weight: 600;
}

.link-arrow:hover {
  text-decoration: underline;
}

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

  .solutions__display {
    min-height: auto;
  }
}

/* --- BLOG SECTION (System Logs) --- */
.blog {
  padding: var(--section-gap) 0;
  background-color: var(--bg-dark);
  border-top: 1px solid #111;
}

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

.blog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.blog__all-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.blog__all-link:hover {
  color: var(--accent-neon);
  border-bottom-color: var(--accent-neon);
}

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

/* Blog Card Styles */
.blog-card {
  background: var(--bg-secondary);
  border: 1px solid #222;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  position: relative;
}

.blog-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
}

.blog-card--highlight {
  border-color: #333;
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    rgba(204, 255, 0, 0.02) 100%
  );
}

.blog-card__meta {
  font-family: monospace;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.blog-tag {
  color: var(--accent-blue);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 1;
}

.blog-card__title a:hover {
  color: var(--accent-neon);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.6;
}

.blog-card__footer {
  padding-top: 20px;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.75rem;
  color: #555;
}

.blog-icon {
  width: 18px;
  height: 18px;
  color: #444;
}

.blog-card:hover .blog-icon {
  color: var(--accent-neon);
}

/* --- FAQ SECTION --- */
.faq {
  padding: var(--section-gap) 0;
  position: relative;
  background-color: var(--bg-dark);
}

.faq__container {
  max-width: 800px; /* Narrower container for readability */
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.faq__header {
  text-align: center;
  margin-bottom: 60px;
}

.faq__header .section-desc {
  border-left: none;
  padding-left: 0;
  max-width: 500px;
  margin: 0 auto;
}

/* Accordion Item */
.faq-item {
  border-bottom: 1px solid #222;
  margin-bottom: 10px;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 25px 0;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.faq-trigger:hover {
  color: var(--accent-neon);
}

.faq-num {
  font-family: monospace;
  color: var(--accent-blue);
  margin-right: 20px;
  opacity: 0.7;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  flex-grow: 1;
  padding-right: 20px;
}

/* Plus/Minus Icon using CSS */
.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
} /* Horizontal */
.faq-icon::after {
  width: 2px;
  height: 100%;
} /* Vertical */

/* Active State */
.faq-item.active .faq-trigger {
  color: var(--accent-neon);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0; /* Turn into minus */
}

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

.faq-content__inner {
  padding-bottom: 30px;
  padding-left: 50px; /* Align with text */
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

  .faq-trigger {
    padding: 20px 0;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-content__inner {
    padding-left: 0;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: var(--section-gap) 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(0, 240, 255, 0.03),
    transparent 50%
  );
  position: relative;
}

.contact__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Info Side */
.contact__status {
  margin-top: 40px;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border: 1px solid #333;
  display: inline-block;
  min-width: 250px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.status-row:last-child {
  margin-bottom: 0;
}
.status-val {
  color: #fff;
  font-weight: bold;
}

/* Form Side */
.contact__form-wrapper {
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border: 1px solid var(--border-color);
  position: relative;
}

/* Corner Decorations for Form */
.contact__form-wrapper::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--accent-neon);
  border-left: 2px solid var(--accent-neon);
}
.contact__form-wrapper::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent-neon);
  border-right: 2px solid var(--accent-neon);
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #444;
  padding: 10px 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: 0.3s;
  border-radius: 0;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-blue);
  background: rgba(0, 240, 255, 0.02);
  padding-left: 10px;
}

.form-error {
  font-size: 0.75rem;
  color: #ff3333;
  position: absolute;
  bottom: -20px;
  left: 0;
  opacity: 0;
  transition: 0.3s;
}

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

.form-input.error + .form-error {
  opacity: 1;
  bottom: -18px;
}

/* Custom Captcha */
.captcha-group {
  background: #f9f9f9; /* Light bg similar to google captcha */
  padding: 15px;
  border-radius: 4px;
  width: fit-content;
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

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

.custom-captcha input {
  display: none;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: 0.2s;
}

/* Captcha Checkmark */
.custom-captcha input:checked + .captcha-box {
  border-color: #000;
}

.custom-captcha input:checked + .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #009900;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-text {
  color: #000;
  font-family: sans-serif;
  font-size: 0.9rem;
}

/* Terms Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  min-width: 18px;
  height: 18px;
  border: 1px solid var(--accent-blue);
  display: block;
  position: relative;
  margin-top: 2px;
}

.custom-checkbox input:checked + .checkmark {
  background: var(--accent-blue);
}

.custom-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-text a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Form Message */
.form-message {
  margin-top: 20px;
  font-size: 0.9rem;
  min-height: 20px;
}
.form-message.success {
  color: var(--accent-neon);
}
.form-message.error {
  color: #ff3333;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(10, 10, 12, 0.95);
  border: 1px solid var(--accent-blue);
  padding: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: bottom 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.cookie-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  color: #ddd;
  font-size: 0.85rem;
}

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

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

/* --- PAGES STYLING (Privacy, Terms etc) --- */
.pages {
  padding: 160px 0 80px; /* More padding top because of fixed header */
  background: var(--bg-dark);
  min-height: 100vh;
}

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

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

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-top: 40px;
  margin-bottom: 20px;
}

.pages p {
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.7;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #ccc;
}

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

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

/* Responsive Contact */
@media (max-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form-wrapper {
    padding: 20px;
  }
}
