:root {
  --brand-accent: #F9A800;
  --brand-dark: #000000;
  --brand-light: #ffffff;
}

html, body {
  overflow-x: clip;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.btn-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-accent);
  transform: translateY(100%);
  transition: transform 0.5s;
  z-index: 0;
}

.magnetic-btn:hover .btn-background {
  transform: translateY(0);
}

.magnetic-btn .btn-text {
  position: relative;
  z-index: 10;
}

.hero-quote-box {
  transform: translateY(0);
  transition: transform 0.5s;
}

.hero-quote-box:hover {
  transform: translateY(-5px);
}

.poster-img {
  max-height: 420px;
}

.poster-glow:hover {
  box-shadow: 0 0 40px rgba(249, 168, 0, 0.5);
}

.aspect-poster {
  aspect-ratio: 4/5;
}

.swiper-button-next,
.swiper-button-prev {
  width: 56px;
  height: 56px;
  color: var(--brand-light);
  background: rgba(249, 168, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(249, 168, 0, 0.6);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: '';
  display: none;
}

.swiper-button-next {
  right: 16px;
}

.swiper-button-prev {
  left: 16px;
}

@media (min-width: 768px) {
  .swiper-button-next { right: 40px; }
  .swiper-button-prev { left: 40px; }
}

@media (min-width: 1024px) {
  .swiper-button-next { right: 80px; }
  .swiper-button-prev { left: 80px; }
}

.swiper-pagination-bullet-active {
  background: var(--brand-accent);
}

.movie-posters-swiper .swiper-slide-active:after {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(249, 168, 0, 0.3) 0%, transparent 70%);
  opacity: 1;
  z-index: -1;
  pointer-events: none;
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.poster-slide {
  width: 280px;
  height: 420px;
}

@media (max-width: 767px) {
  .movie-posters-swiper .swiper-slide-active .poster-container {
    transform: scale(1.25);
    box-shadow: 0 20px 40px -10px rgba(249, 168, 0, 0.5);
  }

  .movie-posters-swiper .swiper-slide-prev,
  .movie-posters-swiper .swiper-slide-next {
    opacity: 0.7;
  }
}

.scene-frame {
  position: relative;
}

.scene-frame:before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(249, 168, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.film-strip-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.film-strip {
  display: flex;
  white-space: nowrap;
  animation-name: marquee;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.progress {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s ease;
}

#scroll-to-top {
  background-color: var(--brand-accent);
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

#scroll-to-top:hover {
  background-color: var(--brand-dark);
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.footer-decoration-line {
  width: 100%;
  max-width: 800px;
}

.modal-content {
  max-height: 90vh;
}

.service-card {
  background: rgba(249, 168, 0, 0.05);
  border: 1px solid rgba(249, 168, 0, 0.15);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover {
  background: rgba(249, 168, 0, 0.1);
  border-color: rgba(249, 168, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#contact-form {
  max-width: 100%;
  overflow: hidden;
}

#contact-form .g-recaptcha {
  transform-origin: left center;
  max-width: 100%;
}

@media (max-width: 400px) {
  #contact-form .g-recaptcha {
    transform: scale(0.85);
  }
}

@media (max-width: 340px) {
  #contact-form .g-recaptcha {
    transform: scale(0.75);
  }
}

@media (max-width: 640px) {
  section, section > div, section > div > div, section > div > div > div {
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-grid > div, .grid > div {
    min-width: 0;
    max-width: 100%;
  }
}
