:root {
  --bg: #020a13;
  --panel: #0d1620;
  --panel2: #111c27;
  --line: rgba(218, 255, 45, 0.24);
  --lime: #d9ff32;
  --text: #f4f7f9;
  --muted: #8f9aa7;
  --cyan: #18d9e8;
  --max: 1080px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 24%, rgba(0, 210, 225, 0.08), transparent 30%),
    radial-gradient(circle at 15% 80%, rgba(217, 255, 50, 0.05), transparent 26%);
}

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

button {
  font: inherit;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}


.navbar {
  width: min(1120px, calc(100% - 48px));
  height: 76px;
  margin: auto;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  font-size: 32px;
  color: var(--lime);
  filter: drop-shadow(0 0 10px rgba(217, 255, 50, 0.45));
}

.brand strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.8px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #87909c;
  font-size: 8px;
}

.navbar > nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  white-space: nowrap;
}

.navbar > nav a {
  position: relative;
  padding: 12px 0;
  color: #d0d5da;
  font-size: 10px;
  transition: color 0.25s ease;
}

.navbar > nav a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(217, 255, 50, 0.5);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar > nav a:hover,
.navbar > nav a.active {
  color: #fff;
}

.navbar > nav a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.icon-btn img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  background-color: rgba(217, 255, 50, 0.06);
  box-shadow: 0 0 16px rgba(217, 255, 50, 0.3);
}

.icon-btn:hover img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 5px rgba(217, 255, 50, 0.6));
}

.talk-btn,
.primary-btn {
  padding: 12px 18px;
  border-radius: 30px;
  background: var(--lime);
  color: #071008;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(217, 255, 50, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.talk-btn span,
.primary-btn span {
  margin-left: 10px;
}

.talk-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  background: #e4ff58;
  box-shadow: 0 8px 28px rgba(217, 255, 50, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}



.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 10px;
  min-height: 670px;
}

#neuralCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 55px 0 100px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid #59636e;
  border-radius: 30px;
  color: #d8dde2;
  font-size: 10px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero h2 {
  margin-top: 8px;
  color: var(--lime);
  font-size: 31px;
}

.hero h3 {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 600;
}

.hero p {
  max-width: 460px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

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

.secondary-btn {
  padding: 12px 18px;
  border: 1px solid #4a5561;
  border-radius: 30px;
  color: #dce1e5;
  font-size: 10px;
  font-weight: 700;
  transition: 0.25s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  color: var(--lime);
}



.find-me {
  margin-top: 24px;
}

.find-me > span {
  display: block;
  margin-bottom: 10px;
  color: #88939e;
  font-size: 9px;
}

.find-me > div {
  display: flex;
  gap: 10px;
}

.round-link {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.round-link img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.round-link:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  background-color: rgba(217, 255, 50, 0.06);
  box-shadow: 0 0 18px rgba(217, 255, 50, 0.3);
}

.round-link:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 5px rgba(217, 255, 50, 0.55));
}

/* Hero image */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 600px;             
  margin-right: -55px;       
}

.portrait-halo {
  position: absolute;
  width: 560px;               
  height: 560px;              
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 232, 221, 0.15), transparent 66%);
  filter: blur(3px);
}

.portrait-frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 115%;                
  height: 100%;
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(2, 10, 19, 0.08),
      transparent 28%,
      transparent 75%,
      rgba(2, 10, 19, 0.18)
    ),
    linear-gradient(
      0deg,
      rgba(2, 10, 19, 0.55),
      transparent 42%
    );
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: normal;
  filter: contrast(1.15) brightness(0.9) saturate(0.9);
  transform: scale(1.4);
  transform-origin: center bottom;
}



.quick-strip {
  position: absolute;
  z-index: 4;
  right: 40px;
  bottom: 10px;
  left: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(13, 22, 32, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.quick-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-item:last-child {
  border-right: 0;
}

.quick-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.quick-icon img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(217, 255, 50, 0.35));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.quick-item:hover .quick-icon {
  transform: translateY(-4px);
}

.quick-item:hover .quick-icon img {
  transform: scale(1.16) rotate(-4deg);
  filter:
    drop-shadow(0 0 6px rgba(217, 255, 50, 0.8))
    drop-shadow(0 0 16px rgba(217, 255, 50, 0.45));
}

.quick-item strong,
.quick-item small {
  display: block;
  transition: color 0.28s ease, transform 0.28s ease;
}

.quick-item:hover strong {
  color: var(--lime);
}

.quick-item strong {
  font-size: 11px;
}

.quick-item small {
  margin-top: 4px;
  color: #8994a0;
  font-size: 10px;
}



.section-heading {
  padding: 65px 0 30px;
  text-align: center;
}

.section-heading span {
  font-size: 22px;
  font-weight: 800;
}

.section-heading i {
  display: block;
  width: 38px;
  height: 3px;
  margin: 9px auto 0;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(217, 255, 50, 0.3);
}



.about {
  padding-top: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.about-card,
.stat,
.skill-card,
.project-card,
.contact-card {
  border: 1px solid rgba(217, 255, 50, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 29, 40, 0.96), rgba(8, 16, 24, 0.96));
}

.about-card {
  padding: 32px;
}

.mini-label {
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.about h2 {
  max-width: 620px;
  margin: 12px 0;
  font-size: 29px;
  line-height: 1.25;
}

.about em,
.contact em {
  color: var(--lime);
  font-style: normal;
}

.about p,
.contact p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  transition: 0.3s ease;
}

.stat img {
  width: 85px;
  height: 85px;
  margin-bottom: 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(217, 255, 50, 0.12));
}

.stat span {
  margin-top: 2px;
  color: #8d98a3;
  font-size: 10px;
}

/* ========================================
   SKILLS & CAROUSEL
======================================== */

.skills-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.skills-viewport {
  width: 100%;
  overflow: hidden;
  padding: 10px 4px;
}

.skills-track {
  display: flex;
  gap: 16px;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Desktop: 3 Cards per view */
.skill-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  min-height: 205px;
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skills-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(217, 255, 50, 0.38);
  border-radius: 50%;
  background: rgba(13, 22, 32, 0.9);
  color: var(--lime);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(217, 255, 50, 0.08);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.skills-arrow:hover {
  transform: scale(1.12);
  background: var(--lime);
  color: #071008;
  box-shadow: 0 0 24px rgba(217, 255, 50, 0.38);
}

.skills-arrow:active {
  transform: scale(0.95);
}

.skill-card:hover,
.project-card:hover,
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 255, 50, 0.5);
}

.skill-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 14px;
}

.skill-icon img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.skill-card h3 {
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.skill-card li {
  margin: 8px 0;
  color: #bdc5cc;
  font-size: 10px;
  list-style: none;
}

.skill-card li::before {
  margin-right: 7px;
  color: var(--lime);
  content: "•";
}

/* ========================================
   PROJECTS
======================================== */

.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #17222d;
  color: #aeb7c0;
  font-size: 9px;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter.active,
.filter:hover {
  background: var(--lime);
  color: #091009;
}

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

.project-card {
  overflow: hidden;
  transition: 0.3s ease;
}

.project-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 115px;
  background: #0a121b;
}

.clustering span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3ad3ff;
  box-shadow: 0 0 15px #3ad3ff;
}

.clustering span:nth-child(1) {
  top: 42%;
  left: 28%;
}

.clustering span:nth-child(2) {
  top: 35%;
  left: 50%;
  background: var(--lime);
  box-shadow: 0 0 15px var(--lime);
}

.clustering span:nth-child(3) {
  top: 55%;
  left: 68%;
  background: #5c6cff;
  box-shadow: 0 0 15px #5c6cff;
}

.digits {
  flex-direction: column;
  gap: 6px;
}

.digits span {
  color: #e9edf1;
  font-size: 16px;
  letter-spacing: 7px;
}

.digits span:first-child {
  color: #fff;
}

.pets span {
  margin: 0 4px;
  font-size: 52px;
}

.waveform {
  gap: 3px;
}

.waveform i {
  display: block;
  width: 5px;
  height: 30px;
  border-radius: 10px;
  background: #17e6a2;
  box-shadow: 0 0 8px rgba(23, 230, 162, 0.45);
  animation: wave 1s ease-in-out infinite alternate;
}

.waveform i:nth-child(2n) {
  height: 60px;
}

.waveform i:nth-child(3n) {
  height: 42px;
}

.waveform i:nth-child(4n) {
  height: 72px;
}

@keyframes wave {
  to {
    transform: scaleY(0.45);
  }
}

.project-body {
  padding: 15px;
}

.project-body h3 {
  margin-bottom: 7px;
  font-size: 12px;
}

.project-body p {
  min-height: 30px;
  color: #8d98a3;
  font-size: 9px;
  line-height: 1.6;
}

.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tags b {
  padding: 4px 6px;
  border: 1px solid rgba(217, 255, 50, 0.2);
  border-radius: 10px;
  background: rgba(217, 255, 50, 0.05);
  color: #cfe2a0;
  font-size: 7px;
}

.project-body > a {
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
}

.project-card.hidden {
  display: none;
}



.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 10px 0 40px;
}

.timeline-line {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 12px;
  width: 1px;
  background: rgba(217, 255, 50, 0.25);
}

.timeline article {
  position: relative;
  margin: 0 0 32px;
  padding-left: 45px;
}

.dot {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 15px rgba(217, 255, 50, 0.55);
}

.timeline small {
  color: var(--lime);
  font-size: 8px;
}

.timeline h3 {
  margin: 6px 0;
  font-size: 16px;
}

.timeline p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}



.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 70px;
  padding: 42px;
}

.contact h2 {
  margin: 9px 0;
  font-size: 34px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 6%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #66717c;
  font-size: 8px;
  letter-spacing: 0.6px;
}



.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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



@media (max-width: 1050px) and (min-width: 761px) {
  .navbar > nav {
    gap: 18px;
  }

  .navbar {
    gap: 14px;
  }
}

@media (max-width: 950px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero h2 {
    font-size: 27px;
  }

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

  .skills-slider {
    gap: 12px;
  }

  .skills-track {
    gap: 12px;
  }


  .skill-card {
    flex: 0 0 calc((100% - 12px) / 2);
  }

  .skills-arrow {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  .navbar {
    width: min(100% - 28px, 700px);
    display: flex;
    justify-content: space-between;
    height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .navbar > nav {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #07111a;
  }

  .navbar > nav.open {
    display: flex;
  }

  .navbar > nav a {
    width: 100%;
    padding: 10px 12px;
  }

  .nav-actions .icon-btn {
    display: none;
  }

  .talk-btn {
    padding: 10px 12px;
    font-size: 9px;
  }


  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 0;
    padding-bottom: 0;
  }

  .hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 0 22px;
    text-align: center;
  }

  .hero p {
    max-width: 520px;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: 360px;
    margin: -10px 0 0;
    opacity: 0.88;
    order: 2;
  }

  .portrait-frame {
    width: 100%;
    height: 100%;
  }

  .portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.05);
  }

  .portrait-halo {
    width: min(90vw, 420px);
    height: min(90vw, 420px);
  }

  .quick-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: -18px;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    order: 3;
  }

  .quick-item {
    padding: 8px;
  }

  .quick-item:nth-child(2) {
    border-right: 0;
  }

  .quick-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .section {
    width: min(100% - 28px, 700px);
  }

  .section-heading {
    padding-top: 48px;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact h2 {
    font-size: 27px;
  }
}

@media (max-width: 600px) {
  .project-art {
    height: 185px;
  }

  .project-art.digits {
    background-position: center 40%;
  }
}

@media (max-width: 500px) {
  .brand strong {
    font-size: 11px;
  }

  .brand small {
    font-size: 7px;
  }

  .hero-copy {
    padding-top: 36px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    letter-spacing: -1.5px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero h3 {
    font-size: 16px;
    line-height: 1.35;
  }

  .hero p {
    max-width: 330px;
    margin: 16px 0 20px;
    font-size: 11px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 290px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .primary-btn,
  .secondary-btn {
    padding: 14px 18px;
  }

  .find-me {
    margin-top: 22px;
  }

  .find-me > div {
    justify-content: center;
  }

  .round-link {
    width: 58px;
    height: 58px;
  }

  .round-link img {
    width: 52px;
    height: 52px;
  }

  .hero-visual {
    height: 330px;
    margin-top: 0;
  }

  .portrait-frame img {
    object-position: center bottom;
    transform: scale(1.02);
  }

  .portrait-halo {
    width: 360px;
    height: 360px;
  }

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

  .skills-slider {
    gap: 8px;
  }

  .skills-track {
    gap: 8px;
  }

  /* Mobile: 1 Card */
  .skill-card {
    flex: 0 0 100%;
  }

  .skills-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .filters {
    justify-content: flex-start;
  }

  .contact-card {
    padding: 28px;
  }

  .contact .primary-btn {
    width: 100%;
    text-align: center;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .quick-icon {
    width: 42px;
    height: 42px;
  }

  .quick-icon img {
    width: 36px;
    height: 36px;
  }

  .quick-item {
    gap: 9px;
  }

  .quick-item strong {
    font-size: 10px;
  }

  .quick-item small {
    font-size: 9px;
  }
}
.project-art {
  width: 100%;
  height: 205px; 
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(24, 217, 232, 0.14);

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.project-art.cifar {
    background-image: url('../assets/images/cifar100.png');
    background-size: cover;
    background-position: center;
    position: relative;
}


.project-art.cifar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 13, 0.4); 
    transition: background 0.3s ease;
}

.project-card:hover .project-art.cifar::after {
    background: rgba(5, 6, 13, 0.1); 
}
/*co2*/
.project-art.co2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 13, 0.4); 
    transition: background 0.3s ease;
}

.project-card:hover .project-art.co2::after {
    background: rgba(5, 6, 13, 0.1); 
}

.project-art.co2 {
    background-image: url('../assets/images/co2.png');
    background-size: cover;
    background-position: center 42%;
    position: relative;
}

.project-art.co2 {
    background: url("../assets/images/co2.png") center center / cover no-repeat !important;
}

.project-art.digits {
    background-image: url('../assets/images/persian-digits.png');
    background-size: cover;
    background-position: center 42%;
    position: relative;
}

.project-art.digits::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 13, 0.4); 
    transition: background 0.3s ease;
}

.project-card:hover .project-art.digits::after {
    background: rgba(5, 6, 13, 0.15);
}

/* Dogs vs Cats Card Artwork */
.project-art.dogscats {
  background-image: url('../assets/images/cats-vs-dogs.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.project-art.dogscats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 13, 0.4); 
    transition: background 0.3s ease;
}

.project-card:hover .project-art.dogscats::after {
    background: rgba(5, 6, 13, 0.15);
}


.project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(180, 255, 57, 0.18);
  border-radius: 18px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;

  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg 285deg,
    #00f5d4 310deg,
    #b4ff39 335deg,
    transparent 360deg
  );

  
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;

  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}


.project-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(18px - 2px);
  background: inherit;
  z-index: -1;
  pointer-events: none;
}


@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}


.project-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow:
    0 12px 30px rgba(0, 245, 212, 0.12),
    0 0 24px rgba(180, 255, 57, 0.08);
}

.project-card:hover::before {
  opacity: 1;
  animation: border-spin 2.4s linear infinite;
}

@keyframes border-spin {
  to {
    --border-angle: 360deg;
  }
}


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



.mobile-portrait {
  display: none;
}

.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(24, 217, 232, 0.28);
  border-radius: 12px;
  background: rgba(7, 17, 26, 0.72);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #18d9e8;
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle:hover {
  transform: translateY(-2px);
  background: rgba(24, 217, 232, 0.08);
  border-color: rgba(24, 217, 232, 0.7);
}

.menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .navbar {
    gap: 10px;
  }

  
  .navbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .brand {
    grid-column: 1;
  }

  .nav-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    align-items: center;
    justify-content: center;
    order: 0;
  }

  .navbar > nav {
    grid-column: 1 / -1;
    top: 72px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    display: flex;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .navbar > nav.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  
  .mobile-portrait {
    display: block;
    width: 100%;
    height: 255px;
    margin: 2px 0 8px;
  }

  .mobile-portrait .hero-visual {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 1;
    order: initial;
  }

  .mobile-portrait .portrait-frame {
    width: 100%;
    height: 100%;
  }

  .mobile-portrait .portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.02);
  }

  .mobile-portrait .portrait-halo {
    width: min(72vw, 280px);
    height: min(72vw, 280px);
  }

  
  .hero > .hero-visual {
    display: none;
  }

  .hero-copy {
    padding-top: 32px;
  }
}

@media (max-width: 500px) {
  .mobile-portrait {
    height: 235px;
    margin: 0 0 6px;
  }

  .mobile-portrait .portrait-frame img {
    transform: scale(1);
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .talk-btn {
    padding: 10px 11px;
    white-space: nowrap;
  }
}



@media (max-width: 760px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 68px;
    height: 68px;
    overflow: visible;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  
  .nav-actions {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
  }

  .nav-actions .talk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .menu-toggle {
    order: 3;
    flex: 0 0 44px;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(24, 217, 232, 0.45);
    border-radius: 12px;
    background: rgba(7, 17, 26, 0.92);
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .menu-toggle:focus,
  .menu-toggle:active {
    outline: none;
    background: rgba(7, 17, 26, 0.92);
  }

  .menu-toggle:hover {
    transform: none;
    background: rgba(7, 17, 26, 0.92);
    border-color: rgba(24, 217, 232, 0.7);
  }

  .menu-toggle span {
    left: 50%;
    width: 20px;
    margin-left: -10px;
  }

 .navbar > nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: auto;
    box-sizing: border-box;
    z-index: 50;
    padding: 14px;
    background: rgba(10, 19, 29, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(24, 217, 232, 0.2);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(24, 217, 232, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }


  .navbar > nav a::after {
    display: none;
  }


  .navbar > nav a {
    width: 100%;
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #cfd8dc;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
  }


  .navbar > nav a:hover,
  .navbar > nav a:focus-visible {
    color: var(--lime);
    background: rgba(217, 255, 50, 0.08);
    border-color: rgba(217, 255, 50, 0.28);
    transform: translateX(5px);
    box-shadow:
      0 0 15px rgba(217, 255, 50, 0.08),
      inset 0 0 10px rgba(217, 255, 50, 0.04);
  }
}

@media (max-width: 500px) {
  .navbar {
    gap: 8px;
    height: 66px;
    min-height: 66px;
  }

  .menu-toggle {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .menu-toggle span:nth-child(1) { top: 13px; }
  .menu-toggle span:nth-child(2) { top: 20px; }
  .menu-toggle span:nth-child(3) { top: 27px; }

  .menu-toggle.active span:nth-child(1),
  .menu-toggle.active span:nth-child(3) {
    top: 20px;
  }

  .nav-actions .talk-btn {
    padding: 10px 13px;
  }
}


/* ===== SEO PROJECTS PAGE ===== */
.projects-more { text-align: center; margin-top: 30px; }
.projects-page { min-height: calc(100vh - 160px); padding: 70px 0 90px; }
.projects-hero { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.projects-hero h1 { margin: 18px 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.08; }
.projects-hero h1 em { color: var(--lime); font-style: normal; }
.projects-hero p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.project-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.project-detail-card { padding: 30px; border: 1px solid rgba(217,255,50,.18); border-radius: 18px; background: linear-gradient(145deg, rgba(18,29,40,.96), rgba(8,16,24,.96)); transition: transform .3s ease, border-color .3s ease; }
.project-detail-card:hover { transform: translateY(-6px); border-color: rgba(217,255,50,.5); }
.project-detail-card h2 { margin: 12px 0; font-size: 23px; }
.project-detail-card p { min-height: 78px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.project-meta { margin: 18px 0 24px; color: var(--cyan); font-size: 11px; letter-spacing: .4px; }
@media (max-width: 760px) {
  .project-detail-grid { grid-template-columns: 1fr; }
  .projects-page { padding-top: 35px; }
  .projects-hero { text-align: left; }
}
