:root {
  --red: #783afb;
  --purple: #783afb;
  --black: #09090b;
  --dark: #16141a;
  --dark2: #18181b;
  --dark3: #201e24;
  --dark4: #2c2832;
  --border: #2f2f34;
  --border2: #221e28;
  --muted: rgba(255,255,255,255)
  --light: #ebedef;
  --white: #ffffff;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --letter-spacing--large: -0.02em;
  --u-display-3xl: 52px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "opsz" 32;
  letter-spacing: var(--letter-spacing--large);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}
p { font-family: var(--font-body); }

/* ─── UTILITY ─── */
.container { max-width: 1440px; margin: 0 auto; padding: 0 24.75px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(120,58,251,0.1);
  border: 1px solid rgba(120,58,251,0.2);
  border-radius: 100px;
  padding: 4.125px 12px;
  margin-bottom: 20px;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24.75px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(33px);
  border-bottom: 1px solid var(--border2);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14.4375px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8.25px 16.5px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-chevron {
  width: 10px;
  height: 6px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-dropdown-wrap:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  background: rgba(18,18,22,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}

.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

a.nav-dropdown-item {
  color: var(--white);
}

a.nav-dropdown-item:hover {
  background: rgba(120,58,251,0.12);
  color: var(--red);
}

.nav-dropdown-disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.5;
}

/* ─── HERO ─── */
#hero {
  min-height: calc(100vh - 64px);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 24.75px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(120,58,251,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(120,58,251,0.12) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border2) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Hero depth orbs — background layer */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(120,58,251,0.14) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: orb-drift 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(220,60,80,0.08) 0%, transparent 70%);
  bottom: -100px; right: 5%;
  animation: orb-drift 15s ease-in-out infinite reverse;
}
.hero-orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(120,58,251,0.1) 0%, transparent 70%);
  top: 30%; left: 48%;
  animation: orb-drift 18s ease-in-out infinite 4s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(24px, -32px) scale(1.04); }
  66%  { transform: translate(-18px, 20px) scale(0.97); }
}

/* Hero photo ring layers */
.hero-photo-ring {
  position: absolute;
  border-radius: 36px;
  pointer-events: none;
  z-index: 1;
}
.hero-photo-ring--outer {
  inset: -22px;
  border: 1px solid rgba(120,58,251,0.2);
  animation: ring-breathe 5s ease-in-out infinite;
}
.hero-photo-ring--mid {
  inset: -11px;
  border: 1px solid rgba(120,58,251,0.3);
  animation: ring-breathe 5s ease-in-out infinite 1.6s;
}
@keyframes ring-breathe {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 0 rgba(120,58,251,0); }
  50%       { opacity: 1;    box-shadow: 0 0 40px rgba(120,58,251,0.15); }
}

/* Hero floating badges */
.hero-badge {
  position: absolute;
  background: rgba(6, 6, 16, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 4;
}
.hero-badge--avail {
  top: 24px;
  left: -18px;
  font-size: 13px;
  font-weight: 600;
  animation: badge-float 5s ease-in-out infinite;
}
.hero-badge--stat1 {
  bottom: 72px;
  left: -28px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  animation: badge-float 6.5s ease-in-out infinite 1.2s;
}
.hero-badge--stat2 {
  top: 90px;
  right: -22px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  animation: badge-float 7s ease-in-out infinite 0.6s;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-badge-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: dot-ping 2.2s ease-in-out infinite;
}
@keyframes dot-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.hero-badge-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-badge-num span { color: var(--red); }
.hero-badge-sublabel {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.hero-svg {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  opacity: 0.4;
  z-index: 1;
  clip-path: inset(0 0 25% 0);
}

.hero-grid-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr;
  align-items: center;
  min-height: calc(100vh - 64px);
  max-width: 1200px;
  width: 1200px;
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  max-width: 100%;
  padding-right: 20px;
}

.hero-stats-side {
  position: absolute;
  right: -15%;
  top: 74%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.hero-center {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  z-index: 1;
  overflow: visible;
}

.hero-photo {
  position: relative;
  width: 100%;
  z-index: 2;
  display: block;
  overflow: visible;
}

.hero-photo img {
  width: 100%;
  display: block;
  border-radius: 28px;
  border: none;
  object-fit: cover;
  /* box-shadow:
    0 30px 100px rgba(0,0,0,0.7),
    0 0 180px rgba(120,58,251,0.25),
    0 0 60px rgba(120,58,251,0.15); */
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.social-links a:hover {
  background: rgba(120,58,251,0.18);
  border-color: rgba(120,58,251,0.4);
  transform: translateY(-2px);
}

.social-links a img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}

.hero-stats .stat {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.hero-stats .stat-label {
  color: var(--muted);
  font-size: 23px;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
  justify-content: flex-start;
}

.hero-role-chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4.125px 12px;
  background: rgba(255,255,255,0.03);
}

.hero-role-chip.active {
  color: var(--red);
  border-color: rgba(120,58,251,0.3);
  background: rgba(120,58,251,0.08);
}

.hero-h1 {
  font-variation-settings: "wght" 600, "opsz" 32;
  letter-spacing: var(--letter-spacing--large);
  font-weight: 600;
  line-height: 1.1;
  font-size: var(--u-display-3xl);
  text-wrap: balance;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-h1 em {
  font-style: normal;
  color: var(--red);
  position: relative;
}

.hero-sub {
  font-size: 16.279px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
  justify-content: flex-start;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12.375px 24.75px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: rgba(120,58,251,0.4) 0 8px 24px;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: rgba(120,58,251,0.6) 0 12px 32px; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12.375px 24.75px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: var(--muted); background: rgba(255,255,255,0.04); }

.hero-stats {
  position: static;
  margin-top: 60px;
  display: flex;
  gap: 40px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-num span { color: var(--red); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── SECTION SHARED ─── */
section { padding: 100px 0; }

.section-header { margin-bottom: 60px; }
.section-header h2 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

/* ─── SERVICES ─── */
#services { background: var(--dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  background: var(--dark2);
  padding: 36px 32px;
  transition: background 0.3s;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.4s ease;
}

.service-card:hover { background: var(--dark3); }
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon-svg {
  width: 48px;
  height: 48px;
  filter: invert(30%) sepia(93%) saturate(747%) hue-rotate(240deg) brightness(102%) contrast(101%);
}

.service-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-desc { font-size: 14.4375px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.service-card--featured {
  border: 1px solid rgba(120,58,251,0.3);
}

.service-card--featured .service-link {
  color: var(--red);
  transition: gap 0.2s, color 0.2s, text-decoration 0.2s, transform 0.2s;
}

.service-card--featured .service-link:hover {
  color: var(--red);
  text-decoration: underline;
  transform: scale(1.05);
  gap: 10px;
}

.service-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(120,58,251,0.12);
  border: 1px solid rgba(120,58,251,0.25);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap 0.2s, color 0.2s;
}

.service-link:hover { gap: 10px; color: rgba(255,255,255,0.75); }

/* ─── PORTFOLIO ─── */
#portfolio { background: var(--black); }

.portfolio-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8.25px 16.5px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.tab-btn.active {
  background: var(--red);
  color: var(--white);
  box-shadow: rgba(120,58,251,0.3) 0 2px 12px;
}

.projects-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.projects-grid::-webkit-scrollbar { height: 8px; }
.projects-grid::-webkit-scrollbar-track { background: transparent; }
.projects-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

.project-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  flex: 0 0 min(360px, 90%);
  scroll-snap-align: start;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0,0,0,0.3) 0 20px 60px;
  border-color: var(--border4);
}

.project-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--dark3);
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s;
  overflow: hidden;
}

.project-thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card:hover .project-thumb-inner { transform: scale(1.08); }

.project-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.project-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

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

.tool-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ─── FEATURED ─── */
#featured { background: var(--dark); }

.featured-container {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(360px, 1fr);
  gap: 64px;
  align-items: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.22);
}

.featured-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: flex-start;
  max-width: 420px;
}

.featured-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.featured-copy-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 60%, rgba(120,58,251,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 380px;
  font-size: 14px;
}

.featured-copy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.featured-copy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.featured-copy {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.featured-copy-list li::before {
  content: '→';
  color: var(--red);
  font-size: 14px;
  line-height: 1.4;
  margin-top: 1px;
  flex-shrink: 0;
}

.featured-tab {
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "opsz" 32;
  letter-spacing: var(--letter-spacing--large);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.12);
}

.featured-tab:hover {
  background: rgba(255,255,255,0.13);
  color: var(--white);
}

.featured-tab.active {
  background: rgba(120, 58, 251, 0.18);
  color: #ffffff;
  border-color: rgba(120, 58, 251, 0.35);
  transform: translateY(-1px);
}

.featured-carousel {
  position: relative;
  min-height: 560px;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(0,0,0,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  padding: 18px;
}

.featured-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(9,9,11,0.72) 0%,
    transparent 18%,
    transparent 82%,
    rgba(9,9,11,0.72) 100%
  );
}

.carousel-item {
  display: none;
  position: absolute;
  inset: 0;
}

.carousel-item.active {
  display: block;
}

.carousel-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.carousel-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.carousel-column.carousel-up {
  animation: scroll-up 46s linear infinite;
}

.carousel-column.carousel-down {
  animation: scroll-down 46s linear infinite;
}

.carousel-column img,
.carousel-column video,
.carousel-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  border-radius: 20px;
  object-fit: cover;
}

.carousel-column img,
.carousel-column video {
  display: block;
}

@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scroll-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.carousel-placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 16px;
  line-height: 1.5;
}

@keyframes float-up {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

@keyframes float-down {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}

.featured-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.featured-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.95) 30%, transparent 70%);
}

.featured-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
}

.featured-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.featured-title {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "opsz" 32;
  letter-spacing: var(--letter-spacing--large);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  font-size: 24.75px;
  margin-bottom: 8px;
}

.featured-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.featured-link:hover { border-color: var(--red); background: rgba(120,58,251,0.08); }

/* ─── SKILLS ─── */
#skills { background: var(--black); }

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

.skills-group {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.skills-group-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-group-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

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

.skill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.skill-name span { color: var(--muted); font-weight: 400; font-size: 12px; }

.skill-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--purple));
  border-radius: 2px;
  transform-origin: left;
  animation: fillBar 1.2s ease forwards;
  transform: scaleX(0);
}

@keyframes fillBar {
  to { transform: scaleX(1); }
}

/* ─── PROCESS ─── */
#process { background: var(--dark); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--red), var(--border), transparent);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.process-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.process-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── CONTACT ─── */
#contact {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(120,58,251,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.contact-left h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-left p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

.contact-method:hover { border-color: rgba(120,58,251,0.4); background: rgba(120,58,251,0.04); }

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(120,58,251,0.1);
  border: 1px solid rgba(120,58,251,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-method-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-method-val { font-size: 15px; font-weight: 600; }

.contact-form {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12.375px 16.5px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

input:focus, textarea:focus, select:focus { border-color: rgba(120,58,251,0.5); }
textarea { height: 120px; }

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

.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24.75px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}

.btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 40px 24.75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span { color: var(--red); }

.footer-copy { font-size: 13px; color: var(--muted); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #hero {
    display: block;
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .hero-grid-wrapper {
    display: block;
    min-height: auto;
  }
  .hero-center {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 40px;
  }
  .hero-left {
    max-width: 100%;
    padding-right: 0;
    align-items: center;
    text-align: center;
  }
  .hero-roles { justify-content: flex-start; }
  .hero-btns { justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    position: static;
    margin-top: 0;
  }
  .hero-photo { display: block; }
  .skills-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
  .featured-container { grid-template-columns: 1fr; }
  .featured-tabs { flex: none; display: flex; flex-direction: row; justify-content: center; gap: 12px; }
  .featured-tab { padding: 12px 20px; font-size: 16px; }
  .hero-copy { align-items: flex-start; }
  .hero-social { align-items: flex-start; }
  .hero-right .hero-stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 600px) {
  .portfolio-tabs { flex-wrap: wrap; width: 100%; }
  .tab-btn { flex: 1; text-align: center; }
  .process-steps { grid-template-columns: 1fr; }
  .featured-tabs { flex-direction: column; align-items: stretch; }
  .featured-tab { text-align: center; }
}

/* ─── ACTIVE NAV HIGHLIGHT ─── */
.nav-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.3s;
}

/* ─── PROJECT HIDDEN STATE ─── */
.project-card[data-hidden="true"] { display: none; }
