/* --- RESET & VARIABLES --- */
:root {
  /* Sci-Fi HUD Palette */
  --bg-dark: #050a14;
  --bg-panel: rgba(10, 25, 47, 0.7);
  --primary: #00f0ff; /* Cyan Neon */
  --secondary: #0055ff; /* Deep Blue */
  --text-main: #e0f7ff;
  --text-muted: #8daab9;
  --border-hud: rgba(0, 240, 255, 0.3);
  --grid-line: rgba(0, 240, 255, 0.05);

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

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  --gap-base: 24px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px; /* Grid effect */
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hud);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.header__nav {
  display: flex;
}

.header__list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header__link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 5px 0;
}

/* Hover Effect: Glitch/Tech underline */
.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--primary);
}

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

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

.header__link--cta {
  border: 1px solid var(--primary);
  padding: 8px 20px;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

.header__link--cta:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--primary);
}

.header__link--cta::after {
  display: none;
}

.header__burger {
  display: none;
  background: none;
  border: 1px solid var(--border-hud);
  color: var(--primary);
  cursor: pointer;
  padding: 5px;
}

/* --- FOOTER --- */
.footer {
  margin-top: 80px;
  background-color: #02050a;
  border-top: 1px solid var(--border-hud);
  position: relative;
  padding: 60px 0 20px;
  font-size: 1rem;
}

.footer__hud-top {
  position: absolute;
  top: -5px;
  left: 20%;
  width: 60%;
  height: 10px;
  background: transparent;
  border-left: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}

.footer__hud-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border-hud);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* Bento layout */
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-hud);
  padding-bottom: 5px;
  display: inline-block;
}

.footer__decor {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 5px;
}

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

.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00ff88;
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 5px #00ff88;
  animation: blink 2s infinite;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
  padding: 2px 0;
}

.footer__link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.contact-icon {
  color: var(--secondary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.footer__note {
  font-size: 0.8rem;
  color: var(--secondary);
  border: 1px dashed var(--secondary);
  padding: 5px;
  margin-top: 10px;
  text-align: center;
}

.footer__bottom {
  border-top: 1px solid var(--grid-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__hud-code {
  font-family: monospace;
  color: var(--primary);
  opacity: 0.5;
}

/* --- ANIMATIONS --- */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

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

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 10, 20, 0.95);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease-in-out;
    border-top: 1px solid var(--border-hud);
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__burger {
    display: block;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__title {
    display: inline-block;
    margin: 0 auto 10px;
  }

  .contact-item {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- HERO SECTION --- */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* Text Column - Bento Box Style */
.hero__col--text {
  position: relative;
  padding: 40px;
  background: rgba(5, 10, 20, 0.4);
  border: 1px solid var(--border-hud);
  border-left: 4px solid var(--primary); /* Accent line */
  backdrop-filter: blur(5px);
}

.hero__hud-marker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 25px;
  text-transform: uppercase;
}

.hero__title .highlight {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  display: block; /* Break line for emphasis */
}

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

.hero__desc strong {
  color: var(--text-main);
  font-weight: 600;
}

/* CTA Button Sci-Fi Style */
.btn {
  display: inline-block;
  position: relative;
  padding: 18px 40px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--primary);
  transition: 0.4s;
  /* Angle cut shape */
  clip-path: polygon(
    15px 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%,
    0 15px
  );
}

.btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.btn__decor {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn:hover .btn__decor {
  left: 100%;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.hero__sub-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--secondary);
  background: rgba(0, 85, 255, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
}

.hero__sub-info i {
  width: 14px;
  height: 14px;
}

.hero__stats {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--grid-line);
  padding-top: 20px;
}

.stat-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text-main);
}

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

/* Visual Column - HUD Element */
.hero__col--visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hud-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Rotating Circles */
.hud-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-hud);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.hud-circle--1 {
  width: 300px;
  height: 300px;
  border-top: 2px solid var(--primary);
  animation: rotate 10s linear infinite;
}

.hud-circle--2 {
  width: 240px;
  height: 240px;
  border-left: 2px solid var(--secondary);
  border-style: dashed;
  animation: rotate 15s linear infinite reverse;
}

.hud-circle--3 {
  width: 180px;
  height: 180px;
  border: 1px dotted var(--primary);
  animation: pulse 3s ease-in-out infinite;
}

.hud-content {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 2px solid var(--primary);
}

.hud-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hud-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0.5;
  box-shadow: 0 0 10px var(--primary);
  animation: scan 3s linear infinite;
}

/* HUD Corners */
.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
}

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

/* Keyframes */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes scan {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

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

@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__col--visual {
    height: 300px;
    order: -1; /* Image on top for mobile */
  }
}

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

.section-header {
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-title .dot {
  color: var(--primary);
}

.section-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  position: relative;
}

.section-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--primary);
}

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

.bento-card {
  background: rgba(10, 25, 47, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(5px);
}

/* Hover Effects: Glow & Lift */
.bento-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

/* Decor Corner */
.card-hud-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  opacity: 0.5;
  transition: 0.3s;
}

.bento-card:hover .card-hud-corner {
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: var(--primary);
  border: none;
}

/* Grid Layout Assignments */
.bento-card--wide {
  grid-column: span 2;
}

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

/* Card Content Styles */
.card-content {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.card-desc {
  color: var(--text-muted);
  font-size: 1rem;
  flex-grow: 1;
}

.card-desc strong {
  color: var(--primary);
}

.card-icon-bg {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--secondary);
  opacity: 0.2;
}

.card-icon-bg i {
  width: 80px;
  height: 80px;
}

/* Feature Card Specifics */
.main-feature {
  background: linear-gradient(
    135deg,
    rgba(5, 10, 20, 0.6) 0%,
    rgba(0, 85, 255, 0.1) 100%
  );
}

.card-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #00ff88;
  border-top: 1px solid var(--grid-line);
  padding-top: 15px;
}

/* Stats Card Specifics */
.stat-card {
  display: flex;
  flex-direction: column;
}

.badge {
  align-self: flex-start;
  background: var(--secondary);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 20px;
}

.stat-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-row {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
}

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

.card-note {
  margin-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-hud);
  padding: 5px;
}

/* Action Cards */
.action-card {
  text-align: center;
}

.card-link-wrapper {
  display: block;
  height: 100%;
  color: inherit;
}

.centered {
  align-items: center;
  justify-content: center;
}

.card-icon-lg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 15px;
  transition: 0.3s;
}

.action-card:hover .card-icon-lg {
  transform: scale(1.2);
  color: #fff;
}

.card-desc-sm {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.link-arrow {
  font-family: var(--font-head);
  color: var(--secondary);
  font-size: 0.9rem;
  transition: 0.3s;
}

.action-card:hover .link-arrow {
  color: var(--primary);
  letter-spacing: 2px;
}

/* Responsive Bento */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-card--tall {
    grid-column: span 2;
    grid-row: auto;
    flex-direction: row;
  }
  .stat-list {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--wide,
  .bento-card--tall {
    grid-column: 1;
  }
  .stat-list {
    flex-direction: column;
  }
}

/* --- TOOLS SECTION --- */
.section--dark {
  background-color: rgba(
    2,
    5,
    10,
    0.5
  ); /* Slightly darker background for contrast */
}

.tools-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Module Container */
.tool-module {
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--grid-line);
  padding: 30px;
  position: relative;
  transition: 0.4s ease;
  /* Cut corners effect using clip-path implies tech style */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%
  );
}

/* Hover Effect: "Activation" */
.tool-module:hover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.02);
  transform: translateX(10px);
}

.tool-module::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grid-line);
  transition: 0.4s;
}

.tool-module:hover::before {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

/* Number Column */
.tool-number {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.2;
  margin-right: 40px;
  font-weight: 700;
}

.tool-module:hover .tool-number {
  color: var(--primary);
  opacity: 1;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Content Column */
.tool-content {
  flex-grow: 1;
}

.tool-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tool-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 15px;
  max-width: 600px;
}

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

/* Tags / Meta */
.tool-meta {
  display: flex;
  gap: 10px;
}

.meta-tag {
  font-size: 0.75rem;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 2px;
  color: var(--secondary);
  border: 1px solid transparent;
}

.tool-module:hover .meta-tag {
  border-color: var(--secondary);
}

.link-text {
  font-size: 0.9rem;
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.link-text:hover {
  border-bottom-color: var(--primary);
}

/* Icon Column */
.tool-action {
  margin-left: 20px;
  color: var(--text-muted);
  transition: 0.3s;
}

.action-icon {
  width: 32px;
  height: 32px;
}

.tool-module:hover .tool-action {
  color: var(--primary);
  transform: rotate(90deg); /* Mechanical rotation effect */
}

/* Responsive */
@media (max-width: 768px) {
  .tool-module {
    flex-direction: column;
    align-items: flex-start;
    clip-path: none; /* Simplify on mobile */
    border-right: 1px solid var(--grid-line); /* restore border */
  }

  .tool-number {
    margin-bottom: 15px;
    font-size: 2.5rem;
  }

  .tool-action {
    position: absolute;
    top: 30px;
    right: 30px;
    margin: 0;
  }
}

/* --- CASES SECTION (Horizontal Scroll) --- */
.section-controls {
  margin-left: auto;
  font-family: monospace;
  color: var(--secondary);
  font-size: 0.8rem;
  animation: blink 3s infinite;
}

.cases-scroller {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding-bottom: 40px; /* Space for scrollbar */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Sci-Fi look */
.cases-scroller::-webkit-scrollbar {
  height: 6px;
}

.cases-scroller::-webkit-scrollbar-track {
  background: rgba(0, 240, 255, 0.05);
  border-radius: 3px;
}

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

.cases-scroller::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Card Style */
.case-card {
  flex: 0 0 350px; /* Fixed width */
  scroll-snap-align: start;
  background: linear-gradient(
    180deg,
    rgba(10, 25, 47, 0.6) 0%,
    rgba(5, 10, 20, 0.9) 100%
  );
  border: 1px solid var(--border-hud);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: 0.3s;
  /* Corner cuts */
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
}

.case-card:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

/* Card Header */
.case-header {
  background: rgba(0, 240, 255, 0.05);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--grid-line);
}

.case-id {
  font-family: monospace;
  color: var(--secondary);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.case-icon {
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.case-card:hover .case-icon {
  color: var(--primary);
}

/* Card Body */
.case-body {
  padding: 25px;
  flex-grow: 1;
}

.case-title {
  font-family: var(--font-head);
  color: var(--text-main);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

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

.case-text strong {
  color: var(--text-main);
  border-bottom: 1px dotted var(--secondary);
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-list li i {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* Card Footer */
.case-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--grid-line);
  text-align: right;
}

.status-tag {
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  padding: 3px 8px;
  border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .case-card {
    flex: 0 0 85vw; /* Almost full width on mobile */
  }
}

/* --- CONTACT SECTION --- */
.section--contact {
  padding-bottom: 120px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 85, 255, 0.05),
    transparent 70%
  );
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* Left Side: Info */
.contact-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 20px;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-steps {
  margin-bottom: 40px;
  border-left: 1px solid var(--grid-line);
}

.contact-steps li {
  padding: 10px 20px;
  color: var(--text-main);
  font-family: var(--font-head);
  position: relative;
}

.step-num {
  color: var(--primary);
  margin-right: 10px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 15px;
  color: #00ff88;
  font-size: 0.85rem;
}

/* Right Side: Form Terminal */
.contact-form-container {
  background: rgba(5, 10, 20, 0.8);
  border: 1px solid var(--border-hud);
  position: relative;
  padding: 2px; /* For inner border */
}

/* HUD Corners for Form */
.contact-form-container::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}
.contact-form-container::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.form-hud-header {
  background: rgba(0, 240, 255, 0.1);
  padding: 10px 20px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-hud);
  display: flex;
  justify-content: space-between;
}

.blink {
  animation: blink 1s infinite;
}

.access-form {
  padding: 30px;
}

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

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

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grid-line);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-main);
  outline: none;
  transition: 0.3s;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: 0.4s;
}

.form-input:focus ~ .input-line {
  width: 100%;
}

.form-input::placeholder {
  color: rgba(141, 170, 185, 0.3);
}

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

.form-group.error .input-line {
  background: #ff3333;
  width: 100%;
}

.form-group.error .error-msg {
  opacity: 1;
}

/* Checkboxes */
.form-check,
.form-captcha {
  margin-bottom: 20px;
}

.custom-checkbox {
  display: flex;
  align-items: center; /* Changed from flex-start to align centers better */
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Standard Checkmark style */
.checkmark {
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 1px solid var(--secondary);
  margin-right: 15px;
  position: relative;
  flex-shrink: 0;
}

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

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

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

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

.check-text a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.check-text a:hover {
  border-bottom-color: var(--primary);
}

/* Captcha Specific Style */
.captcha-box {
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
  border: 1px dashed var(--grid-line);
  border-radius: 4px;
}

.captcha-mark {
  height: 24px;
  width: 24px;
  background-color: transparent;
  border: 2px solid var(--text-muted);
  margin-right: 15px;
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox input:checked ~ .captcha-mark {
  border-color: #00ff88;
  background-color: transparent;
}

.custom-checkbox input:checked ~ .captcha-mark::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
}

/* Submit Button */
.btn--submit {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Success Message */
.hidden {
  display: none;
}

.success-message {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.success-icon {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 20px;
}

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

.success-message h3 {
  font-family: var(--font-head);
  color: var(--text-main);
  margin-bottom: 10px;
}

.success-code {
  margin-top: 20px;
  font-family: monospace;
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  padding: 5px 10px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

/* --- COOKIE POPUP --- */
.cookie-hud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(5, 10, 20, 0.95);
  border: 1px solid var(--border-hud);
  z-index: 9999;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.5s ease-out;
}

.cookie-hud.hidden {
  display: none;
}

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

.cookie-icon {
  color: var(--primary);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

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

.cookie-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 8px 15px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  transition: 0.3s;
}

.cookie-btn:hover {
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

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

/* --- POLICY PAGES STYLES --- */
/* Ці стилі будуть працювати на сторінках типу privacy.html */
.pages {
  padding-top: 120px; /* Header space */
  padding-bottom: 80px;
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Better readability width */
  background: rgba(10, 25, 47, 0.3);
  padding: 40px;
  border: 1px solid var(--border-hud);
}

.pages h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--grid-line);
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages li {
  list-style: disc;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.pages a {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

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

/* Утиліта для приховування елементів */
.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
