/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}

/* ===================== TOKENS ===================== */
:root {
  --ink: #0b0e14;
  --ink2: #10141d;
  --ink-border: #2a2e3a;
  --hairline: rgba(255, 255, 255, 0.08);
  --paper: #f5f3ee;
  --paper-border: #e3dfd4;
  --indigo: #5b5fef;
  --indigo-light: #8b8fff;
  --indigo-dim: #3d3fa8;
  --slate-300: #c7cad3;
  --slate-400: #9ca3af;
  --slate-500: #6b7280;
  --slate-600: #565e6d;
  --slate-700: #3a3f4b;
  --font-display: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
}
.font-mono {
  font-family: var(--font-mono);
}

::selection {
  background: var(--indigo);
  color: var(--paper);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .wrap {
    padding: 0 40px;
  }
}

/* ===================== UTILITIES ===================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--indigo-light);
  display: block;
  margin-bottom: 20px;
}
.eyebrow.dark {
  color: var(--indigo-light);
}

.grid-backdrop {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

.glow-text {
  text-shadow: 0 0 30px rgba(139, 143, 255, 0.35);
}

.noise-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== NAV ===================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}
header.scrolled {
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paper);
}

.logo-mark img {
  border-radius: 2px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-text span {
  color: var(--indigo-light);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-300);
}
.nav-links a {
  position: relative;
  transition: color 0.25s ease;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--indigo-light), var(--indigo-light));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s ease;
}
.nav-links a:hover {
  color: var(--paper);
  background-size: 100% 1px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  display: none;
}
@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #6366f1, #5b5fef 60%, #4c4fd9);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.15) inset,
      0 12px 30px -8px rgba(91, 95, 239, 0.5);
    transition:
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.3s ease;
  }
  .nav-cta:hover {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.2) inset,
      0 16px 40px -8px rgba(91, 95, 239, 0.65);
  }
}

.menu-btn {
  display: block;
  color: var(--indigo-light);
}
@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background: var(--ink2);
  border-top: 1px solid var(--hairline);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--slate-300);
}
.mobile-menu a.cta-link {
  color: var(--indigo-light);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-radius: 12px;
  white-space: nowrap;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.btn-primary {
  color: var(--paper);
  background: linear-gradient(135deg, #6366f1, #5b5fef 60%, #4c4fd9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 12px 30px -8px rgba(91, 95, 239, 0.55);
  padding: 14px 28px;
}
.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 16px 40px -8px rgba(91, 95, 239, 0.7);
}
.btn-ghost {
  color: var(--paper);
  border: 1px solid var(--slate-700);
  padding: 14px 28px;
}
.btn-ghost:hover {
  border-color: var(--indigo-light);
  background: rgba(139, 143, 255, 0.06);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 160px 0 110px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero {
    padding: 190px 0 140px;
  }
}

.hero-glow {
  position: absolute;
  top: -130px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 95, 239, 0.3), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-400);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 28px;
}
.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.4rem;
  }
}
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.6rem;
  }
}
.hero h1 .accent {
  display: block;
  color: var(--indigo-light);
}

.hero p.sub {
  font-size: 1.125rem;
  color: var(--slate-400);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-500);
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--slate-700);
}

/* Terminal card */
.terminal-card {
  background: linear-gradient(180deg, #11141c 0%, #0d1019 100%);
  border: 1px solid var(--ink-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.term-dot.red {
  background: #ff5f57;
}
.term-dot.amber {
  background: #febc2e;
}
.term-dot.green {
  background: #28c840;
}
.term-label {
  margin-left: 10px;
  color: var(--slate-500);
  font-size: 12px;
}
.term-body {
  padding: 26px;
  min-height: 290px;
  color: var(--slate-300);
}
.term-body div {
  margin-bottom: 9px;
}
.term-prompt {
  color: var(--slate-400);
}
.term-ok {
  color: var(--slate-500);
}
.term-done {
  color: #4ade80;
  font-weight: 500;
}
.term-cursor {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--slate-700);
  color: var(--indigo-light);
}
.term-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--indigo-light);
  vertical-align: -0.15em;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* ===================== TECH MARQUEE ===================== */
.marquee-section {
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--ink-border);
}

.marquee-viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--slate-400);
  white-space: nowrap;
  opacity: 0.75;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
  flex-shrink: 0;
}
.tech-item:hover {
  opacity: 1;
  color: var(--paper);
}
.tech-item svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ===================== SECTIONS ===================== */
section {
  position: relative;
}
.section-pad {
  padding: 110px 0;
}
@media (min-width: 1024px) {
  .section-pad {
    padding: 145px 0;
  }
}

.light {
  background: var(--ink2);
  color: var(--paper);
}

h2.section-title {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
@media (min-width: 640px) {
  h2.section-title {
    font-size: 2.6rem;
  }
}
@media (min-width: 1024px) {
  h2.section-title {
    font-size: 3rem;
  }
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  gap: 64px;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-grid p.lead {
  font-size: 1.125rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 24px;
}

.highlight-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.highlight-card:hover {
  border-color: rgba(139, 143, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(91, 95, 239, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.highlight-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--paper);
}
.highlight-card p {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.55;
}

/* =================== CAPABILITIES — FILE EXPLORER =================== */
.capabilities-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 56px;
}
@media (min-width: 1024px) {
  .capabilities-head {
    flex-direction: row;
    align-items: flex-end;
  }
}
.capabilities-head p {
  color: var(--slate-400);
  max-width: 360px;
}

.explorer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--ink-border);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #11141c 0%, #0d1019 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 40px 100px -30px rgba(0, 0, 0, 0.65);
}
@media (min-width: 900px) {
  .explorer {
    grid-template-columns: 340px 1fr;
  }
}

.explorer-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.explorer-bar .term-label {
  margin-left: 10px;
}

.explorer-tree {
  border-right: 1px solid var(--hairline);
  padding: 18px 10px;
  max-height: 480px;
  overflow-y: auto;
}
.tree-root {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-500);
  padding: 6px 12px 12px;
  letter-spacing: 0.02em;
}
.tree-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-400);
  position: relative;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.tree-item .tree-icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.tree-item .tree-num {
  color: var(--slate-600);
  font-size: 11px;
  width: 18px;
  flex-shrink: 0;
}
.tree-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--slate-300);
}
.tree-item.active {
  background: rgba(91, 95, 239, 0.12);
  color: var(--paper);
}
.tree-item.active .tree-icon {
  opacity: 1;
}
.tree-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--indigo-light);
  border-radius: 2px;
}

.explorer-preview {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}
.preview-path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-500);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-path .sep {
  color: var(--slate-700);
}
.preview-path .file {
  color: var(--indigo-light);
}

.preview-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(91, 95, 239, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.preview-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--paper);
}
.preview-desc {
  font-size: 1rem;
  color: var(--slate-400);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 26px;
}
.preview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preview-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-400);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
}

/* fade transition for preview swap */
.preview-fade {
  animation: previewIn 0.35s ease;
}
@keyframes previewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* custom scrollbar for the tree, webkit only — degrades gracefully elsewhere */
.explorer-tree::-webkit-scrollbar {
  width: 6px;
}
.explorer-tree::-webkit-scrollbar-track {
  background: transparent;
}
.explorer-tree::-webkit-scrollbar-thumb {
  background: var(--ink-border);
  border-radius: 3px;
}

/* ===================== PORTFOLIO ===================== */
.portfolio-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 72px;
}
@media (min-width: 1024px) {
  .portfolio-head {
    flex-direction: row;
    align-items: flex-end;
  }
}
.portfolio-head p {
  color: var(--slate-400);
  max-width: 360px;
}

.pf-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pf-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
.pf-row:first-child {
  border-top: none;
}

@media (min-width: 860px) {
  .pf-row {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
  .pf-row.flip {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .pf-row.flip .pf-visual {
    order: 2;
  }
  .pf-row.flip .pf-info {
    order: 1;
  }
}

/* ghost index number behind each row */
.pf-index {
  position: absolute;
  top: 8px;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
@media (min-width: 860px) {
  .pf-index {
    font-size: 8rem;
  }
}

.pf-info {
  position: relative;
  z-index: 1;
}
.pf-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--indigo-light);
  margin-bottom: 18px;
}
.pf-eyebrow-row .pf-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--indigo-light);
}

.pf-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--paper);
  transition: color 0.3s ease;
}
@media (min-width: 640px) {
  .pf-name {
    font-size: 2.3rem;
  }
}

.pf-desc {
  color: var(--slate-400);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 24px;
}

.pf-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pf-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-400);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 13px;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}
.pf-row:hover .pf-meta span {
  border-color: rgba(139, 143, 255, 0.3);
  color: var(--slate-300);
}

.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--indigo-light), var(--indigo-light));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-row:hover .pf-link {
  background-size: 100% 1px;
}
.pf-link svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-row:hover .pf-link svg {
  transform: translate(3px, -3px);
}

/* visual / artwork side */
.pf-visual {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--hairline);
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
.pf-row:hover .pf-visual {
  border-color: rgba(139, 143, 255, 0.35);
  box-shadow: 0 40px 90px -25px rgba(91, 95, 239, 0.35);
}

.pf-art {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-row:hover .pf-art {
  transform: scale(1.06);
}

.pf-art.g1 {
  background: url("assets/portfolio/reup.live.png") left/cover no-repeat;
  background-color: #9b9b9b;
}
.pf-art.g2 {
  background: url("assets/portfolio/UVSchools.png") left/cover no-repeat;
  background-color: #9b9b9b;
}
.pf-art.g3 {
  background: url("assets/portfolio/depuz.pk.png") left/cover no-repeat;
  background-color: #0a0f1e;
}
.pf-art.g4 {
  background: url("assets/portfolio/bookkeeping.jpeg") center/contain no-repeat;
}

.pf-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* floating glass badge on the visual */
.pf-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 14px 7px 8px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.pf-row:hover .pf-badge {
  opacity: 1;
  transform: translateY(0);
}
.pf-badge .pf-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-badge span.label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper);
}

.pf-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.testimonial-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(91, 95, 239, 0.3);
  border-color: rgba(139, 143, 255, 0.35);
}
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}
.testimonial-card p.quote {
  color: var(--slate-300);
  line-height: 1.65;
  margin-bottom: 24px;
}
.author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(91, 95, 239, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--indigo-light);
}
.author-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--paper);
}
.author-role {
  font-size: 0.78rem;
  color: var(--slate-500);
}

/* ===================== CONTACT CTA ===================== */
.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 100vmin);
  height: min(800px, 100vmin);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 95, 239, 0.28), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .contact-inner h2 {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .contact-inner h2 {
    font-size: 3.6rem;
  }
}
.contact-inner p.sub {
  color: var(--slate-400);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto 48px;
}
.contact-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .contact-ctas {
    flex-direction: row;
  }
}

/* ===================== FOOTER ===================== */
footer {
  border-top: 1px solid var(--hairline);
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 0;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-brand span.tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-300);
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a:hover {
  color: var(--paper);
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 10px;
}
.footer-social a {
  color: var(--slate-500);
  transition: color 0.25s ease;
}
.footer-social a:hover {
  color: var(--indigo-light);
}
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 18px 0 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-600);
}

@media (min-width: 768px) {
  .footer-brand {
    flex-direction: row;
  }
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--indigo-light);
  outline-offset: 3px;
  border-radius: 4px;
}
