:root {
  --bg: #05080d;
  --bg-soft: #080d14;
  --panel: rgba(12, 19, 29, 0.78);
  --panel-solid: #0c131d;
  --line: rgba(144, 174, 204, 0.14);
  --line-strong: rgba(77, 168, 255, 0.28);
  --text: #edf5ff;
  --muted: #91a2b6;
  --blue: #2c9cff;
  --cyan: #31d5f4;
  --green: #28e09b;
  --violet: #8f7dff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(53, 135, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 135, 211, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

::selection { background: rgba(44, 156, 255, .35); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#cyber-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: .52;
}
.ambient { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1; opacity: .14; }
.ambient-one { width: 540px; height: 540px; background: var(--blue); top: -180px; right: -180px; }
.ambient-two { width: 460px; height: 460px; background: var(--green); left: -220px; top: 55%; }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { position: relative; padding: 118px 0; }
.section-alt { background: linear-gradient(180deg, rgba(9, 15, 23, .78), rgba(5, 8, 13, .92)); border-block: 1px solid rgba(144,174,204,.08); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled { background: rgba(5, 8, 13, .78); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(44,156,255,.42); border-radius: 11px; color: var(--green); background: rgba(44,156,255,.08); font-size: .78rem; box-shadow: inset 0 0 20px rgba(44,156,255,.06); }
.brand-text { font-size: 1rem; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: .88rem; font-weight: 600; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 20, 31, .8); }
.lang-button { border: 0; color: var(--muted); background: transparent; border-radius: 999px; padding: 6px 10px; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.lang-button.active { color: #04100b; background: var(--green); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,19,29,.75); color: var(--text); align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 18px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 118px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b7c5d5; font-size: .83rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(40,224,155,.1), 0 0 18px rgba(40,224,155,.72); }
.hero h1 { margin: 20px 0 8px; font-size: clamp(3.8rem, 7.5vw, 7rem); line-height: .93; letter-spacing: -.075em; font-weight: 800; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.25px rgba(237,245,255,.72); }
.hero-role { margin: 0; color: var(--green); font-size: clamp(1rem, 2vw, 1.27rem); font-weight: 700; letter-spacing: .03em; }
.hero-text { max-width: 720px; margin: 25px 0 0; color: #a7b6c7; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border-radius: 14px; font-weight: 750; font-size: .92rem; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #021018; background: linear-gradient(135deg, var(--green), #4de7d1); box-shadow: 0 12px 34px rgba(40,224,155,.18); }
.button-primary:hover { box-shadow: 0 16px 42px rgba(40,224,155,.28); }
.button-secondary { color: var(--text); border: 1px solid rgba(44,156,255,.32); background: rgba(11,18,28,.72); }
.button-secondary:hover { border-color: var(--blue); background: rgba(44,156,255,.1); }
.social-row { display: flex; gap: 10px; margin-top: 30px; }
.social-row a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(10,16,25,.58); transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.social-row a:hover { color: var(--green); border-color: rgba(40,224,155,.4); transform: translateY(-2px); }

.hero-visual { min-height: 600px; display: grid; place-items: center; }
.visual-shell { position: relative; width: min(500px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.visual-shell::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(44,156,255,.15), rgba(5,8,13,.1) 58%, transparent 70%); box-shadow: inset 0 0 80px rgba(44,156,255,.08); }
.profile-frame { position: relative; z-index: 3; width: 67%; aspect-ratio: 1; border-radius: 50%; padding: 7px; background: linear-gradient(145deg, rgba(44,156,255,.8), rgba(40,224,155,.9)); box-shadow: 0 0 0 10px rgba(7,12,19,.9), 0 30px 100px rgba(0,0,0,.56), 0 0 80px rgba(44,156,255,.18); }
.profile-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #131820; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(44,156,255,.24); }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(40,224,155,.8); }
.orbit-one { inset: 5%; animation: orbit-spin 18s linear infinite; }
.orbit-one::before { top: 12%; left: 18%; }
.orbit-one::after { right: 12%; bottom: 20%; background: var(--blue); }
.orbit-two { inset: 17%; border-style: dashed; animation: orbit-spin 25s linear infinite reverse; opacity: .6; }
.orbit-two::before { bottom: 3%; left: 48%; }
.orbit-two::after { top: 20%; right: 1%; background: var(--cyan); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.floating-card { position: absolute; z-index: 5; min-width: 170px; padding: 14px 16px; border: 1px solid rgba(131,171,209,.18); border-radius: 16px; background: rgba(8,14,22,.8); backdrop-filter: blur(15px); box-shadow: var(--shadow); }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: .84rem; letter-spacing: .04em; }
.floating-card small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.card-kicker { position: absolute; top: 12px; right: 13px; color: var(--green); font: 700 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-soc { top: 13%; left: -4%; }
.card-osint { right: -7%; top: 44%; }
.card-ir { left: 4%; bottom: 5%; }
.scroll-indicator { position: absolute; left: 50%; bottom: 24px; width: 28px; height: 44px; border: 1px solid rgba(145,162,182,.3); border-radius: 999px; transform: translateX(-50%); }
.scroll-indicator span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 999px; background: var(--green); transform: translateX(-50%); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0%,100% { opacity: .2; transform: translate(-50%,0); } 50% { opacity: 1; transform: translate(-50%,14px); } }

.section-heading { max-width: 800px; margin-bottom: 52px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-index { color: var(--blue); font: 750 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.section-label { margin: 11px 0 8px; color: var(--green); text-transform: uppercase; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.section-heading h2, .contact-copy h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.03; letter-spacing: -.055em; }
.section-heading > p:last-child { color: var(--muted); max-width: 680px; margin: 18px auto 0; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.about-content .lead { margin: 0 0 22px; color: var(--text); font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.45; letter-spacing: -.025em; }
.about-content > p:not(.lead) { color: var(--muted); font-size: 1.02rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.about-facts div { min-height: 110px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,16,25,.58); }
.about-facts span, .about-facts strong { display: block; }
.about-facts span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.about-facts strong { margin-top: 10px; line-height: 1.3; font-size: .93rem; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.expertise-card { position: relative; min-height: 500px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(14,23,35,.88), rgba(7,12,18,.72)); overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.expertise-card::before { content: ""; position: absolute; inset: auto -80px -100px auto; width: 190px; height: 190px; border-radius: 50%; background: rgba(44,156,255,.12); filter: blur(45px); }
.expertise-card:hover { transform: translateY(-6px); border-color: rgba(44,156,255,.36); box-shadow: 0 25px 60px rgba(0,0,0,.28); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(44,156,255,.1); color: var(--blue); }
.card-icon.green { background: rgba(40,224,155,.1); color: var(--green); }
.card-icon.cyan { background: rgba(49,213,244,.1); color: var(--cyan); }
.card-icon.violet { background: rgba(143,125,255,.1); color: var(--violet); }
.card-number { position: absolute; right: 28px; top: 31px; color: rgba(145,162,182,.45); font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.expertise-card h3 { margin: 24px 0 12px; font-size: 1.25rem; letter-spacing: -.025em; }
.expertise-card > p { min-height: 78px; color: var(--muted); font-size: .93rem; }
.expertise-card ul { list-style: none; padding: 0; margin: 22px 0; }
.expertise-card li { position: relative; padding: 8px 0 8px 18px; color: #c0cedc; font-size: .87rem; border-bottom: 1px solid rgba(144,174,204,.08); }
.expertise-card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(40,224,155,.5); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 5px 8px; border: 1px solid rgba(44,156,255,.18); border-radius: 999px; color: #a9bdd1; background: rgba(44,156,255,.055); font-size: .68rem; font-weight: 700; }
.toolbelt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 38px; }
.toolbelt span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(9,15,23,.64); font-size: .75rem; }

.timeline { position: relative; max-width: 920px; margin-left: auto; }
.timeline::before { content: ""; position: absolute; left: 214px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--blue), rgba(40,224,155,.2)); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 70px; padding: 0 0 48px; }
.timeline-date { padding-top: 9px; color: var(--muted); font: 650 .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.timeline-content { position: relative; padding: 0 0 0 30px; }
.timeline-content::before { content: ""; position: absolute; left: -41px; top: 9px; width: 11px; height: 11px; border: 3px solid var(--bg); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px rgba(40,224,155,.5), 0 0 16px rgba(40,224,155,.45); }
.timeline-type { color: var(--blue); font-size: .7rem; text-transform: uppercase; font-weight: 800; letter-spacing: .14em; }
.timeline-content h3 { margin: 8px 0 2px; font-size: 1.32rem; letter-spacing: -.02em; }
.timeline-content h4 { margin: 0; color: #aebed0; font-weight: 600; font-size: .9rem; }
.timeline-content p { margin: 13px 0 0; color: var(--muted); font-size: .92rem; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { min-height: 310px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(14,23,35,.84), rgba(8,13,20,.72)); transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(40,224,155,.38); }
.project-featured { grid-column: span 2; min-height: 360px; background: radial-gradient(circle at 80% 10%, rgba(44,156,255,.16), transparent 35%), linear-gradient(145deg, rgba(14,23,35,.9), rgba(8,13,20,.75)); }
.project-top { display: flex; justify-content: space-between; align-items: center; color: var(--green); font: 750 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.project-top svg { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.project-card:hover .project-top svg { transform: translate(3px,-3px); color: var(--green); }
.project-card h3 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.project-card p { max-width: 680px; color: var(--muted); margin: 0 0 20px; }

.certifications-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--green); font-weight: 750; font-size: .9rem; }
.cert-list { border-top: 1px solid var(--line); }
.cert-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; padding: 23px 5px; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.cert-item:hover { padding-inline: 14px; background: rgba(44,156,255,.045); }
.cert-code { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(44,156,255,.2); border-radius: 13px; color: var(--blue); background: rgba(44,156,255,.06); font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cert-item h3 { margin: 0; font-size: 1rem; }
.cert-item p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.cert-item > svg { color: var(--muted); }

.contact-section { padding-bottom: 90px; }
.contact-shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; padding: 58px; border: 1px solid rgba(44,156,255,.19); border-radius: 32px; background: radial-gradient(circle at 10% 0%, rgba(44,156,255,.14), transparent 35%), radial-gradient(circle at 100% 100%, rgba(40,224,155,.1), transparent 40%), rgba(8,14,22,.84); box-shadow: var(--shadow); }
.contact-copy .section-label { margin-top: 14px; }
.contact-copy p:last-child { color: var(--muted); margin-top: 22px; }
.contact-actions { display: grid; gap: 12px; align-content: center; }
.contact-button { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,12,19,.58); transition: transform .2s ease, border-color .2s ease; }
.contact-button:hover { transform: translateX(4px); border-color: rgba(44,156,255,.38); }
.contact-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--blue); background: rgba(44,156,255,.09); }
.contact-icon.green { color: var(--green); background: rgba(40,224,155,.09); }
.contact-button small, .contact-button strong { display: block; }
.contact-button small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-button strong { margin-top: 2px; font-size: .88rem; word-break: break-word; }
.contact-button .arrow { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer-inner > div strong, .footer-inner > div span { display: block; }
.footer-inner > div strong { font-size: .9rem; }
.footer-inner > div span { color: var(--muted); font-size: .75rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .75rem; text-align: center; }
.footer-inner > a { justify-self: end; color: var(--green); font-size: .78rem; font-weight: 750; }

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

@media (max-width: 1050px) {
  .main-nav { gap: 18px; }
  .hero-grid { gap: 30px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .certifications-grid { gap: 55px; }
  .contact-shell { gap: 40px; padding: 42px; }
}

@media (max-width: 820px) {
  .section { padding: 88px 0; }
  .menu-toggle { display: flex; }
  .main-nav { position: absolute; top: 70px; left: 20px; right: 20px; display: grid; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(6,10,16,.96); backdrop-filter: blur(18px); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 13px 14px; border-radius: 10px; }
  .main-nav a:hover { background: rgba(44,156,255,.07); }
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 80px; }
  .hero-grid, .about-grid, .certifications-grid, .contact-shell { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .social-row { justify-content: center; }
  .hero-text { margin-inline: auto; }
  .hero-visual { min-height: 520px; }
  .visual-shell { max-width: 500px; }
  .about-grid { gap: 30px; }
  .about-facts { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: auto; }
  .timeline { margin-left: 0; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding-left: 34px; }
  .timeline-date { text-align: left; padding: 0; }
  .timeline-content { padding-left: 0; }
  .timeline-content::before { left: -31px; top: -25px; }
  .contact-shell { padding: 34px 24px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner > a { justify-self: center; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-text { display: none; }
  .header-inner { height: 68px; }
  .language-switch { margin-left: auto; }
  .hero { padding-top: 108px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .hero-role { font-size: .91rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 430px; margin-top: 20px; }
  .profile-frame { width: 64%; }
  .floating-card { min-width: 138px; padding: 12px; }
  .floating-card strong { font-size: .74rem; }
  .floating-card small { font-size: .64rem; }
  .card-soc { left: -2%; }
  .card-osint { right: -2%; }
  .card-ir { left: 0; }
  .scroll-indicator { display: none; }
  .section-heading h2, .contact-copy h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .expertise-card, .project-card { padding: 22px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; min-height: 330px; }
  .contact-button { grid-template-columns: 42px 1fr auto; gap: 10px; }
  .contact-icon { width: 42px; height: 42px; }
  .contact-button strong { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #cyber-background { display: none; }
  .reveal { opacity: 1; transform: none; }
}
