:root {
  --bg: #031221;
  --bg-deep: #020b14;
  --panel: rgba(10, 29, 51, 0.78);
  --panel-strong: rgba(12, 33, 57, 0.95);
  --cyan: #29e7ff;
  --cyan-dark: #10bddb;
  --teal: #16b6ba;
  --white: #f1f8ff;
  --text: #dcecff;
  --soft: #a9c0d8;
  --muted: #7f99b5;
  --line: rgba(142, 176, 212, 0.18);
  --line-strong: rgba(41, 231, 255, 0.3);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius-lg: 32px;
  --radius-md: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 6% 90%, rgba(22, 182, 186, 0.18), transparent 20rem),
    radial-gradient(circle at 88% 4%, rgba(41, 231, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 50%, #041827 100%);
  color: var(--text);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 72%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0; color: var(--soft); }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 92px 0; }
.section-anchor { scroll-margin-top: 96px; }

.bg-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
  opacity: .45;
}
.orb-a { width: 24rem; height: 24rem; right: -10rem; top: 5rem; background: rgba(41, 231, 255, .11); }
.orb-b { width: 22rem; height: 22rem; left: -10rem; bottom: 2rem; background: rgba(22, 182, 186, .13); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(2, 12, 22, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  color: var(--white);
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(41, 231, 255, .18);
}
.nav {
  display: flex;
  gap: 26px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 750;
}
.nav a { text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--cyan); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--white); }

.hero { padding-top: 112px; }
.hero-layout,
.content-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 64px;
  align-items: start;
}
.profile-column {
  position: sticky;
  top: 118px;
}
.profile-logo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.label,
.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 850;
  margin: 0 0 14px;
}
h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(48px, 7vw, 90px);
  line-height: .9;
  letter-spacing: -0.075em;
}
.profile-lead {
  margin-top: 22px;
  max-width: 340px;
  font-size: 18px;
}
.profile-links {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  max-width: 280px;
}
.profile-links a {
  text-decoration: none;
  color: var(--soft);
  border-left: 2px solid var(--line);
  padding-left: 14px;
  font-weight: 760;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}
.profile-links a:hover { color: var(--cyan); border-color: var(--cyan); padding-left: 20px; }

.hero-card,
.project-card,
.small-project,
.contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--panel), rgba(3, 18, 33, .88));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-card::after,
.project-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  width: 15rem;
  height: 15rem;
  right: -6rem;
  top: -6rem;
  background: radial-gradient(circle, rgba(41, 231, 255, .16), transparent 70%);
  pointer-events: none;
}
.hero-card { padding: 38px; }
.hero-card h2,
.section-title h2,
.contact-card h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.hero-card p + p { margin-top: 16px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.info-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.info-grid span,
.small-project span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.info-grid strong { color: var(--white); font-size: 14px; }

.section-title { position: sticky; top: 118px; }
.section-title h2 { font-size: clamp(32px, 4.4vw, 54px); }
.project-list { display: grid; gap: 18px; }
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  padding: 30px;
  align-items: center;
}
.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--cyan); box-shadow: 0 0 0 5px rgba(41, 231, 255, .12); }
.project-card h3,
.small-project h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 30px;
  letter-spacing: -0.04em;
}
.tag-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  background: rgba(255,255,255,.025);
}
.button,
.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease;
}
.button:hover,
.email-button:hover { transform: translateY(-1px); }
.button.primary,
.email-button { background: linear-gradient(135deg, var(--cyan-dark), var(--cyan)); color: #02111d; }
.button.secondary { border: 1px solid var(--line); color: var(--white); background: rgba(255,255,255,.025); }
.project-media {
  display: flex;
  justify-content: center;
}
.project-media img {
  width: 170px;
  max-height: 330px;
  object-fit: cover;
  object-position: top;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.36);
}
.small-project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.small-project-grid.single { grid-template-columns: minmax(0, 420px); }
.small-project { padding: 24px; }
.small-project { text-decoration: none; display: block; transition: transform .2s ease, border-color .2s ease; }
.small-project:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.small-project h3 { font-size: 24px; }

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
}
.contact-card h2 { font-size: clamp(30px, 4vw, 46px); }
.email-button { white-space: nowrap; }
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 12, 22, .86);
  padding: 28px 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 750; }
.footer-links a:hover { color: var(--cyan); }

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

@media (max-width: 900px) {
  .hero-layout,
  .content-layout { grid-template-columns: 1fr; gap: 34px; }
  .profile-column,
  .section-title { position: static; }
  .project-card { grid-template-columns: 1fr; }
  .project-media { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(3, 18, 33, .96);
    box-shadow: var(--shadow);
  }
  .nav.open { display: grid; gap: 12px; }
  .hero { padding-top: 62px; }
  .section { padding: 64px 0; }
  h1 { font-size: 52px; }
  .hero-card,
  .project-card,
  .contact-card { padding: 24px; }
  .info-grid,
  .small-project-grid { grid-template-columns: 1fr; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
