/* Umoji Studio Asset Sync: 2026-09-12-r1 */
/**
 * UMOJI STUDIO — PORTFOLIO VIDEO SECTION STYLES
 * Page: Jasa Animasi 2D & Explainer Video
 * Grid: 3 Columns Desktop, 2 Columns Tablet, 1 Column Mobile
 * Cards: Simple Clean Visual Cards (No Text) with YouTube Play Logo
 * Modals: Accessible Video Lightbox Overlay with YouTube Embed
 */

.service-portfolio {
  position: relative;
  padding: clamp(60px, 7vw, 96px) 0;
  background: #ffffff;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

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

/* Header (No pill label above h2) */
.service-portfolio__header {
  max-width: 780px;
  margin: 0 auto 48px;
}

.service-portfolio__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #09090b;
  margin: 0 0 14px;
}

.service-portfolio__title-highlight {
  color: var(--brand-blue, #126EF5);
  display: inline-block;
}

.service-portfolio__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.25vw, 16px);
  line-height: 1.6;
  color: #64748b;
  margin: 0 auto;
}

/* ==========================================================================
   PORTFOLIO 3-COLUMN GRID (SIMPLE VISUAL CARDS)
   ========================================================================== */
.service-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.portfolio-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid #ededed;
  box-shadow: none;
  overflow: hidden;
  background: #000000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: #ededed;
  box-shadow: none;
}

/* Thumbnail Wrap */
.portfolio-card__thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f172a;
}

.portfolio-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card__thumb {
  transform: scale(1.04);
}

/* Center Overlay with YouTube Play Button */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}

.portfolio-card:hover .portfolio-card__overlay {
  background: rgba(0, 0, 0, 0.18);
}

/* YouTube Play Button */
.portfolio-card__yt-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.portfolio-card__yt-svg {
  width: 68px;
  height: 48px;
  display: block;
  filter: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Langsung tampilan play button YouTube warna merah */
.portfolio-card__yt-svg .yt-bg {
  fill: #FF0000;
}

.portfolio-card:hover .portfolio-card__yt-svg {
  transform: scale(1.12);
  filter: none;
}

/* ==========================================================================
   BOTTOM CTA CARD
   ========================================================================== */
.service-portfolio__cta {
  margin-top: 24px;
}

.service-portfolio__cta-card {
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: none;
}

.service-portfolio__cta-content {
  text-align: left;
}

.service-portfolio__cta-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.service-portfolio__cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
}

.service-portfolio__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  background: var(--brand-blue, #126EF5);
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-portfolio__cta-btn:hover {
  background: #0b5bd4;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none;
}

/* ==========================================================================
   VIDEO LIGHTBOX MODAL
   ========================================================================== */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portfolio-modal[hidden] {
  display: none !important;
}

.portfolio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: portfolioFadeIn 0.3s ease;
}

.portfolio-modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  background: #0b1120;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: portfolioModalSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes portfolioFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes portfolioModalSlide {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.portfolio-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-modal__title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 14px;
}

.portfolio-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.portfolio-modal__close:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: rotate(90deg);
}

.portfolio-modal__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.portfolio-modal__video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .service-portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .portfolio-card {
    border-radius: 18px;
  }

  .service-portfolio__cta-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .service-portfolio__cta-content {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .service-portfolio__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-card {
    border-radius: 16px;
  }

  .portfolio-card__yt-svg {
    width: 56px;
    height: 40px;
  }

  .service-portfolio__cta-title {
    font-size: 18px;
  }

  .service-portfolio__cta-btn {
    width: 100%;
  }

  .portfolio-modal {
    padding: 10px;
  }
}
