/* ========== Base ========== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

/* ========== Header scroll effect ========== */
#header.scrolled {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== Particle canvas ========== */
#particleCanvas {
  pointer-events: none;
}

/* ========== Hero fade-in ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Scroll fade-in ========== */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== Service card hover ========== */
.service-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ========== Glow effects ========== */
.glow-cyber {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.glow-accent {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* ========== Grid background ========== */
.grid-bg {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ========== Counter ========== */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ========== Form focus glow ========== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* ========== Pricing card highlight pulse ========== */
@keyframes borderPulse {
  0%, 100% { border-color: #00d4ff; }
  50% { border-color: #7c3aed; }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  #pricing .scale-105 {
    transform: scale(1);
  }
}
