html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body{
margin:0;
font-family:Courier New, monospace;
}

header{
position:fixed;
top:0;
left:0;
width:100%;
display:flex;
justify-content:center; /* centers horizontally */
padding:25px 0;
}

header a {
  display: inline-block;   /* needed for hover scale */
  margin: 0 20px;
  text-decoration: none;
  color: white;            /* white for visibility */
  text-shadow: 0 1px 3px rgba(0,0,0,0.7); /* subtle shadow for contrast */
  font-size: 18px;
  opacity: 0.75;
  transition: opacity .3s ease, transform .3s ease;
}

header a:hover {
  opacity: 1;
  transform: scale(1.06);
}

header i {
  font-size: 18px;
  vertical-align: middle;
  color: white;
}

.hero{
  height:100vh;
  background-image:url("hero.jpg");
  background-size:cover;
  background-position:center;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-text{
  text-align:center;
  transform:translateY(-70px);
  width:min(760px, 94vw);
  max-width:760px;
  margin:0 auto;
  padding:0 20px;
}

.hero-text h1{
  color:white;
  font-size:clamp(44px, 7vw, 60px);
  font-weight:400;
  margin-bottom:28px;
  filter: blur(0.2px);
  -webkit-filter: blur(0.4px);
}

.links a{
display:inline-block;   /* ← THIS fixes the scale */
margin:0 20px;
color:white;
text-decoration:none;
font-size:22px;
opacity:.75;
transition:all .3s ease;
}

.links a:hover{
opacity:1;
transform:scale(1.06);
}

.movement-gallery {
  padding: 120px 20px 40px;
}

.traditional-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.work-title {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 16px 16px 8px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.08em;
}

/* ================================
   CAROUSEL STYLES
   ================================ */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 40px auto 0;
  background: #000;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.carousel-item iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  background: transparent;
  z-index: 10;
}

.dot {
  height: 6px;
  width: 6px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}

/* Movement detail title styling */
.movement-detail h1,
.work-page-title {
  font-weight: 400;
  font-size: 22px;
  text-align: center;
  margin: 18px 0 60px;
}

.movement-detail-section {
  width: min(980px, 100%);
  max-width: 980px;
  margin: 0 auto;
  padding: 100px 40px 60px;
  display: grid;
  gap: 32px;
}

/* Credits section styling */
.credits-section {
  box-sizing: border-box;
  width: 100%;
  padding: 60px 0 0;
  margin: 40px auto 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

.credits-title {
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 40px;
  opacity: 0.85;
}

.credits-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
  width: min(420px, 100%);
  margin: 0;
}

.credit-item {
  display: flex;
  flex-direction: column;
}

.credit-label {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  opacity: 0.7;
}

.credit-value {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
}

/* ================================
   THEATER MODE STYLES
   ================================ */

.theater-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 5s ease;
}

body.theater {
  overflow: hidden;
}

body.theater .theater-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* When theater is active the video-embed is centered; the iframe wrapper uses opacity transitions */
.video-embed {
  transition: opacity 5s ease;
  transform: none;
}

body.theater .video-embed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(96vw, 1600px) !important;
  max-width: 1600px !important;
  margin: 0 !important;
  opacity: 1;
  transition: opacity 5s ease !important;
  z-index: 999;
}

.video-embed .theater-iframe {
  opacity: 0;
  transition: opacity 1s ease;
}

body.theater .video-embed .theater-iframe {
  opacity: 1;
  transition: opacity 1s ease;
}

.video-embed .theater-iframe iframe {
  opacity: 0;
  transition: opacity 1s ease 0.1s;
}

.video-embed .theater-iframe.visible iframe {
  opacity: 1;
}

.video-poster.playing img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Ensure carousel sits under theater overlay when active */
.theater .carousel-container {
  filter: blur(0.6px);
}

/* Lazy poster styles */
.video-poster {
  position: relative;
  width: 100%;
  cursor: pointer;
  background: #111;
  padding-top: 56.25%; /* 16:9 */
  background-size: cover;
  background-position: center;
  display: block;
}

.video-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.9);
  color: white;
  font-size: 26px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 240ms ease;
}

.video-poster.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-poster .play-btn:hover {
  background: rgba(255,255,255,0.12);
}

/* ================================
   ABOUT PAGE STYLES
   ================================ */

body.about-page {
  background-color: #F2F2F2; /* Cloud Dancer */
  margin: 0;
  font-family: 'Courier New', monospace;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 25px 0;
  z-index: 10;
}

header a {
  display: inline-block;
  margin: 0 20px;
  text-decoration: none;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  font-size: 18px;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

header a:hover {
  opacity: 1;
  transform: scale(1.06);
}

header i {
  font-size: 18px;
  color: white;
}

/* Dark text on light backgrounds */
body.about-page header a,
body.contact-page header a {
  color: #333;
  text-shadow: none;
}

body.about-page header i,
body.contact-page header i {
  color: #333;
}

/* About Section */
.about-hero {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 140px 20px 100px;
}

.about-hero img {
  display: block;
  max-width: 700px;
  width: 85%;
  height: auto;
  margin: 0 auto;
}

.about-text {
  width: min(640px, 90%);
}

/* Text overlay */
.about-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 600px;
  padding: 30px 25px;              /* ← fixes margins inside image */
  color: rgba(255,255,255,0.8);
  text-align: left;
  font-size: 20px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 2s forwards 0.5s;
}

/* Paragraph spacing */
.about-text p {
  margin-bottom: 1.2em;
}

/* Final line (not italic) */
.about-text em {
  font-style: normal;
}

/* Fade-in */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ================================
   CONTACT PAGE
   ================================ */

body.contact-page {
  background-color: #F2F2F2; /* Cloud Dancer */
}

/* Center layout */
.contact-hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-10px); /* ← nudges everything up */
  padding: 80px 20px;
}

.contact-heading {
  font-size: 16px;
  margin-bottom: 50px;
  opacity: 0.7;
}

.contact-content {
  width: min(540px, 92vw);
}

/* Container */
.contact-content {
  width: min(540px, 92vw);
  max-width: 540px;
  text-align: center;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Inputs + textarea */
.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid black;
  background: transparent;
  font-size: 16px;
  padding: 8px 4px;
  font-family: inherit;
  outline: none;
}

/* Button */
.contact-form button {
  margin-top: 20px;
  margin-bottom: 60px; /* ← add this */
  background: none;
  border: none;
  font-size: 16px;
   font-family: inherit;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
  opacity: 1;
  transform: scale(1.05);
}

.contact-email {
  font-size: 16px;
  opacity: 0.6;
}

.email-text {
  margin-top: 8px;
  opacity: 0.8;
}

.contact-email a:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ================================
   CAMERA PAGE - MAZE GALLERY
   ================================ */

body.camera-page {
  background-color: #fff;
  padding-top: 80px;
}

body.camera-page header a,
body.movement-page header a {
  color: #111;
  text-shadow: none;
}

body.camera-page header i,
body.movement-page header i {
  color: #111;
}

.camera-gallery {
  padding: 0 0 0;
  width: 100%;
}

.camera-wall {
  position: relative;
  min-height: calc(100vh - 90px);
  width: 92vw;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  border: none;
}

.wall-piece {
  position: absolute;
  top: var(--top, 50%);
  left: var(--left, 50%);
  transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--rot, 0));
  width: auto;
  max-width: 780px;
  border: none;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.25s ease, z-index 0.25s ease;
  z-index: 1;
}

.wall-piece.portrait {
  width: clamp(220px, 28vw, 460px);
  max-width: 460px;
}

.wall-piece.landscape {
  width: clamp(300px, 38vw, 560px);
  max-width: 560px;
}

.wall-piece:hover {
  transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--rot, 0)) translateY(-8px) scale(1.03);
  z-index: 10;
}

.wall-piece img {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  display: block;
  object-fit: contain;
}

.wall-piece button,
.wall-piece img {
  background: transparent;
}

@media (max-width: 980px) {
  .camera-wall {
    min-height: 70vh;
  }
}

@media (max-width: 680px) {
  .camera-gallery {
    padding: 40px 20px;
  }

  .camera-wall {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wall-piece {
    width: 100% !important;
  }
}


@media (max-width: 480px) {
  .maze-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .camera-gallery {
    padding: 40px 20px;
  }
}

/* ================================
   MOVEMENT PAGE - TRADITIONAL GALLERY
   ================================ */

body.movement-page {
  background-color: #fff;
  padding-top: 80px;
}

.movement-gallery {
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.traditional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.traditional-grid .gallery-item {
  display: block;
}

.traditional-grid .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.traditional-grid .gallery-item:hover img {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .traditional-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .traditional-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .movement-gallery {
    padding: 40px 20px;
  }
}

