/* ============================================
   HUSSAIN AHMAD — FUTURISTIC PORTFOLIO
   Aesthetic: Dark mode · Neon · Brutal grid
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f17;
  --bg-3: #15151f;
  --surface: #1a1a26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ededf2;
  --text-soft: #a8a8b8;
  --text-muted: #6b6b80;

  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00d4;
  --neon-lime: #c4ff00;
  --neon-purple: #7c3aed;

  --display: 'Syne', sans-serif;
  --body: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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: 60px 60px;
  pointer-events: none;
  z-index: 1;
  animation: gridPan 60s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes gridPan {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: inherit; }
::selection { background: var(--neon-cyan); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 3;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-out), opacity 0.3s ease;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out), width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.cursor.hover { transform: translate(-50%, -50%) scale(0); }
.cursor-ring.hover {
  width: 80px; height: 80px;
  border-color: var(--neon-magenta);
  background: rgba(255, 0, 212, 0.05);
}

@media (max-width: 900px) {
  .cursor, .cursor-ring { display: none; }
  body, button, a { cursor: auto; }
}

/* LOADING SCREEN */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }

.loader-percent {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 300;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  animation: loadFill 1.4s var(--ease) forwards;
}

.loader-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

@keyframes loadFill { to { width: 100%; } }

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: 0;
  font-family: var(--display);
  font-weight: 800;
  color: var(--bg);
  font-size: 1rem;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-lime);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-lime);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links > li > a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

.nav-links > li > a::before { content: '['; opacity: 0; margin-right: 4px; color: var(--neon-cyan); transition: opacity 0.3s var(--ease); }
.nav-links > li > a::after { content: ']'; opacity: 0; margin-left: 4px; color: var(--neon-cyan); transition: opacity 0.3s var(--ease); }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--text); }
.nav-links > li > a:hover::before, .nav-links > li > a:hover::after,
.nav-links > li > a.active::before, .nav-links > li > a.active::after { opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.nav-cta:hover::before { transform: translateY(0); }
.nav-cta > span, .nav-cta > .nav-cta-dot { position: relative; z-index: 1; }
.nav-cta:hover { color: var(--bg); }

.nav-cta-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-lime);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; background: var(--neon-purple); top: -10%; right: -10%; }
.orb-2 { width: 400px; height: 400px; background: var(--neon-cyan); bottom: -15%; left: -5%; animation-delay: -7s; opacity: 0.3; }
.orb-3 { width: 300px; height: 300px; background: var(--neon-magenta); top: 40%; right: 30%; animation-delay: -14s; opacity: 0.25; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -80px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.9); }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-meta-line { width: 40px; height: 1px; background: var(--neon-cyan); }

.hero-meta-dot {
  width: 6px; height: 6px;
  background: var(--neon-lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: revealUp 1.2s var(--ease-out) forwards;
}

.hero-title .word:nth-child(1) { animation-delay: 0.5s; }
.hero-title .word:nth-child(2) { animation-delay: 0.65s; }
.hero-title .word:nth-child(3) { animation-delay: 0.8s; }

.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.outline-text {
  -webkit-text-stroke: 2px var(--text);
  -webkit-text-fill-color: transparent;
}

.italic-accent { font-style: italic; font-weight: 500; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-top: 2rem;
}

.hero-desc {
  max-width: 480px;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.hero-desc-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  display: block;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { color: var(--bg); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

/* MARQUEE */
.marquee {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 3;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  text-transform: uppercase;
}

.marquee-item .dot {
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 15px var(--neon-cyan);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SECTIONS */
section { padding: 8rem 0; position: relative; z-index: 3; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--neon-cyan);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 900px;
}

/* CATEGORIES BENTO */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 2rem;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-card:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.cat-card:nth-child(2) { grid-column: span 7; }
.cat-card:nth-child(3) { grid-column: span 4; }
.cat-card:nth-child(4) { grid-column: span 3; }
.cat-card:nth-child(5) { grid-column: span 5; }
.cat-card:nth-child(6) { grid-column: span 4; }
.cat-card:nth-child(7) { grid-column: span 4; }
.cat-card:nth-child(8) { grid-column: span 4; }

.cat-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 0;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: var(--bg-3);
}

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

.cat-card > * { position: relative; z-index: 1; }

.cat-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.cat-name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.cat-card:nth-child(1) .cat-name {
  font-size: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: auto;
}

.cat-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
}

.cat-card:hover .cat-arrow {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: var(--bg);
  transform: rotate(-45deg);
}

/* STATS */
.stats-section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat-block { position: relative; }

.stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stat-num sup { font-size: 0.4em; -webkit-text-fill-color: var(--neon-cyan); }

.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* SERVICES (BIG ROWS) */
.services-list { list-style: none; border-top: 1px solid var(--line); }

.service-item {
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.service-item:hover::before { transform: translateY(0); }
.service-item:hover .service-link,
.service-item:hover .service-num { color: var(--bg); }
.service-item:hover .service-arrow { color: var(--bg); transform: rotate(-45deg); }

.service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem var(--gutter);
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.4s var(--ease);
}

.service-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 400;
  position: relative;
  z-index: 1;
  transition: color 0.4s var(--ease);
  min-width: 50px;
}

.service-arrow {
  font-size: 1.5rem;
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
}

.service-text { flex: 1; text-align: center; }

/* PORTFOLIO */
.filter-bar {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  width: fit-content;
}

.filter-btn {
  padding: 0.65rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

.filter-btn:hover { color: var(--text); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  color: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  transition: transform 0.5s var(--ease);
}

.project-card:hover { transform: translateY(-8px); }

.project-image {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 1.5rem;
  position: relative;
  border: 1px solid var(--line);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-card:hover .project-image img { transform: scale(1.08); }

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 240, 255, 0.15));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.project-card:hover .project-image::after { opacity: 1; }

.project-image-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.85rem;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  z-index: 2;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-info-left { flex: 1; }

.project-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.project-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.empty-state-text {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.empty-state-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* PAGE HEADER */
.page-header {
  padding: 12rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--neon-purple);
  filter: blur(120px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 0;
}

.page-header .breadcrumb {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.page-header .breadcrumb span { color: var(--neon-cyan); }

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 600px;
  margin-top: 1.5rem;
}

/* DROPDOWN */
.dropdown-wrap { position: relative; display: inline-block; margin-bottom: 3rem; }

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  min-width: 280px;
  justify-content: space-between;
  transition: all 0.3s var(--ease);
}

.dropdown-trigger:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.dropdown-trigger.open {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.dropdown-trigger .dd-arrow { transition: transform 0.3s var(--ease); font-size: 0.7rem; }
.dropdown-trigger.open .dd-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.5rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  border-radius: 0;
  transition: all 0.2s var(--ease);
}

.dropdown-item:hover {
  background: var(--surface);
  color: var(--text);
}

.dropdown-item.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  color: var(--bg);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 3rem;
  max-width: 440px;
  line-height: 1.7;
}

.contact-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: padding-left 0.3s var(--ease);
}

.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item:hover { padding-left: 1rem; }

.contact-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

a.contact-value:hover { color: var(--neon-cyan); }

.contact-form {
  background: var(--surface);
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: var(--neon-purple);
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.form-group { margin-bottom: 1.75rem; position: relative; z-index: 1; }

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--body);
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.3s var(--ease);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--neon-cyan);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--body);
}

.form-success,
.form-error {
  padding: 1rem 1.25rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-success {
  background: rgba(196, 255, 0, 0.1);
  color: var(--neon-lime);
  border: 1px solid rgba(196, 255, 0, 0.3);
}

.form-error {
  background: rgba(255, 0, 100, 0.1);
  color: #ff3366;
  border: 1px solid rgba(255, 0, 100, 0.3);
}

.btn-form { width: 100%; justify-content: center; padding: 1.25rem 2rem; }

/* FOOTER */
footer {
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.footer-cta { text-align: center; margin-bottom: 6rem; }

.footer-cta-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-cta h2 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--neon-cyan); }

.footer-tagline {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 350px;
  color: var(--text-soft);
  margin-top: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

@keyframes revealUp {
  to { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
  }
  .cat-card:nth-child(1) { grid-column: span 6; grid-row: span 1; }
  .cat-card:nth-child(2) { grid-column: span 6; }
  .cat-card:nth-child(3) { grid-column: span 3; }
  .cat-card:nth-child(4) { grid-column: span 3; }
  .cat-card:nth-child(5) { grid-column: span 6; }
  .cat-card:nth-child(6) { grid-column: span 2; }
  .cat-card:nth-child(7) { grid-column: span 2; }
  .cat-card:nth-child(8) { grid-column: span 2; }

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

/* TABLET */
@media (max-width: 900px) {
  :root { --gutter: 1.5rem; }
  section { padding: 5rem 0; }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line);
    gap: 0.5rem;
    z-index: 99;
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: none; padding-top: 1.5rem; }
  .nav-links > li > a { display: block; padding: 1.25rem 0; font-size: 0.85rem; }
  .nav-cta { padding: 0.85rem 1.5rem; width: 100%; justify-content: center; }
}

/* MOBILE */
@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }

  body {
    cursor: auto;
    font-size: 15px;
  }

  /* Tone down heavy effects on mobile to keep it fast */
  body::before { background-size: 40px 40px; opacity: 0.6; }

  section { padding: 4rem 0; }

  /* HERO MOBILE */
  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
    margin-bottom: 1.75rem;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
  }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }

  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
  .orb-3 { display: none; }

  /* PAGE HEADER */
  .page-header { padding: 7rem 0 2rem; }
  .page-header h1 { font-size: clamp(2.5rem, 14vw, 5rem); }
  .page-header p { font-size: 0.95rem; }
  .page-header::before { width: 250px; height: 250px; opacity: 0.2; }

  /* SECTION HEAD */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 1.5rem;
  }
  .section-head .btn { width: 100%; justify-content: center; }
  .section-title { font-size: clamp(2rem, 9vw, 3.5rem); }

  /* CATEGORIES → SINGLE COLUMN */
  .categories-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0.75rem;
  }
  .cat-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 180px;
    padding: 1.5rem;
  }
  .cat-card:nth-child(1) .cat-name { font-size: 1.85rem; }
  .cat-name { font-size: 1.5rem; }

  /* STATS */
  .stats-section { padding: 4rem 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .stat-block:not(:last-child)::after { display: none; }
  .stat-num { font-size: clamp(2.5rem, 11vw, 3.5rem); }

  /* SERVICES ROWS */
  .service-link {
    padding: 1.75rem var(--gutter);
    font-size: clamp(1.3rem, 7vw, 2rem);
    gap: 0.75rem;
  }
  .service-num { min-width: auto; font-size: 0.7rem; }
  .service-arrow { font-size: 1.1rem; }

  /* MARQUEE */
  .marquee { padding: 1.25rem 0; }
  .marquee-item { font-size: 1.5rem; gap: 2rem; }

  /* PORTFOLIO */
  .filter-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; padding: 0.55rem 1rem; font-size: 0.65rem; }

  .dropdown-trigger { width: 100%; min-width: 0; font-size: 0.7rem; padding: 0.85rem 1.25rem; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
  .project-title { font-size: 1.15rem; }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info h2 { font-size: clamp(2rem, 9vw, 3.25rem); margin-bottom: 1.5rem; }
  .contact-info p { font-size: 0.95rem; margin-bottom: 2rem; }
  .contact-item { padding: 1.25rem 0; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .contact-item:hover { padding-left: 0; }
  .contact-value { font-size: 1rem; }
  .contact-form { padding: 1.75rem 1.25rem; }

  /* FOOTER */
  footer { padding: 4rem 0 2rem; }
  .footer-cta { margin-bottom: 4rem; }
  .footer-cta h2 { font-size: clamp(2.5rem, 14vw, 4.5rem); }
  .footer-cta .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
    font-size: 0.65rem;
  }

  /* BUTTONS */
  .btn { padding: 0.95rem 1.5rem; font-size: 0.7rem; }

  /* DISABLE MAGNETIC ON MOBILE — handled in JS, but reset transform just in case */
  [data-magnetic] { transform: none !important; }
}

/* SMALL PHONES */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(2rem, 12vw, 3rem); }
  .section-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hero-meta { font-size: 0.65rem; gap: 0.5rem; flex-wrap: wrap; }
  .hero-meta-line { width: 24px; }
  .nav-cta span:last-child { display: inline; }
}
