:root {
  --bg: #03111c;
  --bg-deep: #020a11;
  --panel: #071a28;
  --panel-2: #0a2030;
  --text: #f7fbff;
  --muted: #a9b9c7;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #0a8cff;
  --blue-2: #29a4ff;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* { 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;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 129, 255, 0.10), transparent 25%),
    linear-gradient(180deg, #04121e 0%, var(--bg-deep) 100%);
  line-height: 1.55;
}

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

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(2, 10, 17, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { font-size: 30px; font-weight: 900; letter-spacing: -2px; margin-right: auto; }
.brand span { color: var(--blue); }
.nav { display: flex; gap: 30px; }
.nav a { color: #d5e0e8; font-size: 14px; position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -12px;
  height: 2px;
  background: var(--blue);
  transition: 0.25s ease;
}
.nav a:hover::after,
.nav a.active::after { right: 0; }
.nav a:hover,
.nav a.active { color: var(--blue-2); }
.nav-cta { margin-left: auto; }

.menu-toggle { display: none; background: none; border: 0; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.22s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), #19a2ff); color: #00111f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 140, 255, 0.25); }
.btn-outline { border-color: var(--blue); color: #eafdff; background: rgba(4, 20, 32, 0.5); }
.btn-outline:hover { background: rgba(10, 140, 255, 0.12); transform: translateY(-2px); }

.hero { padding: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; min-height: 590px; }
.hero-copy { align-self: center; padding: 70px 40px 70px 0; }
.eyebrow,
.section-kicker { color: var(--blue-2); letter-spacing: 0.18em; font-size: 12px; font-weight: 800; margin: 0 0 10px; }
.hero h1 { font-size: clamp(56px, 6.3vw, 86px); line-height: 0.86; letter-spacing: -4px; margin: 0; }
.hero h1 span { display: block; color: var(--blue); }
.role-line { font-size: 20px; color: #d5e2ec; margin: 20px 0 10px; }
.role-line i { color: var(--blue); font-style: normal; margin: 0 7px; }
.hero-text { max-width: 560px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0; flex-wrap: wrap; }
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #c7d3dc;
  background: rgba(255, 255, 255, 0.02);
  font-weight: 800;
  font-size: 13px;
}
.social-row a:hover { color: white; border-color: var(--blue); }

.hero-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(circle at 70% 20%, rgba(62, 165, 255, 0.22), transparent 24%),
              radial-gradient(circle at 50% 46%, rgba(8, 131, 255, 0.16), transparent 32%),
              linear-gradient(180deg, rgba(5, 23, 36, 0.65) 0%, rgba(4, 20, 32, 0.18) 100%);
}
.hero-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.95) contrast(1.03) drop-shadow(0 22px 40px rgba(0, 0, 0, 0.35));
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 17, 28, 0.92) 0%, rgba(3, 17, 28, 0.22) 18%, rgba(3, 17, 28, 0.08) 68%, rgba(3, 17, 28, 0.22) 100%),
              linear-gradient(0deg, rgba(3, 17, 28, 0.35), transparent 45%);
  pointer-events: none;
}
.quote-mark {
  position: absolute;
  z-index: 2;
  left: 30px;
  bottom: 42px;
  font-family: "Segoe Script", cursive;
  font-size: 27px;
  line-height: 1.05;
  transform: rotate(-5deg);
  color: rgba(255, 255, 255, 0.92);
}
.quote-mark::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 10px;
  background: var(--blue);
  transform: rotate(-8deg);
}

.about-grid { display: grid; grid-template-columns: 1.5fr 0.75fr; gap: 56px; align-items: center; }
h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -1.6px; }
.about-copy p:not(.section-kicker) { color: var(--muted); max-width: 720px; font-size: 17px; }
.about-meta { display: flex; flex-wrap: wrap; gap: 22px 28px; margin-top: 30px; color: #d7e1e8; font-size: 14px; }
.stats { border-left: 1px solid var(--line); padding-left: 48px; display: grid; gap: 26px; }
.stat { display: grid; gap: 5px; }
.stat strong { font-size: 30px; }
.stat span { color: var(--muted); }

.section-head,
.skills-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(41, 164, 255, 0.35); box-shadow: var(--shadow); }
.project-image { aspect-ratio: 16 / 9; overflow: hidden; background: #0c1a24; }
.project-image img { height: 100%; object-fit: cover; object-position: top center; transition: 0.35s ease; }
.project-card:hover img { transform: scale(1.03); }
.project-body { padding: 19px; }
.project-body h3 { margin: 0 0 8px; font-size: 20px; }
.project-body p { color: var(--muted); margin: 0 0 18px; font-size: 14px; min-height: 66px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 10px; border-radius: 999px; background: #0c2232; color: #d7e9f7; font-size: 12px; border: 1px solid rgba(255, 255, 255, 0.04); }
.github-cta { display: flex; justify-content: center; margin-top: 28px; }
.github-btn { min-width: 320px; }
.github-icon { width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 9px; }

.skills-top blockquote { margin: 0; color: #c5d3dd; font-style: italic; border-right: 3px solid var(--blue); padding-right: 18px; text-align: right; }
.skill-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.skill-card {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.018);
  transition: 0.22s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: rgba(41, 164, 255, 0.35); }
.skill-card b { font-size: 30px; color: var(--blue-2); }
.skill-card span { font-size: 13px; color: #d4e0e8; }

.contact {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}
.contact::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 140, 255, 0.12), transparent 68%);
  pointer-events: none;
}
.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 72px;
  align-items: center;
}
.contact-copy { max-width: 470px; }
.availability-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-bottom: 28px;
  border: 1px solid rgba(124, 231, 173, 0.22);
  border-radius: 999px;
  background: rgba(124, 231, 173, 0.06);
  color: #c8f6dc;
  font-size: 12px;
  font-weight: 700;
}
.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ce7ad;
  box-shadow: 0 0 0 5px rgba(124, 231, 173, 0.08);
}
.contact-copy h2 { margin-bottom: 22px; }
.contact-copy h2 span { color: var(--blue-2); }
.contact-intro {
  margin: 0;
  max-width: 450px;
  color: var(--muted);
  font-size: 17px;
}
.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}
.contact-detail {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
a.contact-detail { transition: 0.2s ease; }
a.contact-detail:hover { padding-left: 7px; }
.detail-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 164, 255, 0.20);
  border-radius: 13px;
  background: rgba(10, 140, 255, 0.07);
  color: var(--blue-2);
}
.detail-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-text { min-width: 0; display: grid; gap: 2px; }
.detail-text small { color: #718696; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.detail-text strong { color: #edf7ff; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.detail-arrow { color: var(--blue-2); font-size: 18px; }

.contact-panel {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(5, 21, 33, 0.68);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(41,164,255,0.09), transparent 38%);
}
.contact-panel-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.contact-panel-kicker {
  margin: 0 0 7px;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
}
.contact-panel-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.response-note {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: #7f93a1;
  font-size: 12px;
}
.contact-form {
  position: relative;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span {
  color: #d6e4ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 13px;
  background: rgba(2, 10, 17, 0.70);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-form input { min-height: 52px; padding: 0 15px; }
.contact-form textarea { min-height: 165px; resize: vertical; padding: 14px 15px; line-height: 1.55; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #617482; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: rgba(255, 255, 255, 0.18); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(41, 164, 255, 0.78);
  background: rgba(2, 10, 17, 0.92);
  box-shadow: 0 0 0 4px rgba(10, 140, 255, 0.10);
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
}
.contact-submit {
  min-width: 176px;
  min-height: 52px;
  border-radius: 13px;
}
.form-status {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.4;
}
.form-status.success { color: #7ce7ad !important; }
.form-status.error { color: #ff9b9b !important; }
.contact-form button[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.footer-grid p { color: #8fa3b2; font-size: 13px; margin: 0; }
.footer-nav { display: flex; gap: 22px; font-size: 13px; color: #c2d0da; }
.footer-nav a:hover { color: var(--blue-2); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    padding: 24px 20px;
    background: rgba(2, 10, 17, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
  }
  .nav.open { display: flex; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 0 42px; }
  .hero-visual { min-height: 520px; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-shell { grid-template-columns: 1fr; gap: 46px; }
  .contact-copy { max-width: 680px; }
  .stats {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
    grid-template-columns: repeat(3, 1fr);
  }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card:last-child { grid-column: 1 / -1; max-width: 570px; width: 100%; margin: 0 auto; }
  .skill-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 26px, 1180px); }
  .section { padding: 56px 0; }
  .hero h1 { font-size: clamp(48px, 15vw, 74px); letter-spacing: -3px; }
  .role-line { font-size: 17px; }
  .hero-visual { min-height: 430px; border-radius: 18px 18px 0 0; }
  .project-grid,
  .form-row { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .skills-top,
  .section-head,
  .footer-grid { grid-template-columns: 1fr; display: grid; }
  .footer-nav { flex-wrap: wrap; }
  .contact { padding: 70px 0; }
  .contact-shell { gap: 36px; }
  .contact-panel { padding: 22px; border-radius: 20px; }
  .contact-panel-head { align-items: flex-start; }
  .contact-panel-head h3 { font-size: 26px; }
  .response-note { display: none; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .contact-submit { width: 100%; }
}
