/* ============================================================
   HAMZA TAHIR BAJWA — PORTFOLIO
   Premium Dark Cinematic Design System
   ============================================================ */

/* ─── CSS Custom Properties ─── */
:root {
  /* Backgrounds */
  --bg-primary: #050505;
  --bg-secondary: #0A0A0F;
  --bg-tertiary: #111114;
  --bg-card: rgba(17, 17, 20, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #F5F3F0;
  --text-secondary: #D9D6D1;
  --text-muted: #9A948C;
  --text-dim: #8A857E;

  /* Accents */
  --accent-amber: #FF9A3D;
  --accent-violet: #9B5CFF;
  --accent-gold: #F6C453;
  --accent-amber-glow: rgba(255, 154, 61, 0.15);
  --accent-violet-glow: rgba(155, 92, 255, 0.12);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(255, 154, 61, 0.3);

  /* Spacing */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --space-xl: clamp(2.5rem, 5vw, 4rem);
  --space-2xl: clamp(4rem, 8vw, 7rem);
  --space-3xl: clamp(6rem, 12vw, 10rem);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Shadows / Glow */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow-amber: 0 0 40px rgba(255, 154, 61, 0.15);
  --shadow-glow-violet: 0 0 40px rgba(155, 92, 255, 0.12);

  /* Typography */
  --font-display: 'Anton', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;

  /* Layout */
  --nav-height: 72px;
  --container-max: 1280px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent-amber);
  color: var(--bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ─── Grain Overlay ─── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ─── Custom Cursor ─── */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (pointer: fine) {
  .cursor-dot,
  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-amber);
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 154, 61, 0.4);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
  }

  .cursor-ring.hovered {
    width: 56px;
    height: 56px;
    border-color: var(--accent-amber);
  }

  body {
    cursor: none;
  }

  a, button, input, textarea, .project-card, .software-chip, .work__filter, .nav__link {
    cursor: none;
  }
}

/* ─── Typography Utilities ─── */
.text-accent {
  color: var(--accent-amber);
}

/* ─── Section Defaults ─── */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__header--left {
  text-align: left;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-amber);
  margin-bottom: var(--space-md);
}

.section__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section__subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: var(--space-md) auto 0;
  line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-amber);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: #FFB066;
  box-shadow: var(--shadow-glow-amber);
  transform: translateY(-2px);
}

.btn--glass {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--glass:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(255, 154, 61, 0.1);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--duration-normal), box-shadow var(--duration-normal), backdrop-filter var(--duration-normal);
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  letter-spacing: 4px;
  transition: color var(--duration-fast);
}

.nav__logo:hover {
  color: var(--accent-amber);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast);
  letter-spacing: 0.3px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link.active {
  background: rgba(255, 154, 61, 0.12);
  color: var(--accent-amber);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent-amber);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__cta:hover {
  background: #FFB066;
  box-shadow: var(--shadow-glow-amber);
  transform: translateY(-1px);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.nav__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-muted);
  letter-spacing: 3px;
  transition: color 0.3s, transform 0.3s;
}

.mobile-menu__link:hover {
  color: var(--accent-amber);
  transform: translateX(8px);
}

.mobile-menu__cta {
  margin-top: 20px;
  display: inline-flex;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  background: var(--accent-amber);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--container-padding) var(--space-xl);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}

.hero__glow--amber {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 154, 61, 0.12) 0%, transparent 70%);
  top: 10%;
  right: 15%;
  animation: float-glow 8s ease-in-out infinite;
}

.hero__glow--violet {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.1) 0%, transparent 70%);
  bottom: 20%;
  left: 10%;
  animation: float-glow 10s ease-in-out infinite reverse;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
}

.bg__canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  width: 100%;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-amber);
  margin-bottom: var(--space-lg);
}

.hero__label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 0.95;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-amber);
  text-stroke: 2px var(--accent-amber);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  min-width: 140px;
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px rgba(255, 154, 61, 0.08);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-primary);
  letter-spacing: 1px;
}

.stat-card__plus {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--accent-amber);
}

.stat-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* Scroll Cue */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   WORK / PROJECTS — Horizontal Auto-Scroll
   ============================================================ */
.work {
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Scrolling Track Wrapper */
.work__slider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.work__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.work__nav-btn:hover {
  background: var(--accent-amber);
  color: var(--bg-primary);
  border-color: var(--accent-amber);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-glow-amber);
}

.work__nav-btn--prev {
  left: 2%;
}

.work__nav-btn--next {
  right: 2%;
}

.work__scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: var(--space-md) 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.work__scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.work__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 0 10%;
}

/* Project Cards */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  flex-shrink: 0;
  width: clamp(320px, 28vw, 420px);
}

.project-card[data-media] {
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(255, 154, 61, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(255, 154, 61, 0.08);
}

.project-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.project-card__image img,
.project-card__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play Button Overlay for Videos */
.project-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 154, 61, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 0 24px rgba(255, 154, 61, 0.3);
}

.project-card__play i {
  color: var(--bg-primary);
  font-size: 0.85rem;
  margin-left: 2px;
}

.project-card:hover .project-card__play {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 36px rgba(255, 154, 61, 0.45);
}

.project-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(255, 154, 61, 0.04) 100%);
  font-size: 2.5rem;
  color: var(--text-dim);
  transition: color var(--duration-normal);
}

.project-card:hover .project-card__placeholder {
  color: var(--accent-amber);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-normal);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

.project-card__view {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.project-card__info {
  padding: 24px;
}

.project-card__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.project-card__tags span {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-tertiary);
}

.about__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, rgba(255, 154, 61, 0.05) 100%);
  font-size: 5rem;
  color: var(--text-dim);
}

.about__badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-glow-amber);
}

.about__badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-amber);
  display: block;
  line-height: 1;
}

.about__badge-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.about__intro {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

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

.about__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__detail {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  align-items: center;
  transition: border-color var(--duration-fast);
}

.about__detail:hover {
  border-color: var(--border-accent);
}

.about__detail-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-amber);
  min-width: 120px;
  flex-shrink: 0;
}

.about__detail-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .about__image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.experience {
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-medium), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-amber);
  z-index: 2;
  transition: box-shadow var(--duration-fast);
}

.timeline__item:hover .timeline__marker {
  box-shadow: 0 0 14px var(--accent-amber-glow);
}

.timeline__card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal), transform var(--duration-normal);
}

.timeline__card:hover {
  border-color: rgba(255, 154, 61, 0.2);
  box-shadow: 0 0 30px rgba(255, 154, 61, 0.05);
  transform: translateX(6px);
}

.timeline__date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-amber);
  display: block;
  margin-bottom: 8px;
}

.timeline__role {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline__company {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.timeline__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills__bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: var(--space-2xl);
}

.skill-category {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.skill-category:hover {
  border-color: rgba(255, 154, 61, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.skill-category:hover::before {
  opacity: 0.6;
}

.skill-category--wide {
  grid-column: span 2;
}

.skill-category__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-amber-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-amber);
  margin-bottom: 16px;
}

.skill-category__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.skill-category__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Software Chips */
.skills__software {
  text-align: center;
}

.skills__software-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.skills__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.software-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.software-chip:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(255, 154, 61, 0.1);
  transform: translateY(-2px);
}

.software-chip__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter var(--duration-fast);
}

.software-chip:hover .software-chip__logo {
  filter: brightness(1.3);
}

/* Amber tint for local PNG logos */
.software-chip__logo--tint {
  filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(350deg) brightness(1.05);
}

.software-chip:hover .software-chip__logo--tint {
  filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(350deg) brightness(1.4);
}

@media (max-width: 600px) {
  .skills__bento {
    grid-template-columns: 1fr;
  }
  .skill-category--wide {
    grid-column: span 1;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-secondary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast);
}

.contact__info-item:hover {
  border-color: var(--border-accent);
}

.contact__info-item i {
  font-size: 1.1rem;
  color: var(--accent-amber);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.contact__info-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact__info-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

a.contact__info-value:hover {
  color: var(--accent-amber);
}

.contact__socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.contact__social {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.contact__social:hover {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(255, 154, 61, 0.1);
  transform: translateY(-2px);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__group {
  position: relative;
}

.form__input {
  width: 100%;
  padding: 16px 20px;
  padding-top: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
}

.form__input--textarea {
  resize: vertical;
  min-height: 120px;
}

.form__input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-glow);
}

.form__label {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dim);
  pointer-events: none;
  transition: all 0.2s;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: 8px;
  font-size: 0.6rem;
  color: var(--accent-amber);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form__error {
  display: none;
  font-size: 0.75rem;
  color: #ff4d4d;
  margin-top: 6px;
  padding-left: 4px;
}

.form__group.error .form__error {
  display: block;
}

.form__group.error .form__input {
  border-color: #ff4d4d;
}

.form__success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
  font-size: 0.9rem;
}

.form__success.visible {
  display: flex;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.footer__glow {
  position: absolute;
  width: 300px;
  height: 2px;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
  opacity: 0.4;
  filter: blur(1px);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: 4px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--duration-fast);
  letter-spacing: 0.3px;
}

.footer__links a:hover {
  color: var(--accent-amber);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-glow-amber);
  transform: translateY(-2px);
}

/* ============================================================
   LIGHTBOX / MEDIA MODAL
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.lightbox__close:hover {
  background: rgba(255, 154, 61, 0.15);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox__content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  outline: none;
}
/* Video library */
.vw { padding: var(--space-2xl) clamp(1rem, 4vw, 3rem); position: relative; z-index: 2; }
.vw__wrap { max-width: 1320px; margin: 0 auto; }
.vw__title { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; text-transform: uppercase; color: var(--text-primary); font-weight: 400; }
.vw__lead { font-family: var(--font-body); color: var(--text-muted); margin: 1rem 0 2rem; max-width: 55ch; line-height: 1.6; }
.vw__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.vw__filters button, .vw__more, .vp__bar button, .vp__bar a { font: 400 .85rem var(--font-heading); color: var(--text-secondary); background: var(--bg-glass); border: 1px solid var(--border-medium); border-radius: var(--radius-pill); padding: .65rem 1.1rem; cursor: pointer; text-decoration: none; }
.vw__filters button[aria-pressed="true"] { background: var(--accent-amber); border-color: var(--accent-amber); color: #050505; }
.vw__grid { display: flex; align-items: flex-start; gap: 1rem; }
.vw__col { flex: 1; min-width: 0; }
.vc { display: block; width: 100%; margin: 0 0 1rem; padding: 0; text-align: left; cursor: pointer; background: var(--bg-tertiary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; color: inherit; }
.vc:hover, .vc:focus-visible { border-color: var(--border-accent); }
.vc__shot { position: relative; display: block; min-height: 140px; background: var(--bg-secondary); }
.vc__shot img { display: block; width: 100%; height: auto; }
.vc__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(5,5,5,.65); border: 1px solid rgba(255,255,255,.35); }
.vc__play::after { content: ""; position: absolute; left: 21px; top: 17px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
.vc__name { display: block; padding: .75rem .9rem .15rem; font: 600 .95rem/1.3 var(--font-heading); color: var(--text-primary); }
.vc__cat { display: block; padding: 0 .9rem .85rem; font: 400 .78rem var(--font-body); color: var(--text-muted); }
.vw__more { display: block; margin: 1.5rem auto 0; }
.vw__more[hidden] { display: none; }
.vw__drive { text-align: center; margin-top: 1.5rem; font: 400 .9rem var(--font-body); }
.vw__drive a { color: var(--accent-amber); }
.vp { margin: auto; padding: 0; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-secondary); width: min(1100px, 94vw); max-width: none; max-height: none; }
.vp::backdrop { background: rgba(0,0,0,.88); }
.vp.is-tall { width: min(420px, 94vw, calc((100dvh - 120px) * .5625)); min-width: min(320px, 94vw); }
.vp__bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; }
.vp__bar p { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 .95rem var(--font-heading); color: var(--text-primary); }
.vp__bar a, .vp__bar button { padding: .45rem .8rem; white-space: nowrap; }
.vp__frame { aspect-ratio: 16 / 9; background: #000; }
.vp.is-tall .vp__frame { aspect-ratio: 9 / 16; max-height: calc(100dvh - 120px); width: 100%; }
.vp__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.vw__filters[hidden] { display: none; }
.vw__all { display: table; margin: 1.5rem auto 0; padding: .9rem 1.6rem; border-radius: var(--radius-pill); background: var(--accent-amber); color: #050505; font: 600 .95rem var(--font-heading); text-decoration: none; }
.vw--page { padding-top: 8rem; }

.project-card[data-video] { cursor: pointer; }
.project-card[data-video] .vc__play { pointer-events: none; z-index: 2; }
.project-card[data-video]:hover .vc__play { opacity: 0; }
.project-card[data-video]:focus-visible { outline: 3px solid var(--accent-amber); outline-offset: 3px; }

/* one 4:5 shape for every video thumbnail */
.vc__shot { aspect-ratio: 4 / 5; }
.vc__shot img { height: 100%; object-fit: cover; }
.project-card[data-video] .project-card__image { height: auto; aspect-ratio: 4 / 5; }

/* ─── Type system: Anton (display) + Inter 400/600, nothing under 12px ─── */
body, .about__intro, .about__body, .section__subtitle, .hero__subtitle, .contact__text { line-height: 1.5; }
p { text-wrap: pretty; max-width: 65ch; }
h1, h2, h3, .section__title { text-wrap: balance; }
.section__subtitle { margin-inline: auto; }
.section__subtitle, .about__body, .about__detail-value, .timeline__desc, .timeline__company,
.skill-category__desc, .contact__info-value, .footer__tagline, .vc__name, .vc__cat { font-size: max(0.9375rem, 1em); }
.section__subtitle, .hero__subtitle { font-size: 1.0625rem; }
.vc__cat { font-size: 0.8125rem; }

/* weights: 400 and 600 only */
.nav__link, .stat-card__label, .form__label, .vp a, .vp button, .vw__filters button,
.footer a, .skills__software-grid span, .software-item span { font-weight: 400; }
.project-card__title, .timeline__role, .skill-category__title, .vc__name, strong, b { font-weight: 600; }

/* display caps: slight opening only */
.hero__title-line, .section__title { letter-spacing: 0.01em; }
.section__title { line-height: 1; }
.mobile-menu__link, .nav__logo, .footer__logo { letter-spacing: 0.05em; }
.project-card__title, .timeline__role, .skill-category__title { letter-spacing: -0.01em; line-height: 1.25; }

/* small caps labels: one style everywhere */
.hero__label, .section__label, .project-card__category, .timeline__date, .about__detail-label,
.about__badge-text, .contact__info-label, .skills__software-title, .stat-card__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; }
.hero__scroll span, .scroll-indicator span { font-size: 0.75rem; letter-spacing: 0.12em; }
.nav__link, .nav__cta { font-size: 0.875rem; letter-spacing: 0; }
.footer__links a, .footer__bottom p, .form__error { font-size: 0.8125rem; }
