/* =====================================================================
   home.css — styles for index.html only
   Load AFTER tailwind.css, styles-*.css, site.css and style.css.
   Every rule is scoped to a unique class so nothing leaks to other pages.
   ===================================================================== */

/* ---------- 0. Hero height cap on large projectors / ultrawide screens ---------- */
#hero {
  min-height: min(100vh, 860px);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ---------- 1. Banner slider ---------- */
.custom-slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 760px;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}
.custom-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.25, 1, .5, 1);
  will-change: transform;
  z-index: 1;
}
.custom-banner-slide.active-slide { transform: translateX(0); z-index: 3; }
.custom-banner-slide.next-slide   { transform: translateX(100%); z-index: 2; }
.custom-banner-slide.prev-slide   { transform: translateX(-100%); z-index: 2; }
/* "contain" keeps 100% of each image/video visible */
.custom-banner-slide img,
.custom-slider-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  outline: none;
  transition: background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-arrow:hover,
.nav-arrow:active { background: rgba(0, 0, 0, .8); }
.nav-arrow:focus-visible { box-shadow: 0 0 0 3px #66fcf1; }
.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

@media (max-width: 1024px) and (min-width: 769px) {
  .custom-slider-viewport { aspect-ratio: 16 / 10; }
}
@media (max-width: 768px) {
  .custom-slider-viewport { aspect-ratio: 16 / 9; }
  .custom-banner-slide { transition-duration: .35s; }
  .nav-arrow {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 40px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    background: rgba(0, 0, 0, .6);
    font-size: 14px;
  }
  .prev-arrow { left: 10px; }
  .next-arrow { right: 10px; }
}

/* ---------- 2. About mascot & counters ---------- */
.graphic-asset-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fluid-mascot-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .45);
  object-fit: contain;
}
.about-stats { width: 100%; padding: 20px 0 0; }
.highlights-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.highlight-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px 10px;
  border: 1px solid rgba(201, 119, 214, .35);
  border-radius: 10px;
  background: var(--brand-gradient, linear-gradient(135deg,#602EA6,#C977D6));
  text-align: center;
  box-shadow: 0 2px 8px rgba(219, 201, 120, .04);
}
.counter-number,
.counter-suffix {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-accent, #c8d416);
}
.counter-label {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #d9d6df;
}
@media (min-width: 768px) {
  .about-stats { grid-column: 1 / -1; }
  .highlights-section { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .counter-number,
  .counter-suffix { font-size: 2.2rem; }
  .counter-label { font-size: .85rem; }
}

/* ---------- 3. Studio productions banner (scrolling strip) ---------- */
.phone-scroller-wrapper { width: 100%; max-width: 1920px; margin: 0 auto; overflow: hidden; background: #fff; }
.phone-scroller-track {
  display: flex;
  width: max-content;
  animation: scrollLinear 20s linear infinite;
}
.scroll-img {
  display: block;
  width: auto;
  height: auto;
  -webkit-tap-highlight-color: transparent;
}
.phone-scroller-wrapper:hover .phone-scroller-track,
.phone-scroller-wrapper:active .phone-scroller-track { animation-play-state: paused; }
/* track holds two identical halves, so -50% loops seamlessly */
@keyframes scrollLinear {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 4. Course cards ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 28px;
}
@media (min-width: 768px) {
  .courses-grid { gap: 36px; }
}
@media (min-width: 1024px) {
  .courses-grid { gap: 48px; }
}
.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(27, 161, 105, .03);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .4);
  transition: transform .3s ease, border-color .3s ease;
}
.course-card:hover { transform: translateY(-5px); border-color: rgba(48, 83, 236, .4); }
.course-thumb-box { width: 100%; height: 200px; overflow: hidden; }
.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.course-card:hover .course-img { transform: scale(1.06); }
.course-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px;
}
.course-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 15px;
  padding: .35rem .85rem;
  border: 1px solid rgba(201, 119, 214, .5);
  border-radius: 9999px;
  background: rgba(96, 46, 166, .4);
  color: #f3e0f7;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.course-info h3 { margin-bottom: 10px; font-size: 1.4rem; color: #fff; }
.course-info p {
  margin-bottom: 20px;
  font-size: .95rem;
  line-height: 1.5;
  color: #c5c6c7;
}
.course-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
/* Know More: smaller version of .btn-view-courses */
.course-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .5rem 1.25rem;
  border: 2px solid var(--brand-purple, #8C4DBA);
  border-radius: 30px;
  background: transparent;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .3s ease, transform .2s ease;
}
.course-link:hover {
  background: var(--brand-gradient, #8C4DBA);
  color: #fff;
  text-decoration: none;
}
.course-link:focus-visible {
  outline: 2px solid #C977D6;
  outline-offset: 2px;
}
/* Enroll Now: same height and shape so the pair lines up. */
.course-footer .dual-purple-btn {
  min-height: 40px;
  padding: .5rem 1.25rem;
  border-radius: 30px;
  font-size: .8rem;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .course-footer > * { flex: 1 1 100%; text-align: center; }
}
/* Enroll Now buttons use .dual-purple-btn, defined once with .btn-primary in styles-DNj_wSG-.css */

.view-all-courses-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 40px auto;
  padding: 0 15px;
}
.btn-view-courses {
  display: inline-block;
  padding: 12px 35px;
  border: 2px solid var(--brand-purple, #8C4DBA);
  border-radius: 30px;
  background: transparent;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all .3s ease;
}
.btn-view-courses:hover { background: var(--brand-gradient, #8C4DBA); color: #fff; }

/* ---------- 5. Placement section ---------- */
.placement-section {
  --pl-bg: #080814;
  --pl-card: #120d29;
  --pl-border: rgba(140, 77, 186, .35);
  --pl-muted: #9ca3af;
  --pl-accent: var(--brand-accent, #c8d416);
  --pl-accent-hover: #a9b50f;
  --pl-badge-bg: rgba(96, 46, 166, .4);
  --pl-badge-border: rgba(201, 119, 214, .5);
  --pl-badge-text: #f3e0f7;
  width: 100%;
  padding: 2.5rem 1rem;
  background: var(--pl-bg);
}
.placement-container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--pl-border);
  border-radius: 20px;
  background: var(--pl-card);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .5), 0 10px 10px -5px rgba(0, 0, 0, .04);
}
.placement-grid { display: flex; flex-direction: column; gap: 2rem; }
.placement-content { display: flex; flex-direction: column; gap: 1.25rem; }
.placement-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  padding: .35rem .85rem;
  border: 1px solid var(--pl-badge-border);
  border-radius: 9999px;
  background: var(--pl-badge-bg);
  color: var(--pl-badge-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.placement-badge svg { width: 14px; height: 14px; fill: currentColor; }
.placement-title { font-size: 1.875rem; font-weight: 900; line-height: 2.25rem; color: #fff; }
.placement-title .highlight { color: var(--pl-accent); }
.placement-description { font-size: .9375rem; line-height: 1.6; color: var(--pl-muted); }
.feature-list { display: flex; flex-direction: column; gap: .85rem; margin-top: .25rem; list-style: none; }
.feature-item { display: flex; align-items: flex-start; gap: .75rem; }
.check-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; fill: var(--pl-accent); }
.feature-text { font-size: .9375rem; font-weight: 600; color: #fff; }
.placement-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .875rem 1.5rem;
  border-radius: 12px;
  background: var(--pl-accent);
  color: #000;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(200, 212, 22, .25);
  transition: background-color .2s ease, transform .2s ease;
}
.placement-btn:hover { background: var(--pl-accent-hover); transform: translateY(-2px); }
.placement-btn svg { width: 16px; height: 16px; fill: currentColor; transform: rotate(-45deg); }

.filmstrip-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
}
.filmstrip-track {
  display: flex;
  flex-direction: column;
  animation: scrollUpToDown 20s linear infinite;
  will-change: transform;
}
.filmstrip-track img { display: block; width: 100%; height: auto; }
@keyframes scrollUpToDown {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@media (min-width: 640px) {
  .placement-section { padding: 3.5rem 1.5rem; }
  .placement-container { padding: 2.5rem; border-radius: 28px; }
  .placement-title { font-size: 2.25rem; line-height: 2.5rem; }
  .placement-description { font-size: 1rem; }
  .placement-btn { width: auto; }
}
@media (min-width: 1024px) {
  .placement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .placement-container { padding: 3rem; }
}

/* ---------- 6. Film-poster marquee ---------- */
.poster-marquee { width: 100%; max-width: 1920px; margin: 0 auto; overflow: hidden; padding: 20px 0; }
.poster-track {
  display: flex;
  width: max-content;
  animation: scrollPosters 40s linear infinite;
}
.poster-track:hover { animation-play-state: paused; }
.poster-card {
  flex-shrink: 0;
  width: 300px;
  margin-right: 20px;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}
.poster-card img { display: block; width: 100%; height: auto; }
/* track holds the same 7 posters twice, so -50% loops seamlessly */
@keyframes scrollPosters {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 7. Studio environment ---------- */
.studio-section {
  --st-bg: #0b0b1a;
  --st-card: #120d29;
  --st-border: rgba(140, 77, 186, .35);
  --st-muted: #9ca3af;
  --st-accent: var(--brand-accent, #c8d416);
  --st-badge-bg: rgba(96, 46, 166, .4);
  --st-badge-border: rgba(201, 119, 214, .5);
  --st-badge-text: #f3e0f7;
  width: 100%;
  padding: 3rem 1rem;
  background: var(--st-bg);
}
.studio-container { max-width: 1216px; margin: 0 auto; }
.studio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.campus-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border: 1px solid var(--st-badge-border);
  border-radius: 9999px;
  background: var(--st-badge-bg);
  color: var(--st-badge-text);
  font-size: .725rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.campus-badge svg { width: 12px; height: 12px; fill: var(--st-accent); }
.studio-title {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 2.25rem;
  color: #fff;
}
.studio-title .highlight { display: block; color: var(--st-accent); }
.studio-subtitle { max-width: 650px; font-size: .925rem; line-height: 1.5; color: var(--st-muted); }
.studio-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.studio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--st-border);
  border-radius: 16px;
  background: var(--st-card);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.studio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 119, 214, .7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
}
.card-image-box { width: 100%; height: 200px; overflow: hidden; background: #1a1633; }
.card-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.studio-card:hover .card-image-box img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.25rem 1.5rem; }
.card-title { font-size: 1.125rem; font-weight: 700; color: #fff; }
.card-desc { font-size: .85rem; line-height: 1.55; color: var(--st-muted); }

@media (min-width: 640px) {
  .studio-section { padding: 4rem 1.5rem; }
  .studio-title { font-size: 2.25rem; line-height: 2.5rem; }
  .studio-title .highlight { display: inline; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .studio-section { padding: 5rem 2rem; }
  .studio-subtitle { font-size: 1rem; }
  .studio-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .card-image-box { height: 220px; }
}

/* ---------- 8. Collaborations ---------- */
.collab-section { display: flex; justify-content: center; padding: 80px 24px; background: #0b0813; }
.collab-container { width: 100%; max-width: 1216px; text-align: center; }
.collab-title {
  margin-bottom: 50px;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 2.25rem;
  color: #fff;
}
@media (min-width: 640px) {
  .collab-title { font-size: 2.25rem; line-height: 2.5rem; }
}
.collab-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.collab-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 24px;
  border-radius: 4px;
  background: #21192e;
  transition: transform .2s ease;
}
.collab-card:hover { transform: scale(1.02); }
.collab-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 992px) {
  .collab-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 576px) {
  .collab-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .collab-title { margin-bottom: 30px; }
  .collab-card { padding: 16px; }
}

/* ---------- 9. Pop-up ---------- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .7);
}
.popup-overlay.is-open { display: flex; }
.popup-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 80vh;
}
.popup-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}
.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 100000;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- 9b. Why Choose Us (Feature cards) ---------- */
.catalog-wrapper {
  width: 100%;
  padding: 3.5rem 1rem;
  background: #0e0e1e;
}
.catalog-header {
  max-width: 1216px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.why-choose-title {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
}
.features-section { width: 100%; }
.features-container {
  max-width: 1216px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(140, 77, 186, .35);
  border-radius: 16px;
  background: #120d29;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 119, 214, .7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
}
.feature-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 1.15rem;
  object-fit: contain;
}
.feature-title {
  margin-bottom: .7rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.feature-desc {
  font-size: .9rem;
  line-height: 1.6;
  color: #9ca3af;
}
@media (min-width: 640px) {
  .catalog-wrapper { padding: 4.5rem 1.5rem; }
  .why-choose-title { font-size: 2.25rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .catalog-wrapper { padding: 5.5rem 2rem; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

/* ---------- 10. Respect reduced-motion settings ---------- */
@media (prefers-reduced-motion: reduce) {
  .phone-scroller-track,
  .filmstrip-track,
  .poster-track { animation: none; }
  .phone-scroller-wrapper,
  .poster-marquee { overflow-x: auto; }
  .custom-banner-slide { transition: none; }
}
