/* ===== AFTRDRK LANDING PAGE - Pure HTML/CSS ===== */

/* ===== CSS VARIABLES ===== */
:root {
  --bg-dark: #000000;
  --bg-dark-secondary: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.02);
  --text-white: #ffffff;
  --text-gray: #d7d7d7;
  --text-muted: #999999;
  --accent-red: #ff0015;
  --accent-red-hover: #e60012;
  --accent-red-5: rgba(255, 0, 21, 0.05);
  --accent-red-10: rgba(255, 0, 21, 0.1);
  --accent-red-20: rgba(255, 0, 21, 0.2);
  --accent-red-30: rgba(255, 0, 21, 0.3);
  --border-5: rgba(255, 255, 255, 0.05);
  --border-8: rgba(255, 255, 255, 0.08);
  --border-10: rgba(255, 255, 255, 0.1);
  --border-12: rgba(255, 255, 255, 0.12);
  --border-20: rgba(255, 255, 255, 0.2);
  --font-mono: "IBM Plex Mono", monospace;
  --font-sans: "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== CORNER DECORATIONS ===== */
.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent-red);
  border-style: solid;
}
.corner-tl {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}
.corner-tr {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}
.corner-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}
.corner-br {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 6, 0.95) 0%,
    rgba(6, 6, 6, 0.8) 60%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo img {
  height: 30px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu ul {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-white);
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-menu a:hover {
  color: var(--accent-red);
}

.nav-menu a strong {
  font-weight: 700;
}

.header-cta .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--accent-red-5);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-white);
  position: relative;
  border: none;
  transition: background 0.3s ease;
  letter-spacing: 0.5px;
}

.header-cta .btn-outline:hover {
  background: var(--accent-red-10);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  background: var(--accent-red-5);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 101;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-white);
  transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: var(--accent-red);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-white);
  position: relative;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: var(--accent-red-5);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-white);
  position: relative;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent-red-10);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  padding: 130px 80px 80px;
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Grid background lines */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: url("../images/drk_Cache/Group 63.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(50px, 8.5vw, 130px);
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: -3px;
  position: relative;
  z-index: 10;
  mix-blend-mode: normal;
}

.hero-title .title-line {
  display: block;
  white-space: nowrap;
}

.hero-title .indent-1 {
  padding-left: clamp(60px, 12vw, 200px);
}

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

.text-glitch {
  display: inline-block;
  position: relative;
}

/* Hero bottom row */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 60px;
  position: relative;
  z-index: 10;
  gap: 40px;
}

.hero-bottom-left {
  max-width: 520px;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text-gray);
  opacity: 0.7;
  max-width: 480px;
}

.hero-features {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 1px;
  white-space: nowrap;
}

.feature-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  user-select: none;
}

.hero-bottom-right {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  align-items: center;
}

/* ===== HERO GLOW (Concentric Circles) ===== */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -55%);
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: 3;
  will-change: transform;
  opacity: 0.15;
  transition: opacity 1.2s ease;
}

.hero-glow.active {
  opacity: 1;
}

/* Octagonal web net - ONLY inside the glow circle */
.glow-web {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.12;
  z-index: 3;
  background-image: url("../images/Spider.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: radial-gradient(circle, black 45%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, black 45%, transparent 65%);
}

/* Noise/grain texture overlay */
.glow-noise {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  opacity: 0.4;
  mix-blend-mode: overlay;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.glow-ring {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glow-ring-1 {
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 65%
  );
  border: none;
  filter: blur(50px);
}
.glow-ring-2 {
  width: 540px;
  height: 540px;
  opacity: 0.2;
}
.glow-ring-3 {
  width: 470px;
  height: 470px;
  opacity: 0.25;
}
.glow-ring-4 {
  width: 400px;
  height: 400px;
  opacity: 0.3;
}
.glow-ring-5 {
  width: 340px;
  height: 340px;
  opacity: 0.38;
}
.glow-ring-6 {
  width: 280px;
  height: 280px;
  opacity: 0.45;
}
.glow-ring-7 {
  width: 220px;
  height: 220px;
  opacity: 0.55;
}
.glow-ring-8 {
  width: 160px;
  height: 160px;
  opacity: 0.65;
}
.glow-ring-9 {
  width: 100px;
  height: 100px;
  opacity: 0.75;
}
.glow-ring-10 {
  width: 50px;
  height: 50px;
  opacity: 0.85;
}
.glow-ring-core {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 1);
  border: none;
  opacity: 1;
  filter: blur(2px);
}

/* Crosshair decorations */
.crosshair {
  position: absolute;
  z-index: 6;
  opacity: 1;
}

.crosshair-left {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.crosshair-right {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

/* ===== HERO SPIDER (centered on all hero sections) ===== */
.hero-spider {
  position: absolute;
  top: 35%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  pointer-events: none;
  z-index: 4;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}

.hero-spider-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== CAPABILITIES SECTION ===== */
.capabilities-section {
  padding: 100px 80px 120px;
  position: relative;
  z-index: 10;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 90px);
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 80px;
  letter-spacing: -2px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-title span {
  display: block;
}

.section-title .indent-1 {
  padding-left: clamp(60px, 10vw, 200px);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  /* Extra padding so scaled card doesn't clip outside */
  padding: 60px 0;
  margin-top: -60px;
  margin-bottom: -60px;
}

/* ===== CAPABILITY CARD ===== */
.capability-card {
  border: 1px solid var(--border-12);
  padding: 50px 40px 45px;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  position: relative;
  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.5s ease,
    opacity 0.4s ease,
    filter 0.4s ease;
  z-index: 1;
  opacity: 1;
  min-height: 480px;
}

/* Offset shadow (red L-shape) */
.capability-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -8px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-left: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transition:
    border-color 0.4s ease,
    top 0.5s ease,
    left 0.5s ease;
  z-index: -1;
  pointer-events: none;
}

/* When ANY card in the grid is hovered, dim ALL cards */
.capabilities-grid:hover .capability-card {
  opacity: 0.35;
  filter: brightness(0.4);
  transform: scale(0.96);
}

/* The hovered card pops WAY up — overlaps neighbors */
.capabilities-grid:hover .capability-card:hover {
  opacity: 1;
  filter: brightness(1);
  border-color: var(--accent-red);
  background: rgba(8, 8, 8, 0.99);
  transform: scale(1.09);
  z-index: 30;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 0, 21, 0.06);
  -webkit-transform: scale(1.09);
  -moz-transform: scale(1.09);
  -ms-transform: scale(1.09);
  -o-transform: scale(1.09);
}

/* Red L-shape offset border on hover */
.capabilities-grid:hover .capability-card:hover::before {
  border-left-color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  top: 8px;
  left: -8px;
}

/* Button turns solid red on card hover */
.capabilities-grid:hover .capability-card:hover .card-btn {
  background: var(--accent-red);
  color: var(--text-white);
  border-color: var(--accent-red);
}

.capabilities-grid:hover .capability-card:hover .card-btn .corner {
  border-color: transparent;
}

.capability-card .card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 30px;
}

.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.card-label {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: var(--border-20);
  margin-bottom: 28px;
}

.card-body {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
  flex-grow: 1;
}

.card-number {
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-gray);
  opacity: 1;
  flex-shrink: 0;
}

.card-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-gray);
  opacity: 0.65;
}

.card-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Featured Card */
.capability-card.featured {
  border: none;
  padding: 0;
  background: none;
  z-index: 5;
}

.capability-card.featured .card-shadow {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  /*background: var(--accent-red);
  */
  z-index: 1;
  transition: transform 0.4s ease;
  -webkit-transition: transform 0.4s ease;
  -moz-transition: transform 0.4s ease;
  -ms-transition: transform 0.4s ease;
  -o-transition: transform 0.4s ease;
}

.capability-card.featured:hover .card-shadow {
  transform: translate(4px, 4px);
}

.capability-card.featured .card-inner {
  position: relative;
  z-index: 2;
  background: transparent;
  /* border: 1px solid var(--accent-red); */
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: 100px 80px;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-mono);
  font-size: clamp(58px, 8vw, 130px);
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.cta-title span {
  display: block;
}

.cta-title .indent-1 {
  padding-left: clamp(80px, 12vw, 250px);
}

.cta-title .indent-2 {
  padding-left: clamp(60px, 10vw, 200px);
}

.cta-description {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text-gray);
  opacity: 0.75;
  max-width: 380px;
  margin-bottom: 32px;
}

.cta-description_1 {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text-gray);
  opacity: 0.75;
  margin-bottom: 20px;
}

/* CTA Glow - Base (Home page) */
.cta-glow {
  position: absolute;
  top: 60%;
  right: 260px;
  transform: translateY(-50%);
  width: 400px;
  height: 550px;
  pointer-events: none;
  z-index: 5;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.cta-glow-ring {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cta-glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    transparent 65%
  );
  filter: blur(50px);
}

.cta-glow-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 65%
  );
  filter: blur(30px);
}

.cta-glow-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 65%
  );
  filter: blur(15px);
}

.cta-glow-core {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  filter: blur(5px);
}

/* Octagonal web inside CTA glow */
.cta-glow-web {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 3;
  background-image: url("../images/Spider.png");
  background-size: 70% 70%;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: radial-gradient(circle, black 30%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 55%);
}

/* Noise/grain overlay for CTA glow */
.cta-glow-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.4;
  z-index: 4;
  mix-blend-mode: overlay;

  mask-image: radial-gradient(circle, black 25%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, black 25%, transparent 55%);
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px;
  padding-bottom: 0px;
  position: relative;
  z-index: 10;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1400px;
  background-color: var(--bg-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-logo {
  height: 66px;
  margin-bottom: 30px;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  color: #d9d9d9;
  max-width: 400px;
  position: relative;
  padding: 10px 20px;
}

.footer-tagline::before,
.footer-tagline::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent-red);
  border-style: solid;
}

.footer-tagline::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.footer-tagline::after {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

.footer-heading {
  font-family: var(--f1ont-sans);
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: var(--text-white);
  margin-bottom: 30px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.32px;
  color: #d9d9d9;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-links a strong {
  font-weight: 700;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-20);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 80px;
}

.copyright {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: #d9d9d9;
  letter-spacing: -0.32px;
  text-align: center;
}

.copyright .brand {
  font-family: var(--font-mono);
  font-weight: 700;
}

.copyright .brand-light {
  font-family: var(--font-mono);
  font-weight: 400;
}

.footer-arrow {
  position: absolute;
  right: 0;
  bottom: -10%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 21, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 5;
}

.footer-arrow:hover {
  background: var(--accent-red);
  color: var(--text-white);
  transform: translateY(-3px);
}

/* Footer Grid Lines */
.footer-grid {
  position: absolute;
  top: 0;
  left: -80px;
  right: -80px;
  height: 100%;
  background-image: url("../images/Footergrid.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Footer Watermark */
.footer-watermark {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 3;
  overflow: hidden;
  line-height: 0;
}

.footer-watermark-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  opacity: 1;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: -10%;
  left: -5%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay--contact-popup {
  background: transparent;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 80px 80px 0;
}

.modal-container {
  background: var(--bg-dark);
  border: 1px solid var(--border-12);
  width: 100%;
  max-width: 560px;
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
  opacity: 1;
}

.modal-container--contact-popup {
  background: transparent;
  border: none;
  max-width: 460px;
  padding: 0;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-red);
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-10);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-white);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-red);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  height: 54px;
  font-size: 15px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul li {
  margin-bottom: 24px;
}

.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--accent-red);
}

.mobile-menu a strong {
  font-weight: 700;
}

/* Menu toggle active state */
.menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

body.menu-open {
  overflow: hidden;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger-children .animate-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}
.stagger-children .animate-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

/* ===== CURSOR GLOW (mouse follow) ===== */
.cursor-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.12) 25%,
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: left, top;
}

.cursor-spotlight.active {
  opacity: 1;
}

/* Text color inversion when cursor spotlight is near */
.cursor-invert {
  color: #060606 !important;
  transition: color 0.3s ease;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

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

@keyframes glowPulse {
  0%,
  100% {
    filter: blur(55px);
    opacity: 0.9;
  }
  50% {
    filter: blur(70px);
    opacity: 1;
  }
}

.glow-ring-1 {
  animation: glowPulse 5s ease-in-out infinite;
}

/* ===== RESPONSIVE - XL DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
  .header {
    padding: 0 120px;
  }

  .hero-section {
    padding: 150px 120px 100px;
  }

  .hero-content {
    max-width: 1600px;
  }

  .hero-glow {
    width: 720px;
    height: 720px;
  }

  .glow-ring-1 {
    width: 720px;
    height: 720px;
  }

  .hero-spider {
    width: 520px;
    height: 520px;
  }

  .section-title {
    max-width: 1600px;
  }

  .capabilities-section {
    padding: 120px 120px 140px;
  }

  .capabilities-grid {
    max-width: 1600px;
  }

  .cta-section {
    padding: 120px 120px;
  }

  .cta-content {
    max-width: 1600px;
  }

  .footer {
    max-width: 1600px;
    padding: 100px 100px 0;
  }
}

/* ===== RESPONSIVE - 2XL DESKTOP (1600px+) ===== */
@media (min-width: 1600px) {
  .header {
    padding: 0 160px;
  }

  .hero-section {
    padding: 170px 160px 120px;
  }

  .hero-content {
    max-width: 1800px;
  }

  .hero-glow {
    width: 800px;
    height: 800px;
  }

  .glow-ring-1 {
    width: 800px;
    height: 800px;
  }

  .hero-spider {
    width: 580px;
    height: 580px;
  }

  .section-title {
    max-width: 1800px;
  }

  .capabilities-section {
    padding: 140px 160px 160px;
  }

  .capabilities-grid {
    max-width: 1800px;
  }

  .cta-section {
    padding: 140px 160px;
  }

  .cta-content {
    max-width: 1800px;
  }

  .footer {
    max-width: 1800px;
    padding: 120px 120px 0;
  }
}

/* ===== RESPONSIVE - 3XL / 4K (1920px+) ===== */
@media (min-width: 1920px) {
  .header {
    padding: 0 200px;
  }

  .hero-section {
    padding: 180px 200px 140px;
  }

  .hero-content {
    max-width: 1920px;
  }

  .section-title {
    max-width: 1920px;
  }

  .capabilities-section {
    padding: 160px 200px 180px;
  }

  .capabilities-grid {
    max-width: 1920px;
    gap: 2px;
  }

  .capability-card {
    min-height: 520px;
    padding: 60px 48px 50px;
  }

  .cta-section {
    padding: 160px 200px;
  }

  .cta-content {
    max-width: 1920px;
  }

  .footer {
    max-width: 1920px;
    padding: 140px 140px 0;
  }

  .footer-content {
    gap: 80px;
  }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1200px) {
  .header {
    padding: 0 40px;
  }

  .nav-menu ul {
    gap: 24px;
  }

  .nav-menu a {
    font-size: 11px;
  }

  .hero-section {
    padding: 130px 40px 60px;
  }

  .hero-glow {
    width: 480px;
    height: 480px;
  }

  .glow-ring-1 {
    width: 480px;
    height: 480px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .hero-bottom-right {
    align-self: flex-start;
  }

  .hero-spider {
    width: 350px;
    height: 350px;
  }

  .capabilities-section {
    padding: 80px 40px;
  }

  .cta-section {
    padding: 100px 40px;
  }

  .cta-glow {
    right: 100px;
    width: 350px;
    height: 450px;
  }

  .footer {
    padding: 60px 40px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
  .header-right {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .modal-overlay {
    top: -10%;
    left: 4% !important;
  }

  .header {
    padding: 0 20px;
    height: 70px;
  }

  .hero-section {
    padding: 110px 20px 60px;
  }

  .hero-title {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .hero-title .title-line {
    white-space: normal;
  }

  .hero-title .indent-1 {
    padding-left: 30px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 26px;
  }

  .hero-features {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }

  .feature-tag {
    font-size: 10px;
  }

  .hero-bottom-right {
    flex-direction: column;
    width: 100%;
  }

  .hero-bottom-right .btn-primary,
  .hero-bottom-right .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
    left: 50%;
    top: 35%;
  }

  .glow-ring-1 {
    width: 300px;
    height: 300px;
  }
  .glow-ring-2 {
    width: 260px;
    height: 260px;
  }
  .glow-ring-3 {
    width: 220px;
    height: 220px;
  }
  .glow-ring-4 {
    width: 190px;
    height: 190px;
  }
  .glow-ring-5 {
    width: 160px;
    height: 160px;
  }
  .glow-ring-6 {
    width: 130px;
    height: 130px;
  }
  .glow-ring-7 {
    width: 100px;
    height: 100px;
  }
  .glow-ring-8 {
    width: 70px;
    height: 70px;
  }
  .glow-ring-9 {
    width: 45px;
    height: 45px;
  }
  .glow-ring-10 {
    width: 25px;
    height: 25px;
  }
  .glow-ring-core {
    width: 12px;
    height: 12px;
  }

  .crosshair {
    display: none;
  }

  .hero-spider {
    width: 220px;
    height: 220px;
  }

  .hero-spider-img {
    opacity: 0.1;
  }

  /* Capabilities */
  .capabilities-section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .section-title .indent-1 {
    padding-left: 40px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .capability-card {
    min-height: auto;
    padding: 35px 25px 30px;
  }

  .card-label {
    font-size: 16px;
  }

  .card-number {
    font-size: 60px;
  }

  /* Disable overlap effect on mobile */
  .capabilities-grid:hover .capability-card {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .capabilities-grid:hover .capability-card:hover {
    transform: translateY(-10px) scale(1.02);
  }

  .card-number {
    font-size: 56px;
  }

  /* CTA */
  .cta-section {
    padding: 60px 20px;
    min-height: auto;
    flex-direction: column;
  }

  .cta-title {
    font-size: 45px;
  }

  .cta-title .indent-1 {
    padding-left: 40px;
  }

  .cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    margin: 0;
    z-index: 1;
  }

  /* Footer */
  .footer {
    padding: 40px 20px 0px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    left: -20px;
    right: -20px;
  }
  .footer-tagline {
    text-align: left !important;
    /* margin: 0 auto; */
  }

  .footer-heading {
    font-size: 32px;
  }

  .footer-watermark-img {
    width: 100%;
  }

  .footer-bottom {
    padding: 0 20px;
  }

  .footer-arrow {
    width: 44px;
    height: 44px;
    bottom: -5%;
  }

  /* Modal */
  .modal-container {
    margin: 20px;
    /* padding: 32px 24px; */
  }

  .modal-overlay--contact-popup {
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px 10px 10px;
  }

  .modal-container--contact-popup {
    max-width: 100%;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-red);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red-hover);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .cta-glow,
  .cursor-spotlight,
  .glow-ring-1 {
    animation: none !important;
    transition: none !important;
  }

  .cursor-invert {
    transition: none !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 100%;
  height: 100%;
  background-image: url("../images/drk_Cache/Explore/sidebaground.png");
  background-size: auto 140%;
  background-repeat: no-repeat;
  background-position: left center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* ===== EMERGENCY BUTTON ===== */
.emergency-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-red);
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 0, 21, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.emergency-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 0, 21, 0.6);
}

.emergency-btn-icon {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.emergency-btn-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-red);
  animation: emergencyPulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes emergencyPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ===== EMERGENCY POPUP ===== */
.emergency-popup {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.emergency-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.emergency-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.ct-form-card--emergency {
  position: absolute;
  bottom: 100px;
  right: 30px;
  width: 400px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  z-index: 2;
}

.emergency-popup.active .ct-form-card--emergency {
  transform: translateY(0);
  opacity: 1;
}

.emergency-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.emergency-popup-close:hover {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.emergency-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.emergency-popup-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-popup-header .ct-form-heading {
  margin-bottom: 0;
  font-size: 16px;
}

.emergency-popup-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 20px;
}

.ct-form-card--emergency .ct-form-submit {
  width: 100%;
}

.emergency-submit-loading {
  display: none;
}

.ct-form-submit.loading .emergency-submit-text {
  display: none;
}

.ct-form-submit.loading .emergency-submit-loading {
  display: inline;
}

/* Emergency Success State */
.emergency-success {
  display: none;
  text-align: center;
  padding: 30px 20px;
}

.emergency-popup.success .ct-form {
  display: none;
}

.emergency-popup.success .emergency-popup-subtitle {
  display: none;
}

.emergency-popup.success .emergency-success {
  display: block;
}

.emergency-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: #00ff88;
}

.emergency-success h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.emergency-success p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Emergency Popup Responsive */
@media (max-width: 768px) {
  .emergency-btn {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .emergency-btn-icon {
    font-size: 24px;
  }

  .ct-form-card--emergency {
    bottom: 84px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 120px);
  }
}
