/* ===== Variables ===== */
:root {
  --bg: #0a0a0a;
  --surface: #111827;
  --surface-hover: #1a2536;
  --teal: #00ff00;
  --teal-light: #66ff66;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.07);
  --nav-height: 64px;
  --radius: 10px;
  --max-width: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a, li a:not(.nav-link) { text-decoration: underline; }
ul { list-style: none; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}

/* ===== Focus ===== */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.nav-owl-art {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.52rem;
  line-height: 1.1;
  color: var(--teal);
  white-space: pre;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.35);
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 640px;
}

.owl-art {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  line-height: 1.32;
  color: var(--teal);
  text-align: left;
  white-space: pre;
  text-shadow: 0 0 18px rgba(0, 255, 0, 0.3);
  /* Reserve full height immediately so the text below never shifts */
  height: calc(11 * 1.32em);
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-sub {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--teal);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn-email {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  font-family: 'Courier New', monospace;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-email:hover {
  background: var(--teal);
  color: #0a0a0a;
  transform: translateY(-1px);
}

/* ===== Shared section layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ===== Services ===== */
.services {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover {
  border-color: rgba(0, 255, 0, 0.5);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.card-icon {
  font-family: 'Courier New', monospace;
  font-size: 1.35rem;
  color: var(--teal);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.about-body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-body p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-email {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--teal); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
  .nav {
    padding: 0 16px;
    gap: 16px;
  }

  .nav-links {
    gap: 20px;
  }

  .services,
  .about,
  .contact {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .services-grid {
    gap: 14px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 0; font-size: 1rem; }

  .owl-art { font-size: 0.62rem; }

  .hero-title { font-size: 1.6rem; }

  .services, .about, .contact { padding: 64px 0; }
  .section-heading { margin-bottom: 32px; }

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

  .contact-inner { align-items: stretch; }
  .btn-email { text-align: center; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
