:root {
      --bg: #070b16;
      --bg-2: #0b1020;
      --card: rgba(255, 255, 255, 0.045);
      --card-2: rgba(255, 255, 255, 0.075);
      --line: rgba(255, 255, 255, 0.1);
      --text: #f8fafc;
      --muted: #94a3b8;
      --muted-2: #64748b;
      --blue: #3b82f6;
      --cyan: #67e8f9;
      --violet: #8b5cf6;
      --green: #34d399;
      --shadow: 0 30px 100px rgba(59, 130, 246, 0.15);
    }

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

html {
      scroll-behavior: smooth;
    }

body {
      font-family: "Inter", sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
    }

body::before {
      content: "";
      opacity: 0.08;
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: radial-gradient(ellipse at center, black, transparent 72%);
      z-index: -3;
    }

body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 0%, rgba(59,130,246,0.22), transparent 35%),
        radial-gradient(circle at 100% 80%, rgba(139,92,246,0.18), transparent 35%),
        radial-gradient(circle at 0% 90%, rgba(103,232,249,0.08), transparent 30%);
      z-index: -2;
    }

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

.container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

.navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      border-bottom: 1px solid var(--line);
      background: rgba(7, 11, 22, 0.72);
      backdrop-filter: blur(20px);
    }

.nav-inner {
      height: 98px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

.brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  transition: 0.35s ease;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(59,130,246,0.18);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.brand-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(59,130,246,0.35);
}

.brand-icon:hover img {
  transform: scale(1.18);
}

.brand-title {
      font-size: 14px;
      font-weight: 700;
    }

.brand-subtitle {
      margin-top: 2px;
      font-size: 12px;
      color: var(--muted);
    }

.nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 5px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--card);
    }

.nav-links a {
      padding: 12px 20px;
      border-radius: 999px;
      font-size: 14px;
      color: #cbd5e1;
      transition: 0.25s ease;
    }

.nav-links a:hover,

    .nav-links a.active {
      background: rgba(255,255,255,0.1);
      color: #fff;
    }

.nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

.language-toggle {
      min-width: 52px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--card);
      color: #dbeafe;
      font-weight: 800;
      letter-spacing: 0.08em;
      cursor: pointer;
      transition: 0.25s ease;
    }

.language-toggle:hover {
      transform: translateY(-2px);
      background: var(--card-2);
      border-color: rgba(103,232,249,0.35);
      box-shadow: 0 16px 42px rgba(59,130,246,0.16);
    }

.btn {
      border: 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 18px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 14px;
      transition: 0.25s ease;
    }

.btn-primary {
      background: var(--blue);
      color: #fff;
      box-shadow: 0 18px 50px rgba(59,130,246,0.25);
    }

.btn-primary:hover {
      transform: translateY(-2px);
      background: #60a5fa;
    }

.btn-ghost {
      border: 1px solid var(--line);
      background: var(--card);
      color: #fff;
    }

.btn-ghost:hover {
      transform: translateY(-2px);
      background: var(--card-2);
    }

.mobile-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--card);
      color: #fff;
      font-size: 22px;
      cursor: pointer;
    }

.mobile-menu {
      display: none;
      padding: 14px 0 18px;
      border-top: 1px solid var(--line);
    }

.mobile-menu a {
      display: block;
      padding: 13px 16px;
      border-radius: 14px;
      color: #cbd5e1;
    }

.mobile-menu a:hover {
      background: var(--card);
      color: #fff;
    }

.hero {
      min-height: 100vh;
      display: grid;
      align-items: center;
      padding: 130px 0 70px;
    }

.hero-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      align-items: center;
      gap: 48px;
    }

.badge {
      display: inline-flex;
      padding: 8px 13px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--card);
      color: #cbd5e1;
      font-size: 13px;
    }

.hero-title {
      margin-top: 24px;
      font-size: clamp(42px, 6vw, 78px);
      line-height: 1.18;
      letter-spacing: -0.005em;
      max-width: 850px;
    }

.gradient-text {
      background: linear-gradient(90deg, #fff, #93c5fd, #67e8f9);
      -webkit-background-clip: text;
      color: transparent;
    }

.hero p {
      margin-top: 24px;
      color: var(--muted);
      line-height: 1.8;
      font-size: 17px;
      max-width: 650px;
    }

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

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

.stat {
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--card);
    }

.stat strong {
      font-size: 27px;
    }

.stat span {
      display: block;
      margin-top: 6px;
      font-size: 12px;
      color: var(--muted);
    }

.control-card {
      border: 1px solid var(--line);
      border-radius: 34px;
      background: rgba(255, 255, 255, 0.045);
      backdrop-filter: blur(18px);
      overflow: hidden;
      box-shadow: var(--shadow);
      animation: float 5s ease-in-out infinite;
    }

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

.control-head {
      padding: 22px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,0.04);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

.profile {
      display: flex;
      align-items: center;
      gap: 12px;
    }

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  transition: 0.35s ease;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(59,130,246,0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.avatar:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(59,130,246,0.35);
}

.avatar:hover img {
  transform: scale(1.18);
}

.online {
      padding: 7px 11px;
      border-radius: 999px;
      background: rgba(52, 211, 153, 0.1);
      color: var(--green);
      font-size: 12px;
      font-weight: 700;
    }

.control-body {
      padding: 22px;
      display: grid;
      gap: 14px;
    }

.control-item {
      display: flex;
      gap: 14px;
      align-items: center;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(11,16,32,0.82);
    }

.control-item-icon {
      width: 45px;
      height: 45px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background: rgba(59,130,246,0.12);
      color: var(--cyan);
      font-size: 20px;
    }

.control-item small {
      color: var(--muted);
      font-size: 13px;
    }

.control-item strong {
      display: block;
      margin-top: 4px;
      font-size: 15px;
    }

section {
      padding: 105px 0;
    }

.section-title {
      max-width: 720px;
      margin: 0 auto 42px;
      text-align: center;
    }

.eyebrow {
      color: #93c5fd;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.35em;
    }

.section-title h2 {
      margin-top: 14px;
      font-size: clamp(32px, 4vw, 54px);
      letter-spacing: -0.045em;
    }

.section-title p {
      margin-top: 16px;
      color: var(--muted);
      line-height: 1.8;
    }

.projects-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

.project-card {
      position: relative;
      min-height: 310px;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: 34px;
      background: var(--card);
      overflow: hidden;
      transition: 0.3s ease;
    }

.project-card::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: 0.3s ease;
      background: radial-gradient(circle at 25% 15%, rgba(59,130,246,0.22), transparent 35%), radial-gradient(circle at 100% 100%, rgba(139,92,246,0.18), transparent 40%);
    }

.project-card:hover {
      transform: translateY(-8px);
      background: var(--card-2);
      box-shadow: var(--shadow);
    }

.project-card:hover::before {
      opacity: 1;
    }

.project-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 42px;
    }

.project-icon {
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(11,16,32,0.86);
      font-size: 25px;
    }

.project-icon-game {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.project-icon-game > span {
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
  text-align: center;
}

.control-item-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.project-type {
      color: #93c5fd;
      font-size: 14px;
      margin-bottom: 8px;
    }

.project-card h3 {
      font-size: 25px;
      letter-spacing: -0.03em;
    }

.project-card p {
      margin-top: 14px;
      color: var(--muted);
      line-height: 1.75;
    }

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

.tag {
      padding: 7px 10px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.04);
      color: #cbd5e1;
      font-size: 12px;
    }

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

.stack-card {
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: var(--card);
      transition: 0.25s ease;
    }

.stack-card:hover {
      transform: translateY(-5px);
      background: var(--card-2);
    }

.stack-card h3 {
      font-size: 22px;
    }

.stack-card p {
      margin-top: 9px;
      color: var(--muted);
      font-size: 14px;
    }

.level {
      display: inline-block;
      margin-top: 18px;
      padding: 7px 11px;
      border-radius: 999px;
      background: rgba(59,130,246,0.12);
      color: #93c5fd;
      font-size: 12px;
      font-weight: 700;
    }

.timeline {
      max-width: 900px;
      margin: 0 auto;
      display: grid;
      gap: 14px;
    }

.timeline-item {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 18px;
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: var(--card);
    }

.timeline-number {
      color: #93c5fd;
      font-size: 28px;
      font-weight: 800;
    }

.timeline-item h3 {
      font-size: 21px;
    }

.timeline-item p {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.75;
    }

.terminal {
      max-width: 900px;
      margin: 0 auto;
      border: 1px solid var(--line);
      border-radius: 34px;
      background: rgba(11,16,32,0.92);
      overflow: hidden;
      box-shadow: var(--shadow);
    }

.terminal-head {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 16px 20px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,0.04);
    }

.dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

.red { background: #fb7185; }

.yellow { background: #facc15; }

.green { background: #4ade80; }

.terminal-title {
      margin-left: 10px;
      color: var(--muted);
      font-size: 14px;
    }

.terminal-output {
      height: 310px;
      overflow-y: auto;
      padding: 22px;
      font-family: Consolas, monospace;
      font-size: 14px;
      line-height: 1.8;
      color: #cbd5e1;
    }

.terminal-output .user {
      color: #93c5fd;
    }

.terminal-form {
      display: flex;
      gap: 12px;
      padding: 16px;
      border-top: 1px solid var(--line);
    }

.terminal-form input {
      flex: 1;
      border: 0;
      outline: 0;
      background: transparent;
      color: #fff;
      font-family: Consolas, monospace;
      font-size: 14px;
    }

.contact-card {
      max-width: 900px;
      margin: 0 auto;
      padding: 54px;
      text-align: center;
      border: 1px solid var(--line);
      border-radius: 36px;
      background: var(--card);
      box-shadow: var(--shadow);
    }

.contact-card h2 {
      margin-top: 14px;
      font-size: clamp(34px, 4vw, 56px);
      letter-spacing: -0.05em;
    }

.contact-card p {
      max-width: 680px;
      margin: 20px auto 0;
      color: var(--muted);
      line-height: 1.8;
    }

.contact-actions {
      margin-top: 30px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }

.reveal {
      opacity: 1;
      transform: none;
      transition: opacity 0.45s ease, transform 0.45s ease;
    }

.intro-page {
      position: relative;
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 140px 0 80px;
      overflow: hidden;
      isolation: isolate;
    }

.intro-page::before {
      content: "";
      position: absolute;
      inset: -20%;
      background:
        radial-gradient(circle at 18% 30%, rgba(59,130,246,0.24), transparent 28%),
        radial-gradient(circle at 78% 26%, rgba(103,232,249,0.18), transparent 24%),
        radial-gradient(circle at 52% 86%, rgba(139,92,246,0.22), transparent 30%);
      filter: blur(18px);
      z-index: -3;
    }

.intro-page::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(115deg, transparent 0 25%, rgba(59,130,246,0.08) 38%, transparent 52%),
        linear-gradient(245deg, transparent 0 28%, rgba(139,92,246,0.08) 42%, transparent 58%);
      opacity: 0.9;
      z-index: -2;
    }

.intro-grid {
      display: grid;
      grid-template-columns: 0.95fr 1.05fr;
      align-items: center;
      gap: 58px;
    }

.intro-copy .badge {
      box-shadow: inset 0 0 26px rgba(59,130,246,0.08), 0 0 45px rgba(59,130,246,0.1);
    }

.intro-copy h1 {
  margin-top: 24px;
  max-width: 650px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.intro-copy p {
      margin-top: 24px;
      max-width: 610px;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.85;
    }

.intro-actions {
      margin-top: 34px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

.video-gallery {
      margin-top: 28px;
      max-width: 680px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(14px);
      box-shadow: 0 18px 55px rgba(59,130,246,0.12);
    }

.video-gallery-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      margin-bottom: 14px;
    }

.video-kicker {
      color: #93c5fd;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.24em;
    }

.video-gallery h3 {
      margin-top: 6px;
      font-size: 20px;
      letter-spacing: -0.03em;
    }

.video-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

.video-card {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(7,11,22,0.56);
    }

.video-card h4 {
      padding: 12px 14px 14px;
      font-size: 14px;
      color: #e2e8f0;
    }

.showcase-wrap {
      position: relative;
      min-height: 560px;
      display: grid;
      place-items: center;
      perspective: 1200px;
    }

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

#intro > .intro-scroll {
      position: absolute;
      left: 50%;
      bottom: 24px;
      width: max-content;
      justify-self: start;
      transform: translateX(-50%);
      display: grid;
      gap: 8px;
      justify-items: center;
      color: var(--muted);
      font-size: 12px;
      z-index: 5;
    }

.intro-scroll span:first-child {
      width: 1px;
      height: 34px;
      background: linear-gradient(transparent, var(--blue), transparent);
      box-shadow: 0 0 18px rgba(59,130,246,0.75);
    }

.floating-scroll-btn {
      position: fixed;
      right: 28px;
      bottom: 28px;
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(103,232,249,0.25);
      border-radius: 50%;
      background: rgba(7,11,22,0.62);
      color: #dbeafe;
      box-shadow: 0 0 34px rgba(59,130,246,0.16);
      backdrop-filter: blur(14px);
      z-index: 90;
      transition: 0.25s ease;
    }

.floating-scroll-btn:hover {
      transform: translateY(-3px);
      border-color: rgba(103,232,249,0.52);
      box-shadow: 0 0 50px rgba(59,130,246,0.28);
    }

@media (prefers-reduced-motion: reduce) {
html {
        scroll-behavior: auto;
      }

*,

      *::before,

      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

.control-card {
        animation: none !important;
      }


    }

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

.showcase-wrap { min-height: 500px; }


    }

@media (max-width: 620px) {
.intro-page { padding-top: 120px; }

.floating-scroll-btn { right: 18px; bottom: 18px; }


    }

@media (max-width: 920px) {
.nav-links,

      .desktop-contact {
        display: none;
      }

.nav-actions {
        margin-left: auto;
      }

.mobile-toggle {
        display: block;
      }

.mobile-menu.open {
        display: block;
      }

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

.projects-grid,

      .stack-grid,

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

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


    }

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

.hero {
        padding-top: 118px;
      }

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

.timeline-item {
        grid-template-columns: 1fr;
      }

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

.terminal-form {
        flex-direction: column;
      }


    }

.showcase-wrap {
  min-height: 760px;
  place-items: end center;
  padding-top: 310px;
}

.intro-image-gallery {
  position: absolute;
  top: 26px;
  left: 50%;
  width: min(100%, 680px);
  transform: translateX(-50%);
  z-index: 8;
  padding: 18px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.20), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.15), transparent 38%),
    rgba(7, 11, 22, 0.66);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 28px 90px rgba(59, 130, 246, 0.18);
}

.image-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.image-kicker {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.image-gallery-head h3 {
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.image-counter {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.image-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 26px;
  background: rgba(11, 16, 32, 0.82);
}

.image-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.image-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
}

.image-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(7, 11, 22, 0.78));
  pointer-events: none;
}

.image-slide figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.image-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.image-nav:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(103, 232, 249, 0.42);
  box-shadow: 0 14px 35px rgba(59, 130, 246, 0.22);
}

.image-nav-prev { left: 14px; }

.image-nav-next { right: 14px; }

.image-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.image-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.34);
  cursor: pointer;
  transition: 0.25s ease;
}

.image-dots button.active {
  width: 24px;
  background: #93c5fd;
  box-shadow: 0 0 16px rgba(147, 197, 253, 0.55);
}

@media (max-width: 920px) {
.showcase-wrap {
    min-height: auto;
    padding-top: 0;
    place-items: center;
  }

.intro-image-gallery {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    margin-bottom: 28px;
  }


}

@media (max-width: 620px) {
.intro-image-gallery {
    padding: 14px;
    border-radius: 26px;
  }

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

.image-slide {
    aspect-ratio: 16 / 10.5;
  }

.image-nav {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }


}

.showcase-wrap {
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 44px;
  padding-top: 20px;
}

.image-gallery {
  position: relative;
  width: min(100%, 620px);
  z-index: 8;
}

.showcase-wrap {
  gap: 220px;
}

@media (max-width: 920px) {
.showcase-wrap {
    min-height: auto;
    gap: 32px;
    padding-top: 0;
  }

.image-gallery {
    width: 100%;
  }


}

.showcase-wrap {
  min-height: 880px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 168px;
  padding-top: 0;
}

.image-gallery {
  position: relative;
  width: min(100%, 620px);
  z-index: 8;
}

.intro-image-gallery {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
}

.project-image-gallery {
  padding: 18px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.20), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.15), transparent 38%),
    rgba(7, 11, 22, 0.66);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 28px 90px rgba(59, 130, 246, 0.18);
}

@media (max-width: 920px) {
.showcase-wrap {
    min-height: auto;
    gap: 28px;
    padding-top: 0;
  }

.image-gallery {
    width: 100%;
  }


}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(11,16,32,0.9);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-thumb:hover img {
  transform: scale(1.06);
  opacity: 0.82;
}

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: #fff;
  text-shadow: 0 0 24px rgba(0,0,0,0.75);
}

:root {
  --bg: #08111f;
  --bg-2: #0d1728;
  --card: rgba(255, 255, 255, 0.055);
  --card-2: rgba(255, 255, 255, 0.09);
  --line: rgba(226, 232, 240, 0.12);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --muted-2: #748199;
  --blue: #4f8df7;
  --cyan: #7dd3fc;
  --violet: #8b5cf6;
  --green: #34d399;
  --shadow: 0 22px 70px rgba(2, 6, 23, 0.36);
}

body {
  background:
    linear-gradient(180deg, #08111f 0%, #0b1324 45%, #07101d 100%);
}

body::before,

body::after,

.intro-page::before,

.intro-page::after {
  display: none !important;
}

.navbar {
  background: rgba(8, 17, 31, 0.88);
  backdrop-filter: blur(14px);
}

.nav-inner {
  height: 86px;
}

.brand-icon,

.language-toggle:hover,

.btn-primary,

.video-gallery,

.intro-image-gallery,

.project-image-gallery,

.project-card,

.stat,

.terminal,

.contact-card,

.image-modal img {
  box-shadow: var(--shadow) !important;
}

.brand-icon:hover,

.btn-primary:hover,

.project-card:hover,

.image-nav:hover,

.video-thumb:hover img {
  transform: translateY(-2px);
}

.gradient-text {
  background: linear-gradient(90deg, #f8fafc, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
}

.intro-page {
  min-height: 100vh;
  padding: 132px 0 88px;
  background:
    linear-gradient(135deg, rgba(79, 141, 247, 0.09), transparent 34%),
    linear-gradient(315deg, rgba(125, 211, 252, 0.055), transparent 38%);
}

.intro-grid {
  gap: 44px;
}

.intro-copy h1,

.hero-title,

.section-title h2 {
  letter-spacing: -0.045em;
}

.intro-copy .badge,

.badge {
  box-shadow: none !important;
}

.btn,

.language-toggle,

.nav-links,

.mobile-menu,

.video-gallery,

.image-gallery,

.project-card,

.stat,

.terminal,

.contact-card {
  border-color: var(--line) !important;
}

.video-gallery,

.intro-image-gallery,

.project-image-gallery,

.project-card,

.stat,

.terminal,

.contact-card {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(10px);
}

.showcase-wrap {
  min-height: auto !important;
  gap: 28px !important;
  justify-content: center !important;
}

.image-gallery {
  width: min(100%, 640px) !important;
}

.image-slider,

.video-card {
  background: rgba(8, 17, 31, 0.82) !important;
}

.image-dots button.active {
  background: #93c5fd;
  box-shadow: none !important;
}

.image-nav:hover {
  border-color: rgba(147, 197, 253, 0.42);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28) !important;
}

.project-card::before {
  display: none !important;
}

.project-card:hover {
  border-color: rgba(147, 197, 253, 0.28) !important;
}

.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent 36%);
  z-index: -1;
}

.floating-scroll-btn {
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.34) !important;
}

@media (prefers-reduced-motion: reduce) {
*,
 *::before,
 *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }


}

@media (max-width: 920px) {
.nav-inner { height: 78px; }

.intro-page { padding-top: 116px; }

.showcase-wrap { gap: 24px !important; }


}

:root {
  --bg: #0e1210;
  --bg-2: #151d18;
  --card: rgba(247, 239, 222, 0.055);
  --card-2: rgba(247, 239, 222, 0.09);
  --line: rgba(231, 183, 95, 0.16);
  --text: #fff7ea;
  --muted: #c8bfae;
  --muted-2: #918777;
  --blue: #c47f3a;
  --cyan: #8fb996;
  --violet: #e7b75f;
  --green: #7fb069;
  --shadow: 0 24px 76px rgba(0, 0, 0, 0.38);

  
  --bg-image-intro: url("assets/back3.jpg");
  --bg-image-home: url("assets/back1.jpg");
  --bg-image-projects: url("assets/back4.jpg");
  --bg-image-stack: url("assets/back5.jpg");
  --bg-image-experience: url("assets/back6.jpg");
  --bg-image-playground: url("assets/back7.jpg");
  --bg-image-contact: url("assets/back8.jpg");

  --section-bg-position: center;
  --section-bg-size: cover;
  --section-bg-repeat: no-repeat;
  --section-bg-opacity: 0.34;
  --section-overlay-top: rgba(14, 18, 16, 0.82);
  --section-overlay-bottom: rgba(14, 18, 16, 0.92);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 127, 58, 0.11), transparent 30%),
    radial-gradient(circle at 92% 80%, rgba(143, 185, 150, 0.10), transparent 34%),
    linear-gradient(180deg, #0e1210 0%, #151d18 48%, #0b0f0d 100%);
}

.navbar {
  background: rgba(14, 18, 16, 0.90);
}

.btn-primary {
  background: linear-gradient(135deg, #c47f3a, #e7b75f) !important;
  color: #16110a !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d8944c, #f0c873) !important;
}

.language-toggle,

.nav-links a,

.btn-ghost,

.badge,

.project-card,

.stack-card,

.stat,

.terminal,

.contact-card,

.video-gallery,

.image-gallery {
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(90deg, #fff7ea, #e7b75f, #8fb996) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

#intro { --section-bg-image: var(--bg-image-intro); }

#home { --section-bg-image: var(--bg-image-home); }

#projects { --section-bg-image: var(--bg-image-projects); }

#stack { --section-bg-image: var(--bg-image-stack); }

#experience { --section-bg-image: var(--bg-image-experience); }

#playground { --section-bg-image: var(--bg-image-playground); }

#contact { --section-bg-image: var(--bg-image-contact); }

#intro,

#home,

#projects,

#stack,

#experience,

#playground,

#contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#intro::before,

#home::before,

#projects::before,

#stack::before,

#experience::before,

#playground::before,

#contact::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--section-bg-opacity);
  background-image: var(--section-bg-image);
  background-position: var(--section-bg-position);
  background-size: var(--section-bg-size);
  background-repeat: var(--section-bg-repeat);
}

#intro::after,

#home::after,

#projects::after,

#stack::after,

#experience::after,

#playground::after,

#contact::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--section-overlay-top), var(--section-overlay-bottom)),
    radial-gradient(circle at 15% 20%, rgba(196, 127, 58, 0.08), transparent 34%),
    radial-gradient(circle at 85% 75%, rgba(143, 185, 150, 0.07), transparent 34%);
}

.intro-page {
  background: transparent !important;
}

.hero::before {
  background: none;
}

.video-gallery,

.intro-image-gallery,

.project-image-gallery,

.project-card,

.stack-card,

.stat,

.terminal,

.contact-card {
  background: rgba(21, 29, 24, 0.78) !important;
  border-color: rgba(231, 183, 95, 0.16) !important;
}

.image-slider,

.video-card,

.mobile-menu {
  background: rgba(12, 17, 14, 0.86) !important;
}

.nav-links a:hover,

.nav-links a.active,

.language-toggle:hover,

.btn-ghost:hover {
  background: rgba(231, 183, 95, 0.10) !important;
  border-color: rgba(231, 183, 95, 0.28) !important;
}

.image-dots button.active {
  background: #e7b75f !important;
}

.project-card:hover,

.stack-card:hover {
  border-color: rgba(231, 183, 95, 0.34) !important;
}

:root {
  --section-separator: rgba(231, 183, 95, 0.36);
  --section-separator-soft: rgba(143, 185, 150, 0.18);
  --section-bg-opacity: 0.46;
  --section-overlay-top: rgba(14, 18, 16, 0.68);
  --section-overlay-bottom: rgba(14, 18, 16, 0.90);
}

#intro,

#home,

#projects,

#stack,

#experience,

#playground,

#contact {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(180deg, var(--section-overlay-top), var(--section-overlay-bottom)),
    var(--section-bg-image) !important;
  background-position: center, var(--section-bg-position) !important;
  background-size: cover, var(--section-bg-size) !important;
  background-repeat: no-repeat, var(--section-bg-repeat) !important;
  border-top: 2px solid var(--section-separator) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 234, 0.08),
    inset 0 26px 38px rgba(231, 183, 95, 0.035) !important;
}

#intro {
  border-top: 0 !important;
}

#intro::before,

#home::before,

#projects::before,

#stack::before,

#experience::before,

#playground::before,

#contact::before,

#intro::after,

#home::after,

#projects::after,

#stack::after,

#experience::after,

#playground::after,

#contact::after {
  display: none !important;
}

#intro > *,

#home > *,

#projects > *,

#stack > *,

#experience > *,

#playground > *,

#contact > * {
  position: relative;
  z-index: 2;
}

section[id] + section[id]::marker {
  display: none;
}

section[id] {
  outline: 1px solid rgba(231, 183, 95, 0.08);
  outline-offset: -1px;
}

section[id]::selection {
  background: rgba(231, 183, 95, 0.28);
}

.terminal-output {
  border-top: 1px solid rgba(231, 183, 95, 0.18);
  padding-top: 14px;
}

.terminal-output .user {
  color: #e7b75f !important;
}

#intro,

#home,

#projects,

#stack,

#experience,

#playground,

#contact {
  min-height: 100vh !important;
  background-image:
    linear-gradient(180deg, var(--section-overlay-top), var(--section-overlay-bottom)),
    var(--section-bg-image) !important;
  background-position:
    center center,
    center center !important;
  background-size:
    cover,
    cover !important;
  background-repeat:
    no-repeat,
    no-repeat !important;
  background-attachment:
    scroll,
    scroll !important;
}

@media (max-width: 900px) {
#intro,

  #home,

  #projects,

  #stack,

  #experience,

  #playground,

  #contact {
    background-attachment:
      scroll,
      scroll !important;
    background-size:
      cover,
      cover !important;
  }


}

html { scroll-padding-top: 110px; color-scheme: dark; }

body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }

button,
 input { font: inherit; }

:focus-visible { outline: 3px solid #e7b75f; outline-offset: 4px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100001; padding: 12px 18px; border-radius: 12px; background: #e7b75f; color: #16110a; transform: translateY(-160%); }

.skip-link:focus { transform: translateY(0); }

.intro-grid > *,
 .hero-grid > *,
 .control-head > *,
 .profile > *,
 .control-item > * { min-width: 0; }

.brand,
 .nav-actions,
 .mobile-toggle,
 .control-item-icon { flex-shrink: 0; }

h1,
 h2,
 h3,
 p,
 .control-item strong,
 .terminal-output { overflow-wrap: anywhere; }

.terminal-form input { min-width: 0; min-height: 44px; }

.terminal-form input:focus-visible { outline-offset: 0; }

.mobile-menu { max-height: calc(100dvh - 86px); overflow-y: auto; }

.mobile-menu a.active { background: rgba(231,183,95,.1); color: var(--text); }

.reveal-pending { opacity: 0; transform: translateY(20px); }

.reveal-pending:focus-within { opacity: 1; transform: none; }

.control-card { animation: none; }

.image-track { will-change: auto; }

.image-slide { flex: 0 0 100%; width: 100%; min-width: 0; }

.image-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }

.image-zoom:focus-visible { outline-offset: -5px; }

.image-slide figcaption { pointer-events: none; }

.image-nav { width: 44px; height: 44px; }

.image-nav:hover { transform: translateY(-50%) scale(1.06); }

.image-dots { gap: 4px; }

.image-dots button,
 .image-dots button.active { position: relative; width: 44px; height: 44px; background: transparent !important; box-shadow: none !important; }

.image-dots button::before { content: ""; position: absolute; top: 18px; left: 18px; width: 8px; height: 8px; border-radius: 99px; background: #918777; }

.image-dots button.active::before { left: 10px; width: 24px; background: #e7b75f; }

.image-gallery:not(.gallery-ready) .image-track { overflow-x: auto; scroll-snap-type: x mandatory; }

.image-gallery:not(.gallery-ready) .image-slide { scroll-snap-align: start; }

.image-gallery:not(.gallery-ready) .image-nav,

.image-gallery:not(.gallery-ready) .image-dots,

.image-gallery:not(.gallery-ready) .image-counter { display: none; }

.image-modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 64px 20px 20px; border: 0; background: rgba(0,0,0,.92); overflow: auto; }

.image-modal:not([open]) { display: none; }

.image-modal[open] { display: flex; align-items: center; justify-content: center; }

.image-modal::backdrop { background: rgba(0,0,0,.8); }

.image-modal img { display: block; max-width: 100%; max-height: calc(100dvh - 90px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }

.modal-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #151d18; color: var(--text); font-size: 28px; cursor: pointer; }

.no-js .navbar { position: static; }

.no-js .language-toggle,
 .no-js .mobile-toggle,
 .no-js .terminal-form { display: none; }

@media (max-width: 1200px) {
.nav-links,
 .desktop-contact { display: none; }

.nav-actions { margin-left: auto; }

.mobile-toggle { display: block; width: 44px; height: 44px; }

.mobile-menu.open,
 .no-js .mobile-menu { display: block; }


}

@media (max-width: 920px) {
:root {
    --bg-image-intro: url("assets/back3-mobile.jpg");
    --bg-image-home: url("assets/back1-mobile.jpg");
    --bg-image-projects: url("assets/back4-mobile.jpg");
    --bg-image-stack: url("assets/back5-mobile.jpg");
    --bg-image-experience: url("assets/back6-mobile.jpg");
    --bg-image-playground: url("assets/back7-mobile.jpg");
    --bg-image-contact: url("assets/back8-mobile.jpg");
  }

html { scroll-padding-top: 94px; }

.video-gallery,
 .image-gallery,
 .project-card,
 .stat,
 .terminal,
 .contact-card,
 .control-card { backdrop-filter: none; }


}

@media (max-width: 400px) {
.nav-inner { gap: 8px; }

.brand { gap: 7px; }

.brand-icon { width: 40px; height: 40px; border-radius: 12px; }

.brand-title { font-size: 13px; }

.brand-subtitle { font-size: 10px; }

.language-toggle { min-width: 44px; }

.intro-copy h1,
 .hero-title { font-size: 36px; }

.control-head,
 .control-body { padding: 16px; }

.control-head { flex-wrap: wrap; }


}

@media (prefers-reduced-motion: reduce) {
.reveal-pending { opacity: 1; transform: none; }


}



/* Keep long portfolio headings readable within the opening viewport. */
.intro-copy h1 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.16; }
.hero-title { font-size: clamp(36px, 4.2vw, 60px); }
.intro-grid { align-items: start; }

/* Each cat belongs to its section, with reserved space below the content. */
section[id] {
  padding-bottom: 192px;
}

:is(#intro, #home, #projects, #stack, #experience, #playground, #contact) > .section-cat {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 10px;
  width: 180px;
  height: 160px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

@media (max-width: 620px) {
  section[id] { padding-bottom: 160px; }
  :is(#intro, #home, #projects, #stack, #experience, #playground, #contact) > .section-cat {
    right: 18px;
    bottom: 8px;
    width: 144px;
    height: 128px;
  }
}

@media (max-width: 400px) {
  #intro { padding-bottom: 240px; }
  #intro > .section-cat { bottom: 88px; }
}

/* Keep the Home cat close to the information card in the same column. */
#home {
  padding-bottom: 70px;
}

.home-sidebar {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-sidebar > .section-cat {
  display: block;
  justify-self: center;
  width: 300px;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 620px) {
  .home-sidebar > .section-cat { width: 216px; }
}

/* Center the larger sleeping cat in the space below the contact card. */
#contact {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding-bottom: 32px;
}

#contact > .section-cat {
  position: relative;
  right: auto;
  bottom: auto;
  justify-self: center;
  align-self: center;
  width: clamp(240px, 32vw, 380px);
  max-width: calc(100% - 40px);
  height: auto;
}

/* Warm amber and sage neon, matching the portfolio palette. */
:root { --nav-height: 106px; }
html { scroll-padding-top: calc(var(--nav-height) + 20px); }
.navbar {
  background: linear-gradient(110deg, rgba(14, 18, 16, .97), rgba(18, 23, 19, .95) 60%, rgba(32, 25, 16, .96));
  border-bottom: 1px solid rgba(231, 183, 95, .3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 1px 18px rgba(231, 183, 95, .12);
  backdrop-filter: blur(18px);
}
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(143, 185, 150, .025) 5px 6px);
  pointer-events: none;
}
.navbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e7b75f 24%, transparent 48%, #8fb996 78%, transparent);
  box-shadow: 0 0 12px rgba(231, 183, 95, .28);
  opacity: .9;
  animation: warm-neon-flicker 17s linear infinite;
  pointer-events: none;
}
.navbar > .container { position: relative; width: min(1440px, calc(100% - 64px)); }
.navbar .nav-inner { height: var(--nav-height); gap: 24px; }
.navbar .brand { gap: 14px; min-width: 0; }
.navbar .brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px 6px 16px 6px;
  border-color: rgba(231, 183, 95, .65);
  box-shadow: 0 0 0 4px rgba(231, 183, 95, .045), 0 0 22px rgba(231, 183, 95, .15) !important;
}
.navbar .brand-title { font-size: 17px; letter-spacing: .025em; }
.navbar .brand-subtitle { font-size: 13px; margin-top: 5px; color: #c8bfae; }
.navbar .nav-links {
  gap: 4px;
  padding: 7px;
  border-radius: 12px 4px 12px 4px;
  border-color: rgba(231, 183, 95, .25) !important;
  background: rgba(14, 18, 16, .7);
  box-shadow: inset 0 0 24px rgba(231, 183, 95, .035);
}
.navbar .nav-links a { padding: 14px 18px; font-size: 15px; font-weight: 600; border-radius: 7px 2px 7px 2px; white-space: nowrap; }
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #f4d69d;
  background: rgba(231, 183, 95, .12) !important;
  box-shadow: inset 0 -2px #e7b75f, 0 0 16px rgba(231, 183, 95, .08);
  text-shadow: 0 0 14px rgba(231, 183, 95, .35);
}
.navbar .nav-actions { gap: 12px; }
.navbar .language-toggle,
.navbar .mobile-toggle {
  height: 52px;
  min-width: 56px;
  border-radius: 12px 4px 12px 4px;
  border-color: rgba(231, 183, 95, .35) !important;
  color: #f4d69d;
  background: rgba(231, 183, 95, .055);
}
.navbar .language-toggle { font-size: 15px; }
.navbar .mobile-toggle { width: 56px; font-size: 26px; }
.navbar .desktop-contact { min-height: 52px; padding: 14px 23px; font-size: 15px; border-radius: 12px 4px 12px 4px; white-space: nowrap; }
.navbar .mobile-menu { max-height: calc(100dvh - var(--nav-height)); border-color: rgba(231, 183, 95, .2); }
.navbar .mobile-menu a { font-size: 16px; padding: 15px 18px; }
.navbar .mobile-menu a.active { color: #f4d69d; box-shadow: inset 3px 0 #e7b75f; }
#intro { padding-top: calc(var(--nav-height) + 46px); }
@media (max-width: 1380px) {
  .navbar .nav-links, .navbar .desktop-contact { display: none; }
  .navbar .nav-actions { margin-left: auto; }
  .navbar .mobile-toggle { display: block; }
  .navbar .mobile-menu.open, .no-js .navbar .mobile-menu { display: block; }
}
@media (max-width: 620px) {
  :root { --nav-height: 90px; }
  .navbar > .container { width: calc(100% - 32px); }
  .navbar .nav-inner { gap: 12px; }
  .navbar .brand { gap: 10px; flex-shrink: 1; }
  .navbar .brand > div:last-child { min-width: 0; }
  .navbar .brand-icon { width: 50px; height: 50px; }
  .navbar .brand-title { font-size: 15px; }
  .navbar .brand-subtitle { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .navbar .language-toggle, .navbar .mobile-toggle { min-width: 48px; width: 48px; height: 48px; }
  .navbar .nav-actions { gap: 0; }
  #intro { padding-top: calc(var(--nav-height) + 32px); }
}
@media (max-width: 400px) {
  .navbar > .container { width: calc(100% - 24px); }
  .navbar .nav-inner { gap: 8px; }
  .navbar .brand { gap: 8px; }
  .navbar .brand-icon { width: 44px; height: 44px; }
  .navbar .brand-title { font-size: 14px; }
  .navbar .brand-subtitle { font-size: 10px; }
  .navbar .language-toggle, .navbar .mobile-toggle { min-width: 44px; width: 44px; height: 46px; }
}

/* Brief, low-intensity dips affect only the decorative edge light. */
@keyframes warm-neon-flicker {
  0%, 58%, 61%, 100% { opacity: .9; }
  58.4%, 59% { opacity: .55; }
  59.4%, 60% { opacity: .82; }
  60.3%, 60.6% { opacity: .66; }
}

@media (prefers-reduced-motion: reduce) {
  .navbar::after { animation: none; opacity: .9; }
}

/* Concise introduction and project summaries with real interface previews. */
.intro-copy h1 {
  max-width: 650px;
  margin-top: 0;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.intro-copy > p { max-width: 560px; font-size: 18px; }
#projects .section-title { max-width: 780px; }
.projects-grid { gap: 24px; align-items: stretch; }
.project-card { min-width: 0; }
.project-card .project-top { align-items: center; margin-bottom: 22px; }
.project-number { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; letter-spacing: .16em; }
.project-featured h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.035em; }
#project-qbcore h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.25; text-wrap: balance; }
.project-card .project-type { color: #d8b87e; font-size: 12px; letter-spacing: .08em; }
.project-features { display: grid; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.project-features li { position: relative; padding-left: 19px; color: var(--text); font-size: 14px; line-height: 1.55; }
.project-features li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: #8fb996; }
.project-card .tags { padding-top: 24px; margin-top: auto; }
.project-card-gallery { margin-top: 24px; padding: 0; }
.project-card-gallery .image-slider { border-radius: 18px; }
.project-card-gallery .image-slide { aspect-ratio: auto; }
.project-card-gallery .image-slide::after { display: none; }
.project-card-gallery .image-zoom { height: auto; aspect-ratio: 16 / 10; background: #111714; }
.project-card-gallery .image-slide img { width: 100%; height: 100%; object-fit: contain; }
.project-card-gallery .image-slide figcaption { position: static; padding: 12px 16px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); text-shadow: none; }
.project-card-gallery .image-nav { top: calc(50% - 20px); }
.project-card-gallery .image-dots { margin-top: 4px; }
.project-card-gallery .image-counter { display: none; }
.project-media-hint { margin: 20px 0 -12px; color: var(--muted); font-size: 12px; }
.project-dashboard-preview { margin-top: 24px; }
.project-dashboard-preview a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.project-dashboard-preview img { display: block; width: 100%; height: 210px; object-fit: contain; background: #101512; }
.project-dashboard-preview figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 620px) {
  .intro-copy h1 { font-size: clamp(36px, 9.8vw, 48px); }
  .intro-copy > p { font-size: 16px; }
  .project-card { padding: 22px; border-radius: 26px; }
  .project-card-gallery .image-nav { width: 44px; height: 44px; }
  .project-card-gallery .image-nav-prev { left: 6px; }
  .project-card-gallery .image-nav-next { right: 6px; }
}

/* Pixel-art characters rest on the navbar's lower edge beside the bio. */
.navbar .brand { position: relative; height: 100%; padding-right: 116px; }
.navbar .brand-copy { min-width: 0; }
.navbar .brand-character {
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 104px;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 1381px) and (max-width: 1599px) {
  .navbar .nav-inner { gap: 16px; }
  .navbar .nav-links a { padding-inline: 11px; }
}
@media (max-width: 620px) {
  .navbar .brand { padding-right: 54px; }
  .navbar .brand-character { width: 48px; bottom: -2px; }
}
@media (max-width: 400px) {
  .navbar .brand { padding-right: 38px; gap: 6px; }
  .navbar .brand-character { width: 32px; bottom: -1px; }
  .navbar .brand-title { font-size: 13px; white-space: nowrap; }
}

/* QBCore project: use the available card space more confidently. */
#project-qbcore .project-features {
  gap: 14px;
  margin-top: 30px;
}

#project-qbcore .project-features li {
  padding-left: 24px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  font-weight: 600;
}

#project-qbcore .project-features li::before {
  top: 0.58em;
  width: 7px;
  height: 7px;
}

@media (max-width: 620px) {
  #project-qbcore .project-features {
    gap: 11px;
    margin-top: 24px;
  }

  #project-qbcore .project-features li {
    padding-left: 21px;
    font-size: 16px;
  }

  #project-qbcore .project-features li::before {
    width: 6px;
    height: 6px;
  }
}
