/* =========================================================
   Danced Stories – Home
   Design: Figma "Danced Stories - Home v2" (1440px desktop)
   Built on Bootstrap 5 (load this file after bootstrap.min.css)
   ========================================================= */

:root {
  --bg-cream: #fef7e7;
  --yellow: #faac03;
  --yellow-dot: #ffb500;
  --yellow-soft: #e6b235;
  --gold-line: #e3c57d;
  --muted: #909090;

  --font-heading: "Spectral", Georgia, serif;
  --font-body: "Poppins", Arial, sans-serif;
}

/* ---------- Base (on top of Bootstrap reboot) ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-cream);
  color: #000;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, p {
  margin: 0;
}



/* =========================================================
   1 - About (image left + content right, no slider)
   Figma: image 640x503 left, content 537 wide centred in the
   right half, 40px column gap, 100px top / 50px bottom
   ========================================================= */
.about {
  position: relative;
  padding: 100px 0 50px;
}

/* image (left) + content (right) */
.about-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  align-items: center;
}

.about-inner {
  max-width: 1172px;
}

.about-poster {
  width: 100%;
  aspect-ratio: 640 / 503;
  overflow: hidden;
}

.about-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  width: 100%;
  max-width: 537px;
  margin: 0 auto;
}

.about-content {
  gap: 40px;
}

.about-logos {
  gap: 40px;
}

.about-logos .logo-shri { width: 133px; }
.about-logos .logo-hcl  { width: 172px; }

.logo-divider {
  width: 1px;
  height: 68px;
  background: var(--gold-line);
}

.about-title-logo img {
  width: 381px;
}

.about-text {
  gap: 20px;
}

.about-text h1,
.about-text h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  line-height: 34px;
}

.about-text p {
  max-width: 537px;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

.about-text p + p {
  margin-top: -8px;
}

/* Figma: "PRESENT Danced Stories" image (285x148), then credit line */
.about-ds-logo {
  width: 285px;
  max-width: 100%;
  height: auto;
}

.about-credit {
  gap: 4px;
}

.about-credit p {
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
}

.about-credit h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
}

/* =========================================================
   3 - Movies
   ========================================================= */
.movies {
  position: relative;
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 60px;
  line-height: 68px;
  margin-bottom: 40px;
}

/* Bootstrap row with the 40px Figma gaps */
.movie-row {
  --bs-gutter-x: 40px;
  --bs-gutter-y: 40px;
}

/* ---------------------------------------------------------
   Movie card – Figma prototype: ON_HOVER → "Variant2",
   SMART_ANIMATE, EASE_IN, 400ms.
   Default  : poster ("image 4") on top; details card ("1")
              underneath, mirrored horizontally
              (relativeTransform [[-1,0,400],[0,1,0]]).
   Variant2 : poster hidden (fades out), details card
              un-mirrors (scaleX -1 → 1) = the flip.
   --------------------------------------------------------- */
.movie-card {
  --ds-ease: cubic-bezier(0.42, 0, 1, 1); /* Figma EASE_IN */
  --ds-dur: 0.4s;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 400 / 510;
  outline: none;
  cursor: pointer;
}

/* front: poster png (426x536 = 400x510 card + 13px shadow each side) – sits on top */
.movie-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity var(--ds-dur) var(--ds-ease);
}

.movie-poster {
  position: absolute;
  top: -2.549%;   /* 13 / 510 */
  left: -3.25%;   /* 13 / 400 */
  width: 106.5%;  /* 426 / 400 */
  height: auto;
  max-width: none;
}

/* back: white details card, mirrored like the Figma Default variant */
.movie-details {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scaleX(-1);
  pointer-events: none;
  transition: transform var(--ds-dur) var(--ds-ease);
}

.movie-thumb {
  height: 39.2%; /* 200 / 510 */
  overflow: hidden;
  flex-shrink: 0;
  background: #d9d9d9;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform var(--ds-dur) var(--ds-ease);
}

.movie-body {
  flex: 1;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 0;
}

.movie-head {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 20px;
}

.movie-head h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 35px;
  line-height: 48px;
}

.movie-sub {
  font-size: 20px;
  line-height: 1.4;
}

.movie-desc {
  width: 100%;
  color: var(--muted);
  font-size: 20px;
  line-height: 26px;
}

.btn-watch {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 27px;
  background: var(--yellow);
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  transition: background 0.2s ease;
  margin-top: 2rem;
}

.btn-watch:hover,
.btn-watch:focus-visible {
  background: #e09900;
  color: #fff;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  border-bottom: 1px solid #000;
}

.link-more span {
  font-size: 24px;
  line-height: 1;
}

/* ----- Hover (Variant2) ----- */
.movie-card:hover .movie-front,
.movie-card:focus-visible .movie-front,
.movie-card:has(a:focus-visible) .movie-front,
.movie-card.is-active .movie-front {
  opacity: 0;
}

.movie-card:hover .movie-details,
.movie-card:focus-visible .movie-details,
.movie-card:has(a:focus-visible) .movie-details,
.movie-card.is-active .movie-details {
  transform: scaleX(1);
  pointer-events: auto;
}

.movie-card:hover .movie-thumb img,
.movie-card:focus-visible .movie-thumb img,
.movie-card:has(a:focus-visible) .movie-thumb img,
.movie-card.is-active .movie-thumb img {
  transform: scale(1);
}

/* =========================================================
   4 - New Fold (Figma "4 - New Fold")
   rows: image 640x400 + text 600 wide, 40px gap, 80px between
   rows, every 2nd row mirrored (text left, image right)
   ========================================================= */
.fold {
  position: relative;
  padding: 50px 0;
}

.fold-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.fold-row {
  display: grid;
  grid-template-columns: minmax(0, 640fr) minmax(0, 600fr);
  column-gap: 40px;
  align-items: start;
}

.fold-row--reverse {
  grid-template-columns: minmax(0, 600fr) minmax(0, 640fr);
}

.fold-row--reverse .fold-media {
  order: 2;
}

.fold-media {
  width: 100%;
  aspect-ratio: 640 / 400;
  overflow: hidden;
  background: #fff;
}

.fold-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fold-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.fold-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
}

.fold-desc p {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
}

.fold-desc p + p {
  margin-top: 12px;
}

/* optional button – Figma "Know More" pill */
.btn-know {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin-top: 28px;
  padding: 12px 40px;
  border-radius: 100px;
  background: #f9be2e;
  color: #000;
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
  transition: background 0.2s ease;
}

.btn-know:hover,
.btn-know:focus-visible {
  background: var(--yellow);
  color: #000;
}

/* =========================================================
   Responsive (Bootstrap breakpoints: xl 1200, lg 992, md 768, sm 576)
   ========================================================= */
@media (max-width: 1399.98px) {
  .movie-head h3 { font-size: 34px; line-height: 42px; }
  .movie-sub { font-size: 20px; }
  .movie-desc { font-size: 17px; line-height: 24px; }
  .btn-watch, .link-more { font-size: 18px; }
  .btn-watch { min-height: 46px; margin: 0;}
}

@media (max-width: 1199.98px) {
  .about-content {
    gap: 28px;
  }

  .about-title-logo img {
    width: 320px;
  }

  .fold-list { gap: 64px; }
  .fold-title { font-size: 26px; line-height: 34px; }

  .movie-head h3 { font-size: 30px; line-height: 38px; }
  .movie-sub { font-size: 18px; }
  .movie-desc { font-size: 16px; line-height: 22px; }
  .movie-body { padding: 16px 20px 20px; gap: 12px; }
}

@media (max-width: 991.98px) {
  .about {
    padding: 60px 0;
  }

  /* stacks: image on top, content below */
  .about-slide {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .about-poster {
    max-width: 640px;
    margin: 0 auto;
  }

  .fold {
    padding: 60px 0;
  }

  .fold-list { gap: 56px; }

  /* rows stack: image always on top */
  .fold-row,
  .fold-row--reverse {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .fold-row--reverse .fold-media {
    order: 0;
  }

  .movies {
    padding: 60px 0;
  }

  .section-title {
    font-size: 48px;
    line-height: 56px;
    margin-bottom: 32px;
  }
  .deco-fold-dots{
    display: none;
  }

  .movie-row {
    --bs-gutter-x: 32px;
    --bs-gutter-y: 32px;
  }

  .movie-head h3 { font-size: 34px; line-height: 42px; }
  .movie-sub { font-size: 20px; }
  .movie-desc { font-size: 17px; line-height: 24px; }
}

@media (max-width: 767.98px) {
  .container {
    --bs-gutter-x: 32px;
  }

  .about {
    padding: 48px 0;
  }

  .about-slide {
    row-gap: 24px;
  }

  .fold {
    padding: 48px 0;
  }

  .fold-list { gap: 48px; }
  .fold-row, .fold-row--reverse { row-gap: 20px; }
  .fold-text { gap: 10px; }
  .fold-title { font-size: 24px; line-height: 32px; }
  .fold-desc p { font-size: 15px; line-height: 23px; }

  .btn-know {
    min-width: 0;
    margin-top: 14px;
    padding: 10px 32px;
    font-size: 17px;
    line-height: 24px;
  }

  .about-content {
    gap: 24px;
  }

  .about-logos {
    gap: 20px;
  }

  .about-logos .logo-shri { width: 100px; }
  .about-logos .logo-hcl  { width: 128px; }

  .logo-divider { height: 52px; }

  .about-title-logo img {
    width: 260px;
  }

  .about-ds-logo { width: 230px; }
  .about-credit p { font-size: 13px; line-height: 20px; }
  .about-credit h1 { font-size: 22px; line-height: 30px; }

  .about-text h1,
  .about-text h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .about-text p {
    font-size: 15px;
  }

  .movies {
    padding: 48px 0;
  }

  .section-title {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 24px;
  }

  /* small devices: cards stacked one below the other */
  .movie-row {
    --bs-gutter-y: 64px;
  }

  /* small devices: no hover/flip – poster on top, details below */
  .movie-card {
    aspect-ratio: auto;
    cursor: default;
  }

  .movie-front {
    position: relative;
    inset: auto;
    aspect-ratio: 400 / 510;
    opacity: 1 !important;
    transition: none;
  }

  .movie-details {
    position: static;
    background: transparent;
    overflow: visible;
    transform: none !important;
    pointer-events: auto;
    transition: none;
  }

  .movie-thumb {
    display: none;
  }

  .movie-body {
    padding: 16px 0 0;
    gap: 12px;
  }
}

@media (max-width: 379.98px) {
  .movie-head h3 { font-size: 30px; line-height: 38px; }
  .movie-sub { font-size: 18px; }
  .movie-desc { font-size: 16px; line-height: 22px; }
  .movie-body { gap: 12px; }
  .btn-watch, .link-more { font-size: 16px; }
  .btn-watch { min-height: 42px; }
}

/* =========================================================
   Background vectors (Figma px positions @1440)
   - one element per vector, so shapes that cross two
     sections (lotus) stay continuous on every screen size
   - left-side vectors anchor to the left edge, right-side to
     the right edge, dots tied to content use the 1440 frame
     centre (50% - 720px + Figma x)
   ========================================================= */
main {
  position: relative;
  overflow: hidden;
}

main > section > .container {
  position: relative;
  z-index: 1;
}

.deco {
  position: absolute;
  z-index: 0;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* 8px dots, 32px pitch, #f9be2e (Figma "Group 30") */
.deco-dots {
  background-image: radial-gradient(circle, #f9be2e 4px, transparent 4.5px);
  background-size: 32px 32px;
  background-position: -12px -12px;
}

/* About – dots behind the image: Figma x26 y45, 11 x 6 dots */
.deco-about-dots {
  top: 45px;
  left: max(0px, calc(50% - 694px));
  width: 328px;
  height: 168px;
}

/* About → Movies – line-art lotus: Figma x731 y244, 827 x 702 */
.deco-about-lotus {
  top: 244px;
  right: -118px;
  width: 827px;
}

/* Movies – dots behind Irsha card: Figma x888 y632, to the right edge */
.deco-movies-dots {
  top: 632px;
  left: calc(50% + 120px);
  right: 0;
  height: 168px;
}

/* Movies → New Fold – leaves bottom-left: Figma x-61, 517 x 803,
   hangs 254px below the Movies section */
.deco-movies-leaves {
  bottom: -254px;
  left: -61px;
  width: 517px;
}

/* New Fold – dots behind the 2nd row image: Figma x897 y587,
   to the right edge, 6 rows */
.deco-fold-dots {
  bottom: 33%;
  left: calc(50% + 177px);
  right: 0;
  height: 168px;
}

@media (max-width: 1199.98px) {
  .deco-about-lotus {
    width: 700px;
    right: -100px;
  }

  .deco-movies-leaves {
    width: 440px;
    bottom: -200px;
  }
}

@media (max-width: 991.98px) {
  .deco-about-dots {
    left: 0;
  }

  .deco-about-lotus {
    top: 160px;
    width: 600px;
    right: -120px;
  }

  .deco-movies-dots {
    top: 560px;
    left: auto;
    width: 328px;
  }

  .deco-fold-dots {
    top: auto;
    bottom: 32px;
    left: auto;
    width: 328px;
  }
}

@media (max-width: 767.98px) {
  .deco-about-dots {
    top: 4px;       /* 2 rows above the logos */
    width: 168px;
    height: 40px;
  }

  .deco-about-lotus {
    top: 120px;
    width: 420px;
    right: -110px;
  }

  .deco-movies-dots {
    top: 420px;
    width: 168px;
    height: 104px;
  }

  .deco-movies-leaves {
    top: auto;
    bottom: 0;
    left: -24px;
    width: 300px;
  }

  .deco-fold-dots {
    bottom: 16px;
    width: 168px;
    height: 104px;
    display: none; /* hide on small devices, too much clutter */
  }
}
