:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --border: #e2e8f0;
  --shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.5);
  --radius: 16px / 12px;
  --radius-lg: 24px / 18px;
  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.28s var(--ease-liquid);
  --max-width: 1200px;
  --ocean-wave: #59c6f2;
  --ocean-wave-deep: #4fb3e3;
  --ocean-wave-svg: url("wave-v3.svg");
  --ocean-wave-deep-svg: url("wave-deep-v3.svg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

*::selection {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(14, 165, 233, 0.18), transparent 35%),
    radial-gradient(circle at 85% 8%, rgba(37, 99, 235, 0.18), transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.18), transparent 45%),
    linear-gradient(180deg, #e8f6ff 0%, #f6f8fb 45%, #e0f2fe 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  direction: rtl;
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.45s var(--ease-liquid), transform 0.45s var(--ease-liquid), filter 0.45s var(--ease-liquid);
}

.page-home {
  background-color: #ffffff;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.08) 0px,
      rgba(15, 23, 42, 0.08) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.06) 0px,
      rgba(15, 23, 42, 0.06) 1px,
      transparent 1px,
      transparent 90px
    );
}

.page-home.animate-in:not(.page-leave) {
  opacity: 1;
  transform: none;
}

.animate-in {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  filter: blur(12px);
}

.animate-in.page-loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.animate-in.page-leave {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  filter: blur(8px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  padding: 120px 20px 80px;
}

.page-home main {
  padding-top: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

section + section {
  margin-top: 80px;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-subtitle {
  margin: 0 0 18px;
  max-width: 680px;
}

.section-heading {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-18 {
  margin-top: 18px;
}

.mt-24 {
  margin-top: 24px;
}

.muted {
  color: var(--muted);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.page-home .navbar {
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.page-home .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}


.brand .dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  direction: rtl;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px / 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-liquid), box-shadow 0.35s var(--ease-liquid), filter 0.35s var(--ease-liquid);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.btn-primary {
  background: linear-gradient(120deg, #0b1220, #0f172a, #1d4ed8, #0ea5e9);
  background-size: 220% 220%;
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.38);
  animation: btn-flow 9s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(37, 99, 235, 0.38);
  filter: saturate(1.05);
}

.btn-ghost {
  background: #ffffff;
  color: #0f172a;
}

.btn-ghost:hover {
  background: #f8fafc;
  color: #0b3ea8;
  transform: translateY(-1px);
}

@keyframes btn-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  direction: ltr;
}

.hero-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: relative;
  z-index: 10;
  direction: rtl;
  text-align: right;
}

.hero-title {
  font-size: 60px;
  margin: 8px 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 22px;
}

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

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.pill strong {
  color: var(--text);
}

.floating-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 251, 0.7));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 26px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.hero-visual {
  display: grid;
  place-items: center;
  padding: 10px;
  direction: ltr;
}

.hero-visual .code-frame {
  width: 100%;
  max-width: 540px;
}

.hero-visual .ocean-frame {
  width: 100%;
  max-width: 540px;
}

.hero-ocean {
  position: relative;
  margin: 0 -20px;
  padding: 130px 20px 140px;
  overflow: hidden;
  background-color: #ffffff;
  background-image: none;
}

.wave-cover-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--ocean-wave);
  /* Above waves, but below the bottom white separator */
  z-index: 6;
  pointer-events: none;
}

.hero-ocean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.hero-ocean .container {
  position: relative;
  z-index: 2;
}

.ocean-layers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ocean-layer {
  position: absolute;
  left: -12%;
  right: -12%;
  height: 110px;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: 1600px 110px;
  --wave-span: 1600px;
  pointer-events: none;
}

.ocean-layer-1 {
  bottom: 20px;
  background-image: var(--ocean-wave-svg);
  opacity: 0.3;
  animation: wave-drift 46s linear infinite;
}

.ocean-layer-2 {
  bottom: 0px;
  background-image: var(--ocean-wave-svg);
  opacity: 1;
  animation: wave-drift 38s linear infinite;
}

.ocean-layer-3 {
  bottom: 230px;
  background-image: var(--ocean-wave-deep-svg);
  opacity: 1;
  animation: wave-drift 28s linear infinite;
}

.ocean-frame {
  position: relative;
  height: 420px;
  border-radius: 0;
  border: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.ocean-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 200vw;
  transform: translateX(-50%);
  bottom: -200px;
  height: 280px;
  background: linear-gradient(180deg, rgba(89, 198, 242, 0.95) 0%, rgba(79, 179, 227, 0.95) 100%);
  z-index: 3;
  pointer-events: none;
}

.ocean-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2003vw;
  transform: translateX(-30%);
  bottom: -90px;
  height: 250px;
  background-image: var(--ocean-wave-svg);
  background-repeat: repeat-x;
  background-size: 900px 90px;
  --wave-span: 900px;
  background-position: top;
  opacity: 1;
  animation: wave-drift 28s linear infinite;
  z-index: 4;
  pointer-events: none;
  background-color: transparent;
}

.fisherman {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 78%;
  max-width: 360px;
  max-height: 80%;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 35px rgba(15, 23, 42, 0.35));
  animation: fisherman-float 7s ease-in-out infinite;
  z-index: 2;
}

.ocean-border {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 140px;
  pointer-events: none;
  overflow: hidden;
  /* Must stay above wave-cover-box */
  z-index: 30;
}

.ocean-border svg {
  width: calc(100% + 240px);
  height: 100%;
  display: block;
  margin-left: -120px;
}

@keyframes wave-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: var(--wave-span, 1200px) 0;
  }
}

@keyframes fisherman-float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

.shots-section {
  margin-top: 50px;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: center;
}

.server-section {
  margin-top: 70px;
}

.server-figure {
  margin: 0;
  max-width: 560px;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.server-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 45px rgba(15, 23, 42, 0.18));
  border-radius: 22px;
  background: transparent;
}

.server-caption {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.inline-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: center;
}

.shot-figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.shot-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 16px 40px rgba(15, 23, 42, 0.2));
  border-radius: 18px;
}

.shot-caption {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--border);
  margin: 26px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card h4 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: start;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  margin: 4px 6px 0 0;
}

.bio {
  color: var(--muted);
  font-size: 17px;
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 16px 0 18px 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.timeline-item h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.skill {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  text-align: center;
}

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-thumb {
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.12)),
    linear-gradient(120deg, #0f172a, #1e293b);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 35%);
  mix-blend-mode: screen;
}

.project-content {
  margin-top: 14px;
}

.project-title {
  margin: 0 0 6px;
  font-size: 19px;
}

.project-desc {
  margin: 0 0 10px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 24px;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  transition: var(--transition);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.16);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-weight: 800;
}

.code-frame {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.full-screen-code {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
}

.code-topbar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  direction: ltr;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  padding-right: 20px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 12px 0 #f97316, 24px 0 #ef4444;
  margin-left: auto;
  margin-right: 10px;
}

.code-body {
  background: #0b1220;
  color: #e2e8f0;
  font-family: "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
  height: 420px;
  padding: 22px;
  position: relative;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: normal;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.code-body code {
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: normal;
  display: inline-block;
}

.code-line {
  opacity: 0.85;
  margin: 0;
  display: inline-block;
  line-height: 1.5;
}

.code-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: normal;
  width: auto;
  display: inline-block;
}

.code-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: #22d3ee;
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
  vertical-align: bottom;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.nesher-section {
  margin-top: 70px;
}

.nesher-grid {
  align-items: stretch;
}

.nesher-card {
  background: linear-gradient(
    140deg,
    rgba(224, 242, 254, 0.6),
    rgba(238, 242, 255, 0.7),
    rgba(255, 255, 255, 0.85)
  );
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: grid;
  gap: 16px;
  align-content: start;
}

.nesher-card .badge {
  margin-bottom: 6px;
}

.nesher-window {
  position: relative;
  border-radius: 28px / 22px;
  padding: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: grid;
  gap: 18px;
}

.nesher-window::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px / 24px;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(59, 130, 246, 0.9),
    rgba(255, 255, 255, 0.9),
    rgba(14, 165, 233, 0.95),
    rgba(255, 255, 255, 0.9),
    rgba(59, 130, 246, 0.9)
  );
  animation: ring-spin 18s linear infinite;
  z-index: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.nesher-window::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px / 16px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 45%);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.nesher-window > * {
  position: relative;
  z-index: 1;
}

.nesher-shot {
  width: 100%;
  height: auto;
  border-radius: 22px / 18px;
  display: block;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.nesher-window-body {
  padding: 6px 8px 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.nesher-window-body h3 {
  margin: 0 0 10px;
}

.nesher-sale {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px / 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nesher-sale strong {
  display: block;
  color: var(--text);
}

.nesher-sale p {
  margin: 4px 0 0;
}

.nesher-mof {
  width: 56px;
  height: 56px;
  border-radius: 14px / 10px;
  padding: 6px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.nesher-card .meta-strip {
  margin: 18px 0;
}

.nesher-details h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.bullet-list {
  margin: 0;
  padding-right: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  list-style: disc;
}

.bullet-list li strong {
  color: var(--text);
}

.nesher-footer {
  margin-top: 14px;
  font-weight: 700;
}

.github-section {
  margin-top: 70px;
}

.github-grid {
  align-items: stretch;
}

.github-card {
  background: linear-gradient(
    140deg,
    rgba(15, 23, 42, 0.06),
    rgba(14, 165, 233, 0.1),
    rgba(255, 255, 255, 0.9)
  );
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.github-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.14), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(14, 165, 233, 0.14), transparent 42%);
  pointer-events: none;
}

.github-card > * {
  position: relative;
  z-index: 1;
}

.github-header {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
}

.github-avatar {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.github-badge {
  gap: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-transform: none;
  letter-spacing: 0.02em;
}

.github-mark {
  width: 16px;
  height: 16px;
  opacity: 0.92;
  border-radius: 4px;
  object-fit: cover;
  display: inline-block;
}

.github-title {
  margin: 10px 0 6px;
}

.github-handle {
  margin: 0;
  font-weight: 700;
  opacity: 0.9;
  text-align: right;
}

.github-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.github-note {
  margin: 14px 0 0;
}

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

.github-details h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.footer {
  padding: 30px 20px 50px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
  will-change: auto;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .animate-in,
  .animate-in.page-loaded,
  .animate-in.page-leave {
    transition: none;
    animation: none;
    transform: none;
    filter: none;
    opacity: 1;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 10px;
  }

  .hero-visual .code-frame {
    width: 100%;
  }

  .hero-ocean {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .ocean-layer {
    height: 100px;
    background-size: 1350px 100px;
    --wave-span: 1350px;
  }

  .ocean-layer-1 {
    bottom: 190px;
  }

  .ocean-layer-2 {
    bottom: 70px;
  }

  .ocean-layer-3 {
    bottom: 220px;
  }

  .ocean-frame {
    height: 360px;
  }

  .fisherman {
    width: 75%;
    bottom: -14px;
  }

  .ocean-frame::before {
    bottom: -220px;
    height: 280px;
  }

  .ocean-frame::after {
    bottom: -30px;
    height: 130px;
    background-size: 720px 80px;
    --wave-span: 720px;
    background-position: top;
  }

  .code-body {
    height: 360px;
  }

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

@media (max-width: 720px) {
  main {
    padding-top: 110px;
  }

  .page-home main {
    padding-top: 0;
  }

  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand span:not(.dot) {
    display: none;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 4px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-link.active {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
  }

  .hero-title {
    font-size: 44px;
  }

  .section-heading {
    font-size: 30px;
  }

  .hero-ocean {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  /* Mobile: simplify hero (no fisherman, no animated waves).
     Keep the static white bottom separator: `.ocean-border` */
  .hero-visual,
  .ocean-layers,
  .wave-cover-box,
  .fisherman {
    display: none !important;
  }

  .ocean-frame::before,
  .ocean-frame::after {
    content: none !important;
  }

  .ocean-layer {
    height: 120px;
    background-size: 900px 120px;
    --wave-span: 900px;
  }

  .ocean-layer-1 {
    bottom: 160px;
  }

  .ocean-layer-2 {
    bottom: 60px;
  }

  .ocean-layer-3 {
    bottom: 200px;
  }

  .ocean-frame {
    height: 300px;
  }

  .fisherman {
    width: 82%;
    bottom: -14px;
  }

  .ocean-border {
    height: 110px;
  }

  .ocean-frame::before {
    bottom: -200px;
    height: 260px;
  }

  .ocean-frame::after {
    bottom: -26px;
    height: 150px;
    background-size: 480px 105px;
    --wave-span: 480px;
    background-position: top;
  }

}
