/* Custom Styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-in-out forwards;
}

body {
    font-family: 'Pixelify Sans', sans-serif;
    color: #cc0000; /* Slightly less intense red */
}

.h-screen-half {
    height: 50vh;
}

.hero-video-toggle {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 50;
    padding: 0.25rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid #cc0000;
    background: rgba(0, 0, 0, 0.7);
    color: #cc0000;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}

.hero-video-toggle:hover {
    background: #cc0000;
    color: #000;
    transform: scale(1.05);
}

.video-container-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-container-hero iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.font-pixel {
    font-family: 'Pixelify Sans', sans-serif;
}

.site-logo {
    border-radius: 9999px;
    clip-path: circle(50%); /* show only a perfect circle from the image */
    object-fit: cover;
    box-shadow: none; /* no glow or border */
    transition: transform 0.2s ease-out;
}

.site-logo:hover {
    transform: scale(1.03);
    box-shadow: none;
}

.thumbnail {
    width: 100%;
    max-width: 410px; /* ~130px larger than original 280px for a very grand desktop look */
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.thumbnail-link {
    display: block;
}

.thumbnail-link:hover .thumbnail {
    transform: scale(1.1); /* Pop-out effect */
}

.film-caption {
    margin-top: 1rem;
    border: 1px solid red;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    display: inline-block;
    max-width: 300px;
}

.caption-sub {
    font-size: 0.8em;
}

/* Stretched Background Title Layout */
.film-row {
    position: relative;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.film-category-title {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 4rem; /* Large, but not too tall */
    font-weight: 700;
    color: #cc0000; /* Solid Red */
    letter-spacing: 1.5rem; /* Creates the stretched effect */
    text-align: center;
    z-index: 0; /* sit behind slider content */
    pointer-events: none;
    opacity: 0.95;
    transition: opacity 0.35s ease-out;
}

/* When a row's thumbnails are visible, slightly dim the big background title */
.film-row.title-dim .film-category-title {
    opacity: 0.5;
}

/* Title word fade-in animation (replaces pop effect) */
.title-word {
    display: inline-block;
    opacity: 0;
}

.title-word.word-visible {
    animation: title-fade 0.45s ease-out forwards;
}

@keyframes title-fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Tablet / iPad tweaks: mirror desktop alignment with slightly smaller scale */
@media (min-width: 641px) and (max-width: 1024px) {
  .film-row {
    padding: 3rem 0;
    margin-bottom: 2.25rem;
  }

  .film-category-title {
    font-size: 3.2rem;
    letter-spacing: 1.1rem;
  }

  .film-row-slider {
    align-items: center;
    gap: 1.25rem;
  }

  .thumbnail {
    max-width: 360px;
  }
}

/* Ensure film items are on top */
.film-item {
    position: relative;
    z-index: 20;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out 1.25s, transform 0.4s ease-out 1.25s; /* 1.25s delay so title is readable first */
}


.film-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Horizontal slider layout for each film row */
.film-row-slider {
    position: relative;
    z-index: 20; /* ensure thumbnails/arrows sit above the title */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.film-row-track {
    overflow: hidden;
    flex: 1;
}

.film-row-track-inner {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease-out;
}

.film-row-track-inner .film-item {
    min-width: 80%;
}

@media (min-width: 768px) {
    .film-row-track-inner .film-item {
        min-width: calc(100% / 3 - 1.5rem); /* roughly 3 visible on desktop */
    }
}

.slider-arrow {
    background: transparent;
    border: none;
    color: #ff3333;
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease-out, color 0.15s ease-out;
}

.slider-arrow:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.text-glow {
    text-shadow:
        0 0 6px rgba(255, 0, 0, 0.8),
        0 0 12px rgba(255, 80, 80, 0.8),
        0 0 18px rgba(255, 120, 120, 0.75);
}

.platypus {
    position: fixed;
    width: 80px; /* Slightly larger so the sprite is visible */
    height: 80px;
    z-index: 9999;
    pointer-events: none; /* So it doesn't interfere with clicks */
    image-rendering: pixelated; /* Keep crisp 8-bit look */
    /* Hide the bottom strip of the GIF where the text sits */
    clip-path: inset(0 0 18% 0);
}

/* Bottom scrolling banner */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: transparent;
    pointer-events: none; /* don't block clicks on content */
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.bottom-banner-inner {
    display: inline-flex;
    animation: banner-scroll 20s linear infinite;
}

.bottom-banner-text {
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
}

@keyframes banner-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-25%);
    }
}

.all-films-credit {
    margin-top: 2rem;
    margin-bottom: 2.75rem;
    text-align: center;
    font-size: 1.05rem;
}

.all-films-contact {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.footer-area {
    padding-bottom: 4rem; /* leave visual space above the fixed ticker banner */
}

/* Footer quote styling */
.footer-quote {
    max-width: 720px;
    margin: 0 auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-family: 'Marcellus', serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.7;
    font-style: italic;
    color: #cc0000;
}

.footer-quote-author {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #cc0000;
}

.footer-contact {
	margin-top: 2.5rem;
}

.photo-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.photo-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.photo-lightbox-image {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	z-index: 10001;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

/* Photography gallery thumbnail hover effect */
.photo-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.photo-thumb img {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb::after {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  font-family: 'Pixelify Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  pointer-events: none;
}

.photo-thumb:hover img {
  transform: scale(1.02);
  filter: blur(1px);
}

.photo-thumb:hover::after {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

/* Page preloader overlay using platypus */
#page-preloader {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
}

#page-preloader.is-active {
  opacity: 1;
  visibility: visible;
}

.page-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.page-preloader-platypus {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  animation: platypus-spin 1.4s ease-in-out infinite alternate;
}

.page-preloader-text {
  font-family: 'Pixelify Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: #cc0000;
}

@keyframes platypus-spin {
  0%   { transform: rotate(0deg); }
  35%  { transform: rotate(360deg); }
  55%  { transform: rotate(345deg); }
  75%  { transform: rotate(375deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile-specific adjustments (phones) */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .h-screen-half {
    height: 40vh;
  }

  .film-row {
    padding: 2.5rem 0 2rem;
    margin-bottom: 1.5rem;
  }

  .film-category-title {
    top: 12%;
    transform: translate(-50%, 0);
    font-size: 1.6rem;
    letter-spacing: 0.4rem;
  }

  .film-row-slider {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .film-item {
    margin-bottom: 1.5rem;
  }

  .thumbnail {
    max-width: 220px;
  }

  .film-caption {
    margin-top: 0.4rem;
    padding: 0.3rem 0.7rem;
    max-width: 220px;
    font-size: 0.8rem;
  }

  .caption-sub {
    font-size: 0.7em;
  }

  .bottom-banner-text {
    font-size: 0.6rem;
    letter-spacing: 0.12rem;
  }

  .all-films-credit,
  .all-films-contact {
    padding: 0 1rem;
    font-size: 0.85rem;
  }

  .footer-quote {
    padding: 0 1.25rem;
    font-size: 0.78rem;
  }

  .page-preloader-platypus {
    width: 64px;
    height: 64px;
  }

  .platypus {
    width: 64px;
    height: 64px;
  }
}
