/* === SOCIAL MEDIA CONTENT PRODUCTION — DARK CINEMATIC === */

body { font-family: 'Montserrat', sans-serif; background: #0a0a0a; color: #fff; margin: 0; padding: 0; }

/* Bootstrap overrides */
.text-dark       { color: #f0f0f0 !important; }
.text-muted-dark { color: rgba(255,255,255,0.52) !important; }
.accent-text-red { color: #8b0000; }

/* ── HERO ── */
.portfolio-hero-light {
  height: 68vh; position: relative; overflow: hidden;
  background: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?q=80&w=2000&auto=format&fit=crop') center center / cover no-repeat;
}
.portfolio-overlay-light {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(10,10,10,0.96) 100%);
  z-index: 0;
}

/* ── CASE STUDIES ── */
.case-studies-light { background: #0a0a0a; }

.case-study-row-light {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  margin-bottom: 0 !important;
}
.case-study-row-light:last-child { border-bottom: none; }

.stats-box-light {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid #8b0000;
  padding: 16px 22px;
  border-radius: 0 6px 6px 0;
  display: inline-block;
}
.stats-box-light h5 {
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.72rem !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px !important;
  font-weight: 600 !important;
}
.stats-box-light p { color: #8b0000 !important; font-size: 0.95rem; font-weight: 800; }

/* ── PHONE FRAME FLOAT ANIMATIONS ── */
@keyframes phoneFloat1 {
  0%, 100% { transform: translateY(0px) rotate(-2.5deg); }
  50%       { transform: translateY(-18px) rotate(-2.5deg); }
}
@keyframes phoneFloat2 {
  0%, 100% { transform: translateY(0px) rotate(2.5deg); }
  50%       { transform: translateY(-18px) rotate(2.5deg); }
}
@keyframes phoneGlow {
  0%, 100% { box-shadow: 0 25px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04); }
  50%       { box-shadow: 0 35px 65px rgba(0,0,0,0.8), 0 0 36px rgba(139,0,0,0.22); }
}
@keyframes phoneFloatMobile {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Desktop — two phones float in opposite phases with opposing tilts */
@media (min-width: 769px) {
  .d-flex.gap-4 > a:nth-child(1) { animation: phoneFloat1 5s ease-in-out infinite; }
  .d-flex.gap-4 > a:nth-child(2) { animation: phoneFloat2 5s ease-in-out infinite; animation-delay: -2.5s; }
}

/* ── PHONE FRAMES — DARK CHROME ── */
.phone-frame-silver {
  width: 240px; height: 480px;
  background: #0f0f0f;
  border: 7px solid #1e1e1e;
  border-radius: 36px;
  position: relative; overflow: hidden;
  animation: phoneGlow 4s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
  cursor: pointer;
}
.phone-frame-silver:hover {
  transform: translateY(-14px) scale(1.03);
  border-color: #282828;
  animation-play-state: paused;
  box-shadow: 0 44px 75px rgba(0,0,0,0.85), 0 0 40px rgba(139,0,0,0.28);
}
.phone-notch-silver {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #0a0a0a; border-radius: 0 0 14px 14px; z-index: 10;
}
.phone-media {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; transition: transform 0.4s ease, filter 0.4s ease;
}
.phone-frame-silver:hover .phone-media { transform: scale(1.06); filter: brightness(0.38); }

.play-btn-red {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; background: #8b0000; border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; padding-left: 3px; z-index: 5;
  opacity: 0; transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(139,0,0,0.5);
}
.phone-frame-silver:hover .play-btn-red {
  opacity: 1; transform: translate(-50%, -50%) scale(1.12);
}

@media (max-width: 992px) {
  .phone-frame-silver { width: 185px; height: 370px; }
  .phone-frame-silver.mt-5 { margin-top: 28px !important; }
}
@media (max-width: 768px) {
  /* Stack phone frames vertically, centered */
  .d-flex.gap-4 {
    flex-direction: column !important;
    align-items: center !important;
    gap: 28px !important;
  }
  /* Make each <a> wrapper a block so the phone frame width resolves correctly */
  .d-flex.gap-4 > a {
    display: block;
    width: 260px;
    max-width: calc(100vw - 40px);
  }
  .phone-frame-silver {
    width: 100%;
    height: 380px;
    border-radius: 28px;
    border-width: 5px;
  }
  .phone-frame-silver.mt-5 { margin-top: 0 !important; }
  .portfolio-hero-light { height: 52vh; }
  .case-study-row-light { padding-top: 52px !important; padding-bottom: 52px !important; }
  /* Mobile float — no tilt, simple vertical bob, staggered */
  .d-flex.gap-4 > a:nth-child(1) { animation: phoneFloatMobile 4s ease-in-out infinite; }
  .d-flex.gap-4 > a:nth-child(2) { animation: phoneFloatMobile 4s ease-in-out infinite; animation-delay: -2s; }
}
@media (max-width: 480px) {
  .d-flex.gap-4 > a {
    width: 240px;
  }
  .phone-frame-silver { height: 320px; }
  .phone-notch-silver { width: 80px; height: 18px; }
  .play-btn-red { width: 44px; height: 44px; font-size: .95rem; }
}

/* ── CLIENT LOGO BELT ── */
.client-grid-light {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.logo-belt-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 50px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-belt-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: beltScroll 38s linear infinite;
}

@keyframes beltScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-belt-item {
  flex-shrink: 0;
  height: 80px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-belt-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
