/* =========================================================
   Diego Andrade — Personal Cybersecurity Site
   Edit the palette here if you want to fine tune the look.
   ========================================================= */
:root {
  --bg: #070a12;
  --bg-2: #0a0f1c;
  --surface: rgba(255,255,255,.045);
  --surface-strong: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.10);
  --text: #f6f8ff;
  --muted: #a9b2c6;
  --cyan: #61e5ff;
  --blue: #4994ff;
  --purple: #8a63ff;
  --green: #79ffca;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 32px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(73,148,255,.14), transparent 29%),
    radial-gradient(circle at 83% 14%, rgba(138,99,255,.13), transparent 24%),
    linear-gradient(180deg, #080b13 0%, #070a12 55%, #080c15 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.023) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  z-index: -1;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,11,20,.72);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, rgba(97,229,255,.18), rgba(138,99,255,.24));
  border: 1px solid rgba(97,229,255,.25);
  color: #dffaff;
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 4px; font-size: 11px; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: #d8deea;
}
.nav a { transition: color .2s ease, opacity .2s ease; }
.nav a:hover { color: var(--cyan); }
.nav-cta {
  padding: 10px 15px;
  border: 1px solid rgba(97,229,255,.23);
  background: rgba(97,229,255,.07);
  border-radius: 12px;
}
.menu-toggle { display: none; }

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0;
}

.hero { padding-top: 98px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c7d2e9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(121,255,202,.55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(121,255,202,0); }
  100% { box-shadow: 0 0 0 0 rgba(121,255,202,0); }
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin: 18px 0 22px;
  font-size: clamp(58px, 8vw, 104px);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 850;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(202,222,255,.55);
  text-shadow: 0 0 42px rgba(73,148,255,.18);
}
.hero-lead {
  max-width: 640px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
}
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #071018;
  background: linear-gradient(135deg, var(--cyan), #8fc7ff 48%, #9d84ff);
  box-shadow: 0 15px 45px rgba(73,148,255,.2);
}
.btn-ghost {
  color: #e8edf8;
  border-color: var(--line);
  background: rgba(255,255,255,.035);
}
.btn-ghost:hover {
  border-color: rgba(97,229,255,.28);
  background: rgba(97,229,255,.055);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #8791a6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.social-row a:hover { color: var(--cyan); }

.hero-visual { display: flex; justify-content: center; }
.photo-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-radius: 38px;
  background:
    linear-gradient(#0b1020, #0b1020) padding-box,
    linear-gradient(135deg, rgba(97,229,255,.5), rgba(138,99,255,.12), rgba(73,148,255,.35)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.photo-frame::before,
.photo-frame::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  z-index: 2;
  pointer-events: none;
}
.photo-frame::before {
  top: -8px; left: -8px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  border-radius: 12px 0 0 0;
}
.photo-frame::after {
  right: -8px; bottom: -8px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  border-radius: 0 0 12px 0;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
  filter: saturate(.94) contrast(1.04);
}
.photo-glow {
  position: absolute;
  inset: 16% -7% -7% 22%;
  background: radial-gradient(circle, rgba(90,112,255,.36), transparent 64%);
  filter: blur(34px);
  z-index: -1;
}
.hud {
  position: absolute;
  min-width: 108px;
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(7,10,18,.76);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.hud span { font-size: 9px; color: #748198; letter-spacing: .16em; }
.hud strong { font-size: 11px; color: #e9f8ff; letter-spacing: .08em; }
.hud-a { left: -28px; bottom: 48px; }
.hud-b { right: -23px; top: 42px; }

.hero-strip {
  margin-top: 74px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
}
.hero-strip > div {
  padding: 7px 18px;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--line);
}
.hero-strip > div:last-child { border-right: 0; }
.hero-strip strong { font-size: 17px; }
.hero-strip span { font-size: 12px; color: var(--muted); }

.section-kicker {
  margin-bottom: 28px;
  color: #7c8aa4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.section-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 70px;
}
.section h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 5vw, 70px);
  line-height: .98;
  letter-spacing: -.05em;
}
.about-copy {
  max-width: 670px;
  font-size: 18px;
  color: var(--muted);
}
.about-copy p { margin-bottom: 22px; }
.about-copy strong { color: #f3f7ff; }

.section-heading {
  max-width: 690px;
  margin-bottom: 38px;
}
.section-heading h2 { margin-bottom: 14px; }
.section-heading p { margin: 0; font-size: 17px; color: var(--muted); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -90px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97,229,255,.11), transparent 67%);
  transition: transform .3s ease;
}
.card:hover::after { transform: scale(1.35); }
.card-index {
  display: inline-block;
  margin-bottom: 50px;
  font-size: 11px;
  color: #6f7d96;
}
.card h3 { margin-bottom: 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.initiative-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}
.initiative {
  min-height: 245px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 10%, rgba(73,148,255,.11), transparent 38%),
    var(--surface);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.initiative:hover {
  transform: translateY(-3px);
  border-color: rgba(97,229,255,.25);
  background:
    radial-gradient(circle at 85% 10%, rgba(73,148,255,.16), transparent 38%),
    var(--surface-strong);
}
.initiative.featured {
  grid-row: span 2;
  min-height: 504px;
  background:
    radial-gradient(circle at 90% 10%, rgba(138,99,255,.19), transparent 37%),
    radial-gradient(circle at 15% 80%, rgba(97,229,255,.11), transparent 37%),
    rgba(255,255,255,.042);
}
.tag, .podcast-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(97,229,255,.16);
  background: rgba(97,229,255,.055);
  color: #aeefff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}
.initiative h3 { margin: 0 0 10px; font-size: 29px; }
.initiative p { max-width: 560px; margin: 0; color: var(--muted); }
.arrow { font-size: 26px; color: #99a8c2; }

.content-section { padding-bottom: 45px; }
.link-cards {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.link-card:hover { transform: translateY(-3px); border-color: rgba(97,229,255,.24); }
.link-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(97,229,255,.11), rgba(138,99,255,.12));
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 900;
}
.link-card div { display: grid; }
.link-card small { margin-top: 2px; color: var(--muted); }

.resource {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 75% 20%, rgba(138,99,255,.14), transparent 31%),
    rgba(255,255,255,.035);
}
.resource h2 { max-width: 700px; margin-bottom: 15px; font-size: clamp(34px, 4vw, 56px); }
.resource p { max-width: 680px; margin-bottom: 0; color: var(--muted); }

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.podcast-card {
  min-height: 290px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.podcast-card:hover { transform: translateY(-3px); border-color: rgba(138,99,255,.3); }
.podcast-card h3 { margin-top: auto; margin-bottom: 10px; font-size: 25px; }
.podcast-card p { color: var(--muted); }
.listen { margin-top: 16px; color: #b9c9e5; font-size: 13px; font-weight: 800; }

.contact-section { padding-top: 50px; }
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border: 1px solid rgba(97,229,255,.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 20%, rgba(97,229,255,.14), transparent 25%),
    radial-gradient(circle at 60% 100%, rgba(138,99,255,.12), transparent 36%),
    #0a0f1a;
  box-shadow: var(--shadow);
}
.contact-panel::after {
  content: "SECURITY";
  position: absolute;
  right: -25px;
  bottom: -52px;
  font-size: clamp(90px, 15vw, 200px);
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.018);
  pointer-events: none;
}
.contact-panel h2 { margin: 18px 0; font-size: clamp(48px, 7vw, 84px); }
.contact-panel p { max-width: 620px; color: var(--muted); font-size: 18px; }

footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 38px 0 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer > div:first-child { display: grid; }
footer strong { color: var(--text); }
.footer-links { display: flex; gap: 18px; font-size: 13px; }
.footer-links a:hover { color: var(--cyan); }
footer small { grid-column: 1 / -1; color: #6f7a90; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header { width: min(calc(100% - 22px), var(--max)); }
  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: white;
  }
  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: white;
    transition: transform .2s ease;
  }
  .nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8,11,20,.97);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px; }
  .nav-cta { margin-top: 5px; }

  .section { padding: 82px 0; }
  .hero { padding-top: 65px; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 0; }
  .photo-frame { width: min(82vw, 400px); }
  h1 { font-size: clamp(54px, 16vw, 84px); }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip > div:nth-child(2) { border-right: 0; }
  .hero-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .initiative-grid { grid-template-columns: 1fr; }
  .initiative.featured { grid-row: auto; min-height: 330px; }
  .link-cards { grid-template-columns: 1fr; }
  .resource { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .section { width: min(calc(100% - 28px), var(--max)); }
  .brand-copy small { display: none; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 34px; }
  .hero-visual { margin-bottom: 4px; }
  .photo-frame { width: min(84vw, 340px); border-radius: 30px; }
  .photo-frame img { border-radius: 21px; }
  .hud-a { left: -8px; bottom: 20px; }
  .hud-b { right: -8px; top: 22px; }
  h1 { font-size: clamp(51px, 17vw, 73px); }
  .hero-lead { font-size: 17px; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-strip { margin-top: 55px; }
  .hero-strip > div { padding: 10px 12px; }
  .services-grid, .podcast-grid { grid-template-columns: 1fr; }
  .card { min-height: 185px; }
  .card-index { margin-bottom: 36px; }
  .initiative, .initiative.featured { min-height: 270px; }
  .section h2 { font-size: clamp(39px, 13vw, 56px); }
  .about-copy { font-size: 16px; }
  .contact-panel { padding: 35px 22px; border-radius: 26px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
