@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #04060b;
  --bg-2: #080c14;
  --panel: rgba(12, 18, 28, 0.72);
  --line: rgba(0, 229, 255, 0.18);
  --cyan: #00e5ff;
  --cyan-2: #5ce1ff;
  --violet: #b388ff;
  --magenta: #ff4ecd;
  --lime: #b8ff3c;
  --text: #eef6fb;
  --muted: #8ea3b8;
  --danger: #ff6b6b;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  direction: rtl;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  cursor: none;
}

body.nav-open {
  overflow: hidden;
}

a,
button,
input,
textarea,
label {
  cursor: none;
}

img {
  max-width: 100%;
}

figure {
  margin: 0;
}

::selection {
  background: rgba(0, 229, 255, 0.28);
  color: #fff;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(2) infinite;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
}

#net {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28), transparent 70%);
  top: -12vw;
  right: -8vw;
}

.orb-b {
  width: 36vw;
  height: 36vw;
  background: radial-gradient(circle, rgba(179, 136, 255, 0.22), transparent 70%);
  bottom: -10vw;
  left: -8vw;
  animation-delay: -7s;
}

.progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 18px var(--cyan);
  transform-origin: right;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 500;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}

.cursor.hover .cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #020308;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  position: relative;
}

.loader-mark span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

.loader-mark span:nth-child(2) {
  inset: 10px;
  border-top-color: var(--violet);
  animation-duration: 1.6s;
  animation-direction: reverse;
}

.loader-mark span:nth-child(3) {
  inset: 20px;
  border-top-color: var(--magenta);
  animation-duration: 0.9s;
}

.loader p {
  margin: 0;
  letter-spacing: 0.35em;
  color: var(--muted);
  font-size: 12px;
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: linear-gradient(180deg, #041018, #00e5ff 55%, #041018);
  transform: translateY(100%);
  pointer-events: none;
}

.page-wipe.go {
  animation: wipe 0.85s var(--ease) forwards;
}

nav {
  position: fixed;
  top: 18px;
  right: 50%;
  transform: translateX(50%);
  z-index: 100;
  width: min(1120px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 10, 16, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: drop 0.9s var(--ease) both;
}

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

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  transition: color 0.3s, background 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(0, 229, 255, 0.08);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: #031018 !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
  animation: glow 2.8s ease-in-out infinite;
}

.nav-cta::after {
  display: none !important;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  position: relative;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--text);
  right: 12px;
  transition: 0.3s var(--ease);
}

.menu-btn span {
  top: 21px;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  right: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

body.nav-open .menu-btn span {
  background: transparent;
}

body.nav-open .menu-btn span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

main {
  padding-top: 118px;
}

.hero {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding-bottom: 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 13px;
  background: rgba(0, 229, 255, 0.06);
  animation: fadeUp 0.8s var(--ease) both;
}

.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: blink 1.4s infinite;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.char {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40px);
  animation: charIn 0.7s var(--ease) forwards;
}

.role-line {
  min-height: 36px;
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 22px;
}

.role-line b {
  color: var(--cyan-2);
}

.lead {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.95;
  font-size: 16px;
}

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

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #7af0ff);
  color: #031018;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(0, 229, 255, 0.38);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--cyan);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.85), rgba(8, 12, 18, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 70%);
  animation: spin 12s linear infinite;
}

.hud {
  position: relative;
}

.hud::before,
.hud::after,
.hud .corner-bl,
.hud .corner-br {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
  pointer-events: none;
}

.hud::before {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}

.hud::after {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.hud .corner-bl {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.hud .corner-br {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}

.mono {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

.avatar {
  width: 110px;
  height: 110px;
  margin: 8px auto 16px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.35);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, 0.06);
  font-size: 12px;
  animation: fadeUp 0.8s var(--ease) both;
}

.section {
  padding: 84px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 18px 50px rgba(0, 229, 255, 0.08);
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 66%);
  transform: translateX(120%);
}

.card:hover .shine {
  animation: shine 0.9s var(--ease);
}

.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.marquee span i {
  color: var(--cyan);
  font-style: normal;
  margin: 0 10px;
}

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

.skill {
  padding: 18px;
  min-height: 150px;
}

.skill .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  animation: float 5s ease-in-out infinite;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 16px;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 1.2s var(--ease);
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project .num {
  font-size: 42px;
  font-weight: 900;
  color: rgba(0, 229, 255, 0.18);
  line-height: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(179, 136, 255, 0.12);
  color: #d7c2ff;
}

.page-hero {
  padding: 18px 0 10px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 18px;
  width: 2px;
  background: linear-gradient(var(--cyan), transparent);
}

.time-item {
  padding-right: 54px;
  position: relative;
}

.time-item::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  text-decoration: none;
  color: inherit;
}

.contact-card p {
  overflow-wrap: anywhere;
}

.contact-card .ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.contact-card .ico img {
  width: 40px;
  height: 40px;
  display: block;
}

.contact-card .ico-brand {
  background: transparent;
  padding: 0;
}

.contact-card:hover .ico {
  transform: scale(1.12) rotate(-8deg);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.7);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

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

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12);
}

.form-msg {
  min-height: 22px;
  color: var(--lime);
  font-size: 14px;
}

.form-msg.error {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

footer {
  position: relative;
  z-index: 2;
  padding: 28px 0 40px;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  a,
  button,
  input,
  textarea,
  label {
    cursor: pointer;
  }

  .cursor {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 86px 14px auto;
    display: none;
    flex-direction: column;
    padding: 16px;
    border-radius: 22px;
    background: rgba(6, 10, 16, 0.96);
    border: 1px solid var(--line);
  }

  body.nav-open .nav-links {
    display: flex;
    animation: fadeUp 0.4s var(--ease);
  }

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

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

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

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

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

  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}

@keyframes grain {
  0%,
  100% {
    transform: translate(0);
  }
  50% {
    transform: translate(-2%, 1%);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-8%, 10%) scale(1.15);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translate(50%, -24px);
  }
  to {
    opacity: 1;
    transform: translate(50%, 0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.5);
  }
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@keyframes shine {
  to {
    transform: translateX(-120%);
  }
}

@keyframes wipe {
  0% {
    transform: translateY(100%);
  }
  45% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.projects + .gallery-grid {
  margin-top: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease), filter 0.55s;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  background: rgba(2, 4, 8, 0.9);
  backdrop-filter: blur(12px);
  cursor: none;
}

body.lb-open .cursor {
  mix-blend-mode: normal;
}

body.lb-open .cursor-dot {
  background: #00e5ff;
  box-shadow: 0 0 12px #00e5ff;
}

body.lb-open .cursor-ring {
  border-color: #00e5ff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(92vw, 1080px);
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: zoomIn 0.35s var(--ease);
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6, 10, 16, 0.8);
  color: var(--text);
  font-size: 22px;
  font-family: inherit;
}

.lb-prev {
  right: 24px;
}

.lb-next {
  left: 24px;
}

.lb-close {
  top: 22px;
  left: 22px;
  right: auto;
  transform: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.error-hero {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0 80px;
}

.error-code {
  font-size: clamp(92px, 18vw, 200px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 8px 0 18px;
  background: linear-gradient(180deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.28));
}

.error-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
}
