:root {
  --bg: #040913;
  --bg-soft: #081426;
  --panel: rgba(7, 16, 31, 0.76);
  --panel-strong: rgba(7, 18, 36, 0.88);
  --panel-border: rgba(102, 219, 255, 0.16);
  --text: #ecf7ff;
  --muted: #9bb0c8;
  --primary: #67deff;
  --secondary: #71f2c0;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #020816 0%, #04102a 48%, #030d23 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 8, 24, 0.28), rgba(2, 10, 24, 0.58)),
    url('assets/cyber-security-concept-digital-art.jpg') center center / cover no-repeat;
  opacity: 0.96;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 2;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding-top: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: rgba(3, 10, 20, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(95, 224, 255, 0.22), rgba(105, 245, 188, 0.14));
  border: 1px solid rgba(95, 224, 255, 0.35);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(95, 224, 255, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text small {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(95, 224, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 42px 0 28px;
}

.panel {
  background: linear-gradient(180deg, rgba(7, 16, 31, 0.82), rgba(5, 12, 24, 0.72));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-profile,
.card,
.tech-card {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(95, 224, 255, 0.08);
  border: 1px solid rgba(95, 224, 255, 0.18);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.98;
  margin-bottom: 18px;
  max-width: 12ch;
}

h1 span {
  background: linear-gradient(90deg, #ffffff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.lead,
.section-heading p,
.card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 62ch;
  margin-bottom: 24px;
}

.tag-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row {
  margin-bottom: 26px;
}

.tag-row span,
.chips span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #02101b;
  background: linear-gradient(135deg, var(--primary), #3cb7ff);
  box-shadow: 0 16px 35px rgba(70, 197, 255, 0.25);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-profile {
  display: grid;
  gap: 24px;
}

.portrait-wrap {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.portrait-ring {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(103, 222, 255, 0.24), rgba(113, 242, 192, 0.08));
  filter: blur(2px);
  box-shadow: 0 0 42px rgba(44, 188, 255, 0.18);
}

.portrait {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(103, 222, 255, 0.25);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
}

.profile-card h2,
.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-stats {
  margin-top: 18px;
}

.profile-stats article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-stats strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.profile-stats span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading p {
  max-width: 62ch;
}

.two-col,
.grid-cards,
.tech-grid,
.contact-layout {
  display: grid;
  gap: 18px;
}

.two-col,
.contact-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.grid-cards,
.tech-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li,
.contact-item span,
.contact-item a,
.timeline-item span {
  color: var(--muted);
}

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(103, 222, 255, 0.45);
}

.timeline-item + .timeline-item {
  margin-top: 16px;
}

.timeline-item h3,
.card-top h3,
.tech-card h3,
.card h3 {
  margin-bottom: 8px;
}

.timeline-item span,
.card-top span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.tech-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s ease;
  font-weight: 600;
}

.filter:hover,
.filter.active {
  color: var(--text);
  background: rgba(95, 224, 255, 0.1);
  border-color: rgba(95, 224, 255, 0.25);
}

.tech-card h3 {
  color: var(--primary);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  text-align: right;
  word-break: break-word;
}

.footer {
  padding: 30px 0 40px;
  text-align: center;
  color: var(--muted);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero,
  .two-col,
  .grid-cards,
  .tech-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-profile,
  .card,
  .tech-card {
    padding: 22px;
  }

  h1 {
    max-width: none;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item a {
    text-align: left;
  }
}
