/* ==========================================================================
   111 · VIRALMEDIA AI (استوديو التحويل الذكي) — 1:1 Pure-Black Editorial AI & CRO Studio
   #000000 void · #FFFFFF crisp · #BFBFBF muted · .liquid-glass & .liquid-glass-strong · Scroll Word Reveal
   ========================================================================== */

:root {
  --bg: #000000;
  --fg: #FFFFFF;
  --card: #171717;
  --muted: #BFBFBF;
  --border: #333333;
  --sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --serif: 'Amiri', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--mono); }

.font-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* Liquid Glass & Strong Rim */
.liquid-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.liquid-glass::before,
.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 75%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

/* ======================== FIXED TOP BAR ======================== */
.vm-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 80;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}

.vm-logo {
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.vm-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.vm-nav a {
  padding: 7px 14px;
  border-radius: 6px;
}

.vm-nav a:hover { background: rgba(255, 255, 255, 0.1); }

.vm-pill-strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.vm-pill-strong:hover { transform: scale(1.03); }

.vm-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ======================== 1. HERO (100vh FLOATING MAGENTA ISLAND) ======================== */
.vm-hero {
  position: relative;
  min-height: 100dvh;
  padding: 110px 32px 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.vm-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.vm-hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 290px;
  background: linear-gradient(0deg, #000000 18%, transparent 100%);
  pointer-events: none;
}

.vm-hero-stack {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vm-avatars-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.vm-avatars {
  display: inline-flex;
}

.vm-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #000000;
  margin-inline-start: -8px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.vm-avatars span:first-child { margin-inline-start: 0; }

.vm-h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.12;
}

.vm-email-capsule {
  max-width: 510px;
  width: 100%;
  border-radius: 9999px;
  padding: 7px 18px 7px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-email-capsule input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 14px;
}

.vm-email-capsule input::placeholder { color: rgba(255, 255, 255, 0.5); }

/* ======================== 2. SCROLL WORD-BY-WORD REVEAL (#about) ======================== */
.vm-about {
  padding: 124px 32px;
}

.vm-reveal-text {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.55;
}

.vm-word {
  display: inline-block;
  margin-inline-end: 0.22em;
  opacity: 0.2;
  transition: opacity 0.2s ease;
}

/* ======================== 3. SELECTED WORK 2×2 GRID (#work) ======================== */
.vm-work {
  position: relative;
  z-index: 10;
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

.vm-h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 500;
  text-align: center;
  line-height: 1.15;
}

.vm-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 48px;
}

.vm-card-frame {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.vm-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vm-card:hover .vm-card-frame img { transform: scale(1.04); }

/* ======================== 4. TUCKED TWILIGHT SHOWCASE BAND (#showcase) ======================== */
.vm-showcase-band {
  position: relative;
  z-index: 1;
  height: 580px;
  margin-top: -220px;
  overflow: hidden;
}

.vm-showcase-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vm-showcase-band::before,
.vm-showcase-band::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 150px;
  z-index: 2;
  pointer-events: none;
}

.vm-showcase-band::before {
  top: 0;
  background: linear-gradient(180deg, #000000 0%, transparent 100%);
}

.vm-showcase-band::after {
  bottom: 0;
  background: linear-gradient(0deg, #000000 0%, transparent 100%);
}

/* ======================== 5. CONVERSION CALCULATOR & FULLSCREEN CTA ======================== */
.vm-cta-sec {
  position: relative;
  z-index: 10;
  padding: 96px 32px 110px;
  text-align: center;
}

.vm-calc-box {
  max-width: 760px;
  margin: 0 auto 72px;
  border-radius: 22px;
  padding: 30px;
  text-align: right;
}

.vm-footer {
  border-top: 1px solid var(--border);
  padding: 58px 32px 36px;
}

.vm-footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.vm-showcase-nav {
  max-width: 1160px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .vm-nav { display: none; }
  .vm-grid-2x2, .vm-footer-grid { grid-template-columns: 1fr; }
}
