/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #0a0d14;
  --c-bg2: #0f1320;
  --c-surface: #151a28;
  --c-border: #1e2538;
  --c-accent: #00d4ff;
  --c-accent2: #7b5ea7;
  --c-text: #e2e8f0;
  --c-muted: #8892a4;
  --c-white: #ffffff;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(calc(var(--mouse-x, 0) * 1px - 400px), calc(var(--mouse-y, 0) * 1px - 400px));
  pointer-events: none;
  z-index: 1;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ── Container ── */
.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn--primary {
  background: var(--c-accent);
  color: #000;
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
}
.btn--primary:hover { 
  background: #00b8d9; 
  transform: translateY(-2px); 
  box-shadow: 0 0 20px rgba(0,212,255,0.6), 0 0 40px rgba(0,212,255,0.2); 
}
.btn--ghost {
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(10,13,20,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}
.nav__logo {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-white);
  margin-right: auto;
}
.nav__logo span { color: var(--c-accent); }
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: .9rem;
  color: var(--c-muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--c-white); }
.nav__lang {
  display: flex;
  gap: .25rem;
}
.lang-btn {
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: .75rem;
  font-family: var(--mono);
  padding: .2rem .5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.nav__toggle { display: none; background: none; border: none; color: var(--c-text); font-size: 1.4rem; cursor: pointer; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
  gap: 4rem;
}
.hero__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(0, 212, 255, 0.08) 0%, var(--c-bg) 60%), var(--c-bg);
}
#matrix-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}
.hero__content { flex: 1; }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-family: var(--mono);
  color: var(--c-accent);
  border: 1px solid rgba(0,212,255,.2);
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.dot {
  width: 6px; height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: .5rem;
  animation: slideUpFade 0.8s ease-out forwards;
}
.hero__badges {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: slideUpFade 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}
.hero__badges .badge {
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--c-accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  box-shadow: inset 0 0 10px rgba(0,212,255,0.05);
}
.hero__sub {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--c-accent);
  font-family: var(--mono);
  margin-bottom: 1.5rem;
}
.hero__text {
  color: var(--c-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__photo {
  flex-shrink: 0;
  width: 300px;
}
.hero__photo img {
  border-radius: 16px;
  width: 100%;
  filter: grayscale(20%);
  box-shadow: 0 0 60px rgba(0,212,255,.15), var(--shadow);
  border: 1px solid var(--c-border);
  transition: all 0.3s ease;
}
.hero__photo img:hover {
  filter: grayscale(0%);
  box-shadow: 0 0 80px rgba(0,212,255,.3), 0 0 20px rgba(0,212,255,.5);
  border-color: var(--c-accent);
  transform: scale(1.02);
}

/* ── Section ── */
.section { padding: 6rem 0; }
.section--dark { background: var(--c-bg2); }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__label {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: block;
  margin-bottom: .5rem;
}
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-white);
}

/* ── Services ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
}
.service-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 {
  color: var(--c-white);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.service-card p { color: var(--c-muted); font-size: .9rem; }

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: center;
}
.about__text .section__title { text-align: left; margin-bottom: 1.25rem; }
.about__text .section__label { text-align: left; }
.about__text p { color: var(--c-muted); margin-bottom: 1rem; }
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.about__skills span {
  font-family: var(--mono);
  font-size: .78rem;
  padding: .3rem .8rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-accent);
}
.about__photo img {
  border-radius: 16px;
  filter: grayscale(20%);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}
.about__terminal {
  background: #0d111a;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.terminal__header {
  background: var(--c-surface);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  gap: 6px;
}
.dot--red { background: #ff5f56; width: 10px; height: 10px; border-radius: 50%; }
.dot--yellow { background: #ffbd2e; width: 10px; height: 10px; border-radius: 50%; }
.dot--green { background: #27c93f; width: 10px; height: 10px; border-radius: 50%; }
.terminal__body {
  padding: 1rem;
  color: var(--c-text);
  line-height: 1.6;
}
.terminal__body .prompt { color: var(--c-accent); margin-right: 0.5rem; }
.term-line {
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  width: 0;
  animation: typing 1.5s steps(40, end) forwards;
}
.term-line-1 { animation-delay: 1s; }
.term-line-2 { animation-delay: 2s; color: #a3be8c; }
.term-line-3 { animation-delay: 3s; color: #ebcb8b; }
.term-line-4 { animation-delay: 4.5s; color: #bf616a; }
.term-line-5 { animation-delay: 6s; color: #81a1c1; }
.term-line-6 { 
  animation-delay: 7.5s; 
  color: #a3be8c; 
  width: auto; 
  opacity: 0; 
  animation: fadeInTerm 0.1s forwards, blink 1s step-end infinite alternate; 
  border-right: 2px solid var(--c-accent); 
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent }
}
@keyframes fadeInTerm {
  to { opacity: 1; }
}

/* ── Cases ── */
.cases__grid { display: grid; gap: 1.5rem; }
.case-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.case-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.case-card__client {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--c-accent);
}
.case-card__year {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--c-muted);
}
.case-card__title {
  color: var(--c-white);
  font-size: 1.3rem;
  margin-bottom: .75rem;
}
.case-card__text {
  color: var(--c-muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
}
.case-card__findings { display: flex; flex-direction: column; gap: .5rem; }
.cases__sample {
  margin-top: 2.5rem;
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}
.cases__sample p {
  color: var(--c-muted);
  margin-bottom: 1.25rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cases__sample-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--outline {
  display: inline-block;
  padding: .75rem 1.75rem;
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.btn--outline:hover {
  background: var(--c-accent);
  color: #000;
}
.finding {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .88rem;
  border-left: 3px solid;
}
.finding--critical { background: rgba(220,38,38,.08); border-color: #dc2626; color: #fca5a5; }
.finding--high { background: rgba(234,88,12,.08); border-color: #ea580c; color: #fdba74; }
.finding--medium { background: rgba(202,138,4,.08); border-color: #ca8a04; color: #fde047; }
.badge {
  font-family: var(--mono);
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-weight: 600;
}
.badge--fixed { background: rgba(22,163,74,.2); color: #4ade80; }
.badge--open { background: rgba(220,38,38,.2); color: #f87171; }

/* ── Contact ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact__text .section__title { text-align: left; margin-bottom: 1rem; }
.contact__text .section__label { text-align: left; }
.contact__text p { color: var(--c-muted); margin-bottom: 1rem; }
.contact__note {
  font-size: .85rem;
  color: var(--c-accent) !important;
  font-family: var(--mono);
}
.contact__email {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  color: var(--c-accent);
  border-bottom: 1px solid rgba(0,212,255,.3);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.contact__email:hover { border-color: var(--c-accent); }
.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__group { display: flex; flex-direction: column; gap: .4rem; }
.form__group label { font-size: .85rem; color: var(--c-muted); }
.form__group input, .form__group textarea {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--c-text);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}
.form__group input:focus, .form__group textarea:focus {
  border-color: var(--c-accent);
}
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form__success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--c-accent);
  color: var(--c-text);
  border-radius: 4px;
}
.form__hack-msg {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 150, 0.05);
  border: 1px solid #00ff96;
  color: #00ff96;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 150, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form__hack-msg span {
  color: #00ff96 !important;
}

/* ── Footer ── */
/* ── Quotes ── */
.section--quotes {
  background: linear-gradient(135deg, #0a0d14 0%, #0d1420 100%);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.quote-card {
  margin: 0;
  padding: 1.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  border-left: 3px solid var(--c-accent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: #c8d8e8;
  font-style: italic;
  margin: 0;
}
.quote-card__text::before { content: ''; }
.quote-card__author {
  font-size: 0.82rem;
  color: var(--c-accent);
  font-weight: 600;
  font-style: normal;
  margin: 0;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--c-muted);
}
.footer__inner a {
  color: var(--c-muted);
  text-decoration: none;
}
.footer__inner a:hover { color: var(--c-accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { flex-direction: column-reverse; text-align: center; gap: 2rem; }
  .hero__text { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__photo { width: 200px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--c-bg2);
    padding: 1.5rem;
    border-bottom: 1px solid var(--c-border);
  }
}
