/* ============================================================
   M AQEEL — Video Editor Portfolio
   style.css
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #F0D080;
  --gold-glow:   rgba(201, 168, 76, 0.35);
  --gold-subtle: rgba(201, 168, 76, 0.12);
  --bg:          #0A0A0B;
  --bg-2:        #0F0F10;
  --bg-card:     rgba(255, 255, 255, 0.035);
  --bg-card-h:   rgba(255, 255, 255, 0.065);
  --border:      rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 168, 76, 0.3);
  --text:        #F0EDE8;
  --text-muted:  rgba(240, 237, 232, 0.5);
  --text-dim:    rgba(240, 237, 232, 0.3);
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.18);
  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ── Utility ── */
.gold         { color: var(--gold); }
.gold-text    { color: var(--gold); }

/* ── Loading Screen ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner  { text-align: center; }
.loader-text   {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  display: block;
  margin-bottom: 1.5rem;
}
.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  animation: loadFill 1.2s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); padding-left: 0.5rem; }

/* ── Hero Section ── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px clamp(1rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb-1 {
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  background: var(--gold);
  top: -15%;
  right: -10%;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.orb-2 {
  width: clamp(200px, 35vw, 400px);
  height: clamp(200px, 35vw, 400px);
  background: var(--gold-light);
  bottom: 10%;
  left: -5%;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: clamp(150px, 25vw, 300px);
  height: clamp(150px, 25vw, 300px);
  background: #fff;
  top: 40%;
  left: 30%;
  animation: orbFloat 12s ease-in-out infinite alternate;
  opacity: 0.04;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 30px) scale(1.05); }
}

.hero-container {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Profile Image */
.hero-image-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.hero-image-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), transparent 40%, var(--gold) 60%, transparent 80%, var(--gold));
  animation: spinRing 6s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.hero-image {
  width: clamp(120px, 20vw, 160px);
  height: clamp(120px, 20vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-gold);
  /* ← Profile image placeholder until replaced */
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.hero-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  z-index: 2;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

/* Hero Text */
.hero-eyebrow {
  font-size: clamp(0.7rem, 2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: -0.5rem;
}

.hero-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-muted);
  min-height: 2.6em;
}

.typewriter {
  color: var(--gold-light);
  font-weight: 500;
  border-right: 2px solid var(--gold);
  padding-right: 3px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

.hero-desc {
  font-size: clamp(0.88rem, 2.5vw, 0.98rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0B;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.6rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
  filter: brightness(1.08);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.68rem 1.5rem;
  border-radius: 99px;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ── Section Shared ── */
section { padding: clamp(4rem, 10vw, 7rem) 0; }

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: transparent;
  color: #0A0A0B;
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* ── Video Grid ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

/* ── Video Card ── */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--border-gold);
  border-color: var(--border-gold);
}
.video-card.hidden { display: none; }

.card-inner { display: flex; flex-direction: column; }

/* Video Wrapper — aspect ratio */
.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}
/* Reel: 9:16 but max height capped */
.reel-ratio {
  aspect-ratio: 9/16;
  max-height: 420px;
}
/* Long form: 16:9 */
.landscape-ratio {
  aspect-ratio: 16/9;
}

.video-wrapper video,
.video-wrapper iframe,
.video-embed-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Placeholder styling */
.video-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111214 0%, #1a1a1f 100%);
}
.placeholder-content {
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}
.play-icon-large {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.6rem;
  transition: opacity var(--transition), transform var(--transition);
}
.video-card:hover .play-icon-large {
  opacity: 0.9;
  transform: scale(1.12);
}
.placeholder-content p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.placeholder-content span {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* Card Info */
.card-info {
  padding: clamp(0.75rem, 2vw, 1rem);
}
.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-subtle);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}
.card-tag.youtube {
  background: rgba(255, 0, 0, 0.08);
  color: #ff6b6b;
  border-color: rgba(255, 0, 0, 0.2);
}
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Showcase section background ── */
#showcase { background: var(--bg-2); }

/* ── About Section ── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.about-left h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0.5rem 0 1.25rem;
}
.about-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1rem);
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.skill-icon {
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.skill-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.skill-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.skill-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}
.skill-fill.animated { width: var(--pct); }

/* ── Contact Section ── */
#contact { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.4rem);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.contact-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-h);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.contact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background var(--transition), box-shadow var(--transition);
}
.contact-card:hover .contact-icon {
  background: var(--gold);
  color: #0A0A0B;
  box-shadow: 0 0 20px var(--gold-glow);
}

.contact-info { flex: 1; min-width: 0; }
.contact-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.contact-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  font-size: 1.1rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}
.contact-card:hover .contact-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

.contact-cta {
  text-align: center;
}
.contact-cta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Footer ── */
footer {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-tagline {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Scroll Animations ── */
.reveal-up,
.reveal-card,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-card  { transform: translateY(20px); }

.reveal-up.visible,
.reveal-card.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ── Responsive ── */

/* Tablet */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-stats { justify-content: center; }
  .about-left { order: 2; }
  .about-right { order: 1; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-cta-row { flex-direction: column; align-items: center; }

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

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

  /* On mobile, reels stay portrait but capped */
  .reel-ratio { max-height: 380px; }
}

@media (max-width: 420px) {
  .hero-name { font-size: clamp(2.2rem, 12vw, 3rem); }
  .filter-tabs { gap: 0.4rem; }
  .filter-btn  { font-size: 0.78rem; padding: 0.4rem 0.9rem; }
  .contact-value { font-size: 0.82rem; }
}

/* Handle very wide screens */
@media (min-width: 1400px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Print / reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Card Thumbnail ── */
.card-thumb-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}
.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  display: block;
}
.video-card:hover .card-thumb {
  transform: scale(1.04);
  filter: brightness(0.7);
}
/* Fallback when no thumb */
.card-thumb-wrap.no-thumb {
  background: linear-gradient(135deg, #111214 0%, #1a1a1f 100%);
}
.card-thumb-wrap.no-thumb .card-thumb { display: none; }

/* Play button overlay on card */
.card-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card-play-btn svg {
  background: rgba(201, 168, 76, 0.92);
  color: #0A0A0B;
  border-radius: 50%;
  padding: 14px;
  width: 62px;
  height: 62px;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover .card-play-btn { opacity: 1; }
.video-card:hover .card-play-btn svg {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(201, 168, 76, 0.65);
}

/* ── Video Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 4vw, 2rem);
}
.modal-overlay[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  animation: fadeIn 0.25s ease;
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: rgba(15, 15, 16, 0.97);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.1);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Wide modal for landscape videos */
.modal-box.landscape { max-width: 820px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.modal-close:hover {
  background: rgba(201, 168, 76, 0.8);
  color: #0A0A0B;
  transform: scale(1.1);
}

.modal-video-wrap {
  width: 100%;
  background: #000;
  position: relative;
}
/* Reel: 9:16 */
.modal-video-wrap.is-reel { aspect-ratio: 9/16; max-height: 72vh; }
/* Landscape: 16:9 */
.modal-video-wrap.is-landscape { aspect-ratio: 16/9; }

.modal-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.modal-info {
  padding: clamp(0.85rem, 2.5vw, 1.25rem);
}
.modal-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-subtle);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}
.modal-title {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Mobile modal tweaks */
@media (max-width: 540px) {
  .modal-video-wrap.is-reel { max-height: 65vh; }
  .modal-box.landscape { max-width: 100%; }
}
