:root {
  color-scheme: dark;
  --ink: #f4f7ff;
  --muted: #a6b2c7;
  --paper: #05070d;
  --soft: #0b1020;
  --line: rgba(96, 239, 255, 0.2);
  --clay: #ff3df2;
  --olive: #19f6ff;
  --charcoal: #090d18;
  --white: #ffffff;
  --glass: rgba(9, 13, 24, 0.72);
  --cyan-glow: 0 0 28px rgba(25, 246, 255, 0.28);
  --magenta-glow: 0 0 30px rgba(255, 61, 242, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 10%, rgba(25, 246, 255, 0.18), transparent 28vw),
    radial-gradient(circle at 86% 18%, rgba(255, 61, 242, 0.16), transparent 30vw),
    linear-gradient(135deg, #05070d 0%, #0b1020 45%, #080712 100%);
  color: var(--ink);
  font-family: "Tajawal", Arial, sans-serif;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(96, 239, 255, 0.18);
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.brand {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(25, 246, 255, 0.45);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a:hover {
  color: var(--olive);
  text-shadow: var(--cyan-glow);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.18), rgba(5, 7, 13, 0.88)),
    radial-gradient(circle at 76% 50%, rgba(255, 61, 242, 0.16), transparent 34vw);
}

.hero-media {
  min-height: 620px;
  position: relative;
  background: linear-gradient(135deg, #10182c, #051018);
}

.hero-media::after,
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 7, 13, 0.1) 52%, rgba(5, 7, 13, 0.68) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(34px, 5.8vw, 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--olive);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: var(--cyan-glow);
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  font-size: clamp(3.2rem, 7.6vw, 6.7rem);
  font-weight: 800;
  text-shadow:
    0 0 18px rgba(25, 246, 255, 0.35),
    0 0 42px rgba(255, 61, 242, 0.22);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  font-weight: 800;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.hero-bio {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(244, 247, 255, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.hero-bio p {
  margin: 0 0 10px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(96, 239, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(25, 246, 255, 0.5);
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 800;
  box-shadow: var(--cyan-glow);
}

.button.primary {
  background: linear-gradient(135deg, rgba(25, 246, 255, 0.18), rgba(255, 61, 242, 0.24));
  color: var(--white);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.section {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 64px);
}

.details-band {
  background:
    linear-gradient(135deg, rgba(11, 16, 32, 0.94), rgba(5, 7, 13, 0.88)),
    radial-gradient(circle at 16% 30%, rgba(25, 246, 255, 0.12), transparent 28vw);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.intro-video-section {
  background:
    linear-gradient(135deg, rgba(5, 7, 13, 0.98), rgba(12, 17, 32, 0.92)),
    radial-gradient(circle at 22% 22%, rgba(25, 246, 255, 0.14), transparent 30vw),
    radial-gradient(circle at 84% 54%, rgba(255, 61, 242, 0.14), transparent 28vw);
}

.intro-video-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.intro-video-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.26rem);
}

.intro-video-copy p {
  max-width: 640px;
  margin: 0 0 24px;
}

.intro-video-frame {
  width: min(430px, 100%);
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(96, 239, 255, 0.3);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), var(--magenta-glow);
}

.intro-video-frame video {
  display: block;
  width: 100%;
  max-height: 76vh;
  background: #000;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin-inline: auto;
  gap: 16px;
}

.shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid rgba(96, 239, 255, 0.18);
  background: linear-gradient(145deg, #121a30, #070b12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

.shot-button {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  padding: 0;
}

.shot-button:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: -6px;
}

.shot img,
.hero-media img {
  filter: contrast(1.08) saturate(0.86) brightness(0.86);
}

.shot img {
  padding: 10px;
  object-fit: contain;
  transition: filter 180ms ease, transform 180ms ease;
}

.shot:hover img,
.shot-button:focus-visible img {
  filter: contrast(1.12) saturate(0.92) brightness(0.95);
  transform: scale(1.015);
}

.image-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: inherit;
  background:
    linear-gradient(140deg, rgba(255, 61, 242, 0.24), rgba(25, 246, 255, 0.3)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 42px),
    #09111f;
  color: rgba(244, 247, 255, 0.78);
  font-size: clamp(1.2rem, 3vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.works-section {
  background:
    linear-gradient(135deg, rgba(5, 7, 13, 0.96), rgba(10, 18, 34, 0.92)),
    radial-gradient(circle at 74% 26%, rgba(255, 61, 242, 0.16), transparent 28vw);
}

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(680px, 100%);
  margin: -2px auto 34px;
  border: 1px solid rgba(96, 239, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 61, 242, 0.08), rgba(25, 246, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28), var(--magenta-glow);
  padding: 10px;
}

.work-tab {
  position: relative;
  flex: 1 1 220px;
  min-height: 68px;
  border: 1px solid rgba(96, 239, 255, 0.26);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(25, 246, 255, 0.04)),
    rgba(5, 7, 13, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 800;
  overflow: hidden;
  padding: 14px 22px;
  text-align: center;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.work-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.16), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.work-tab:hover,
.work-tab.is-active {
  border-color: rgba(25, 246, 255, 0.7);
  color: var(--white);
  box-shadow: var(--cyan-glow);
}

.work-tab:hover {
  transform: translateY(-1px);
}

.work-tab:hover::before,
.work-tab.is-active::before {
  opacity: 1;
}

.work-tab.is-active {
  background:
    linear-gradient(135deg, rgba(25, 246, 255, 0.22), rgba(255, 61, 242, 0.28)),
    rgba(5, 7, 13, 0.9);
  text-shadow: 0 0 18px rgba(25, 246, 255, 0.42);
}

.work-tab:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.work-card {
  position: relative;
  display: grid;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(96, 239, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(25, 246, 255, 0.04)),
    radial-gradient(circle at 22% 20%, rgba(25, 246, 255, 0.2), transparent 42%);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 18px;
  text-align: start;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.work-card[data-work-type="folder"] {
  background:
    linear-gradient(145deg, rgba(255, 61, 242, 0.11), rgba(25, 246, 255, 0.05)),
    radial-gradient(circle at 22% 20%, rgba(25, 246, 255, 0.18), transparent 42%);
}

.work-card:hover {
  border-color: rgba(25, 246, 255, 0.7);
  box-shadow: var(--cyan-glow);
  transform: translateY(-2px);
}

.work-card__type {
  align-self: start;
  justify-self: start;
  min-height: 26px;
  border: 1px solid rgba(96, 239, 255, 0.2);
  border-radius: 999px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 6px 10px;
}

.work-card__brand {
  align-self: start;
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  padding-inline-end: 44px;
}

.work-card__play {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(25, 246, 255, 0.5);
  border-radius: 50%;
  color: var(--olive);
  font-size: 0.95rem;
  box-shadow: var(--cyan-glow);
}

.work-card__label {
  align-self: end;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding-inline-end: 48px;
}

.work-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.work-more [hidden] {
  display: none;
}

.video-modal[aria-hidden="true"],
.image-modal[aria-hidden="true"] {
  display: none;
}

.video-modal,
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.video-modal__backdrop,
.image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.video-modal__panel,
.image-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  border: 1px solid rgba(96, 239, 255, 0.3);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--magenta-glow);
  padding: clamp(14px, 3vw, 24px);
}

.image-modal__panel {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding-top: 58px;
}

.video-modal__header,
.image-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.video-modal__header h2,
.image-modal__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.modal-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(96, 239, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.image-modal__close {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
}

.video-modal iframe {
  display: block;
  width: min(430px, 100%);
  max-height: 72vh;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.image-modal__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 8px;
  background: #000;
}

.image-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.drive-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--olive);
  font-weight: 800;
}

.details-grid article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(25, 246, 255, 0.035));
  padding: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.details-grid .profile-details {
  grid-column: span 2;
}

.details-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.details-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.45;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(5, 7, 13, 0.98), rgba(16, 8, 28, 0.94)),
    radial-gradient(circle at 80% 36%, rgba(255, 61, 242, 0.2), transparent 28vw);
  color: var(--white);
}

.contact h2 {
  color: var(--white);
}

.contact p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-panel a {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(96, 239, 255, 0.26);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.055);
  direction: ltr;
  text-align: left;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.contact-panel a:hover {
  border-color: rgba(25, 246, 255, 0.7);
  color: var(--olive);
  box-shadow: var(--cyan-glow);
}

.contact-panel svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-panel span {
  min-width: 0;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(96, 239, 255, 0.16);
  background: #03050a;
  color: rgba(244, 247, 255, 0.62);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  inset-inline-start: clamp(14px, 3vw, 28px);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(25, 246, 255, 0.58);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(25, 246, 255, 0.18), rgba(255, 61, 242, 0.26)),
    rgba(5, 7, 13, 0.86);
  color: var(--white);
  box-shadow: var(--cyan-glow), 0 14px 32px rgba(0, 0, 0, 0.36);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(25, 246, 255, 0.9);
  box-shadow: var(--cyan-glow), var(--magenta-glow);
  outline: 0;
  transform: translateY(-2px);
}

body.modal-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .intro-video-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 58vh;
  }

  .hero-copy {
    padding-top: 42px;
  }

  .intro-video-copy {
    text-align: center;
  }

  .intro-video-frame {
    max-width: 360px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-grid .profile-details {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 15px 16px;
  }

  nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .hero-media {
    min-height: 430px;
  }

  .hero-copy,
  .section {
    padding-inline: 16px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shot {
    border-radius: 6px;
  }

  .shot img {
    padding: 6px;
  }

  .intro-video-frame {
    max-width: 320px;
  }

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

  .details-grid .profile-details {
    grid-column: auto;
  }

  .section-heading {
    display: block;
  }

  .work-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .work-tab {
    min-height: 58px;
    min-width: 0;
    padding: 12px 10px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  footer {
    flex-direction: column;
  }
}
