:root {
  --bg: #020811;
  --bg-soft: #07101c;
  --panel: rgba(11, 17, 28, 0.92);
  --panel-border: rgba(111, 206, 247, 0.13);
  --text: #eaf1ff;
  --muted: #95a2b8;
  --accent: #4fc4e7;
  --accent-strong: #69d8f5;
  --accent-soft: rgba(79, 196, 231, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --container: 1360px;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --scene-x: 0px;
  --scene-y: 0px;
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(53, 134, 171, 0.16), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(29, 88, 122, 0.16), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(31, 105, 146, 0.12), transparent 28%),
    linear-gradient(180deg, #040a13 0%, #02060d 52%, #01040a 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(68, 180, 226, 0.12), transparent 18%),
    radial-gradient(circle at 80% 24%, rgba(43, 126, 186, 0.1), transparent 20%),
    radial-gradient(circle at 58% 76%, rgba(28, 97, 164, 0.1), transparent 24%),
    linear-gradient(rgba(84, 147, 182, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 147, 182, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  opacity: 0.7;
  animation: blue-drift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 240px at var(--pointer-x) var(--pointer-y), rgba(93, 201, 233, 0.14), transparent 58%),
    radial-gradient(circle 420px at calc(var(--pointer-x) - 12%) calc(var(--pointer-y) + 10%), rgba(79, 196, 231, 0.08), transparent 66%),
    radial-gradient(circle 620px at calc(var(--pointer-x) + 18%) calc(var(--pointer-y) - 18%), rgba(23, 95, 149, 0.06), transparent 72%);
  transition: background 0.18s ease;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.bubble-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--bubble-size, 72px);
  height: var(--bubble-size, 72px);
  border-radius: 50%;
  border: 1px solid rgba(113, 219, 255, 0.14);
  background:
    radial-gradient(circle at 35% 30%, rgba(173, 237, 255, 0.28), rgba(90, 192, 227, 0.14) 36%, rgba(16, 58, 98, 0.03) 64%, transparent 76%);
  box-shadow:
    inset 0 1px 10px rgba(194, 241, 255, 0.06),
    0 0 20px rgba(74, 173, 218, 0.08);
  opacity: var(--bubble-opacity, 0.32);
  transform: translate3d(var(--bubble-x, 0px), var(--bubble-y, 0px), 0) scale(var(--bubble-scale, 1));
  transition: transform 0.18s ease-out, opacity 0.22s ease-out, box-shadow 0.22s ease-out;
  will-change: transform;
}

.ambient-bubble::before {
  content: "";
  position: absolute;
  inset: 16% 18% 34% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.26), transparent 72%);
  opacity: 0.8;
}

.ambient-bubble::after {
  content: "";
  position: absolute;
  inset: auto 18% 12% auto;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(177, 243, 255, 0.22);
  filter: blur(2px);
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.site-header,
main,
.site-footer {
  position: relative;
}

.site-header {
  z-index: 40;
}

main,
.site-footer {
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(95, 150, 186, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(6, 12, 22, 0.86);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 32px rgba(2, 8, 18, 0.22);
}

.header-inner {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.site-header nav {
  margin-left: 0;
  padding: 12px 18px;
  border-radius: 28px;
  border: 1px solid rgba(150, 219, 247, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, rgba(20, 33, 52, 0.86), rgba(11, 18, 31, 0.78));
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 16px 34px rgba(3, 12, 24, 0.24),
    0 0 0 1px rgba(79, 196, 231, 0.06);
}

.nav {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 10px 14px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: rgba(234, 241, 255, 0.8);
  font-size: clamp(0.88rem, 0.96vw, 0.98rem);
  font-weight: 500;
  transition: color 0.24s ease, transform 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.24s ease;
  opacity: 0;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

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

main {
  padding-bottom: 80px;
}

.section-panel {
  padding: 92px 0 28px;
  position: relative;
  --panel-shift-x: 0px;
  --panel-shift-y: 0px;
}

.section-panel::before,
.section-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(0.4px);
}

.section-panel::before {
  width: 180px;
  height: 180px;
  top: 6%;
  right: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 196, 231, 0.12), transparent 70%);
  transform: translate3d(var(--panel-shift-x), var(--panel-shift-y), 0);
  animation: ambient-orbit 14s ease-in-out infinite alternate;
}

.section-panel::after {
  width: 110px;
  height: 110px;
  left: 6%;
  bottom: 8%;
  border-radius: 28px;
  border: 1px solid rgba(79, 196, 231, 0.08);
  background: linear-gradient(180deg, rgba(79, 196, 231, 0.06), transparent);
  transform: translate3d(calc(var(--panel-shift-x) * -0.65), calc(var(--panel-shift-y) * -0.65), 0);
  animation: ambient-rise 11s ease-in-out infinite alternate;
}

.hero {
  min-height: calc(100vh - 124px);
  display: grid;
  align-items: center;
  padding-top: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.84fr);
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.9rem);
}

.hero-copy {
  max-width: 620px;
}

.hero-terminal {
  max-width: 540px;
  margin-top: -38px;
  margin-bottom: 30px;
  border: 1px solid rgba(118, 205, 239, 0.14);
  border-radius: 22px;
  background: rgba(8, 15, 25, 0.82);
  box-shadow: 0 24px 52px rgba(3, 10, 18, 0.26);
  overflow: hidden;
  position: relative;
}

.hero-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 22%),
    repeating-linear-gradient(180deg, rgba(94, 201, 236, 0.035) 0 1px, transparent 1px 4px);
  pointer-events: none;
  opacity: 0.9;
}

.hero-terminal::after {
  content: "";
  position: absolute;
  inset: -35% 0 auto 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(102, 215, 248, 0.12), transparent);
  filter: blur(8px);
  pointer-events: none;
  animation: terminal-scan 4.8s linear infinite;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(118, 205, 239, 0.1);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.terminal-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(132, 225, 255, 0.26), transparent);
  animation: terminal-bar-flow 3.8s ease-in-out infinite;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.terminal-bar span:nth-child(1) {
  background: #ff7b72;
}

.terminal-bar span:nth-child(2) {
  background: #f2cc60;
}

.terminal-bar span:nth-child(3) {
  background: #56d364;
}

.terminal-body {
  padding: 22px 22px 20px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
  z-index: 1;
}

.terminal-line {
  margin: 0;
  min-height: 1.5em;
  color: #b9cadc;
  font-size: 0.94rem;
  line-height: 1.75;
}

.terminal-line + .terminal-line {
  margin-top: 6px;
}

.terminal-prompt {
  color: var(--accent-strong);
}

.hero-divider {
  width: min(100%, 560px);
  height: 1px;
  margin: 0 0 24px;
  background: linear-gradient(90deg, rgba(111, 206, 247, 0.48), rgba(111, 206, 247, 0.08));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.45rem, 4.45vw, 4.35rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(79, 196, 231, 0.1);
  white-space: nowrap;
}

.hero-title span {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
}

.hero-title span::after {
  content: "";
  width: 2px;
  height: 0.92em;
  margin-left: 0.12em;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 10px rgba(79, 196, 231, 0.42);
  animation: blink-caret 0.9s steps(1) infinite;
}

.hero-role {
  margin: 18px 0 18px;
  color: #dce5f3;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.hero-sub {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.08vw, 1.14rem);
  line-height: 1.78;
}

.social-mini {
  display: flex;
  gap: 14px;
  margin: 26px 0 22px;
}

.social-mini a {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(95, 180, 214, 0.24);
  background: rgba(28, 39, 53, 0.62);
  color: var(--accent-strong);
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
  position: relative;
  overflow: hidden;
}

.social-mini a::before,
.btn::before,
.feature-card::before,
.info-card::before,
.project-card::before,
.contact-form::before,
.contact-card::before,
.slider-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-140%);
  transition: transform 0.6s ease;
}

.social-mini a svg {
  width: 24px;
  height: 24px;
  display: block;
}

.social-mini a:hover,
.social-mini a:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(105, 216, 245, 0.7);
  box-shadow: 0 18px 36px rgba(24, 85, 111, 0.22);
}

.social-mini a:hover::before,
.social-mini a:focus-visible::before,
.btn:hover::before,
.btn:focus-visible::before,
.feature-card:hover::before,
.info-card:hover::before,
.project-card:hover::before,
.contact-form:hover::before,
.contact-card:hover::before,
.slider-arrow:hover::before,
.slider-arrow:focus-visible::before {
  transform: translateX(140%);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid rgba(92, 192, 228, 0.45);
  text-decoration: none;
  font-size: clamp(0.92rem, 1vw, 1.06rem);
  font-weight: 700;
  transition: transform 0.26s ease, box-shadow 0.26s ease, background 0.26s ease, color 0.26s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13, 93, 124, 0.26);
}

.btn-primary {
  background: linear-gradient(135deg, #64cbe8, #48b4d8);
  color: #07111f;
}

.btn-secondary {
  background: rgba(7, 17, 31, 0.32);
  color: var(--accent-strong);
}

.hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 470px;
  position: relative;
  z-index: 0;
  animation: float-shell 8s ease-in-out infinite;
}

.hero-scene {
  position: relative;
  min-height: 640px;
  isolation: isolate;
}

.hero-orb,
.hero-badge,
.portrait-shell {
  transform: translate3d(calc(var(--scene-x) * var(--depth-factor, 1)), calc(var(--scene-y) * var(--depth-factor, 1)), 0);
  transition: transform 0.26s ease;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.9;
}

.hero-orb-one {
  top: 8%;
  right: -3%;
  width: 164px;
  height: 164px;
  --depth-factor: 0.45;
  background: radial-gradient(circle, rgba(105, 216, 245, 0.32), rgba(105, 216, 245, 0.02) 72%, transparent 76%);
}

.hero-orb-two {
  left: -4%;
  bottom: 10%;
  width: 132px;
  height: 132px;
  --depth-factor: -0.35;
  background: radial-gradient(circle, rgba(79, 196, 231, 0.2), rgba(79, 196, 231, 0.03) 70%, transparent 78%);
}

.hero-badge {
  --badge-glow-opacity: 0;
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 5px;
  min-width: 162px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(125, 206, 241, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    rgba(10, 20, 33, 0.72);
  box-shadow:
    0 22px 44px rgba(4, 12, 24, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  transform:
    translate3d(var(--badge-hidden-x), var(--badge-hidden-y), 0)
    scale(0.86);
  opacity: 0;
  transition:
    transform 0.52s cubic-bezier(.22,.9,.24,1),
    opacity 0.32s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.hero-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.16), transparent 32%),
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(105, 216, 245, 0.16), transparent 46%);
  opacity: var(--badge-glow-opacity);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hero-badge.is-photo-hovered {
  border-color: rgba(125, 206, 241, 0.36);
  box-shadow:
    0 28px 52px rgba(4, 12, 24, 0.34),
    0 0 24px rgba(79, 196, 231, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.1);
  opacity: 1;
  transform:
    translate3d(calc(var(--scene-x) * var(--depth-factor, 1)), calc(var(--scene-y) * var(--depth-factor, 1)), 0)
    scale(1);
}

.hero-badge-top {
  top: 12%;
  left: -8%;
  --depth-factor: -0.26;
  --badge-hidden-x: 92px;
  --badge-hidden-y: 86px;
  transition-delay: 0ms;
}

.hero-badge-side {
  right: -10%;
  bottom: 16%;
  --depth-factor: 0.38;
  --badge-hidden-x: -94px;
  --badge-hidden-y: -72px;
  transition-delay: 120ms;
}

.badge-label {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-badge strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.portrait-shell {
  position: relative;
  padding: 10px;
  --depth-factor: 0.18;
}

.portrait-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 18px;
  left: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(98, 199, 228, 0.52), rgba(98, 199, 228, 0.28));
  filter: blur(0.5px);
  animation: glow-drift 9s ease-in-out infinite alternate;
}

.portrait-aura {
  position: absolute;
  inset: 6% 5% 7% 8%;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 35%, rgba(111, 227, 255, 0.28), transparent 42%),
    radial-gradient(circle at 50% 78%, rgba(67, 151, 180, 0.2), transparent 46%);
  filter: blur(18px);
  opacity: 0.9;
  transform: translate3d(calc(var(--scene-x) * -0.32), calc(var(--scene-y) * -0.32), 0);
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  width: min(100%, 450px);
  min-height: 560px;
  border-radius: 22px;
  padding: 8px;
  border: 3px solid rgba(80, 196, 232, 0.6);
  background: rgba(7, 12, 20, 0.92);
  box-shadow: 0 22px 70px rgba(3, 10, 18, 0.48);
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
  z-index: 0;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(160, 236, 255, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.14), transparent 28%, transparent 72%, rgba(105, 216, 245, 0.1));
  pointer-events: none;
  z-index: 1;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: auto -16% -18% -16%;
  height: 170px;
  background: radial-gradient(circle, rgba(79, 196, 231, 0.18), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.portrait-frame:hover {
  box-shadow: 0 30px 90px rgba(26, 96, 127, 0.28);
}

.portrait-grid,
.portrait-ring,
.portrait-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.portrait-grid {
  inset: 0;
  background:
    linear-gradient(rgba(125, 208, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 208, 237, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.48), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.portrait-ring {
  border: 1px solid rgba(111, 220, 248, 0.22);
  border-radius: 50%;
  mix-blend-mode: screen;
}

.portrait-ring-one {
  top: 12%;
  left: -10%;
  width: 120px;
  height: 120px;
}

.portrait-ring-two {
  right: -6%;
  bottom: 18%;
  width: 84px;
  height: 84px;
}

.portrait-image {
  width: 100%;
  height: 544px;
  object-fit: contain;
  object-position: center center;
  background: #050912;
  border-radius: 17px;
  display: block;
  position: relative;
  z-index: 1;
}

.portrait-overlay {
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(125, 206, 241, 0.16);
  background: linear-gradient(180deg, rgba(7, 18, 29, 0.2), rgba(7, 18, 29, 0.78));
  backdrop-filter: blur(16px);
}

.portrait-kicker {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait-overlay strong {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.section-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(83, 189, 222, 0.22);
  position: relative;
}

.section-dot::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(79, 196, 231, 0.48);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-glow {
  width: 98px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(105, 216, 245, 0.95), transparent);
  box-shadow: 0 0 24px rgba(79, 196, 231, 0.34);
}

.feature-card,
.info-card,
.project-card,
.achievement-card,
.contact-form,
.contact-card {
  background: rgba(22, 27, 38, 0.9);
  border: 1px solid rgba(92, 126, 151, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.interactive-surface {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  --mouse-x: 50%;
  --mouse-y: 50%;
  transform: perspective(1200px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translate3d(var(--shift-x), var(--shift-y), 0);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease;
  will-change: transform;
}

.interactive-surface:not(.portrait-frame)[data-shine]::after,
.achievement-card[data-shine]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(79, 196, 231, 0.12), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.interactive-surface:not(.portrait-frame).is-hovered[data-shine]::after,
.achievement-card.is-hovered[data-shine]::after {
  opacity: 1;
}

.feature-card,
.achievement-card {
  border-radius: 24px;
}

.feature-card {
  padding: 38px 36px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(15, 37, 49, 0.76);
  border: 1px solid rgba(79, 196, 231, 0.24);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.about-card h3,
.cv-card h3,
.contact-copy h3,
.contact-form h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.about-card p,
.cv-card p,
.contact-copy p,
.achievement-card p,
.project-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 0.98vw, 1rem);
  line-height: 1.65;
}

.about-card p + p,
.cv-card p + p {
  margin-top: 18px;
}

.about-intro {
  display: grid;
  gap: 10px;
}

.about-stack {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.about-block {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(18, 28, 39, 0.68);
  border: 1px solid rgba(92, 126, 151, 0.12);
}

.about-block h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.about-note {
  margin-top: 28px !important;
}

.skills-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.project-card {
  min-height: 215px;
  border-radius: 20px;
  padding: 28px 24px 24px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.skill-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.skill-logo,
.skill-glyph {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  background: rgba(79, 196, 231, 0.08);
  border: 1px solid rgba(79, 196, 231, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.skill-logo {
  object-fit: contain;
}

.skill-logo svg {
  width: 100%;
  height: 100%;
  color: var(--accent-strong);
}

.skill-glyph {
  width: auto;
  min-width: 42px;
  padding: 4px 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.skill-glyph-amazon {
  color: #ffb454;
  font-size: 1rem;
  font-weight: 800;
}

.info-card:hover,
.project-card:hover {
  transform: perspective(1200px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translate3d(var(--shift-x), calc(var(--shift-y) - 10px), 0);
  border-color: rgba(102, 209, 239, 0.32);
  box-shadow: 0 26px 55px rgba(6, 18, 28, 0.36);
}

.feature-card:hover,
.info-card:hover,
.project-card:hover,
.contact-form:hover,
.contact-card:hover {
  background: rgba(24, 31, 43, 0.95);
}

.card-symbol {
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(79, 196, 231, 0.7);
  font-size: 3rem;
  line-height: 1;
}

.info-card h3,
.project-card h3,
.achievement-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 1.55vw, 1.78rem);
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.achievement-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
}

.achievement-card {
  min-height: 720px;
  padding: 56px 56px;
  display: grid;
  place-items: center;
  text-align: center;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: blur(0);
  transition: transform 0.52s cubic-bezier(.22,.9,.24,1), opacity 0.52s ease, filter 0.52s ease;
}

.achievement-card.slide-out-next {
  transform: translate3d(-74px, 0, 0) scale(0.97);
  opacity: 0;
  filter: blur(8px);
}

.achievement-card.slide-out-prev {
  transform: translate3d(74px, 0, 0) scale(0.97);
  opacity: 0;
  filter: blur(8px);
}

.achievement-card.slide-in-next {
  transform: translate3d(82px, 0, 0) scale(1.02);
  opacity: 0;
  filter: blur(10px);
}

.achievement-card.slide-in-prev {
  transform: translate3d(-82px, 0, 0) scale(1.02);
  opacity: 0;
  filter: blur(10px);
}

.achievement-media {
  width: min(100%, 820px);
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(79, 196, 231, 0.28);
  background: rgba(11, 27, 38, 0.78);
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow:
    0 20px 44px rgba(4, 13, 24, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.achievement-media--portrait {
  width: min(100%, 520px);
  aspect-ratio: 3 / 4;
}

.achievement-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08111d;
  display: block;
}

.achievement-photo--contained {
  width: auto;
  max-width: 100%;
  max-height: 86%;
  margin: 0 auto;
  padding: 10px 18px;
}

.achievement-photo--portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.slider-arrow {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(79, 196, 231, 0.3);
  background: rgba(12, 31, 43, 0.74);
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  position: relative;
  overflow: hidden;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  transform: scale(1.06);
  border-color: rgba(105, 216, 245, 0.62);
  box-shadow: 0 16px 36px rgba(16, 74, 99, 0.22);
}

.cv-actions {
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.86fr);
  gap: 42px;
  align-items: start;
  margin-top: 18px;
}

.contact-copy {
  padding-top: 4px;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 196, 231, 0.1);
  border: 1px solid rgba(79, 196, 231, 0.16);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-copy p {
  max-width: 560px;
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-point {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(18, 28, 39, 0.72);
  border: 1px solid rgba(92, 126, 151, 0.12);
}

.point-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.point-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-card {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 18px;
}

.contact-label,
.label-text {
  display: block;
  margin-bottom: 8px;
  color: #d8dfec;
  font-size: 1rem;
  font-weight: 600;
}

.contact-card a {
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.08vw, 1.16rem);
  text-decoration: none;
}

.social-mini-bottom {
  margin-top: 24px;
}

.contact-form {
  border-radius: 24px;
  padding: 34px 30px;
  margin-top: 18px;
}

.contact-form label + label {
  margin-top: 16px;
}

.contact-form .btn {
  margin-top: 12px;
}

.welcome-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.welcome-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(65, 171, 214, 0.14), transparent 30%),
    rgba(2, 7, 12, 0.72);
  backdrop-filter: blur(10px);
}

.welcome-modal-card {
  position: relative;
  width: min(100%, 560px);
  padding: 32px 30px 28px;
  border-radius: 28px;
  border: 1px solid rgba(118, 205, 239, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(7, 15, 24, 0.94);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.46),
    0 0 40px rgba(79, 196, 231, 0.08);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.32s cubic-bezier(.22,.9,.24,1);
}

.welcome-modal.is-open .welcome-modal-card {
  transform: translateY(0) scale(1);
}

.welcome-modal-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 196, 231, 0.16);
  background: rgba(79, 196, 231, 0.08);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-modal-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  line-height: 1.05;
}

.welcome-modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.welcome-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.welcome-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(118, 205, 239, 0.16);
  border-radius: 50%;
  background: rgba(11, 24, 36, 0.72);
  color: var(--accent-strong);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.welcome-modal-close:hover,
.welcome-modal-close:focus-visible {
  transform: scale(1.06);
  border-color: rgba(118, 205, 239, 0.34);
  box-shadow: 0 14px 34px rgba(13, 93, 124, 0.18);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(100, 116, 139, 0.24);
  background: rgba(37, 42, 49, 0.92);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(105, 216, 245, 0.64);
  box-shadow: 0 0 0 4px rgba(79, 196, 231, 0.08);
  transform: translateY(-2px);
}

.site-footer {
  padding: 12px 0 52px;
}

.footer-inner {
  text-align: center;
  color: rgba(149, 162, 184, 0.85);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,.9,.24,1);
  will-change: transform, opacity;
}

.reveal.reveal-left {
  transform: translate3d(-46px, 18px, 0) rotate(-1.4deg);
}

.reveal.reveal-right {
  transform: translate3d(46px, 18px, 0) rotate(1.4deg);
}

.reveal.reveal-up {
  transform: translate3d(0, 52px, 0) scale(0.98);
}

.reveal.reveal-down {
  transform: translate3d(0, -38px, 0) scale(0.98);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}

@keyframes float-shell {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes glow-drift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.82;
  }
  100% {
    transform: translate3d(8px, -10px, 0);
    opacity: 1;
  }
}

@keyframes blue-drift {
  0% {
    transform: translate3d(-18px, -10px, 0) scale(1);
  }
  100% {
    transform: translate3d(24px, 16px, 0) scale(1.04);
  }
}

@keyframes terminal-scan {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  55% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(300%);
    opacity: 0;
  }
}

@keyframes terminal-bar-flow {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateX(520%);
    opacity: 0;
  }
}

@keyframes blink-caret {
  0%, 45% {
    opacity: 1;
  }
  46%, 100% {
    opacity: 0;
  }
}

@keyframes ambient-orbit {
  0% {
    transform: translate3d(-8px, 0, 0) scale(0.96);
  }
  100% {
    transform: translate3d(18px, -14px, 0) scale(1.08);
  }
}

@keyframes ambient-rise {
  0% {
    transform: translate3d(0, 8px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(18px, -18px, 0) rotate(8deg);
  }
}

@media (max-width: 1200px) {
  .header-inner {
    flex-direction: column;
    gap: 18px;
    justify-items: center;
    padding: 20px 0;
  }

  .brand {
    justify-self: center;
    margin-right: 0;
  }

  .site-header nav {
    margin-left: 0;
  }

  .hero-grid,
  .contact-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
  }

  .hero-scene {
    min-height: 600px;
  }

  .hero-badge-top {
    left: 0;
  }

  .hero-badge-side {
    right: 0;
  }

  .portrait-frame {
    min-height: auto;
  }

  .portrait-image {
    height: min(78vw, 620px);
  }

  .achievement-wrap {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    display: none;
  }
}

@media (max-width: 840px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    position: relative;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .section-panel {
    padding: 82px 0 24px;
  }

  .hero-terminal {
    margin-top: -20px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(2rem, 7.4vw, 3rem);
  }

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

  .hero-badge {
    position: relative;
    inset: auto;
    margin-bottom: 14px;
  }

  .hero-badge-side {
    margin-left: auto;
  }

  .hero-orb-one {
    top: 2%;
    right: -8%;
  }

  .hero-orb-two {
    left: -10%;
    bottom: 4%;
  }

  .hero-actions,
  .social-mini {
    gap: 16px;
  }

  .btn {
    min-width: 100%;
    min-height: 72px;
  }

  .feature-card,
  .contact-form,
  .achievement-card {
    padding: 36px 24px;
  }

  .info-card,
  .project-card {
    min-height: auto;
    padding: 32px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 34px 22px;
  }

  .welcome-modal-card {
    padding: 28px 20px 22px;
  }

  .welcome-modal-actions .btn {
    min-width: 100%;
  }

  .portrait-shell::before {
    right: -10px;
    left: 24px;
  }

  .portrait-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body::after {
    display: none;
  }

  .section-panel::before,
  .section-panel::after {
    display: none;
  }

  .interactive-surface {
    transform: none !important;
  }

  .interactive-surface::after,
  .portrait-aura,
  .hero-orb {
    display: none !important;
  }
}
