:root {
  --intro-pink: #f2a1b3;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
}

/* INTRO */
#intro {
  position: fixed;
  inset: 0;
  background: var(--intro-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1.5s ease;
}

#intro h1 {
  color: black;
  font-size: 3rem;
  letter-spacing: 0.15em;
  font-weight: 300;
}

/* WORK */
#work {
  opacity: 0;
  transition: opacity 1.5s ease;
}
#work.loaded {
  opacity: 1;
}

/* HERO */
.hero-row {
  display: flex;
  width: 100%;
  height: 100vh;
}

.project {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

/* IMAGE + VIDEO STYLE */
.project img,
.project iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* BLACK & WHITE FOR TOP IMAGES */
.project.image img {
  filter: grayscale(100%);
}

/* IN PROGRESS LABEL ON IMAGES */
.progress-label {
  position: absolute;
  top: 20px;
  left: 20px;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  opacity: 0.9;
}

.title {
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  opacity: 0.9;
}

/* Prevent accidental clicks on video */
.project iframe {
  pointer-events: none;
}
.project.is-fullscreen iframe {
  pointer-events: auto;
}

/* Ensure fullscreen fills the screen */
.project.is-fullscreen {
  width: 100% !important;
  height: 100% !important;
  background: black;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* WATCH LABEL */
.watch {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.3em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project.video:hover .watch {
  opacity: 0.85;
}

/* HIDE WATCH WHEN PLAYING / FULLSCREEN */
.project.is-playing .watch {
  opacity: 0 !important;
}

/* CLICK LAYER */
.click-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* PLAYER CONTROLS (fullscreen only) */
.player-controls {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 16px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.is-fullscreen .player-controls {
  display: flex;
}

.is-fullscreen.controls-visible .player-controls {
  opacity: 1;
}

.player-controls .btn-play-pause {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.player-controls .btn-play-pause svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.player-controls .progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-controls .progress-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}

.player-controls .time-display {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

/* FOOTER */
footer {
  padding: 80px 0;
  text-align: center;
}

footer a {
  color: white;
  text-decoration: none;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-row {
    flex-direction: column;
    height: auto;
  }

  .project {
    width: 100%;
    height: 50vh;
  }
}
