/* --- VARIABLES & THEME (Cyberpunk / Dark Neon) --- */
:root {
  --bg-dark: #050508;
  --bg-panel: #0f0f16;
  --primary: #00f3ff; /* Cyan Neon */
  --secondary: #bc13fe; /* Purple Neon */
  --accent: #ff0055; /* Red/Pink Neon */
  --text-main: #e0e0e0;
  --text-muted: #858595;
  --white: #ffffff;

  --font-head: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;

  --glow-primary: 0 0 10px rgba(0, 243, 255, 0.5),
    0 0 20px rgba(0, 243, 255, 0.3);
  --glow-secondary: 0 0 10px rgba(188, 19, 254, 0.5);

  --spacing-container: 120px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET & BASE --- */
*,
*::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(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

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

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-img {
  height: 40px;
  filter: drop-shadow(0 0 5px var(--primary));
}

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  text-shadow: var(--glow-primary);
}

/* Nav Desktop */
.header__nav {
  display: flex;
}

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

.header__link {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: var(--text-main);
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  box-shadow: var(--glow-primary);
  transition: var(--transition);
}

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

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

.header__item--mobile-only {
  display: none;
}

/* CTA Button */
.header__cta {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: var(--transition);
  box-shadow: inset 0 0 0 0 var(--primary);
}

.header__cta:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--primary);
}

/* Burger */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1002;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  transition: var(--transition);
}

.header__burger-line:nth-child(1) {
  top: 0;
}
.header__burger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.header__burger-line:nth-child(3) {
  bottom: 0;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-panel);
  border-top: 2px solid var(--secondary);
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-left: 15px;
}

.footer__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--secondary);
  box-shadow: var(--glow-secondary);
}

.footer__logo-text {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
}

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

.footer__highlight {
  color: var(--primary);
  font-weight: 700;
}

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

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

.footer__link:hover {
  color: var(--secondary);
  padding-left: 5px;
  text-shadow: var(--glow-secondary);
}

.footer__contacts-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

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

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

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 1001;
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .header__item--mobile-only {
    display: block;
    margin-top: 20px;
    opacity: 0.6;
  }

  .header__cta {
    display: none; /* Move CTA inside nav if needed, but keeping clean for now */
  }

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

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

  .header__logo-text {
    font-size: 1rem;
  }
}

/* Burger Animation State */
.header__burger.active .header__burger-line:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.header__burger.active .header__burger-line:nth-child(2) {
  opacity: 0;
}
.header__burger.active .header__burger-line:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* Space for fixed header */
}

/* Canvas Background */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(5, 5, 8, 0.4) 0%,
    var(--bg-dark) 90%
  );
  z-index: 2;
  pointer-events: none;
}

/* Content Layout */
.hero__container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
}

.hero__content {
  max-width: 800px;
  position: relative;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
  backdrop-filter: blur(5px);
}

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

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* Typography */
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.hero__title-highlight {
  color: transparent;
  -webkit-text-stroke: 2px var(--secondary);
  position: relative;
  display: inline-block;
}

.hero__title-highlight::before {
  content: "FLOW_AI";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--secondary);
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid var(--primary);
  animation: typeFill 4s cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
  filter: drop-shadow(0 0 10px var(--secondary));
}

@keyframes typeFill {
  0%,
  20% {
    width: 0;
  }
  80%,
  100% {
    width: 100%;
  }
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.hero__subtitle strong {
  color: var(--white);
  font-weight: 500;
}

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

.btn-primary {
  position: relative;
  padding: 16px 40px;
  background: var(--primary);
  color: var(--bg-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  clip-path: polygon(
    15px 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%,
    0 15px
  );
  transition: var(--transition);
  overflow: hidden;
}

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

.btn-primary__icon {
  width: 20px;
  height: 20px;
}

.hero__stats {
  display: flex;
  flex-direction: column;
}

.hero__stat-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

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

/* Decor Asymmetry */
.hero__decor {
  position: absolute;
  z-index: 5;
  background: linear-gradient(45deg, var(--secondary), transparent);
  opacity: 0.3;
}

.hero__decor--1 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 10%;
  transform: rotate(45deg);
  border: 1px solid var(--secondary);
}

.hero__decor--2 {
  width: 300px;
  height: 2px;
  background: var(--primary);
  top: 20%;
  right: -50px;
  box-shadow: var(--glow-primary);
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- SECTION HEADERS --- */
.services {
  padding: var(--spacing-container) 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0f 100%);
}

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

.section-title {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title__decor {
  color: var(--primary);
  letter-spacing: -5px;
  opacity: 0.8;
}

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

.text-highlight {
  color: var(--white);
  border-bottom: 1px dashed var(--secondary);
}

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

/* Base Card Style */
.bento-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Grid Positioning (Breaking the grid) */
.bento-item--large {
  grid-column: span 7;
  grid-row: span 2;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(0, 243, 255, 0.05) 100%
  );
}

.bento-item--tall {
  grid-column: span 5;
  grid-row: span 2;
  border-top: 4px solid var(--secondary);
}

.bento-item--wide {
  grid-column: span 8;
  grid-row: span 1;
}

/* Default span for others */
.bento-item:not(.bento-item--large):not(.bento-item--tall):not(
    .bento-item--wide
  ) {
  grid-column: span 4;
}

/* Content Styling */
.bento-item__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 15px;
}

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

.bento-item__icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(0, 243, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Mixing round shapes in strict grid */
  margin-bottom: 25px;
  border: 1px solid var(--primary);
}

.bento-item__icon {
  color: var(--primary);
  width: 30px;
  height: 30px;
}

.bento-item__icon-sm {
  color: var(--text-main);
  width: 24px;
  height: 24px;
  margin-bottom: 15px;
}

/* Button inside card */
.bento-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-top: auto;
}

.bento-item__link:hover {
  gap: 12px;
  color: var(--white);
}

/* Tall Card Visuals */
.bento-item__visual {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  margin-top: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar {
  flex: 1;
  background: var(--secondary);
  opacity: 0.5;
  transition: var(--transition);
}

.bento-item:hover .chart-bar {
  opacity: 1;
  box-shadow: 0 0 15px var(--secondary);
}

.bento-item__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Wide Card Tech Stack */
.bento-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.bento-item__tech-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 50%;
}

.tech-tag {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.link-sm {
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .bento-item--large,
  .bento-item--tall,
  .bento-item--wide {
    grid-column: span 12; /* Full width on smaller screens */
  }

  .bento-item:not(.bento-item--large):not(.bento-item--tall):not(
      .bento-item--wide
    ) {
    grid-column: span 6;
  }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item:not(.bento-item--large):not(.bento-item--tall):not(
      .bento-item--wide
    ) {
    grid-column: span 1;
  }
  .bento-item__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .bento-item__tech-stack {
    justify-content: flex-start;
    max-width: 100%;
  }
}

/* --- TECH SECTION --- */
.tech {
  padding: var(--spacing-container) 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Sidebar */
.tech__sidebar {
  position: sticky;
  top: 120px; /* Stick when scrolling */
}

.tech__title {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
  margin-bottom: 30px;
}

.tech__title-hollow {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-muted);
}

.tech__decor-line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  box-shadow: var(--glow-primary);
  margin-bottom: 30px;
}

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

.tech__note {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Glitch Button Style */
.btn-glitch {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  overflow: hidden;
  background: transparent;
}

.btn-glitch__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-glitch:hover {
  color: var(--white);
  box-shadow: var(--glow-secondary);
}

.btn-glitch:hover .btn-glitch__bg {
  transform: translateX(0);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 30px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.accordion__num {
  font-family: var(--font-head);
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-right: 30px;
  opacity: 0.5;
}

.accordion__label {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  flex-grow: 1;
  transition: var(--transition);
}

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

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

.accordion__inner {
  padding: 0 0 30px 50px; /* Indent to align with text */
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Accordion Active State */
.accordion__item.active .accordion__header {
  padding-left: 20px; /* Slight shift */
}

.accordion__item.active .accordion__label {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.accordion__item.active .accordion__icon {
  transform: rotate(45deg); /* Plus becomes X */
  color: var(--secondary);
}

.accordion__item.active .accordion__num {
  color: var(--secondary);
  opacity: 1;
}

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

  .tech__sidebar {
    position: static; /* Remove sticky on mobile */
  }

  .tech__title {
    font-size: 2.5rem;
  }
}

/* --- BLOG SECTION --- */
.blog {
  padding: var(--spacing-container) 0;
  background-color: var(--bg-dark);
  overflow: hidden; /* Hide horizontal scrollbar of body if any */
}

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

.blog__nav-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  animation: bounceRight 2s infinite;
}

@keyframes bounceRight {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

.blog__nav-text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll Track */
.blog__track-wrapper {
  width: 100%;
  /* Allow scrolling to bleed outside container on mobile */
  margin: 0 -20px;
  padding: 0 20px;
}

.blog__track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px; /* Space for scrollbar/shadow */
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--bg-panel);
}

/* Custom Scrollbar for Webkit */
.blog__track::-webkit-scrollbar {
  height: 6px;
}

.blog__track::-webkit-scrollbar-track {
  background: var(--bg-panel);
  border-radius: 3px;
}

.blog__track::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

/* Blog Card */
.blog-card {
  min-width: 350px;
  max-width: 350px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  /* Clip Path for Cyberpunk look (cut corners) */
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.blog-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.blog-card__date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--bg-dark);
  color: var(--primary);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-family: var(--font-head);
  border: 1px solid var(--primary);
}

.blog-card__content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__tags {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}

.blog-card__tags span {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  font-weight: 700;
}

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

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.blog-card__link i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.blog-card__link:hover {
  color: var(--primary);
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-card {
    min-width: 280px;
    max-width: 280px;
  }

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

/* --- FAQ SECTION --- */
.faq {
  padding: var(--spacing-container) 0;
  background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, var(--bg-dark) 70%);
}

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

.faq-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Decoration: Glowing corner */
.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--primary);
  box-shadow: var(--glow-primary);
  transition: height 0.4s ease;
}

.faq-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: var(--glow-primary);
  transition: width 0.4s ease;
}

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

.faq-card:hover::before {
  height: 100%;
}

.faq-card:hover::after {
  width: 100%;
}

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

.faq-card__icon {
  color: var(--secondary);
  width: 28px;
  height: 28px;
}

.faq-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--white);
}

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

.faq-card__text strong {
  color: var(--primary);
  font-weight: 500;
}

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

  .faq-card {
    padding: 30px;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: var(--spacing-container) 0;
  position: relative;
  /* Diagonal split background */
  background: linear-gradient(115deg, var(--bg-dark) 50%, #12121a 50%);
}

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

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

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

.contact__trust-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
  margin-bottom: 20px;
  color: var(--text-muted);
}

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

.contact__time-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- FORM STYLES --- */
.contact__form-wrapper {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(10px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Cyberpunk Corner accents */
.contact__form-wrapper::before,
.contact__form-wrapper::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.contact__form-wrapper::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}

.contact__form-wrapper::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

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

.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.form__input:focus {
  border-bottom-color: var(--primary);
}

.form__label {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--text-muted);
  pointer-events: none;
  transition: 0.3s ease all;
}

/* Floating Label Logic */
.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--primary);
}

.form__error {
  color: var(--accent);
  font-size: 0.75rem;
  position: absolute;
  bottom: -20px;
  left: 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition);
}

.form__group.error .form__input {
  border-bottom-color: var(--accent);
}

.form__group.error .form__error {
  opacity: 1;
  transform: translateY(0);
}

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

.custom-checkbox input {
  display: none;
}

.custom-checkbox__box {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.custom-checkbox__box::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-checkbox input:checked + .custom-checkbox__box {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.custom-checkbox input:checked + .custom-checkbox__box::after {
  transform: scale(1);
}

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

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

/* Submit Button */
.form__submit {
  width: 100%;
  padding: 16px;
  background: var(--secondary);
  border: none;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.form__submit:hover {
  background: var(--white);
  color: var(--bg-dark);
  box-shadow: var(--glow-secondary);
}

/* Loading State */
.form__submit-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: var(--bg-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

.form__submit.loading .form__submit-text {
  display: none;
}
.form__submit.loading .form__submit-loader {
  display: block;
}

/* Success Message */
.form__message {
  display: none;
  text-align: center;
  padding-top: 30px;
  animation: fadeIn 0.5s ease;
}

.form__message--success i {
  width: 50px;
  height: 50px;
  color: var(--primary);
  margin-bottom: 15px;
}

.form__message--success h3 {
  color: var(--white);
  font-family: var(--font-head);
  margin-bottom: 10px;
}

.form__message--success p {
  color: var(--text-muted);
}

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

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: 400px;
  background: rgba(15, 15, 22, 0.95);
  border: 1px solid var(--primary);
  padding: 24px;
  z-index: 2000;
  display: none; /* Hidden by default, shown by JS */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.cookie-popup__content {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.cookie-popup__icon {
  color: var(--primary);
  flex-shrink: 0;
}

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

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

.cookie-popup__btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-popup__btn:hover {
  background: var(--white);
  color: var(--bg-dark);
}

/* --- POLICY PAGES STYLING (Standardized) --- */
.pages {
  padding: 140px 0 80px;
  min-height: 60vh;
}

.pages h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 15px;
}

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

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

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

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

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

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

/* Responsive */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
  .contact {
    background: var(--bg-dark);
  }
}
@media (max-width: 576px) {
  .cookie-popup {
    right: 0;
    bottom: 0;
    max-width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
