/* Shared styles for both desktop and mobile layouts */
:root {
  --bg: #0c0a10;
  --bg-soft: #14111b;
  --bg-card: #1a1522;
  --accent: #ff3b47;      /* red — headings, links */
  --accent-2: #9a3af0;    /* purple — icons, accents */
  --purple: #8b2ff0;      /* violet — secondary accent, hovers */
  --hot: #ec1c2e;         /* deep red — kicker */
  --text: #cfcfcf;
  --text-dim: #909090;
  --line: #2b2436;
  --brand-grad: linear-gradient(90deg, #ec1c2e 0%, #c31d4f 50%, #8b2ff0 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
}
h1, h2, h3, .nav, .btn, .kicker { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Nav ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 10, 16, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav img { display: block; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-name {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-thin { font-weight: 400; }
.nav ul { display: flex; list-style: none; }
.nav a {
  color: var(--accent); text-decoration: none;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.kicker {
  color: var(--hot); text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.85rem; font-weight: bold;
}
h1 { color: var(--accent); line-height: 1.25; margin: 0.6rem 0 1.2rem; letter-spacing: 0.02em; }
.hero p { margin-bottom: 1rem; max-width: 72ch; }
.hero .lead { color: #e8e8e8; font-size: 1.1rem; }
.hero img { border-radius: 50%; flex-shrink: 0; }
.btn {
  display: inline-block; margin-top: 1rem; padding: 0.8rem 2rem;
  background: var(--brand-grad); color: #fff; font-weight: bold;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em;
  border: none; border-radius: 3px; cursor: pointer;
  box-shadow: 0 2px 14px rgba(236, 28, 46, 0.35);
}
.btn:hover { filter: brightness(1.12); box-shadow: 0 3px 20px rgba(139, 47, 240, 0.45); }

/* ---------- Services ---------- */
h2 { color: var(--accent); font-size: 1.9rem; letter-spacing: 0.05em; }
.rule { width: 70px; height: 3px; background: var(--brand-grad); margin: 0.8rem 0 2rem; }
.service {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px;
  border-top: 3px solid var(--accent-2);
}
.service h3 { color: var(--accent); font-size: 1.25rem; margin-bottom: 0.9rem; letter-spacing: 0.04em; }
.service p { margin-bottom: 0.9rem; }

/* ---------- About ---------- */
section { scroll-margin-top: 80px; }
#about { background: var(--bg-soft); border-top: 1px solid var(--line); }
.section-sub { max-width: 80ch; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.8rem 1.2rem; text-align: center;
}
.card:hover { border-color: var(--purple); }
.card h3 { color: #e6e6e6; font-size: 1.15rem; margin-bottom: 1rem; }
.card h3:only-child { margin-bottom: 0; }
.links { display: flex; justify-content: center; gap: 0.65rem; flex-wrap: wrap; }
.links a { display: inline-flex; padding: 0.15rem; }
.icn {
  display: inline-block; width: 18px; height: 18px;
  background-color: var(--accent-2);
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.links a:hover .icn { background-color: #fff; }
.i-x          { --i: url('icons/x.svg'); }
.i-github     { --i: url('icons/github.svg'); }
.i-linkedin   { --i: url('icons/linkedin.svg'); }
.i-hackerone  { --i: url('icons/hackerone.svg'); }
.i-bugcrowd   { --i: url('icons/bugcrowd.svg'); }
.i-intigriti  { --i: url('icons/intigriti.svg'); }
.i-yeswehack  { --i: url('icons/yeswehack.png'); }
.i-hackthebox { --i: url('logos/hackthebox.svg'); }
.i-tryhackme  { --i: url('logos/tryhackme.svg'); }

.track { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2.2rem; }
.track h3 { color: var(--accent); font-size: 1.25rem; letter-spacing: 0.04em; margin-bottom: 0.8rem; }
.track p { max-width: 80ch; margin-bottom: 1.4rem; }
.track .logos { display: flex; flex-wrap: wrap; align-items: center; }
.track .logos img { display: block; width: auto; }
.track .fine {
  color: var(--text-dim); font-size: 0.85rem; line-height: 1.6;
  margin-top: 1.6rem; max-width: 95ch;
}

/* ---------- Contact ---------- */
#contact { border-top: 1px solid var(--line); }
.field { margin-bottom: 1.2rem; }
label {
  display: block; margin-bottom: 0.4rem; color: var(--accent);
  font-family: 'Trebuchet MS', sans-serif; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
input, textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  background: var(--bg-soft); color: #e6e6e6;
  border: 1px solid var(--line); border-radius: 3px;
  font-family: inherit; font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--purple); }
textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 1.6rem 1.25rem;
  text-align: center; color: var(--text-dim); font-size: 0.85rem;
}
footer img { height: 30px; opacity: 0.85; margin-bottom: 0.6rem; }
.footer-social { display: flex; justify-content: center; margin-bottom: 0.9rem; }
.footer-social a { display: inline-flex; padding: 0.3rem; }
.footer-social .icn { width: 22px; height: 22px; }
.footer-social a:hover .icn { background-color: #fff; }
