/* ============================================
   Kamikaze Innovations — Stylesheet
   ============================================ */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1220;
  --card-bg: #131a2b;
  --border: rgba(148, 163, 184, 0.15);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-blue: #6d8bf7;
  --accent-purple: #a78bfa;
  --accent-gradient: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===================== CURSOR GLOW ===================== */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(109, 139, 247, 0.16),
    rgba(167, 139, 250, 0.06) 35%,
    transparent 60%
  );
  mix-blend-mode: screen;
}

.cursor-glow.active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.logo-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--text); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(109, 139, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(167, 139, 250, 0.45);
}

.btn-block { width: 100%; text-align: center; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 150px 0 160px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(109, 139, 247, 0.18), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(167, 139, 250, 0.15), transparent 50%);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-tagline {
  max-width: 640px;
  margin: 0 auto 44px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===================== TERMINAL ===================== */
.terminal {
  max-width: 560px;
  margin: 0 auto 44px;
  background: #0c1120;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #10162a;
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 7px; }

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-close { background: #ff5f57; }
.dot-minimize { background: #febc2e; }
.dot-maximize { background: #28c840; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--mono);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.92rem;
  min-height: 150px;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 6px;
}

.terminal-line.cmd { color: #a5b4fc; }
.terminal-line.output { color: #6ee7b7; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent-blue);
  vertical-align: text-bottom;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
}

.about {
  background: var(--bg-alt);
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 20px;
}

.about-text:last-child { margin-bottom: 0; }

/* ===================== SERVICES ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.4);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(109, 139, 247, 0.12);
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 28px 0;
}

.contact-details li { margin-bottom: 14px; }

.detail-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-details a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-details a:hover { color: var(--accent-blue); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social:hover {
  color: #fff;
  background: rgba(109, 139, 247, 0.25);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: #0c1120;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* Honeypot: visually hidden but still readable by simple bots */
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.form-status.success { color: #6ee7b7; }
.form-status.error { color: #fca5a5; }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo { font-weight: 700; }

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 110px 0 100px; }

  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 0 80px; }
  .section { padding: 64px 0; }
  .terminal-body { font-size: 0.82rem; }
}