/**
 * FSF Canvas Background Styles
 * ========================================
 * Styles specific to the animated canvas background.
 * This file is only loaded on the homepage.
 */

/* Import Swiper core styles */

/**
 * Swiper 12.0.3
 * Most modern mobile touch slider and framework with hardware accelerated transitions
 * https://swiperjs.com
 *
 * Copyright 2014-2025 Vladimir Kharlampidi
 *
 * Released under the MIT License
 *
 * Released on: October 21, 2025
 */

:root {
  --swiper-theme-color: #007aff;
  /*
  --swiper-preloader-color: var(--swiper-theme-color);
  --swiper-wrapper-transition-timing-function: initial;
  */
}

:host {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  /* Fix of Webkit flickering */
  z-index: 1;
  display: block;
}

.swiper-vertical > .swiper-wrapper {
  flex-direction: column;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
  box-sizing: content-box;
}

.swiper-android .swiper-slide,
.swiper-ios .swiper-slide,
.swiper-wrapper {
  transform: translate3d(0px, 0, 0);
}

.swiper-horizontal {
  touch-action: pan-y;
}

.swiper-vertical {
  touch-action: pan-x;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}

.swiper-slide-invisible-blank {
  visibility: hidden;
}

/* Auto Height */

.swiper-autoheight,
.swiper-autoheight .swiper-slide {
  height: auto;
}

.swiper-autoheight .swiper-wrapper {
  align-items: flex-start;
  transition-property: transform, height;
}

.swiper-backface-hidden .swiper-slide {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 3D Effects */

.swiper-3d.swiper-css-mode .swiper-wrapper {
  perspective: 1200px;
}

.swiper-3d .swiper-wrapper {
  transform-style: preserve-3d;
}

.swiper-3d {
  perspective: 1200px;
  .swiper-slide,
  .swiper-cube-shadow {
    transform-style: preserve-3d;
  }
}

/* CSS Mode */

.swiper-css-mode {
  > .swiper-wrapper {
    overflow: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    &::-webkit-scrollbar {
      display: none;
    }
  }
  > .swiper-wrapper > .swiper-slide {
    scroll-snap-align: start start;
  }
  &.swiper-horizontal {
    > .swiper-wrapper {
      scroll-snap-type: x mandatory;
    }
  }
  &.swiper-vertical {
    > .swiper-wrapper {
      scroll-snap-type: y mandatory;
    }
  }
  &.swiper-free-mode {
    > .swiper-wrapper {
      scroll-snap-type: none;
    }
    > .swiper-wrapper > .swiper-slide {
      scroll-snap-align: none;
    }
  }
  &.swiper-centered {
    > .swiper-wrapper::before {
      content: '';
      flex-shrink: 0;
      order: 9999;
    }
    > .swiper-wrapper > .swiper-slide {
      scroll-snap-align: center center;
      scroll-snap-stop: always;
    }
  }
  &.swiper-centered.swiper-horizontal {
    > .swiper-wrapper > .swiper-slide:first-child {
      margin-inline-start: var(--swiper-centered-offset-before);
    }
    > .swiper-wrapper::before {
      height: 100%;
      min-height: 1px;
      width: var(--swiper-centered-offset-after);
    }
  }
  &.swiper-centered.swiper-vertical {
    > .swiper-wrapper > .swiper-slide:first-child {
      margin-block-start: var(--swiper-centered-offset-before);
    }
    > .swiper-wrapper::before {
      width: 100%;
      min-width: 1px;
      height: var(--swiper-centered-offset-after);
    }
  }
}

/* Slide styles start */

/* 3D Shadows */

.swiper-3d {
  .swiper-slide-shadow,
  .swiper-slide-shadow-left,
  .swiper-slide-shadow-right,
  .swiper-slide-shadow-top,
  .swiper-slide-shadow-bottom,
  .swiper-slide-shadow,
  .swiper-slide-shadow-left,
  .swiper-slide-shadow-right,
  .swiper-slide-shadow-top,
  .swiper-slide-shadow-bottom {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  .swiper-slide-shadow {
    background: rgba(0, 0, 0, 0.15);
  }
  .swiper-slide-shadow-left {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-right {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-top {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
  .swiper-slide-shadow-bottom {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
}

.swiper-lazy-preloader {
  width: 42px;
  height: 42px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -21px;
  margin-top: -21px;
  z-index: 10;
  transform-origin: 50%;
  box-sizing: border-box;
  border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
  border-radius: 50%;
  border-top-color: transparent;
}

.swiper:not(.swiper-watch-progress),
.swiper-watch-progress .swiper-slide-visible {
  .swiper-lazy-preloader {
    animation: swiper-preloader-spin 1s infinite linear;
  }
}

.swiper-lazy-preloader-white {
  --swiper-preloader-color: #fff;
}

.swiper-lazy-preloader-black {
  --swiper-preloader-color: #000;
}

@keyframes swiper-preloader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Slide styles end */

:root {
  --swiper-navigation-size: 44px;
  /*
  --swiper-navigation-top-offset: 50%;
  --swiper-navigation-sides-offset: 4px;
  --swiper-navigation-color: var(--swiper-theme-color);
  */
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;

  width: var(--swiper-navigation-size);
  height: var(--swiper-navigation-size);

  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swiper-navigation-color, var(--swiper-theme-color));
  &.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
  }
  &.swiper-button-hidden {
    opacity: 0;
    cursor: auto;
    pointer-events: none;
  }
  .swiper-navigation-disabled & {
    display: none !important;
  }
  svg {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    transform-origin: center;
    fill: currentColor;
    pointer-events: none;
  }
}

.swiper-button-lock {
  display: none;
}

.swiper-button-prev,
.swiper-button-next {
  top: var(--swiper-navigation-top-offset, 50%);
  margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
}

.swiper-button-prev {
  left: var(--swiper-navigation-sides-offset, 4px);
  right: auto;
  .swiper-navigation-icon {
    transform: rotate(180deg);
  }
}

.swiper-button-next {
  right: var(--swiper-navigation-sides-offset, 4px);
  left: auto;
}

.swiper-horizontal {
  .swiper-button-prev,
  .swiper-button-next,
  ~ .swiper-button-prev,
  ~ .swiper-button-next {
    top: var(--swiper-navigation-top-offset, 50%);
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    margin-left: 0;
  }
  .swiper-button-prev,
  & ~ .swiper-button-prev,
  &.swiper-rtl .swiper-button-next,
  &.swiper-rtl ~ .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 4px);
    right: auto;
  }
  .swiper-button-next,
  & ~ .swiper-button-next,
  &.swiper-rtl .swiper-button-prev,
  &.swiper-rtl ~ .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 4px);
    left: auto;
  }
  .swiper-button-prev,
  & ~ .swiper-button-prev,
  &.swiper-rtl .swiper-button-next,
  &.swiper-rtl ~ .swiper-button-next {
    .swiper-navigation-icon {
      transform: rotate(180deg);
    }
  }
  &.swiper-rtl .swiper-button-prev,
  &.swiper-rtl ~ .swiper-button-prev {
    .swiper-navigation-icon {
      transform: rotate(0deg);
    }
  }
}

.swiper-vertical {
  .swiper-button-prev,
  .swiper-button-next,
  ~ .swiper-button-prev,
  ~ .swiper-button-next {
    left: var(--swiper-navigation-top-offset, 50%);
    right: auto;
    margin-left: calc(0px - (var(--swiper-navigation-size) / 2));
    margin-top: 0;
  }
  .swiper-button-prev,
  ~ .swiper-button-prev {
    top: var(--swiper-navigation-sides-offset, 4px);
    bottom: auto;
    .swiper-navigation-icon {
      transform: rotate(-90deg);
    }
  }
  .swiper-button-next,
  ~ .swiper-button-next {
    bottom: var(--swiper-navigation-sides-offset, 4px);
    top: auto;
    .swiper-navigation-icon {
      transform: rotate(90deg);
    }
  }
}

/* Canvas element - fixed background layer */

#fsf-canvas {
  position: fixed;
  top: 0px;
  left: 0px;
  height: 100vh;
  width: 100vw;
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
    z-index: 1; /* Sits behind page content */
}

/* Grayscale filter overlay - fades out on scroll */

#bg-filter {
  pointer-events: none;
  position: fixed;
  top: 0px;
  left: 0px;
  height: 100vh;
  width: 100vw;
  opacity: 1;
    z-index: 2;
    backdrop-filter: grayscale(100%);
    transition: opacity 2s ease-in;
}

/* Logo container - hero section */

#logo {
  pointer-events: none;
  position: relative;
  display: flex;
  height: 100vh;
  width: 100vw;
  align-items: center;
  justify-content: center;
  opacity: 0;
    z-index: 3;
    transform: scale3d(0.25, 0.25, 0.25);
    transition: transform 2s ease-in-out, opacity 1s ease-in;
    transition-delay: 1s;
}

#logo img {
  pointer-events: none;
  display: block;
  height: auto;
  width: auto;
    max-width: 60dvw;
    max-height: 75dvh;
}

/* Content sections sit above canvas */

.content {
  pointer-events: none;
  position: relative;
  width: 100vw;
    min-height: 50dvh;
    z-index: 3;
}

/* Mobile/Tablet: Re-enable pointer-events for scrolling (≤1024px) */

@media (max-width: 1024px) {
    #logo,
    #bg-filter,
    .content,
    .playground-interactive-space {
        pointer-events: auto !important;
    }
}

/* ========================================
   SHARED STYLES - All Sections
   ======================================== */

/* All section wrappers */

#intro,
#image-gallery,
#intro-cont,
#video-gallery,
#conclusion,
#technical,
#contact,
#playground {
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* All glassmorphism containers */

.copy-container,
.gallery-container,
.video-container,
.contact-container {
  pointer-events: auto;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1300px;
  border-radius: 1rem;
  padding: 3rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.copy-container,
.contact-container,
.playground-container,
.gallery-container p.gallery-text {
  text-align: center;
}

/* All section headings - standardized */

.copy-container h2,
.gallery-heading,
.video-heading,
.contact-heading,
.playground-heading {
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2.25rem;
  line-height: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* Gallery category subheadings */

.gallery-category-heading {
  margin-top: 4rem;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.gallery-category-heading:first-of-type {
  margin-top: 0px;
}

/* Responsive heading sizes */

@media (max-width: 1024px) {
    .copy-container h2,
    .gallery-heading,
    .video-heading,
    .contact-heading,
    .playground-heading {
    margin-bottom: 2.5rem;
    font-size: 2rem;
  }
    
    #intro,
    #image-gallery,
    #intro-cont,
    #video-gallery,
    #conclusion,
    #technical,
    #contact,
    #playground {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {

    .content {
        min-height: 0px;
    }

    /* Smaller section padding on mobile */
    #intro,
    #image-gallery,
    #intro-cont,
    #video-gallery,
    #conclusion,
    #technical,
    #contact,
    #playground {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
    
    /* Smaller heading sizes and margins */
    .copy-container h2,
    .gallery-heading,
    .video-heading,
    .contact-heading,
    .playground-heading {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 2rem;
  }
    
    /* Reduced container padding */
    .copy-container,
    .gallery-container,
    .video-container,
    .contact-container {
    padding: 1.25rem;
  }

    .playground-container {
    padding: 0px;
  }
}

/* ========================================
   Copy
   ======================================== */

.copy-container, .gallery-container p.gallery-text {
  font-size: 1.25rem;
  line-height: 2rem;
}

.copy-container p, .gallery-container p.gallery-text {
  margin-bottom: 1.5rem;
}

.gallery-container p.gallery-text {
  margin-top: 1.5rem;
}

.copy-container p:last-child, .gallery-container p.gallery-text:last-child {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.copy-container p a:active, .gallery-container p.gallery-text a:active,
.copy-container p a:visited, .gallery-container p.gallery-text a:visited,
.copy-container p a:link, .gallery-container p.gallery-text a:link {
  position: relative;
  font-weight: 600;
  text-decoration-line: underline;
    transition: all 0.3s ease;
}

.copy-container p a:hover, .gallery-container p.gallery-text a:hover,
.copy-container p a:focus, .gallery-container p.gallery-text a:focus {
  text-decoration-line: none;
    color: #00ffff;
}

.copy-container p a::after, .gallery-container p.gallery-text a::after {
    content: '';
    position: absolute;
    bottom: 0.1rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: transform 0.3s ease;
}

.copy-container p a:hover::after, .gallery-container p.gallery-text a:hover::after,
.copy-container p a:focus::after, .gallery-container p.gallery-text a:focus::after {
    transform: translateX(-50%) scaleX(1);
}

.copy-container strong, p.gallery-text strong {
  font-weight: 600;
    animation: color-change 10s infinite;
}

@keyframes color-change {
  0% { color: #ff00ff; }
  8% { color: #00ffff; }
  16% { color: #ff0080; }
  24% { color: #80ff00; }
  32% { color: #ff8000; }
  40% { color: #0080ff; }
  48% { color: #ff0040; }
  56% { color: #40ff00; }
  64% { color: #8000ff; }
  72% { color: #ffff00; }
  80% { color: #00ff80; }
  88% { color: #ff00bf; }
  96% { color: #ffffff;}
  100% { color: #ff00ff; }
}

.copy-container em {
  font-style: italic;
}

@media (max-width: 768px) {
    .copy-container, .gallery-container p.gallery-text {
    font-size: 1rem;
    line-height: 1.5rem;
  }
    
    .copy-container p {
    margin-bottom: 1rem;
  }

    .gallery-container p.gallery-text {
    margin-top: 1rem;
  }
}

/* ========================================
   Image Gallery Section
   ======================================== */

/* Gallery Grid - Responsive columns */

.gallery-grid {
  pointer-events: auto;
  display: grid;
  gap: 1rem;
    grid-template-columns: repeat(8, 1fr); /* Desktop: 8 columns */
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    animation: neon-glow 5s linear infinite;
}

.gallery-thumbnail {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Tablet: 6 columns */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile: 4 columns */

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

/* ========================================
   Lightbox with Swiper
   ======================================== */

.lightbox .swiper-navigation-icon {
  display: none;
  height: 0px;
  width: 0px;
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0px;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgb(0 0 0 / 0.95);
    z-index: 9999;
    backdrop-filter: blur(10px);
    /* Animation properties */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.75s ease, transform 1s ease;
}

.lightbox.active {
  display: flex;
}

/* Animate in when opening */

.lightbox.active.show {
    opacity: 1;
    transform: scale(1);
}

/* Animate out when closing */

.lightbox.active.hide {
    opacity: 0;
    transform: scale(0.5);
}

/* Swiper container */

.lightbox-swiper {
  position: relative;
  height: 100%;
  width: 100%;
}

.lightbox-content {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-image {
  height: auto;
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.lightbox-caption {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.lightbox-copyright {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* Close button (shared by gallery and video lightbox) */

.lightbox-close {
  position: fixed;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 4rem;
    height: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    transform: scale(1.1);
    animation: neon-glow 5s linear infinite;
}

.lightbox-close-icon {
  position: relative;
    width: 1.5rem;
    height: 1.5rem;
}

.lightbox-close-icon::before,
.lightbox-close-icon::after {
  position: absolute;
  left: 0px;
  width: 100%;
  border-radius: 0.125rem;
    content: '';
    top: 50%;
    height: 2px;
    background: #fff;
}

.lightbox-close-icon::before {
    transform: translateY(-50%) rotate(45deg);
}

.lightbox-close-icon::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* Navigation arrows (hidden on mobile) */

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 4rem;
    height: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    animation: neon-glow 5s linear infinite;
}

.lightbox-arrow {
  position: relative;
    width: 1.5rem;
    height: 1.5rem;
}

.lightbox-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 0.125rem;
    border-left-width: 2px;
    border-bottom-width: 2px;
    --tw-border-opacity: 1;
    border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
    transform: translate(-25%, -50%) rotate(45deg);
}

.lightbox-next .lightbox-arrow::before {
    transform: translate(-75%, -50%) rotate(-135deg);
}

/* Hide arrows on mobile */

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
    display: none;
  }
    
    .lightbox-close {
    top: 1rem;
    right: 1rem;
    height: 3rem;
    width: 3rem;
  }
    
    .lightbox-close-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .lightbox-content {
    padding: 1rem;
  }
    
    .lightbox-caption {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }

    .lightbox-copyright {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

/* ========================================
   Video Gallery Section
   ======================================== */

/* Video Grid - 2 columns on desktop, 1 on tablet/mobile */

.video-grid {
  pointer-events: auto;
  display: grid;
  gap: 2rem;
    grid-template-columns: repeat(2, 1fr); /* Desktop: 2 columns */
}

.video-item {
  position: relative;
  cursor: pointer;
    transition: transform 0.3s ease;
}

.video-item:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.video-thumbnail-wrapper {
  position: relative;
  border-radius: 0.5rem;
    aspect-ratio: 16 / 9;
}

.video-thumbnail {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Play button overlay */

.video-play-overlay {
  position: absolute;
  inset: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.video-item:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
    animation: neon-glow 5s linear infinite;
}

.video-play-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.video-item:hover .video-play-icon {
    transform: scale(1.15);
}

.video-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* Tablet and below: 1 column */

@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .video-play-icon {
        width: 60px;
        height: 60px;
    }
    
    .video-caption {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

/* ========================================
   Video Lightbox
   ======================================== */

.video-lightbox {
  position: fixed;
  inset: 0px;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgb(0 0 0 / 0.95);
    z-index: 9999;
    backdrop-filter: blur(10px);
    /* Animation properties */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.75s ease, transform 1s ease;
}

.video-lightbox.active {
  display: flex;
}

/* Animate in when opening */

.video-lightbox.active.show {
    opacity: 1;
    transform: scale(1);
}

/* Animate out when closing */

.video-lightbox.active.hide {
    opacity: 0;
    transform: scale(0.5);
}

.video-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
    width: 90vw;
    max-width: 1280px;
}

#video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

#video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .video-lightbox-content {
        width: 95vw;
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section p.contact-details {
  text-align: center;
}

.contact-section p.form-terms {
  margin-bottom: 0px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  border-radius: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
  padding: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  text-decoration-line: none;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.contact-link:hover {
    color: #00ffff;
}

.contact-icon {
    width: 48px;
    height: 48px;
    transition: fill 0.3s ease;
}

.contact-item:hover {
    animation: neon-glow 5s linear infinite;
}

/* Contact Form 7 Styling */

.wpcf7-form {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 900px;
}

.wpcf7-form label {
  margin-bottom: 0.5rem;
  display: block;
  text-align: left;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  border-radius: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  margin-top: 1rem;
  width: 100%;
  cursor: pointer;
  border-radius: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    transform: scale(1.05);
    animation: neon-glow 5s linear infinite;
}

/* Success and error messages */

.wpcf7-response-output {
  margin-top: 1rem;
  border-radius: 0.5rem;
  border-width: 0px;
  padding: 1rem;
  text-align: center;
}

.wpcf7-mail-sent-ok {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
}

/* Hide honeypot field */

#honeypot-field,
.wpcf7-form p:has(#honeypot-field) {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Responsive Contact Section */

@media (max-width: 1024px) {
    .contact-info {
    flex-direction: column;
  }
    
    .contact-item {
    max-width: none;
  }
}

@media (max-width: 768px) {
    .contact-section p.form-terms {
    font-size: 0.75rem;
    line-height: 1rem;
  }
    
    .contact-wrapper {
    gap: 1.5rem;
  }
    
    .contact-info {
    gap: 1rem;
  }
    
    .contact-link {
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }
    
    .contact-icon {
        width: 32px;
        height: 32px;
    }
    
    .wpcf7-form label {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* ========================================
   Playground Section
   ======================================== */

.playground-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.playground-container {
    flex-shrink: 0;
}

.playground-text {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.playground-text:last-of-type {
  margin-bottom: 0px;
}

/* Desktop text visible by default, mobile hidden */

.playground-desktop-text {
  display: block;
}

.playground-mobile-text {
  display: none;
}

/* Enter Playground button */

.playground-button {
  margin-top: 1.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playground-button:hover {
    transform: scale(1.05);
    animation: neon-glow 5s linear infinite;
}

.playground-interactive-space {
  pointer-events: none;
  height: 100dvh;
  width: 100%;
    flex-grow: 1;
    min-height: 600px;
}

/* Playground Close Button (X button) */

.playground-close {
  position: fixed;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
    top: 2rem;
    right: 2rem;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 4rem;
    height: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.playground-close:hover {
    transform: scale(1.1);
    animation: neon-glow 5s linear infinite;
}

.playground-close-icon {
  position: relative;
    width: 1.75rem;
    height: 1.75rem;
}

.playground-close-icon::before,
.playground-close-icon::after {
  position: absolute;
  left: 0px;
  width: 100%;
  border-radius: 0.125rem;
    content: '';
    top: 50%;
    height: 3px;
    background: #fff;
}

.playground-close-icon::before {
    transform: translateY(-50%) rotate(45deg);
}

.playground-close-icon::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* Playground Mode Active State - Hide everything except canvas + menu */

body.playground-mode #logo,
body.playground-mode #primary,
body.playground-mode .site-footer {
    display: none !important;
}

/* Keep menu button and canvas visible */

body.playground-mode .menu-toggle,
body.playground-mode #fsf-canvas {
    display: flex !important;
}

/* Show exit button with high z-index */

body.playground-mode #exit-playground {
    display: flex !important;
    z-index: 10002 !important;
}

/* Hide grayscale filter completely to enable canvas interaction */

body.playground-mode #bg-filter {
    display: none !important;
}

/* Mobile/Tablet styles (≤1024px) */

@media (max-width: 1024px) {
    /* Hide desktop text, show mobile text */
    .playground-desktop-text {
    display: none;
  }
    
    .playground-mobile-text {
    display: block;
  }
    
    /* Center align playground container on mobile */
    .playground-section {
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
    
    /* Hide interactive space on mobile (not needed with button) */
    .playground-interactive-space {
    display: none;
  }
}

@media (max-width: 768px) {
    .playground-text {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }
    
    .playground-button {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }
    
    .playground-close {
        top: 1rem;
        right: 1rem;
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .playground-close-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}