/* =========================================
   VIDEO PROJECTS PAGE — Premium UI
   Matches the ADinB home page design language.
   ========================================= */

/* ── Fonts ── */
@font-face { font-family: 'Neue Montreal'; src: url('assets/Fonts/NeueMontreal-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('assets/Fonts/NeueMontreal-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'PP Editorial New'; src: url('assets/Fonts/PPEditorialNew-Ultralight.otf') format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'PP Right Serif'; src: url('assets/Fonts/PP%20Right%20Serif%20-%20Medium_2.otf') format('opentype'); font-weight: 500; font-display: swap; }

/* ── Tokens ── */
:root {
  --cream: #F5F0EB;
  --dark: #2B2B2B;
  --red: #d53639;
  --lime: #E1FD7B;
  --gray-300: #bbb;
  --gray-400: #999;
  --gray-600: #666;
  --ff-sans: 'Neue Montreal', 'Helvetica Neue', -apple-system, sans-serif;
  --ff-serif: 'PP Editorial New', Georgia, serif;
  --ff-serif-right: 'PP Right Serif', Georgia, serif;
  --pad: 7.5%;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-sans); color: var(--dark); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── Scroll Reveal ── */
.vcard {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.vcard.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================
   TOP BAR — Matches About/Contact pages
   ========================================= */
.vtopbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.9vw 10vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.vtopbar--scrolled {
  background: linear-gradient(180deg, rgba(245, 240, 235, 0.95) 0%, rgba(245, 240, 235, 0.6) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vtopbar__dot {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  flex-shrink: 0;
}

.vtopbar__dot-img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  transition: transform 0.3s;
  animation: vdot-pulse 3s ease-in-out infinite;
}

.vtopbar__dot-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px !important;
  height: 14px !important;
  color: #fff;
  opacity: 0;
  animation: varrow-fade 3s ease-in-out infinite;
}

.vtopbar__dot:hover .vtopbar__dot-img { transform: scale(1.15); }
.vtopbar__dot:hover .vtopbar__dot-arrow { opacity: 1; animation: none; }

@keyframes vdot-pulse {
  0%, 60%, 100% { transform: scale(1); }
  30% { transform: scale(1.25); }
}

@keyframes varrow-fade {
  0%, 20%, 80%, 100% { opacity: 0; }
  35%, 65% { opacity: 1; }
}

.vtopbar__logo {
  pointer-events: all;
  flex-shrink: 0;
}

.vtopbar__logo img {
  height: 2.75vw !important;
  max-height: 40px;
  width: auto !important;
}

/* =========================================
   HERO
   ========================================= */
.vhero {
  padding: 140px var(--pad) 60px;
  position: relative;
  overflow: hidden;
}
.vhero__top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.vhero__eyebrow {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 200;
  color: var(--gray-400);
  font-style: italic;
}
.vhero__count-pill {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 20px;
  border: 1.5px solid var(--dark);
  border-radius: 100px;
  color: var(--dark);
}
.vhero__title {
  font-family: var(--ff-sans);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--red);
  letter-spacing: -0.03em;
  margin: 0;
}
.vhero__line {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.vhero__line--1 { font-size: clamp(60px, 9vw, 145px); }
.vhero__line--2 { font-size: clamp(60px, 9vw, 145px); }
.vhero__line--3 { font-size: clamp(60px, 9vw, 145px); }
.vhero__line--3 em {
  font-family: var(--ff-serif);
  font-weight: 200;
  font-style: italic;
  color: var(--dark);
}

/* Inline video in hero */
.vhero__img-inline {
  display: inline-block;
  width: clamp(80px, 10vw, 160px);
  height: clamp(50px, 6vw, 100px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  top: -0.1em;
  flex-shrink: 0;
}
.vhero__img-inline video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vhero__desc {
  font-family: var(--ff-sans);
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--gray-600);
  max-width: 480px;
  line-height: 1.6;
  margin-top: 40px;
}

/* =========================================
   FILTERS
   ========================================= */
.vfilters {
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.vfilters__bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.03);
  border-radius: 100px;
  padding: 4px;
}
.vfilters__btn {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--gray-400);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.vfilters__btn:hover { color: var(--dark); background: rgba(255,255,255,0.6); }
.vfilters__btn--active { color: #fff !important; background: var(--dark) !important; }

.vfilters__count { display: flex; align-items: baseline; gap: 6px; }
.vfilters__count-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.vfilters__count-label {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 200;
  color: var(--gray-400);
  font-style: italic;
}

/* =========================================
   GRID — Masonry-style
   ========================================= */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 var(--pad) 80px;
}

/* Wide cards span 2 columns */
.vcard--wide { grid-column: span 2; }

/* =========================================
   VIDEO CARD
   ========================================= */
.vcard {
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark);
  position: relative;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.7s var(--ease);
}
.vcard:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.vcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.vcard--wide .vcard__media { aspect-ratio: 21 / 9; }

.vcard__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.vcard__play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.4s var(--spring);
}
.vcard:hover .vcard__play {
  transform: scale(1.15);
  background: rgba(255,255,255,0.25);
}

.vcard__play svg { width: 22px; height: 22px; margin-left: 3px; }

.vcard__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: #fff;
}

.vcard__num {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: var(--ff-serif);
  font-size: 48px;
  font-weight: 200;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  pointer-events: none;
}

.vcard__bottom {
  padding: 16px 20px 20px;
  background: var(--dark);
  color: #fff;
}
.vcard__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #fff;
}
.vcard__sub {
  font-family: var(--ff-serif);
  font-size: 13px;
  font-weight: 200;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* =========================================
   MODAL
   ========================================= */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.vmodal--open {
  pointer-events: all;
  opacity: 1;
}

.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
}

.vmodal__container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--dark);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.5s var(--spring);
}
.vmodal--open .vmodal__container {
  transform: translateY(0) scale(1);
}

.vmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}
.vmodal__close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}
.vmodal__close svg { width: 20px; height: 20px; }

.vmodal__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 100%;
}

.vmodal__player {
  background: #000;
  display: flex;
  align-items: center;
}
.vmodal__player video {
  width: 100%;
  max-height: 70vh;
  border-radius: 0;
}

.vmodal__info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  color: #fff;
}

.vmodal__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  background: var(--red);
  border-radius: 100px;
  color: #fff;
  width: fit-content;
  margin-bottom: 20px;
}

.vmodal__title {
  font-family: var(--ff-sans);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 6px;
}

.vmodal__subtitle {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 200;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.vmodal__divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 24px 0;
}

.vmodal__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin: 0 0 28px;
}

.vmodal__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.vmodal__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vmodal__meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
}
.vmodal__meta-value {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-transform: capitalize;
}

.vmodal__brand {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.vmodal__brand-logo {
  height: 18px;
}
.vmodal__brand-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* =========================================
   FOOTER
   ========================================= */
.vfooter {
  background: var(--dark);
  padding: 40px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.vfooter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vfooter__logo { height: 22px; filter: brightness(10); }
.vfooter p { font-size: 13px; color: rgba(255,255,255,0.35); }
.vfooter__link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  transition: all 0.3s;
}
.vfooter__link:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 1024px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .vcard--wide { grid-column: span 2; }
  .vmodal__layout { grid-template-columns: 1fr; }
  .vmodal__info { padding: 24px; }
}

@media (max-width: 768px) {
  .vtopbar { padding: 16px 20px; }
  .vtopbar__logo img { height: 28px; }
  .vtopbar__dot, .vtopbar__dot-img { width: 18px; height: 18px; }
  .vtopbar__dot-arrow { width: 12px; height: 12px; }

  .vhero { padding: 70px 24px 40px; }
  .vhero__line { flex-wrap: wrap; }
  .vhero__line--1, .vhero__line--2, .vhero__line--3 { font-size: 44px; }
  .vhero__img-inline { width: 60px; height: 40px; border-radius: 6px; }
  .vhero__desc { margin-top: 24px; }

  .vfilters { padding: 0 24px; flex-direction: column; align-items: flex-start; }
  .vfilters__bar { gap: 2px; padding: 3px; }
  .vfilters__btn { font-size: 10px; padding: 8px 14px; }

  .vgrid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 24px 60px;
  }
  .vcard--wide { grid-column: span 1; }
  .vcard--wide .vcard__media { aspect-ratio: 16 / 9; }

  .vcard__play { width: 48px; height: 48px; }
  .vcard__play svg { width: 18px; height: 18px; }
  .vcard__num { font-size: 32px; }

  .vmodal__container { width: 95%; max-height: 95vh; border-radius: 14px; }
  .vmodal__layout { grid-template-columns: 1fr; }
  .vmodal__player video { max-height: 40vh; }
  .vmodal__info { padding: 20px; }
  .vmodal__title { font-size: 22px; }

  .vfooter { padding: 28px 24px; }
  .vfooter__inner { flex-direction: column; gap: 16px; text-align: center; }
}
