/* ============================================================
   HAKITLABS — STYLESHEET
   Design system: Dark cybersecurity aesthetic
   Fonts: Lexend (headings) + Source Sans 3 (body)
   ============================================================ */

/* ---------- RESET & VARIABLES ---------- */

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

:root {
  --bg-900:   #030810;
  --bg-800:   #060F1E;
  --bg-700:   #0B1627;
  --bg-600:   #0F1E32;
  --bg-500:   #142540;
  --bg-card:  #0D1C2E;

  --cyan:      #00D4FF;
  --blue:      #0066FF;
  --green:     #00FF88;
  --purple:    #8855FF;
  --red:       #FF3366;

  --cyan-dim:   rgba(0, 212, 255, 0.12);
  --blue-dim:   rgba(0, 102, 255, 0.12);
  --green-dim:  rgba(0, 255, 136, 0.12);
  --purple-dim: rgba(136, 85, 255, 0.12);

  --text-100: #F0F4FF;
  --text-200: #C8D4E8;
  --text-300: #7890A8;
  --text-400: #4A6078;

  --border:       rgba(0, 212, 255, 0.10);
  --border-hover: rgba(0, 212, 255, 0.32);
  --border-focus: rgba(0, 212, 255, 0.60);

  --font-head: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);

  --radius-sm:  6px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-glow-cyan:   0 0 24px rgba(0, 212, 255, 0.18);
  --shadow-glow-blue:   0 0 24px rgba(0, 102, 255, 0.22);
  --shadow-card:        0 4px 32px rgba(0, 0, 0, 0.45);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-800);
  color: var(--text-200);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--cyan);
  color: var(--bg-900);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
}
.skip-link:focus { top: 1rem; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-300);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), box-shadow 200ms var(--ease),
              transform 150ms var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-900);
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: #33DDFF;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-100);
  border-color: var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(0,212,255,0.5);
  color: var(--cyan);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0,212,255,0.35);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-sm  { padding: 0.5rem 1.1rem; font-size: 0.825rem; }
.btn-lg  { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- NAVIGATION ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background 300ms var(--ease), border-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 32px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-200);
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.nav-links a:hover { color: var(--text-100); background: rgba(255,255,255,0.05); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-200);
  border-radius: 2px;
  transition: transform 250ms var(--ease), opacity 200ms;
}

.mobile-menu {
  background: rgba(6,15,30,0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.mobile-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-200);
  font-family: var(--font-head);
  font-weight: 500;
  transition: color 150ms, background 150ms;
}
.mobile-menu a:hover { color: var(--cyan); background: var(--cyan-dim); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(0, 102, 255, 0.08) 0%,
    transparent 70%),
    var(--bg-900);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 60%,
    rgba(6, 15, 30, 0.5) 85%,
    var(--bg-800) 100%
  );
  pointer-events: none;
}

/* Scanline overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 5rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 100px;
  padding: 0.35rem 1rem 0.35rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
  animation: fadeSlideUp 0.6s var(--ease-out) both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--cyan); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--cyan); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-100);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  animation: fadeSlideUp 0.7s var(--ease-out) 0.1s both;
}

.hero-headline .text-accent {
  background: linear-gradient(135deg, #00D4FF 0%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-300);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  animation: fadeSlideUp 0.7s var(--ease-out) 0.2s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.7s var(--ease-out) 0.3s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-400);
  animation: fadeSlideUp 0.7s var(--ease-out) 0.4s both;
}

.hero-trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-300);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- STATS ---------- */
.stats-section {
  background: var(--bg-700);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #00D4FF, #0066FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-300);
  font-weight: 500;
}

/* ---------- SERVICES ---------- */
.services-section {
  padding: 6rem 0;
  background: var(--bg-800);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease),
              transform 250ms var(--ease);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 300ms;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Color variants */
.service-card[data-color="cyan"]:hover  { border-color: rgba(0,212,255,0.45);  box-shadow: 0 8px 40px rgba(0,212,255,0.10); }
.service-card[data-color="blue"]:hover  { border-color: rgba(0,102,255,0.45);  box-shadow: 0 8px 40px rgba(0,102,255,0.12); }
.service-card[data-color="purple"]:hover{ border-color: rgba(136,85,255,0.45); box-shadow: 0 8px 40px rgba(136,85,255,0.10); }
.service-card[data-color="green"]:hover { border-color: rgba(0,255,136,0.45);  box-shadow: 0 8px 40px rgba(0,255,136,0.08); }

.service-card[data-color="cyan"]::before  { background: linear-gradient(90deg, transparent, rgba(0,212,255,0.6), transparent); }
.service-card[data-color="blue"]::before  { background: linear-gradient(90deg, transparent, rgba(0,102,255,0.6), transparent); }
.service-card[data-color="purple"]::before{ background: linear-gradient(90deg, transparent, rgba(136,85,255,0.6), transparent); }
.service-card[data-color="green"]::before { background: linear-gradient(90deg, transparent, rgba(0,255,136,0.6), transparent); }

.service-card:hover::before { opacity: 1; }

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; }

.service-icon[data-color="cyan"]   { background: var(--cyan-dim);   color: var(--cyan);   }
.service-icon[data-color="blue"]   { background: var(--blue-dim);   color: #4488FF;       }
.service-icon[data-color="purple"] { background: var(--purple-dim); color: var(--purple); }
.service-icon[data-color="green"]  { background: var(--green-dim);  color: var(--green);  }

.specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-900);
  background: var(--cyan);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

.specialty-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg-900);
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-300);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.service-card[data-color="cyan"]   .feature-tag { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(0,212,255,0.2);  }
.service-card[data-color="blue"]   .feature-tag { background: var(--blue-dim);   color: #6699FF;       border: 1px solid rgba(0,102,255,0.2);  }
.service-card[data-color="purple"] .feature-tag { background: var(--purple-dim); color: #AA88FF;       border: 1px solid rgba(136,85,255,0.2); }
.service-card[data-color="green"]  .feature-tag { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(0,255,136,0.2);  }

/* ---------- ABOUT ---------- */
.about-section {
  padding: 6rem 0;
  background: var(--bg-700);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-body {
  color: var(--text-300);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: var(--radius-sm);
  color: var(--cyan);
}
.value-icon svg { width: 18px; height: 18px; }

.value-text h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: 0.2rem;
}
.value-text p { font-size: 0.9rem; color: var(--text-300); line-height: 1.6; }

/* Terminal */
.about-terminal {
  background: #030810;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), inset 0 0 60px rgba(0,0,0,0.3);
}

.terminal-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #FF5F57; }
.terminal-dots span:nth-child(2) { background: #FEBC2E; }
.terminal-dots span:nth-child(3) { background: #28C840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-400);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  min-height: 280px;
}

.terminal-line { display: flex; gap: 0.5rem; align-items: baseline; }
.t-prompt { color: var(--cyan); flex-shrink: 0; }
.t-cmd    { color: var(--text-100); }
.t-output { color: var(--text-300); padding-left: 0; }
.t-success{ color: #00FF88; }
.t-warning{ color: #FFB800; }
.t-danger { color: #FF3366; }

.cursor-blink {
  animation: blink 1.1s step-end infinite;
  color: var(--cyan);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- WHY SECTION ---------- */
.why-section {
  padding: 5rem 0;
  background: var(--bg-800);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 200ms, transform 200ms var(--ease);
}
.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.why-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.why-icon svg { width: 20px; height: 20px; }

.why-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: 0.5rem;
}
.why-card p { font-size: 0.9rem; color: var(--text-300); line-height: 1.65; }

/* ---------- BLOG PREVIEW ---------- */
.blog-section {
  padding: 6rem 0;
  background: var(--bg-700);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 250ms var(--ease), transform 250ms var(--ease),
              box-shadow 250ms var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.blog-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.blog-card-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}

.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 20px
  );
}

.blog-card[data-category="Mobile Security"] .blog-card-image  { background: linear-gradient(135deg, #030E1A, #071828); color: var(--cyan); }
.blog-card[data-category="Web Security"]    .blog-card-image  { background: linear-gradient(135deg, #030A1A, #060F28); color: #6699FF; }
.blog-card[data-category="Network Security"].blog-card-image  { background: linear-gradient(135deg, #0A0314, #130520); color: var(--purple); }

.blog-card-image-label {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid currentColor;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  opacity: 0.6;
  font-size: 0.7rem;
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.blog-category-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.blog-card[data-category="Web Security"]     .blog-category-tag { color: #6699FF; background: var(--blue-dim);   border-color: rgba(0,102,255,0.2); }
.blog-card[data-category="Network Security"] .blog-category-tag { color: #AA88FF; background: var(--purple-dim); border-color: rgba(136,85,255,0.2); }

.blog-read-time { font-size: 0.78rem; color: var(--text-400); }

.blog-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-100);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}
.blog-card:hover h3 { color: var(--cyan); }

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-300);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-author { font-size: 0.78rem; color: var(--text-400); }
.blog-date   { font-size: 0.78rem; color: var(--text-400); font-family: var(--font-mono); }

.blog-footer { text-align: center; }

/* ---------- CONTACT ---------- */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-800);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-300);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-200);
  font-size: 0.95rem;
}

.contact-detail-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--cyan);
}

.contact-detail-item a:hover { color: var(--cyan); }

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-200);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-100);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A6078' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-group select option { background: var(--bg-700); color: var(--text-100); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--red); }

.form-error-msg {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.2rem;
  display: none;
}
.form-error-msg.visible { display: block; }

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

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-400);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--green-dim);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--green);
}
.success-icon svg { width: 28px; height: 28px; }

.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 0.5rem;
}
.form-success p { color: var(--text-300); font-size: 0.95rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-900);
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-400);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-400);
  transition: color 150ms, border-color 150ms, background 150ms;
}
.social-link:hover {
  color: var(--cyan);
  border-color: rgba(0,212,255,0.4);
  background: var(--cyan-dim);
}
.social-link svg { width: 16px; height: 16px; }

.footer-links {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-300);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-400);
  transition: color 150ms;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-400); }

/* ---------- BLOG PAGE ---------- */
.page-hero {
  background: var(--bg-900);
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.page-hero p { font-size: 1.05rem; color: var(--text-300); }

.blog-listing {
  padding: 4rem 0 6rem;
  background: var(--bg-800);
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---------- POST PAGE ---------- */
.post-page {
  background: var(--bg-800);
  min-height: 100vh;
}

.post-hero {
  background: var(--bg-900);
  padding: 7rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-400);
  margin-bottom: 1.5rem;
}
.post-breadcrumb a { color: var(--cyan); }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb span { color: var(--text-400); }

.post-category-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.post-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-400);
}
.post-meta span { display: flex; align-items: center; gap: 0.4rem; }
.post-meta svg  { width: 14px; height: 14px; flex-shrink: 0; }

.post-body {
  padding: 3.5rem 0 5rem;
}

.post-body .container {
  max-width: 760px;
}

.post-content {
  color: var(--text-200);
  font-size: 1rem;
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-100);
  margin: 2rem 0 0.75rem;
}

.post-content p { margin-bottom: 1.25rem; }

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; color: var(--text-200); }

.post-content pre {
  background: var(--bg-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--cyan);
}

.post-content code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.post-content blockquote {
  border-left: 3px solid var(--cyan);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-200);
}

.post-content blockquote strong { color: var(--cyan); }

.post-content strong { color: var(--text-100); font-weight: 600; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-300);
  background: var(--bg-700);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 2rem;
  transition: gap 200ms;
}
.back-link:hover { gap: 0.7rem; }
.back-link svg { width: 16px; height: 16px; }

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-container  { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-mobile-toggle { display: flex; }
  .services-grid      { grid-template-columns: 1fr; }
  .blog-grid          { grid-template-columns: 1fr; }
  .blog-listing-grid  { grid-template-columns: 1fr; }
  .contact-container  { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-item:last-child   { border-top: 1px solid var(--border); }
  .footer-container       { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom .container { flex-direction: column; gap: 0.5rem; text-align: center; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item  { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}
