/* --- GLOBAL VARIABLES & RESET --- */
:root {
  --bg-main: #0a0a0a;
  --bg-secondary: #121212;
  --text-main: #ededed;
  --text-muted: #888888;
  --accent-color: #6d28d9; /* Deep Purple */
  --accent-neon: #a78bfa; /* Bright Lavender Glow */
  --border-color: #2a2a2a;

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

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

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

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

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

.header__container {
  max-width: 1400px; /* Wider than main container for asymmetry */
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

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

.header__logo-icon {
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-neon);
}

.header__dot {
  color: var(--accent-neon);
}

.header__nav {
  margin-left: auto;
  margin-right: 60px;
}

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

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

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

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

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

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

.header__cta {
  padding: 12px 28px;
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.header__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  z-index: -1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__cta:hover::before {
  transform: translateX(100%);
}

.header__cta:hover {
  border-color: var(--accent-color);
}

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

/* --- FOOTER (GRID & BROKEN LAYOUT) --- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 40px 40px;
  margin-top: 100px; /* Separator */
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Asymmetric Grid */
  gap: 60px;
  margin-bottom: 80px;
}

.footer__col--brand {
  padding-right: 40px;
  border-right: 1px solid var(--border-color);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

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

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

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer__social-link:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
  transform: translateY(-3px);
}

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

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

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

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

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

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

.footer__note {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--accent-color);
  opacity: 0.8;
}

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: #444;
  font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .header__container {
    padding: 0 20px;
  }

  .header__nav {
    display: none; /* Simple hide for now, handled by JS later */
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-main);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .header__nav.is-open {
    display: block;
  }

  .header__list {
    flex-direction: column;
    gap: 20px;
  }

  .header__burger {
    display: block;
    margin-left: 20px;
  }

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

  .footer__col--brand {
    border-right: none;
    grid-column: span 2;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    padding-right: 0;
  }
}

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

  .footer__col--brand {
    grid-column: span 1;
  }

  .header__cta {
    display: none; /* Hide CTA on small mobile to save space */
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh; /* Full screen */
  display: flex;
  align-items: center;
  padding-top: var(--header-height); /* Offset fixed header */
  overflow: hidden;
}

/* Background ambient glow */
.hero__bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(109, 40, 217, 0.15) 0%,
    rgba(10, 10, 10, 0) 70%
  );
  filter: blur(80px);
  z-index: -1;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Asymmetric grid */
  gap: 60px;
  align-items: center;
}

/* Content Styling */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 4px; /* Sharp corners for Minimal styles */
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--accent-neon);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-neon);
  box-shadow: 0 0 8px var(--accent-neon);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 4.5rem; /* Huge typography */
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-main);
}

.text-highlight {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-main); /* Outline text style */
  position: relative;
  display: inline-block;
}

/* Effect when script finishes or fallback */
.text-highlight.scrambled {
  color: var(--accent-neon);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

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

/* Buttons & Actions */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
}

.btn--primary {
  background-color: var(--text-main);
  color: var(--bg-main);
}

.btn--primary:hover {
  background-color: var(--accent-neon);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

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

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

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

.visual-card {
  position: absolute;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Card 1: Top Right - Floating */
.visual-card--1 {
  top: 50px;
  right: 0;
  width: 260px;
  height: 160px;
  z-index: 3;
  border-top: 2px solid var(--accent-neon);
}

.visual-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 20px;
}

.graph-line {
  height: 4px;
  background: #333;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.graph-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--accent-color);
  transform: translateX(-100%);
  animation: loadLine 2s infinite ease-in-out;
}

.graph-line:nth-child(2)::after {
  animation-delay: 0.5s;
}
.graph-line:nth-child(3)::after {
  animation-delay: 1s;
}

/* Card 2: Main Center - Code */
.visual-card--2 {
  top: 150px;
  left: 20px;
  width: 320px;
  height: 200px;
  z-index: 2;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--accent-color);
}

.code-success {
  color: #4ade80; /* Green success */
  margin-top: 10px;
}

/* Card 3: Back Decoration */
.visual-card--3 {
  top: 100px;
  left: 100px;
  width: 300px;
  height: 300px;
  z-index: 1;
  background: transparent;
  border: 2px solid var(--border-color);
  transform: rotate(15deg);
  box-shadow: 0 0 40px rgba(109, 40, 217, 0.1);
}

/* Animation Keyframes */
@keyframes loadLine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

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

/* Responsiveness */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__desc {
    margin: 0 auto 40px;
    border-left: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 20px;
    padding-left: 0;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__visual {
    display: none; /* Hide complex visuals on tablet/mobile for simplicity */
  }
}

/* --- GLOBAL SECTION STYLES --- */
.solutions {
  padding: 120px 0;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 60px;
}

.highlight-text {
  color: var(--text-main);
  border-bottom: 1px solid var(--accent-color);
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr; /* Asymmetric Columns */
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 4px; /* Minimal corners */
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover Effect: Neon Border Glow */
.bento-card:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Grid Areas */
.bento-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3; /* Spans 2 rows vertically */
  min-height: 400px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(109, 40, 217, 0.1) 100%
  );
}

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

.bento-card--wide {
  grid-column: 2 / 4; /* Spans 2 columns horizontally */
}

/* Card Content Styling */
.bento-card__icon-box {
  width: 50px;
  height: 50px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-neon);
}

.icon-blue {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}
.icon-pink {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
}
.icon-green {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.bento-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

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

.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--accent-neon);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-card__link i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.bento-card__link:hover i {
  transform: translate(3px, -3px);
}

/* Large Card Decorative Icon */
.bento-card__bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.05;
  transform: rotate(-15deg);
}

.bento-card__bg-icon i {
  width: 200px;
  height: 200px;
}

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

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

  .bento-card--large {
    grid-column: 1 / -1; /* Full width */
    grid-row: auto;
    min-height: 300px;
  }

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

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

/* --- PROCESS SECTION --- */
.process {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-color);
}

.process__container {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Asymmetric split */
  gap: 80px;
  align-items: start;
}

/* Left Column Sticky */
.process__info {
  position: sticky;
  top: 120px; /* Stick below header */
}

.process__cta-box {
  margin-top: 40px;
  padding: 20px;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
}

.process__cta-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.link-underline {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--accent-neon);
  text-underline-offset: 4px;
  font-weight: 600;
}

.link-underline:hover {
  color: var(--accent-neon);
}

/* Right Column Steps (Terminal Style) */
.process__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0 30px;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  overflow: hidden;
}

/* Header is always visible */
.step-card__header {
  display: flex;
  align-items: center;
  padding: 30px 0;
  gap: 20px;
}

.step-card__num {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 700;
  opacity: 0.5;
}

.step-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  flex-grow: 1;
}

.step-card__icon {
  color: var(--text-muted);
  transition: color 0.3s;
}

/* Body is hidden by default (collapsed) */
.step-card__body {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
  padding-bottom: 0;
  border-top: 1px solid transparent;
}

.step-card__body p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.step-card__list {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--accent-neon);
}

/* --- INTERACTIVE STATES (Hover/Focus) --- */
/* Open state styling */
.step-card:hover,
.step-card:focus-within {
  border-color: var(--accent-neon);
  background: rgba(20, 20, 20, 0.95);
  box-shadow: -4px 4px 0 var(--accent-color); /* Retro shadow */
  transform: translateX(-10px); /* Shift left on active */
}

.step-card:hover .step-card__body,
.step-card:focus-within .step-card__body {
  max-height: 200px; /* Approximate max height */
  opacity: 1;
  padding-bottom: 30px;
  border-top-color: var(--border-color);
  margin-top: -10px; /* Tighten layout */
}

.step-card:hover .step-card__num,
.step-card:focus-within .step-card__num {
  color: var(--accent-neon);
  opacity: 1;
}

.step-card:hover .step-card__icon,
.step-card:focus-within .step-card__icon {
  color: var(--accent-neon);
  transform: rotate(90deg);
}

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

  .process__info {
    position: static; /* Remove sticky on mobile */
    text-align: center;
  }

  .process__cta-box {
    display: inline-block;
  }

  /* Auto-expand on mobile for better UX without hover */
  .step-card__body {
    max-height: none;
    opacity: 1;
    padding-bottom: 30px;
    margin-top: 0;
  }

  .step-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* --- BLOG SECTION --- */
.blog {
  padding: 120px 0;
  overflow: hidden; /* To contain hover effects */
}

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

.blog__header-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  margin-bottom: 15px;
}

/* --- BLOG GRID --- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  group: hover; /* For hover logic */
}

/* Offset the center card down */
.blog-card--offset {
  margin-top: 60px;
}

/* Visual Part (Image) */
.blog-card__visual {
  position: relative;
  height: 240px;
  width: 90%; /* Image isn't full width to enhance asymmetry */
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2); /* Black & white style */
  transition: all 0.5s ease;
}

/* Colorize image on hover */
.blog-card:hover .blog-card__img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

.blog-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg-main);
  color: var(--accent-neon);
  padding: 4px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--accent-color);
}

/* Content Part (Overlapping) */
.blog-card__content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  margin-top: -60px; /* The Overlap Magic */
  margin-left: 20px; /* Shift right */
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.3;
  color: var(--text-main);
}

.blog-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.blog-card__link:hover {
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}

.blog-card__link i {
  width: 14px;
  height: 14px;
}

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

  .blog-card--offset {
    margin-top: 0; /* Remove offset on tablet */
  }
}

@media (max-width: 768px) {
  .blog__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .blog-card__visual {
    width: 100%;
  }

  .blog-card__content {
    margin-left: 10px;
    margin-right: 10px;
  }

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

  .blog__header-line {
    width: 100%;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--bg-main), #0f0f15);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__item {
  margin-bottom: 30px;
}

.contact__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.contact__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__link:hover {
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}

/* --- FORM STYLES --- */
.contact__form-wrapper {
  background: var(--bg-secondary);
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
}

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

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

.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: all 0.3s;
}

.form__input:focus {
  outline: none;
  border-bottom-color: var(--accent-neon);
  background: linear-gradient(
    to bottom,
    transparent 95%,
    rgba(167, 139, 250, 0.1)
  );
}

.form__error {
  color: #ef4444; /* Red */
  font-size: 0.8rem;
  margin-top: 5px;
  display: none; /* Hidden by default */
}

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

.form__input.input-error + .form__error {
  display: block;
}

/* --- CUSTOM CAPTCHA (Switch) --- */
.captcha-group {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px dashed var(--border-color);
}

.captcha-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.captcha-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.captcha-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 34px;
}

.captcha-slider {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.captcha-input:checked + .captcha-label {
  background-color: var(--accent-neon);
  box-shadow: 0 0 10px var(--accent-neon);
}

.captcha-input:checked + .captcha-label .captcha-slider {
  transform: translateX(24px);
}

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

/* --- TERMS CHECKBOX --- */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
}

.checkbox-container:hover .checkmark {
  border-color: var(--accent-neon);
}

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

/* Checkmark icon (pseudo-element) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-main);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

/* --- BUTTON & LOADER --- */
.btn--full {
  width: 100%;
  margin-top: 10px;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg-main);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
}

/* --- SUCCESS MESSAGE --- */
.form__success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.form__success.is-visible {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-neon);
  color: var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-color);
  padding: 20px;
  border-radius: 4px;
  max-width: 350px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none; /* JS will show it */
  animation: slideUp 0.5s ease-out;
}

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

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

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

.btn-small {
  background: var(--text-main);
  color: var(--bg-main);
  border: none;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

/* --- LEGAL PAGES STYLES --- */
/* Ці стилі для privacy.html, terms.html і т.д. */
.pages {
  padding: 160px 0 80px; /* More top padding for fixed header */
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--accent-neon);
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--text-main);
}

.pages p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 1rem;
}

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

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

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

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

  .contact__form-wrapper {
    padding: 20px;
  }

  .cookie-popup {
    left: 20px;
    right: 20px;
    bottom: 10px;
    width: auto;
  }
}
