
html { color-scheme: dark; }


:root {
  --bg: #0a0f13;
  --panel: #0f141a;
  --muted: #9cb3c9;
  --text: #e6f1ff;
  --accent: #12e2f2;
  --accent-2: #7cf5ff;
  --danger: #ff6b6b;
  --shadow: 0 0 22px rgba(18,226,242,.25),
            0 0 3px rgba(124,245,255,.35) inset;

  --header-h: 60px;           /* 👈 add this */
}

.top-banner {
  padding: calc(var(--header-h) + 40px) 0 10px;
  text-align: center;
}



* { box-sizing:border-box; }

html, body { height:100%; }

body {
  margin:0;
  font-family:
    ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(18,226,242,.06), transparent 60%),
    var(--bg);
  line-height:1.6;
  position:relative;
}


body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.08;
  background-image:
    linear-gradient(transparent 31px, rgba(255,255,255,.08) 32px),
    linear-gradient(90deg, transparent 31px, rgba(255,255,255,.08) 32px);
  background-size:32px 32px;
  z-index:0;
}

a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 20px;
  position:relative;
  z-index:1;
}


.contact-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 22px rgba(18,226,242,.25),
    0 0 40px rgba(18,226,242,.15);
  border-color: rgba(124,245,255,.3);
}
.contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}



header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: saturate(160%) blur(8px);
  background: linear-gradient(
    to bottom,
    rgba(10,15,19,.85),
    rgba(10,15,19,.55)
  );
  border-bottom: 1px solid rgba(124,245,255,.12);
}


.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 14px;
  color: var(--text);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  transition: all .25s ease;
}

.brand-mark {
  color: var(--accent);
  font-weight: 900;
  transition: all .25s ease;
}

.brand-name {
  color: var(--text);
  font-weight: 700;
  letter-spacing: .3px;
  transition: all .25s ease;
}

.brand-link:hover .brand-mark {
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(124,245,255,.6);
}

.brand-link:hover .brand-name {
  color: var(--accent);
  text-shadow:
    0 0 10px rgba(18,226,242,.6),
    0 0 20px rgba(18,226,242,.3);
  transform: translateY(-1px);
}

.brand-link:hover {
  text-decoration: none;
}


.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}


.nav-toggle {
  display: none;
  background: var(--panel);
  color: var(--accent);
  border: 1px solid rgba(124,245,255,.3);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 16px;
  line-height:1;
  box-shadow: var(--shadow);
}


.theme-top-btn {
  background: var(--panel);
  color: var(--accent);
  border: 1px solid rgba(124,245,255,.25);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all .25s ease;
  margin-left: 0;
}
.theme-top-btn:hover {
  background: rgba(18,226,242,.15);
  box-shadow: 0 0 12px rgba(18,226,242,.35);
  transform: translateY(-1px);
}

.menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.menu a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: color .25s ease;
}
.menu a.active,
.menu a:hover {
  color: var(--accent);
}


@media (max-width:720px){
  .nav {
    align-items: flex-start;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .theme-top-btn {
    display: none;
  }

  .menu {
    order: 3;
    flex-direction: column;
    width: 100%;
    background: rgba(10,15,19,.95);
    border: 1px solid rgba(124,245,255,.2);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none; 
    margin-top: 12px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    font-size: 15px;
    padding: 8px 4px;
    width: 100%;
  }
}



.top-banner{
  padding:calc(var(--header-h) + 28px) 0 10px;
  text-align:center;
}
.top-banner .name{
  font-size:56px;
  line-height:1;
  font-weight:900;
  letter-spacing:.3px;
  margin:0;
}
.top-banner .title{
  margin:8px 0 0;
  font-weight:800;
  color:var(--accent);
  font-size:20px;
}
.top-banner .type-line{
  margin-top:8px;
  font-size:16px;
  color:var(--muted);
  min-height:22px;
}


.hero-grid{
  display:grid;
  grid-template-columns:260px 1fr 420px;
  gap:28px;
  align-items:center;
  padding-bottom:60px;
}

.avatar-card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(124,245,255,.14);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.avatar{
  width:160px;
  height:160px;
  border-radius:50%;
  border:2px solid rgba(124,245,255,.3);
  background:radial-gradient(circle at 30% 30%, var(--accent), #095a63);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:
    0 0 24px rgba(18,226,242,.2),
    0 0 20px rgba(18,226,242,.25),
    inset 0 0 12px rgba(18,226,242,.15);
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
  isolation: isolate;
  pointer-events: none;
}
html[style*="invert(1)"] .avatar img {
  filter: invert(1) hue-rotate(180deg) !important;
}

.small-note{
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

.security-stage{
  position:relative;
  height:360px;
  display:grid;
  place-items:center;
}
.glow{
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(18,226,242,.18), transparent 60%);
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.ring{
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  border:2px dashed rgba(124,245,255,.35);
  animation:spin 14s linear infinite;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.ring.r2{
  width:280px;
  height:280px;
  animation-duration:20s;
  border-style:solid;
  opacity:.35;
}
.shield{
  position:relative;
  font-size:120px;
  color:var(--accent);
  text-shadow:
    0 0 15px rgba(18,226,242,.8),
    0 0 30px rgba(18,226,242,.5);
  filter:drop-shadow(0 0 24px rgba(18,226,242,.25));
}
.lock{
  position:absolute;
  font-size:40px;
  left:50%;
  top:50%;
  transform:translate(-50%,-55%);
  color:#062c31;
}
.ping{
  position:absolute;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 18px rgba(18,226,242,.8);
  animation:ping 2.2s ease-out infinite;
}
.p1{top:12%; left:24%}
.p2{top:22%; right:18%}
.p3{bottom:18%; left:30%}
.p4{bottom:8%; right:30%}

.binary{
  position:absolute;
  inset:auto 0 18px 0;
  text-align:center;
  font-family:
    ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  font-size:12px;
  color:var(--accent-2);
  opacity:.75;
  transform:skewX(-8deg);
}

.right .lead{
  color:var(--muted);
  margin:0;
}

.cta{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(124,245,255,.2);
  background:linear-gradient(
    180deg,
    rgba(18,226,242,.12),
    rgba(18,226,242,.02)
  );
  color:var(--text);
  box-shadow:var(--shadow);
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}
.btn.secondary{
  background:transparent;
}

.badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(18,226,242,.07);
  border:1px dashed rgba(124,245,255,.35);
  color:var(--accent);
  font-size:12px;
  text-decoration:none;
}



.theme-fab {
  position: fixed;
  right: 16px;
  bottom: 76px; 
  width: 48px;
  height: 48px;
  display: none; 
  place-items: center;
  background: var(--panel);
  color: var(--accent);
  border: 1px solid rgba(124,245,255,.25);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  box-shadow:
    0 0 12px rgba(18,226,242,.25),
    0 0 24px rgba(18,226,242,.15);
  cursor: pointer;
  z-index: 51;
  transition: all .25s ease;
}
.theme-fab:hover {
  background: rgba(18,226,242,.15);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(18,226,242,.45),
    0 0 30px rgba(18,226,242,.35);
}

.whatsapp-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: #25D366;
  border: 1px solid rgba(124,245,255,.25);
  border-radius: 999px;
  font-size: 22px;
  box-shadow:
    0 0 12px rgba(18,226,242,.25),
    0 0 24px rgba(18,226,242,.15);
  cursor: pointer;
  z-index: 50;
  transition: all .25s ease;
  animation: whatsappPulse 3s ease-in-out infinite;
}
.whatsapp-btn:hover {
  background: rgba(37, 211, 102, .15);
  color: white;
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(37, 211, 102, .45),
    0 0 30px rgba(18,226,242,.35);
}

@media (max-width:720px){
  .theme-fab {
    display: grid;
  }
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(18,226,242,.25),
      0 0 24px rgba(18,226,242,.15);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 24px rgba(37,211,102,.45),
      0 0 40px rgba(18,226,242,.35);
    transform: scale(1.05);
  }
}



section{
  padding:70px 0;
}

h2{
  font-size:32px;
  margin:0 0 22px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  line-height:1.2;
}
h2 span.bar{
  flex:0 0 38px;
  height:3px;
  background:var(--accent);
  border-radius:3px;
}

.grid{
  display:grid;
  gap:18px;
}
.cols-2{
  grid-template-columns:repeat(2, 1fr);
}
.cols-3{
  grid-template-columns:repeat(3, 1fr);
}
.cols-4{
  grid-template-columns:repeat(4, 1fr);
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(124,245,255,.14);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
}
.kicker{
  color:var(--muted);
  font-size:13px;
  letter-spacing:.2px;
  font-weight:600;
}
.subtitle{
  font-weight:700;
  color:var(--accent);
  font-size:18px;
  margin:0 0 6px;
}
.lead{
  color:var(--muted);
  max-width:60ch;
}
.muted{
  color:var(--muted);
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(124,245,255,.22);
  color:var(--accent);
  background:transparent;
  font-size:13px;
  text-decoration:none;
  line-height:1.3;
}

/* Experience timeline */
.timeline{position:relative;}
.timeline:before{
  content:"";
  position:absolute;
  left:11px;
  top:0;
  bottom:0;
  width:2px;
  background:linear-gradient(var(--accent), transparent);
}
.titem{
  position:relative;
  padding-left:44px;
  margin:14px 0;
}
.titem:before{
  content:"";
  position:absolute;
  left:4px;
  top:8px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid var(--accent);
}
.titem .when{
  font-size:12px;
  color:var(--muted);
  font-weight:400;
}

.exp-card {
  transition: transform 0.3s ease, box-shadow 0.4s ease, border-color .3s ease;
}
.exp-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 22px rgba(18,226,242,0.25),
    0 0 40px rgba(18,226,242,0.15);
  border-color: rgba(124,245,255,0.35);
}
.exp-card .kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.exp-card .kicker span.when {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.exp-card ul li::marker {
  color: var(--accent);
}


.project-tile {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease, box-shadow 0.3s ease;
}
.project-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(124,245,255,.3);
  box-shadow: 0 0 22px rgba(18,226,242,.25);
  background: rgba(18,226,242,.06);
}
.project-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: 0 0 0 0 rgba(18,226,242,.4);
  opacity: 0;
  transition: all 0.4s ease;
}
.project-tile:hover::before {
  opacity: 1;
  animation: tilePulse 1.2s ease-out;
}
@keyframes tilePulse {
  0%   { box-shadow: 0 0 0 0 rgba(18,226,242,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(18,226,242,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,226,242,0); }
}

/* incident card / ribbon */
.incident-card {
  padding-top: 44px;
  position: relative;
  border: 1px solid rgba(255,77,77,.3);
  transition: all 0.3s ease;
}
.incident-card:hover {
  border-color: rgba(255,77,77,.55);
  box-shadow:
    0 0 24px rgba(255,77,77,.22),
    0 0 40px rgba(18,226,242,.2);
  background: rgba(255,77,77,.03);
}
.incident-ribbon {
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  background: linear-gradient(
    90deg,
    rgba(255,77,77,.18) 0%,
    rgba(18,226,242,.08) 100%
  );
  border: 1px solid rgba(255,77,77,.5);
  border-radius: 14px 14px 0 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-shadow: 0 0 8px rgba(255,77,77,.6);
  box-shadow: 0 0 16px rgba(255,77,77,.35);
  cursor: pointer;
  transition: all .25s ease;
}
.incident-ribbon:hover {
  background: rgba(255,77,77,.25);
  box-shadow: 0 0 22px rgba(255,77,77,.45);
}
.incident-ribbon .case-id {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(124,245,255,.4);
  border-radius: 6px;
  padding: 3px 6px;
  box-shadow: 0 0 8px rgba(18,226,242,.4);
}
.blink-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 10px rgba(255,77,77,.8);
  margin-right: 8px;
  animation: blinkAlive 1.2s infinite;
}
@keyframes blinkAlive {
  0%, 60%   { opacity: 1; box-shadow: 0 0 10px rgba(255,77,77,.8); }
  61%, 100% { opacity: .2; box-shadow: 0 0 2px rgba(255,77,77,.1); }
}


#skills .card{
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
#skills .card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 24px rgba(18,226,242,0.25);
  border-color:rgba(124,245,255,.35);
}

.skill{
  position:relative;
  padding:10px 16px;
  border:1px solid rgba(124,245,255,.25);
  border-radius:10px;
  background:rgba(18,226,242,.08);
  font-weight:600;
  font-size:13.5px;
  color:var(--accent-2);
  text-align:center;
  box-shadow:inset 0 0 12px rgba(18,226,242,.05);
  transition:all .25s ease, box-shadow .25s ease, transform .25s ease;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:default;
  max-width:100%;
}
.skill:hover{
  color:var(--text);
  background:rgba(18,226,242,.15);
  transform:translateY(-3px);
  border-color:rgba(124,245,255,.6);
  box-shadow:
    0 0 8px rgba(18,226,242,.25),
    0 0 16px rgba(18,226,242,.35),
    inset 0 0 10px rgba(18,226,242,.1);

  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  z-index:10;
}
#skills h2{
  text-align:center;
  margin-bottom:32px;
  justify-content:center;
}
#skills .kicker{
  font-weight:700;
  color:var(--accent);
  font-size:16px;
  text-align:center;
  margin-bottom:10px;
}


.cert-grid { align-items:start; }

.cert-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}
.cert-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(124,245,255,.18);
  border-radius:10px;
  background:rgba(18,226,242,.05);
  color:var(--text);
  text-decoration:none;
  transition:
    transform .15s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}
.cert-link:hover{
  transform:translateY(-2px);
  box-shadow:0 0 18px rgba(18,226,242,.18);
  border-color:rgba(124,245,255,.35);
}
.cert-title{
  font-size:14.5px;
  line-height:1.3;
}



#codebreaker h2{
  display:flex;
  align-items:center;
}

.code-card {
  background: radial-gradient(circle at 20% 20%, rgba(18,226,242,.08) 0%, rgba(0,0,0,0) 60%),
              linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(124,245,255,.24);
  box-shadow:
    0 0 28px rgba(18,226,242,.2),
    0 0 60px rgba(0,0,0,.8),
    inset 0 0 12px rgba(18,226,242,.07);
  border-radius: 16px;
  position: relative;
  padding:18px;
}

/* top HUD row */
.cb-hud {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(124,245,255,.18);
  padding-bottom: 12px;
}
.cb-hud-left {
  max-width: 480px;
}
.cb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  text-shadow: 0 0 8px rgba(18,226,242,.6);
}
.cb-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 10px rgba(18,226,242,.8),
    0 0 20px rgba(18,226,242,.4);
  animation: cbPulse 2s ease-in-out infinite;
}
@keyframes cbPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 10px rgba(18,226,242,.8); }
  50%     { opacity: .4; box-shadow: 0 0 4px rgba(18,226,242,.2); }
}
.cb-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 52ch;
}
.cb-hud-right {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.cb-tries-wrap {
  background: rgba(18,226,242,.07);
  border: 1px solid rgba(124,245,255,.3);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 100px;
  box-shadow: 0 0 12px rgba(18,226,242,.25);
  text-align: center;
}
.cb-tries-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .03em;
}
.cb-tries-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  text-shadow:
    0 0 10px rgba(18,226,242,.7),
    0 0 20px rgba(18,226,242,.3);
}
.cb-new-btn {
  background: rgba(18,226,242,.08);
  border: 1px solid rgba(124,245,255,.4);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 0 16px rgba(18,226,242,.3),
    0 0 6px rgba(18,226,242,.4) inset;
  transition: all .2s ease;
}
.cb-new-btn:hover {
  background: rgba(18,226,242,.15);
  box-shadow:
    0 0 22px rgba(18,226,242,.35),
    0 0 8px rgba(18,226,242,.5) inset;
}

/* rules box */
.cb-rules {
  margin-bottom: 16px;
  background: rgba(18,226,242,.05);
  border: 1px dashed rgba(124,245,255,.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  box-shadow: inset 0 0 12px rgba(18,226,242,.08);
}
.cb-rules strong {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(18,226,242,.4);
}
.cb-rules ul {
  margin: 6px 0 0 16px;
  padding: 0;
  list-style: disc;
}
.cb-rules li code {
  background: rgba(18,226,242,.1);
  border: 1px solid rgba(124,245,255,.3);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 12px;
  color: var(--accent);
}

/* form row */
.cb-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.cb-input {
  flex: 1 1 160px;
  max-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(124,245,255,.24);
  background: rgba(18,226,242,.05);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  box-shadow: inset 0 0 12px rgba(18,226,242,.05);
  font-size: 14px;
}
.cb-input::placeholder {
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
  font-size: 12px;
}
.cb-status {
  font-size: 12px;
  min-height: 16px;
  color: var(--danger);
  font-weight: 600;
  line-height: 1.4;
  flex: 1 1 100%;
  text-shadow: 0 0 8px rgba(255,107,107,.4);
}

/* guess log */
.cb-log {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

/* guess row */
.cb-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(124,245,255,.18);
  border-radius: 10px;
  background: rgba(18,226,242,.05);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 0 12px rgba(18,226,242,.12);
}

.cb-guess {
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(18,226,242,.5);
}

.cb-feedback {
  color: var(--accent-2);
  font-size: 12px;
  line-height: 1.4;
}

.cb-result {
  justify-self: end;
  font-weight: 700;
  text-align: right;
  color: var(--text);
}

/* win/lose color states */
.cb-row.win {
  border-color: #22e6a6;
  box-shadow: 0 0 18px rgba(34,230,166,.25);
  background: rgba(34,230,166,.07);
}
.cb-row.lose {
  border-color: var(--danger);
  box-shadow: 0 0 18px rgba(255,107,107,.18);
  background: rgba(255,107,107,.07);
}

/* mobile stack */
@media (max-width:640px){
  .cb-hud {
    flex-direction: column;
    align-items: flex-start;
  }
  .cb-hud-right {
    width: 100%;
    justify-content: space-between;
  }
  .cb-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cb-result {
    justify-self: center;
    text-align: center;
  }
}

/* ========================================================================== */
/* 12. Modal (Incident details popup)                                        */
/* ========================================================================== */

.modal {
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}
.modal.show{
  display:flex;
}
.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.65);
  backdrop-filter:blur(3px);
}
.modal__panel{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(124,245,255,.2);
  border-radius:16px;
  box-shadow:var(--shadow);
  width:90vw;
  max-width:480px;
  max-height:80vh;
  overflow-y:auto;
  padding:20px 20px 24px;
  display:flex;
  flex-direction:column;
}
.modal__head{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  background:rgba(10,15,19,.9);
  border-bottom:1px solid rgba(124,245,255,.16);
  border-radius:12px 12px 0 0;
  padding-bottom:10px;
  margin:-4px -4px 16px;
  padding-top:4px;
  padding-left:4px;
  padding-right:4px;
}
.modal__title{
  font-size:16px;
  font-weight:700;
  line-height:1.3;
  color:var(--accent);
  margin:0;
}
.modal__close{
  border:none;
  background:transparent;
  color:#ff4d4d;
  font-weight:700;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  padding:6px 8px;
  border-radius:8px;
  flex-shrink:0;
  box-shadow:0 0 12px rgba(255,77,77,.4);
  border:1px solid rgba(255,77,77,.5);
}
.modal__close:hover{
  background:rgba(255,77,77,.08);
}
.modal__content{
  font-size:14px;
  line-height:1.5;
  color:var(--text);
}
.modal__content img.shot{
  width:100%;
  height:auto;
  border-radius:10px;
  border:1px solid rgba(124,245,255,.25);
  margin-top:8px;
  margin-bottom:16px;
}

@media (min-width:900px){
  .modal__panel{
    width:80vw;
    max-width:900px;
    max-height:88vh;
    padding:28px 30px 32px;
  }
  .modal__title{
    font-size:15px;
  }
  .modal__close{
    font-size:15px;
    padding:6px 8px;
  }
}

/* ========================================================================== */
/* 13. Footer                                                                 */
/* ========================================================================== */

.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(124,245,255,.12);
  background: linear-gradient(
    180deg,
    rgba(10,15,19,.9),
    rgba(10,15,19,.85)
  );
  color: var(--muted);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.footer-left .logo-mark {
  font-weight: 900;
  font-size: 18px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(18,226,242,.6);
}

.footer-right {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-icon {
  font-size: 16px;
  color: var(--accent);
  border: 1px solid rgba(124,245,255,.25);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: all .25s ease;
}

.footer-icon:hover {
  background: rgba(18,226,242,.15);
  box-shadow: 0 0 12px rgba(18,226,242,.35);
  transform: translateY(-2px);
}

.footer-center .accent {
  color: var(--accent);
}

/* footer responsive */
@media (max-width:720px){
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .footer-left, .footer-right {
    justify-content: center;
  }
}

/* ========================================================================== */
/* 14. Animations                                                             */
/* ========================================================================== */

@keyframes spin{
  from{ transform:translate(-50%,-50%) rotate(0); }
  to  { transform:translate(-50%,-50%) rotate(360deg); }
}

@keyframes ping{
  0%  { transform:scale(.8); opacity:1; }
  80% { transform:scale(1.6); opacity:.1; }
  100%{ opacity:0; }
}



@media (max-width:1024px){
  .hero-grid{
    grid-template-columns:220px 1fr;
    grid-auto-rows:auto;
  }
  .right{
    grid-column:1 / -1;
  }
}

@media (max-width:960px){
  .hero-grid{
    grid-template-columns:1fr;
  }

  .cols-3,
  .cols-4{
    grid-template-columns:1fr 1fr;
  }

  #skills .card > .grid[style]{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:720px){
  .hero-grid{
    grid-template-columns:1fr;
    text-align:center;
  }
  .right .cta,
  .right .badges{
    justify-content:center;
  }
}

@media (max-width:640px){
  .cols-2,
  .cols-3,
  .cols-4{
    grid-template-columns:1fr;
  }

  #skills .card > .grid[style]{
    grid-template-columns:1fr !important;
  }

  .cert-link{
    padding:10px;
  }
  .cert-title{
    font-size:14px;
  }
}

@media (max-width:480px){
  #skills .skill{
    padding:8px 10px;
    font-size:12.5px;
  }
  #skills .card{
    padding:16px;
  }
}
