/* ========================= */
/* RESET */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050505;
  color: #eaeaea;
  font-family: 'Inter', sans-serif;
}

/* FIX: prevents fixed nav overlap */
body {
  padding-top: 80px;
}

/* ========================= */
/* NAVBAR */
/* ========================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 60px;

  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);

  border-bottom: 1px solid #00f0ff22;
}

.logo img {
  height: 40px;
}

.nav-links a {
  margin-left: 30px;
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00f0ff;
}

/* ========================= */
/* HERO */
/* ========================= */
.hero-df {
  position: relative;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  overflow: hidden;

  padding: 20px;

  isolation: isolate;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: -1;
  filter: brightness(0.35);
  pointer-events: none;
}

.hero-df::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.9)
  );

  z-index: 1;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  z-index: 2;

  background-image:
    linear-gradient(rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px);

  background-size: 40px 40px;
  animation: moveGrid 8s linear infinite;
}

@keyframes moveGrid {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 40px, 40px 0; }
}

.hero-content-df {
  position: relative;
  z-index: 3;

  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-content-df h1 {
  font-family: 'Orbitron';
  font-size: 3rem;
  color: #00f0ff;
  text-shadow: 0 0 20px #00f0ff55;
}

.hero-content-df p {
  color: #aaa;
  line-height: 1.6;
}

.btn-primary {
  background: #00f0ff;
  color: #000;

  padding: 12px 30px;
  border-radius: 8px;

  text-decoration: none;
  font-weight: bold;

  transition: 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 20px #00f0ff;
  transform: translateY(-2px);
}

/* ========================= */
/* FORENSICS SECTION */
/* ========================= */
#forensics-terminal {
  display: block;
  padding: 80px 20px;
  margin-top: 60px;
}

.forensics-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;

  overflow: hidden;
  border-radius: 12px;
}

.forensics-image {
  width: 100%;
  display: block;
  border-radius: 12px;

  transition: transform 0.3s ease;
}

.forensics-container:hover .forensics-image {
  transform: scale(1.03);
}

/* scan line */
.scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;

  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;

  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { top: -10%; }
  100% { top: 110%; }
}

/* hotspots */
.hotspot {
  position: absolute;
  width: 12px;
  height: 12px;

  background: #00f0ff;
  border-radius: 50%;

  box-shadow: 0 0 10px #00f0ff;
  cursor: pointer;
}

.hotspot:hover {
  transform: scale(1.5);
}

/* info box */
#info-box {
  position: absolute;
  bottom: 20px;
  left: 20px;

  background: rgba(0,0,0,0.8);
  color: #00f0ff;

  padding: 10px 15px;
  border: 1px solid #00f0ff;

  font-family: monospace;
  font-size: 0.9rem;

  display: none;
}

/* ========================= */
/* SERVICES */
/* ========================= */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto 120px auto;

  /* IMPORTANT FIX: prevents margin collapse */
  display: flow-root;
}

.section h2 {
  text-align: center;
  margin-bottom: 50px;

  font-family: 'Orbitron';
  color: #00f0ff;
}

.grid-df {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

.card-df {
  padding: 30px;

  background: linear-gradient(145deg,#0a0a0a,#050505);

  border: 1px solid #00f0ff22;
  border-radius: 12px;

  transition: 0.4s;
}

.card-df:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px #00f0ff33;
}

.card-df h3 {
  color: #00f0ff;
  margin-bottom: 10px;
}

/* ========================= */
/* CTA (FIXED OVERLAP) */
/* ========================= */
.cta-df {
  text-align: center;

  background: #050505;
  border-top: 2px solid #00f0ff;

  padding: 60px 20px;

  margin-top: 140px; /* CRITICAL FIX */
  position: relative;
  z-index: 2;
}

.cta-df a {
  display: inline-block;

  background: #00f0ff;
  color: #000;

  padding: 15px 30px;
  border-radius: 8px;

  text-decoration: none;
  font-weight: bold;

  margin-top: 20px;
}

.cta-df a:hover {
  background: #00cc6a;
}

/* ========================= */
/* FOOTER */
/* ========================= */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #00f0ff22;
  color: #777;
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width:768px) {

  nav {
    padding: 20px;
  }

  .hero-content-df h1 {
    font-size: 2.2rem;
  }
}