@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg:       #080e1c;
  --bg2:      #0c1428;
  --bg3:      #101c36;
  --card:     rgba(255,255,255,0.04);
  --card-h:   rgba(255,255,255,0.07);
  --text:     #edf0f7;
  --muted:    #7a8aaa;
  --accent:   #a8b8d4;
  --accent2:  #c4d0e8;
  --accent3:  #6a7a94;
  --border:   rgba(255,255,255,0.08);
  --border-a: rgba(168,184,212,0.25);
  --shadow:   0 24px 60px rgba(0,0,0,0.5);
  --radius:   16px;
  --radius-lg:24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 15% 0%,  rgba(168,184,212,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 5%,  rgba(100,130,180,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(8,14,28,0.8)      0%, transparent 70%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* ── Layout ── */
.container { width: min(1140px, 92%); margin: 0 auto; position: relative; z-index: 1; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 100; padding-top: 12px; transition: all 0.3s; }
.nav.scrolled .nav-inner {
  background: rgba(8,14,28,0.96);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-color: rgba(168,184,212,0.12);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  background: rgba(8,14,28,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.brand {
  font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text); text-decoration: none;
}
.brand span { color: var(--accent2); }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 7px 14px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: rgba(168,184,212,0.12) !important;
  border: 1px solid rgba(168,184,212,0.3) !important;
  color: var(--accent2) !important;
  font-weight: 600 !important;
  transition: background 0.2s, border-color 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: rgba(168,184,212,0.2) !important;
  border-color: rgba(168,184,212,0.5) !important;
  transform: translateY(-1px);
  color: var(--accent2) !important;
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: stretch;
  margin-top: 16px; border-radius: var(--radius-lg);
  border: 1px solid rgba(168,184,212,0.1);
}
.hero-accent-bar {
  width: 4px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent2) 0%, var(--accent3) 100%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg); z-index: 5;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('kdcyberpic1.jpg');
  background-size: cover; background-position: center;
  z-index: 0; border-radius: var(--radius-lg);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,14,28,0.97) 0%, rgba(8,14,28,0.88) 45%, rgba(8,14,28,0.55) 100%);
  z-index: 1; border-radius: var(--radius-lg);
}
.hero-overlay::after {
  content: ''; position: absolute; top: 0; left: 4px;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(168,184,212,0.06) 0%, transparent 65%);
  pointer-events: none;
}
#particle-canvas {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; border-radius: var(--radius-lg);
}
.hero-body {
  position: relative; z-index: 3; flex: 1;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
  padding: 64px 52px 64px 44px;
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px;
  border: 1px solid rgba(168,184,212,0.3);
  background: rgba(168,184,212,0.07);
  color: var(--accent2); border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 24px; text-transform: uppercase;
  animation: badgePulse 3.5s ease-in-out infinite;
}
.badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2); box-shadow: 0 0 6px var(--accent2);
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(168,184,212,0); }
  50%      { box-shadow: 0 0 0 6px rgba(168,184,212,0.06); }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; color: var(--text); margin-bottom: 20px;
}
.hero-sub {
  color: var(--muted); font-size: 1rem; line-height: 1.7;
  font-weight: 300; max-width: 480px; margin-bottom: 12px;
}
.hero-tagline { color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero stats panel */
.hero-stats-panel { display: flex; flex-direction: column; gap: 12px; min-width: 110px; }
.hero-stat {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(168,184,212,0.12);
  border-radius: 12px; padding: 16px 20px; text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.hero-stat:hover { border-color: rgba(168,184,212,0.35); background: rgba(168,184,212,0.05); }
.hero-stat-number {
  font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800;
  color: var(--accent2); display: block; line-height: 1; margin-bottom: 4px;
}
.hero-stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer; border: none; font-family: inherit;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent3) 0%, var(--accent) 50%, var(--accent2) 100%);
  color: #080e1c; font-weight: 700;
  box-shadow: 0 4px 20px rgba(168,184,212,0.2);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(168,184,212,0.35); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg); animation: btnShimmer 3.5s ease-in-out infinite;
}
@keyframes btnShimmer { 0%{left:-100%} 50%,100%{left:160%} }
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: var(--text);
}
.btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: rgba(168,184,212,0.3); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Stats Bar (inner pages) ── */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  margin: 60px 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--card); overflow: hidden;
}
.stat { flex: 1; min-width: 160px; padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-number { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent2); line-height: 1; display: block; margin-bottom: 6px; }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent2); font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; display: inline-block; width: 24px; height: 2px;
  background: var(--accent2); border-radius: 2px; flex-shrink: 0;
}
.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 16px;
}
.section-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 560px; font-weight: 300; }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.section-header.center .section-label { justify-content: center; }

/* ── Grid ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.card:hover { background: var(--card-h); border-color: var(--border-a); transform: translateY(-3px); }
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(168,184,212,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(168,184,212,0.08); border: 1px solid rgba(168,184,212,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
  animation: floatIcon 4s ease-in-out infinite;
}
.card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.card:nth-child(3) .card-icon { animation-delay: 1s; }
.card:nth-child(4) .card-icon { animation-delay: 1.5s; }
@keyframes floatIcon { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.card h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; font-weight: 300; }

/* ── Service card ── */
.service-card { display: flex; gap: 22px; align-items: flex-start; }
.service-card .card-icon { flex-shrink: 0; margin-bottom: 0; }
.service-card .card-body { flex: 1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,0.03); }

/* ── About page ── */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 0; animation: fadeUp 0.7s ease both; }
.about-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.about-avatar { width: 220px; height: 220px; border-radius: 50%; background: linear-gradient(135deg, rgba(168,184,212,0.12), rgba(100,130,180,0.12)); border: 2px solid var(--border-a); display: flex; align-items: center; justify-content: center; font-size: 5rem; position: relative; }
.about-avatar::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(168,184,212,0.2); animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cert-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cert-chip { font-size: 0.75rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-a); color: var(--accent2); background: rgba(168,184,212,0.06); font-weight: 500; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 80px 0; animation: fadeUp 0.7s ease both; }
.contact-info h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 18px; }
.contact-info p { color: var(--muted); line-height: 1.7; font-weight: 300; margin-bottom: 36px; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-item-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(168,184,212,0.07); border: 1px solid var(--border-a); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-item-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-item-value { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.contact-item-value a { color: var(--accent2); text-decoration: none; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; letter-spacing: 0.02em; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s, background 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--border-a); background: rgba(168,184,212,0.04); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg2); }

/* ── Divider ── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), rgba(168,184,212,0.2), var(--border), transparent); }

/* ── CTA card ── */
.cta-card { position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 0deg, rgba(168,184,212,0.04) 60deg, transparent 120deg); animation: rotateCTA 12s linear infinite; pointer-events: none; }
@keyframes rotateCTA { to { transform: rotate(360deg); } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 36px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); }
.footer-brand span { color: var(--accent2); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; position: relative; }
.footer-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--accent2); transition: width 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }

/* ── Page hero (inner pages) ── */
.page-hero { padding: 70px 0 50px; animation: fadeUp 0.7s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ── NAICS strip ── */
.naics-strip { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 36px; display: flex; gap: 36px; flex-wrap: wrap; align-items: center; margin: 60px 0 0; }
.naics-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.naics-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.naics-code { font-size: 0.8rem; font-family: 'Syne', sans-serif; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border-a); color: var(--accent2); background: rgba(168,184,212,0.06); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-body { grid-template-columns: 1fr; padding: 48px 28px; }
  .hero-stats-panel { flex-direction: row; flex-wrap: wrap; }
  .hero-stat { flex: 1; min-width: 80px; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta):not(.active) { display: none; }
  .stats-bar { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
