/* ============================================================
   FAHIM ABASEE — PORTFOLIO v2
   Design: dark tech / cyberpunk grid, yellow-green glow accent
   ============================================================ */

:root {
  --bg: #050807;
  --bg-raised: #0B120E;
  --ink: #F2F5F0;
  --ink-dim: #8A9289;
  --ink-faint: #545B52;
  --neon: #B8FF3D;
  --neon-dim: #7FB82B;
  --line: rgba(184, 255, 61, 0.14);
  --line-strong: rgba(184, 255, 61, 0.32);

  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--neon);
  margin-bottom: 14px;
  font-weight: 500;
}

/* ---------- NAV ---------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 28px 5vw;
  border-bottom: 1px solid var(--line);
}

.nav-mark {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(184, 255, 61, 0.35));
}

main { position: relative; z-index: 1; }

/* ---------- HERO ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 5vw;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--neon);
  margin-bottom: 40px;
}

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

.badge i { color: #E5A83A; font-size: 14px; }

.hero-title {
  font-weight: 700;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.line-white { display: block; color: var(--ink); }

.line-glow {
  display: block;
  color: var(--neon);
  text-shadow: 0 0 30px rgba(184, 255, 61, 0.45), 0 0 60px rgba(184, 255, 61, 0.2);
}

.hero-sub {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--neon);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 52px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--neon);
  color: #06110A;
  box-shadow: 0 0 24px rgba(184, 255, 61, 0.25);
}

.btn-primary:hover { background: #cfff77; }

.dot-dark {
  width: 6px; height: 6px; border-radius: 50%;
  background: #06110A; box-shadow: none;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-ghost i { font-size: 15px; }

/* ---------- SECTIONS shared ---------- */
section {
  padding: 120px 5vw;
  max-width: var(--container);
  margin: 0 auto;
}

.section-head h2 {
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
}

.glow-text {
  color: var(--neon);
  text-shadow: 0 0 20px rgba(184, 255, 61, 0.35);
}

.section-desc {
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 56ch;
  margin-top: 16px;
  font-weight: 400;
}

/* ---------- NUMBERS ---------- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}

.numbers-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.25s ease;
}

.numbers-card:hover { background: var(--bg-raised); }

.numbers-card i {
  font-size: 22px;
  color: var(--neon);
  margin-bottom: 20px;
  display: block;
}

.numbers-val {
  display: block;
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
}

.numbers-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* ---------- PHILOSOPHY CARD (under numbers) ---------- */
.philosophy-card {
  margin-top: 32px;
  border: 1px solid var(--line);
  padding: 30px 32px;
  border-radius: 4px;
}

.philosophy-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  margin-top: 14px;
}

.philosophy-text::before { content: "\201C"; color: var(--neon); }
.philosophy-text::after { content: "\201D"; color: var(--neon); }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}

.service-card {
  background: var(--bg);
  padding: 30px 24px;
  transition: background 0.25s ease;
}

.service-card:hover { background: var(--bg-raised); }

.service-card i {
  font-size: 22px;
  color: var(--neon);
  margin-bottom: 18px;
  display: block;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13px;
  color: var(--ink-dim);
  font-weight: 400;
  line-height: 1.55;
}

/* ---------- WORK ---------- */
.filters {
  display: flex;
  gap: 10px;
  margin: 40px 0 40px;
}

.filter-btn {
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: all 0.25s ease;
}

.filter-btn:hover { border-color: var(--neon); color: var(--neon); }

.filter-btn.active {
  background: var(--neon);
  color: #06110A;
  border-color: var(--neon);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-card { background: var(--bg); }
.work-card.hidden { display: none; }

.work-media {
  aspect-ratio: 16/10;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

.work-media iframe,
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.work-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.work-info h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.work-author {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---------- JOURNEY ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.timeline {
  border-left: 1px solid var(--line-strong);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  background: var(--bg);
  box-shadow: 0 0 10px rgba(184, 255, 61, 0.5);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-dim);
}

.timeline-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 400;
  max-width: 52ch;
}

.journey-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.arsenal, .quote-card {
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 4px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-dim);
}

.quote-text {
  font-size: 16px;
  font-style: italic;
  color: var(--neon);
  line-height: 1.6;
  margin-top: 14px;
  font-family: var(--font-display);
}

/* ---------- CLIENTS ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}

.client-card {
  background: var(--bg);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transition: background 0.25s ease;
}

.client-card:hover { background: var(--bg-raised); }

.client-card img {
  max-height: 40px;
  width: auto;
  filter: grayscale(1) brightness(1.8);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-card:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.client-card.placeholder img { opacity: 0.2; }

.client-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-align: center;
  transition: color 0.25s ease;
}

.client-card:hover .client-name { color: var(--neon); }

.clients-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 20px;
  text-align: center;
}

/* ---------- CONTACT ---------- */
.contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.contact-links a:last-child { border-bottom: 1px solid var(--line); }

.contact-link i:first-child {
  font-size: 20px;
  color: var(--neon);
  width: 24px;
}

.contact-link:hover { padding-left: 14px; }

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-value {
  display: block;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 500;
  margin-top: 4px;
}

.contact-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--ink-faint);
}

.contact-link:hover .contact-arrow { color: var(--neon); }

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 5vw 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 32px; }
  section { padding: 80px 6vw; }
}

@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 24px 32px; }
}
