/* ═══════════════════════════════════════════════════════════════
   DSA Cyber Solutions — Custom Stylesheet
   Supplements Tailwind Play CDN
   ═══════════════════════════════════════════════════════════════ */

/* ── Base resets ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #060b14;
  color: #cbd5e1;
}

/* ── Navigation ──────────────────────────────────────────────── */
#navbar {
  background: transparent;
}

#navbar.nav-scrolled {
  background: rgba(6, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.6);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: #94a3b8;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: #e2e8f0; }
.nav-link:hover::after { transform: scaleX(1); }

/* Hamburger lines */
.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: background 0.2s;
}
#mobile-menu-btn:hover .ham-line { background: #e2e8f0; }

/* ── Circuit grid background ─────────────────────────────────── */
.circuit-bg {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── Radial glow ─────────────────────────────────────────────── */
.bg-radial-glow {
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(29, 78, 216, 0.18) 0%,
    rgba(6, 182, 212, 0.06) 50%,
    transparent 80%);
}

/* ── Scan line ───────────────────────────────────────────────── */
.scan-line {
  animation: scan 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes scan {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Section helpers ─────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #06b6d4;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section ambient glows */
.section-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.07;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}
.left-glow  { top: 10%; left: -15%; }
.right-glow { bottom: 10%; right: -15%; }

/* ── Stat cards (hero) ───────────────────────────────────────── */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(13, 21, 38, 0.8);
  border: 1px solid rgba(30, 58, 95, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
  text-align: center;
}
.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

/* ── Skill tags ──────────────────────────────────────────────── */
.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}
.skill-tag.energy { color: #4ade80; background: rgba(20, 83, 45, 0.3); border-color: rgba(74, 222, 128, 0.25); }
.skill-tag.cloud  { color: #fbbf24; background: rgba(120, 53, 15, 0.3); border-color: rgba(251, 191, 36, 0.25); }
.skill-tag.dev    { color: #818cf8; background: rgba(49, 46, 129, 0.3); border-color: rgba(129, 140, 248, 0.25); }
.skill-tag.ai     { color: #c084fc; background: rgba(88, 28, 135, 0.3); border-color: rgba(192, 132, 252, 0.25); }
.skill-tag.sec    { color: #f87171; background: rgba(127, 29, 29, 0.3); border-color: rgba(248, 113, 113, 0.25); }
.skill-tag.geo    { color: #34d399; background: rgba(6, 78, 59, 0.3); border-color: rgba(52, 211, 153, 0.25); }
.skill-tag.data   { color: #67e8f9; background: rgba(8, 51, 68, 0.3); border-color: rgba(103, 232, 249, 0.25); }

/* ── Value cards ─────────────────────────────────────────────── */
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(13, 21, 38, 0.6);
  border: 1px solid rgba(30, 58, 95, 0.4);
  transition: border-color 0.2s, background 0.2s;
}
.value-card:hover {
  background: rgba(13, 21, 38, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}
.value-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

/* ── Service cards ───────────────────────────────────────────── */
.service-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(13, 21, 38, 0.7);
  border: 1px solid rgba(30, 58, 95, 0.5);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.service-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.15);
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

/* ── Credentials ─────────────────────────────────────────────── */
.cert-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(13, 21, 38, 0.7);
  border: 1px solid rgba(30, 58, 95, 0.5);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cert-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.12);
}
.cert-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cert-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
}

/* ── Partner cards ───────────────────────────────────────────── */
.partner-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(13, 21, 38, 0.7);
  border: 1px solid rgba(30, 58, 95, 0.5);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.partner-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.12);
}
.partner-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 0.875rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.micro-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 0.375rem;
  background: rgba(30, 58, 95, 0.5);
  border: 1px solid rgba(30, 58, 95, 0.8);
  font-size: 0.65rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Contact card ────────────────────────────────────────────── */
.contact-card {
  padding: 2.5rem;
  border-radius: 1.25rem;
  background: rgba(13, 21, 38, 0.8);
  border: 1px solid rgba(30, 58, 95, 0.7);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.05),
              0 24px 64px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

/* ── Reveal on scroll ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children in grids */
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.08s; }
.service-card:nth-child(5) { transition-delay: 0.16s; }
.service-card:nth-child(6) { transition-delay: 0.24s; }

.cert-card:nth-child(2),
.partner-card:nth-child(2),
.value-card:nth-child(2) { transition-delay: 0.1s; }

.stat-card:nth-child(2) { transition-delay: 0.07s; }
.stat-card:nth-child(3) { transition-delay: 0.14s; }
.stat-card:nth-child(4) { transition-delay: 0.21s; }

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 640px) {
  .partner-card { flex-direction: column; }
  .partner-icon { width: 48px; height: 48px; }
  .contact-card { padding: 1.5rem; }
}

/* ── Selection color ─────────────────────────────────────────── */
::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #f1f5f9;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060b14; }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }
