/* MAT 189 starter stylesheet */

body {
  font-family: Garamond, Georgia, "Times New Roman", serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff0f7;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
}

header { margin: 2rem 0 3rem; }
/* ==========================================
   MAIN NAME — HERO TITLE
   ========================================== */
/* ==========================================
   MAIN NAME — HERO TITLE
   ========================================== */

header h1 {
  margin: 0;

  font-family: 'Lobster', cursive;

  font-size: 3.8rem;
  font-weight: 400;

  color: #ff1493 !important;

  -webkit-text-stroke: .5px white;

  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    2px 3px 0 #e60073,
    4px 5px 0 #d40069,
    6px 7px 10px rgba(190, 0, 100, 0.25);
}
header p { color: #666; margin: 0.25rem 0 0; }

.project { margin: 0 0 4rem; }
.project h2 {
  margin: 0 0 0.25rem;

  font-family: 'Lobster', cursive;
  font-size: 2.1rem;
  font-weight: 400;

  color: #f51b8f !important;

  -webkit-text-stroke: 0;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 4px rgba(190, 0, 100, 0.18);
}
.project .meta { color: #666; font-size: 0.9rem; margin: 0 0 1rem; }

figure { margin: 1.5rem 0; }
img, video { max-width: 100%; display: block; }
figcaption { color: #666; font-size: 0.85rem; margin-top: 0.4rem; }

footer { margin: 4rem 0 2rem; color: #666; font-size: 0.9rem; }
/* ✨ Barbie floating sparkles */

.sparkle {
  position: fixed;
  color: #ff1493;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  animation: sparkleMove 3s ease-in-out infinite;
}

/* LEFT SIDE */

.s1 {
  left: 3%;
  top: 15%;
  font-size: 1.4rem;
}

.s2 {
  left: 7%;
  top: 27%;
  font-size: 1rem;
  animation-delay: 1s;
}

.s3 {
  left: 3%;
  top: 42%;
  font-size: 1.8rem;
  animation-delay: 0.5s;
}

.s4 {
  left: 8%;
  top: 57%;
  font-size: 1.1rem;
  animation-delay: 1.5s;
}

.s5 {
  left: 3%;
  top: 73%;
  font-size: 1.5rem;
  animation-delay: 2s;
}

.s6 {
  left: 7%;
  top: 88%;
  font-size: 0.9rem;
  animation-delay: 0.8s;
}

/* RIGHT SIDE */

.s7 {
  right: 3%;
  top: 18%;
  font-size: 1.2rem;
  animation-delay: 1.2s;
}

.s8 {
  right: 7%;
  top: 32%;
  font-size: 1.7rem;
  animation-delay: 0.3s;
}

.s9 {
  right: 3%;
  top: 47%;
  font-size: 1rem;
  animation-delay: 1.8s;
}

.s10 {
  right: 8%;
  top: 62%;
  font-size: 1.5rem;
  animation-delay: 0.7s;
}

.s11 {
  right: 3%;
  top: 77%;
  font-size: 1.1rem;
  animation-delay: 1.5s;
}

.s12 {
  right: 7%;
  top: 91%;
  font-size: 1.6rem;
  animation-delay: 0.4s;
}

/* ✨ Gentle floating movement */

@keyframes sparkleMove {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-12px) scale(1.2) rotate(12deg);
    opacity: 1;
  }
}
/* ================================
/* ================================
/* ================================
   BARBIE THEATER CURTAIN
   ================================ */

.curtain-stage {
  position: relative;
  overflow: hidden;
}

.project-content {
  position: relative;
  z-index: 1;
}

/* CURTAIN BUTTON */

.curtain-button {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: none;
  padding: 0;

  background: transparent;
  cursor: pointer;

  z-index: 10;
}

/* LEFT CURTAIN */

.curtain-button::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 50%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #a80055 0%,
      #d9006c 12%,
      #ff4fa3 25%,
      #e60073 38%,
      #ff69b4 50%,
      #d9006c 63%,
      #ff4fa3 76%,
      #c40062 90%,
      #a80055 100%
    );

  box-shadow:
    inset 8px 0 15px rgba(100, 0, 50, 0.25),
    inset -8px 0 15px rgba(100, 0, 50, 0.25);

  transition:
    transform 1.6s cubic-bezier(0.55, 0, 0.15, 1);
}

/* RIGHT CURTAIN */

.curtain-button::after {
  content: "";

  position: absolute;
  top: 0;
  right: 0;

  width: 50%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #a80055 0%,
      #c40062 10%,
      #ff4fa3 24%,
      #d9006c 37%,
      #ff69b4 50%,
      #e60073 63%,
      #ff4fa3 76%,
      #d9006c 90%,
      #a80055 100%
    );

  box-shadow:
    inset 8px 0 15px rgba(100, 0, 50, 0.25),
    inset -8px 0 15px rgba(100, 0, 50, 0.25);

  transition:
    transform 1.6s cubic-bezier(0.55, 0, 0.15, 1);
}

/* CLICK TEXT */

.curtain-text {
  position: absolute;

  z-index: 20;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  color: white;

  font-family: 'Satisfy', cursive;
  font-size: 1.6rem;

  white-space: nowrap;

  text-shadow:
    0 2px 4px rgba(120, 0, 60, 0.6);

  transition: opacity 0.4s ease;
}

/* ================================
   OPENING MOTION
   ================================ */

.curtain-stage.open .curtain-button::before {
  transform:
    translateX(-100%)
    skewX(-8deg);

  transform-origin: left center;
}

.curtain-stage.open .curtain-button::after {
  transform:
    translateX(100%)
    skewX(8deg);

  transform-origin: right center;
}

/* TEXT DISAPPEARS */

.curtain-stage.open .curtain-text {
  opacity: 0;
}

/* BUTTON STOPS BLOCKING PROJECT */

.curtain-stage.open .curtain-button {
  pointer-events: none;
}

/* ================================
   GOLD BAR
   ================================ */

.curtain-stage::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 7px;

  background:
    linear-gradient(
      90deg,
      #d4af37,
      #fff1a8,
      #d4af37
    );

  z-index: 30;

  box-shadow:
    0 2px 8px rgba(212, 175, 55, 0.45);

  opacity: 1;
  transition: opacity 0.4s ease;
}

.curtain-stage.open::before {
  opacity: 0;
}
.description {
  text-align: center;
  margin: 1.5rem auto 0;
}
/* ================================
   /* ================================
   MATCH ALL PROJECT MEDIA SIZES
   ================================ */

/* ==========================================
   PROJECT MEDIA
   ========================================== */

/* ==========================================
   PROJECT MEDIA — SAME SIZE FOR EVERYTHING
   ========================================== */

.curtain-stage {
  position: relative;
  width: 100%;
  height: 575px;
  overflow: hidden;
}

.project-content {
  position: relative;
  width: 100%;
  height: 575px;
  z-index: 1;
}

.project-content figure {
  width: 100%;
  height: 575px;
  margin: 0;
}

.project-content img,
.project-content video,
.project-content iframe {
  width: 100%;
  height: 575px;
  object-fit: cover;
  display: block;
  border: none;
}
/* MEDIUM PINK SECONDARY TEXT */

header p,
.project .meta,
figcaption,
footer {
  color: #ff1493;
}
/* =================================
/* ==========================================
/* ==========================================
/* ==========================================
   WARM BARBIE FILM STRIPS
   ========================================== */

.film-strip {
  position: fixed;
  top: 0;
  bottom: 0;

  width: 96px;

  overflow: hidden;

  z-index: 0;
  pointer-events: none;
}


/* ==========================================
   POSITION
   ========================================== */

.film-strip-left {
  left: calc(50% - 525px);
}

.film-strip-right {
  right: calc(50% - 525px);
}


/* ==========================================
   MOVING TRACK
   ========================================== */

.film-strip-track {
  position: absolute;

  top: -110px;
  left: 0;

  width: 96px;

  animation: filmScroll 4s linear infinite;
}


/* ==========================================
   FILM FRAME
   ========================================== */

.film-frame {
  position: relative;

  width: 82px;
  height: 112px;

  margin: 0 auto;

  box-sizing: border-box;

  background:

    /* LEFT sprocket holes */
    repeating-linear-gradient(
      to bottom,
      #fff9fb 0px,
      #fff9fb 10px,
      transparent 10px,
      transparent 23px
    ) left top / 10px 100% no-repeat,

    /* RIGHT sprocket holes */
    repeating-linear-gradient(
      to bottom,
      #fff9fb 0px,
      #fff9fb 10px,
      transparent 10px,
      transparent 23px
    ) right top / 10px 100% no-repeat,

    /* WARM PINK FILM */
    linear-gradient(
      90deg,
      #cf5f91 0%,
      #e982ad 12%,
      #ffb8d0 25%,
      #ffd1df 40%,
      #ffc0d6 55%,
      #ffd1df 70%,
      #e982ad 88%,
      #cf5f91 100%
    );

  border-top: 3px solid #bd4f80;
  border-bottom: 3px solid #bd4f80;

  box-shadow:

    /* bright raised edge */
    inset 5px 0 8px rgba(255,255,255,0.65),

    /* darker opposite edge */
    inset -5px 0 8px rgba(130,20,65,0.2),

    /* external depth */
    0 4px 10px rgba(130,30,70,0.2);
}


/* ==========================================
   FILM FRAME WINDOW
   ========================================== */

.film-frame::after {
  content: "";

  position: absolute;

  top: 15px;
  bottom: 15px;

  left: 16px;
  right: 16px;

  border: 2px solid rgba(170,55,105,0.4);

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.5),
      rgba(255,180,210,0.18)
    );

  box-shadow:
    inset 0 0 10px rgba(130,30,75,0.12),
    inset 0 3px 6px rgba(255,255,255,0.45);
}


/* ==========================================
   INNER FILM EDGES
   ========================================== */

.film-frame::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: 10px;
  right: 10px;

  border-left: 1px solid rgba(180,60,110,0.25);
  border-right: 1px solid rgba(180,60,110,0.25);
}


/* ==========================================
   FASTER FILM MOTION
   ========================================== */

@keyframes filmScroll {

  from {
    transform: translateY(-112px);
  }

  to {
    transform: translateY(0);
  }

}
/* ==========================================
/* ==========================================
   TITLE STYLING
   ========================================== */

/* MAIN NAME */

header h1 {
  color: #f51b8f !important;

  -webkit-text-stroke: 0.3px white;

  text-shadow:
    0 2px 4px rgba(190, 0, 100, 0.25);
}


/* PROJECT TITLES */

.project h2 {
  color: #f51b8f !important;

  -webkit-text-stroke: 0;

  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 4px rgba(190, 0, 100, 0.18);
}
/* ==========================================
   FINAL ADRI ESPINOZA TITLE
   ========================================== */

header h1 {
  margin: 0 !important;

  font-family: 'Lobster', cursive !important;
  font-size: 3.8rem !important;
  font-weight: 400 !important;

  color: #ff1493 !important;

  -webkit-text-stroke: 0.5px white !important;
  -webkit-text-fill-color: #ff1493 !important;

  text-shadow:
    0 2px 0 white,
    2px 3px 0 #e60073,
    4px 5px 0 #d40069,
    6px 7px 10px rgba(190, 0, 100, 0.25) !important;
}
/* ==========================================
   PROJECT DESCRIPTION TEXT
   ========================================== */

.project-content p,
.project > p {
  color: #ff1493 !important;
}
/* ==========================================
   PINK CINEMA BACKGROUND
   ========================================== */

body {
  background:
    radial-gradient(
      ellipse at 50% 15%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 210, 230, 0.7) 25%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 5% 50%,
      rgba(255, 105, 180, 0.18) 0%,
      transparent 35%
    ),
    radial-gradient(
      ellipse at 95% 65%,
      rgba(255, 105, 180, 0.18) 0%,
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #ffe4f1,
      #fff0f7,
      #ffdbea
    );

  background-size:
    100% 100%,
    70% 100%,
    70% 100%,
    200% 200%;

  animation: cinemaGlow 10s ease-in-out infinite alternate;
}


/* ==========================================
   SLOW THEATER-LIGHT MOVEMENT
   ========================================== */

@keyframes cinemaGlow {

  0% {
    background-position:
      50% 15%,
      0% 50%,
      100% 50%,
      0% 50%;
  }

  50% {
    background-position:
      50% 20%,
      10% 45%,
      90% 55%,
      50% 50%;
  }

  100% {
    background-position:
      50% 15%,
      0% 55%,
      100% 45%,
      100% 50%;
  }

}
