/* ============================================================
   Abir Hossen — Video Editing Portfolio
   Standalone static build. Design tokens mirror abirhossen.com.
   ============================================================ */

:root {
  --bg: #0E1A24;
  --bg-2: #142433;
  --bg-3: #1A2D3F;
  --ink: #F4F4F2;
  --ink-2: #A7B4BF;
  --ink-3: #5C6B7A;
  --accent: rgb(93, 201, 241);
  --accent-glow: rgb(102, 221, 255);
  --gold: rgb(232, 201, 160);
  --border: rgb(37, 56, 74);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.22);

  --font-head: "Space Grotesk", "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

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

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px) {
  .wrap { padding: 0 48px; }
}

/* ---------- background ambience ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(93,201,241,0.10), transparent 60%),
    radial-gradient(50% 35% at 90% 20%, rgba(232,201,160,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

/* ---------- eyebrow / section labels ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

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

/* ---------- glass card base ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 8px 40px rgba(93, 201, 241, 0.12);
  transition: transform 380ms ease, background 380ms ease, box-shadow 380ms ease, border-color 380ms ease;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 40%);
  pointer-events: none;
}

.glass:hover {
  background: var(--glass-bg-strong);
  transform: scale(1.02);
  box-shadow: 0 14px 60px rgba(93, 201, 241, 0.2);
  border-color: rgba(255,255,255,0.3);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease, border-color 250ms ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover { transform: scale(1.045); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #0A141C;
  box-shadow: 0 6px 24px rgba(93, 201, 241, 0.28);
}
.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 10px 36px rgba(102, 221, 255, 0.45);
}

.btn-pill-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--accent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.btn-pill-ghost:hover {
  background: var(--glass-bg-strong);
  border-color: var(--accent);
  box-shadow: 0 6px 26px rgba(93, 201, 241, 0.22);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-2);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 6px 26px rgba(93, 201, 241, 0.15);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 26, 36, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: block;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav .btn { padding: 10px 20px; font-size: 13px; }

/* ---------- top spacing for the first section (no hero above it) ---------- */
.page-top {
  padding-top: 150px;
}

/* ============================================================
   SECTIONS common
   ============================================================ */
section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 14px;
}
.section-head .italic-accent { font-size: clamp(17px, 1.8vw, 21px); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 16px; max-width: 560px; line-height: 1.65; margin: 0; }

/* ============================================================
   FEATURED EDIT
   ============================================================ */
.featured {
  padding-bottom: 40px;
}
.featured-stage {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.featured-stage::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(closest-side, rgba(93,201,241,0.28), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}
.featured-card {
  aspect-ratio: 4 / 5;
  padding: 14px;
  border-radius: 32px;
}
.featured-card .video-frame {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  position: relative;
  background: var(--bg-3);
}
.featured-card video, .featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0A141C;
  background: var(--accent);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(93,201,241,0.4);
}
.play-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(10,20,28,0.28);
  opacity: 1;
  transition: opacity 300ms ease;
  cursor: pointer;
}
.play-hint.hidden-hint { opacity: 0; pointer-events: none; }
.play-hint svg { width: 62px; height: 62px; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.4)); }

/* ---------- shared play/pause + mute controls (featured + reel cards) ---------- */
.video-controls {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,20,28,0.6);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  cursor: pointer;
  padding: 0;
  transition: background 250ms ease, border-color 250ms ease, transform 250ms ease;
}
.ctrl-btn:hover {
  background: rgba(93,201,241,0.22);
  border-color: var(--accent);
  transform: scale(1.08);
}
.ctrl-btn svg { width: 15px; height: 15px; }

.featured-caption {
  max-width: 460px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================================
   REEL GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
}

.reel-card {
  padding: 10px;
  border-radius: 22px;
}
.reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-3);
}
.reel-frame video, .reel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(180deg, rgba(10,20,28,0.55) 0%, transparent 26%, transparent 62%, rgba(10,20,28,0.78) 100%);
  pointer-events: none;
}
.reel-pill {
  align-self: flex-start;
  pointer-events: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(93,201,241,0.14);
  border: 1px solid rgba(93,201,241,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.reel-meta { pointer-events: auto; }
.reel-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.reel-title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.reel-tap {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ---------- category segments ---------- */
.category-block {
  margin-bottom: 64px;
}
.category-block:last-child {
  margin-bottom: 0;
}
.category-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

/* luxury row: 2 cards, kept compact rather than stretched across 3 columns */
@media (min-width: 621px) {
  .grid-half {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 660px;
  }
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing {
  text-align: center;
}
.closing-card {
  padding: 72px 32px;
  border-radius: 32px;
  max-width: 780px;
  margin: 0 auto;
}
.closing h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.closing p {
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.65;
}
.closing .btn-primary { padding: 17px 36px; font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 60px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.footer-loc {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 4px;
}
.footer-socials {
  display: flex;
  gap: 14px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-2);
  transition: color 250ms ease, border-color 250ms ease, transform 250ms ease;
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer-socials svg { width: 17px; height: 17px; }
.footer-credit {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 30px;
  text-align: center;
}
.footer-credit a { color: var(--ink-2); }
.footer-credit a:hover { color: var(--accent); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 500ms ease; transform: none; }
  .glass:hover, .btn:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .page-top { padding-top: 120px; }
  section { padding: 70px 0; }
  .featured-stage { max-width: 320px; }
  .featured-caption { max-width: 320px; }
  .category-block { margin-bottom: 48px; }
}
