/* ============================================
   hadiabid.com — Design System & Shared Styles
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* --- CSS Variables --- */
:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface2: #1e1e1e;
  --line: rgba(255,255,255,0.07);
  --line2: rgba(255,255,255,0.13);
  --text: #f0ede6;
  --muted: #777770;
  --accent: #c8b89a;
  --accent2: #e8d5b0;
  --tag-bg: rgba(200,184,154,0.10);
  --tag-border: rgba(200,184,154,0.22);
}

/* --- Typography --- */
.font-display { font-family: 'Share Tech Mono', monospace; }
.font-mono { font-family: 'DM Mono', monospace; }
.font-body { font-family: 'DM Sans', sans-serif; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 56px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--line);
}

.nav__logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__resume {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  border: 0.5px solid var(--tag-border);
  padding: 6px 14px;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
  opacity: 0.5;
  cursor: default;
}

/* --- Hamburger (mobile) --- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13,13,13,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 99;
}
.nav__mobile-menu.open {
  display: flex;
}
.nav__mobile-menu .nav__link {
  font-size: 16px;
}
.nav__mobile-menu .nav__resume {
  font-size: 13px;
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  border-top: 0.5px solid var(--line);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}

/* --- Layout Utilities --- */
.page-wrapper {
  padding-top: 56px;
  min-height: 100vh;
}

.section {
  padding: 4rem 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 56px);
}

/* --- Fade-up Animation --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
.fade-up-d5 { animation-delay: 0.5s; }
.fade-up-d6 { animation-delay: 0.6s; }

/* ============================================
   INDEX PAGE — Hero
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 56px);
  padding: 0 2.5rem;
  align-items: center;
  gap: 4rem;
}

.hero__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
}

.hero__name {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  border: 0.5px solid var(--tag-border);
  padding: 10px 22px;
  border-radius: 3px;
  transition: background 0.2s ease;
}
.hero__cta:hover {
  background: var(--tag-bg);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 0.5px solid var(--line);
}

.stat {
  background: var(--bg);
  padding: 1.8rem 1.6rem;
}

.stat__number {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.25rem;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

/* Productions list */
.productions {
  margin-top: 1.5rem;
}

.productions__item {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  padding: 0.35rem 0;
}

.productions__item span {
  color: var(--accent);
  margin-right: 0.5rem;
}

/* ============================================
   INDEX PAGE — Bio Section
   ============================================ */

.bio-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 2.5rem;
  border-top: 0.5px solid var(--line);
}

.bio__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio__portrait-area {
  background: var(--surface);
  border-radius: 4px;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.bio__portrait-placeholder {
  text-align: center;
}

.bio__portrait-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface2);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio__portrait-icon svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}

.bio__portrait-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.bio__portrait-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  background: var(--surface2);
  padding: 6px 14px;
  border-radius: 3px;
  border: 0.5px solid var(--line);
  white-space: nowrap;
}

.bio__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.bio__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.bio__name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.bio__role {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.bio__divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 1.5rem;
}

.bio__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 1rem;
}

.bio__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 0.5px solid var(--line);
  margin-top: 2rem;
}

.bio__fact {
  background: var(--bg);
  padding: 1.2rem 1.4rem;
}

.bio__fact-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.bio__fact-value {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================
   INDEX PAGE — Contact Section
   ============================================ */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 2.5rem;
  border-top: 0.5px solid var(--line);
}

.contact__heading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.75rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.contact__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 2rem;
}

.contact__link {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.contact__link:hover {
  color: var(--accent2);
}

.contact__facts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.contact__fact-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.contact__fact-value {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================
   WORK PAGE — Poster Grid
   ============================================ */

.work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 3rem 2.5rem 2rem;
}

.work-header__title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  color: var(--text);
}

.work-header__hint {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--line);
}

.poster-card {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border: 0.5px solid var(--line);
  cursor: pointer;
}

.poster-card__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.poster-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-card__placeholder-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.5;
  text-align: center;
  padding: 1rem;
}

.poster-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.poster-card:hover .poster-card__bg {
  transform: scale(1.06);
}

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

.poster-card__title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 0.3rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.poster-card:hover .poster-card__title {
  transform: translateY(0);
}

.poster-card__role {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  transform: translateY(10px);
  transition: transform 0.3s ease 0.05s;
}

.poster-card:hover .poster-card__role {
  transform: translateY(0);
}

.poster-card__network {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  background: var(--tag-bg);
  border: 0.5px solid var(--tag-border);
  padding: 3px 8px;
  border-radius: 2px;
  margin-top: 0.6rem;
  transform: translateY(10px);
  transition: transform 0.3s ease 0.1s;
}

.poster-card:hover .poster-card__network {
  transform: translateY(0);
}

/* Add-show placeholder */
.poster-card--add {
  border: 0.5px dashed var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.poster-card--add-inner {
  text-align: center;
}

.poster-card--add-icon {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  color: var(--muted);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.poster-card--add-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.4;
}

/* ============================================
   WORK — Show Detail Page
   ============================================ */

.show-detail {
  padding: 4rem 2.5rem;
  max-width: 800px;
}

.show-detail__back {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2rem;
  display: inline-block;
  transition: color 0.2s ease;
}
.show-detail__back:hover {
  color: var(--text);
}

.show-detail__title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.show-detail__meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.show-detail__divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 2rem;
}

.show-detail__placeholder {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.5;
}

.show-detail__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 0.5px solid var(--line);
  margin-bottom: 2.5rem;
}

.show-detail__info-item {
  background: var(--bg);
  padding: 1.2rem 1.4rem;
}

.show-detail__info-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.show-detail__info-value {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.show-detail__description {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.show-detail__section-heading {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.show-detail__list {
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.show-detail__list-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.show-detail__list-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

.show-detail__poster-area {
  margin-bottom: 2.5rem;
  max-width: 300px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.show-detail__poster-area img {
  width: 100%;
  display: block;
}

/* ============================================
   BRAIN PAGE — Canvas
   ============================================ */

.brain-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 3rem 2.5rem 2rem;
}

.brain-header__title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  color: var(--text);
}

.brain-header__hint {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}

.brain-canvas-wrap {
  padding: 0 2.5rem 1.5rem;
}

.brain-canvas-wrap canvas {
  width: 100%;
  display: block;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.brain-legend {
  display: flex;
  gap: 2rem;
  padding: 0 2.5rem 3rem;
  flex-wrap: wrap;
}

.brain-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}

.brain-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================
   ART PAGE — Placeholder
   ============================================ */

.art-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px - 60px);
  text-align: center;
}

.art-placeholder__title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 3rem;
}

.art-placeholder__text {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.art-placeholder__sub {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.5;
}

/* ============================================
   Page Header (shared for work, brain, art)
   ============================================ */

.page-title-bar {
  display: flex;
  align-items: flex-start;
  padding: 3rem 2.5rem 0;
}

.page-title-bar__title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  color: var(--text);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */

@media (max-width: 1024px) {
  .poster-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Mobile (768px)
   ============================================ */

@media (max-width: 768px) {
  .nav {
    padding: 0 1.5rem;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    min-height: auto;
    gap: 3rem;
  }

  .hero__name {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  /* Bio */
  .bio-section {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 3rem;
  }

  .bio__portrait-area {
    max-height: 400px;
  }

  .bio__name {
    font-size: 2rem;
  }

  /* Contact */
  .contact-section {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
  }

  .contact__heading {
    font-size: 2rem;
  }

  /* Work */
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-header,
  .brain-header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem 1.5rem 1.5rem;
  }

  /* Brain */
  .brain-canvas-wrap {
    padding: 0 1.5rem 1.5rem;
  }

  .brain-legend {
    padding: 0 1.5rem 2rem;
    gap: 1rem;
  }

  /* Footer */
  .footer {
    padding: 1.2rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Show detail */
  .show-detail {
    padding: 3rem 1.5rem;
  }

  .show-detail__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .poster-grid {
    grid-template-columns: 1fr;
  }

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

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