* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

html,
body,
* {
  cursor: none !important;
  box-sizing: border-box;
}

/* CUSTOM SCROLLBAR - COMPLETELY HIDDEN */
::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
}

html {
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* IE/Edge */
}

body {
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* IE/Edge */
}

/* NOISE OVERLAY */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* CUSTOM CURSOR */
.cursor-follower {
  position: fixed;
  width: 18px;
  height: 18px;
  background: #c9a36a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(201, 163, 106, 0.5);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, transform 0.1s linear;
}

.cursor-dot {
  width: 3px;
  height: 3px;
  background: #000;
  border-radius: 50%;
}

.cursor-follower.hovered {
  width: 50px;
  height: 50px;
  background: rgba(201, 163, 106, 0.2);
  border: 1px solid #c9a36a;
}

.cursor-follower.hovered {
  transform: translate(-50%, -50%) scale(2);
  background: rgba(201, 163, 106, 0.1);
}

/* MAGNETIC */
.magnetic {
  display: inline-block;
}

/* LABEL */
#hoverLabel {
  position: fixed;
  padding: 6px 12px;
  background: #c9a36a;
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10002;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {

  .cursor-follower,
  .noise-overlay,
  #hoverLabel {
    display: none;
  }

  html,
  body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

body {
  background-color: #050505;
  /* Grainy Gradient Background */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.20'/%3E%3C/svg%3E"),
    radial-gradient(circle at 15% 50%, rgba(50, 50, 50, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(60, 60, 60, 0.2) 0%, transparent 50%),
    linear-gradient(160deg, #050505 0%, #1a1a1a 50%, #000000 100%);
  background-attachment: fixed;
  background-size: 200px 200px, 100% 100%, 100% 100%, 100% 100%;
  color: #fff;
  font-family: Poppins;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px 60px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.navbar a {
  margin-left: 25px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
}

.navbar a:hover {
  color: #c9a36a;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #c9a36a !important;
  letter-spacing: 8px;
  /* Increased for that premium spaced-out look */
  text-decoration: none;
  font-size: 1.4rem;
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  text-align: right;
  z-index: 10;
}

.hero-name-top {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 6px;
  margin-bottom: -10px;
  text-transform: uppercase;
  color: #fff;
}

.hero-name-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 100px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 5px;
}

.hero-aight {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: italic;
}

.hero-vaibhav {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 4px;
}

.hero-sub-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  min-height: 1.5em;
  /* Reserve space to prevent vertical movement */
  display: block;
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px 15px !important;
    /* More breathing room at the top */
  }

  .logo {
    font-size: 1.1rem;
    letter-spacing: 4px;
  }

  .hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
  }

  .hero-name-main {
    font-size: 32px;
    /* Slightly smaller to ensure it NEVER cuts off */
    line-height: 1.3;
    /* More vertical space between AIGHT and VAIBHAV */
    letter-spacing: 1px;
    margin: 10px 0;
    /* Added margin for extra separation */
  }

  .hero-vaibhav {
    letter-spacing: 4px;
    /* More elegant tracking */
  }

  .hero-name-top {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }

  .hero-sub-text {
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 25px;
    /* Significant gap below the name */
    opacity: 0.8;
  }
}

.about,
.projects,
.services,
.contact {
  padding: 100px 60px;
}

.about h2,
.projects h2,
.services h2,
.contact h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -2px;
}

@media (max-width: 768px) {

  .about,
  .projects,
  .services,
  .contact {
    padding: 60px 20px;
    text-align: center;
  }

  .about h2,
  .projects h2,
  .services h2,
  .contact h2 {
    font-size: 2.2rem;
    letter-spacing: -1px;
    text-align: center;
    width: 100%;
  }

  .about-video {
    margin: 0 auto 30px auto;
    max-width: 100%;
  }

  .about-content,
  .film-content {
    justify-content: center;
    text-align: center;
  }

  .about-text p,
  .film-text p {
    text-align: center;
  }

  .about-contact {
    align-items: center;
  }
}

/* About Section Styles */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  /* Important for mobile */
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 20px;
  font-size: 16px;
}

.about-video {
  flex: 1;
  max-width: 400px;
  width: 100%;
}

.about-contact {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  transition: color 0.3s ease;
  word-break: break-word;
}

.contact-item:hover {
  color: #c9a36a;
}

.contact-item span {
  display: block;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
}

.about-video video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }

  .about-video {
    max-width: 100%;
    min-width: 0;
  }

  .about-text {
    width: 100%;
    min-width: 0;
  }
}

/* Carousel Styles */
.carousel-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 0;
  overflow: hidden;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}



/* Scroll Animations */
.scroll-left {
  animation: scroll-left 40s linear infinite;
}

.scroll-right {
  animation: scroll-right 40s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Pause on hover */
.carousel-track:hover {
  animation-play-state: paused;
}



.services h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.service-card {
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  height: 380px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(201, 163, 106, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 163, 106, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(20, 20, 20, 0.8);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  text-align: left;
  letter-spacing: 1px;
}

.service-card:hover h3 {
  color: #c9a36a;
  transform: translateY(-5px);
}

.service-info {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
  margin-top: 25px;
  width: 100%;
  display: block;
  /* Always block, just invisible */
}

.service-card:hover .service-info {
  opacity: 1;
  transform: translateY(0);
}

.service-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-info li {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 24px;
  position: relative;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.service-card:hover li {
  color: rgba(255, 255, 255, 0.9);
}

.service-info li::before {
  content: '→';
  color: #c9a36a;
  position: absolute;
  left: 0;
  font-weight: bold;
  opacity: 0.8;
}

.contact {
  text-align: left;
}

.socials {
  margin-top: 30px;
}

.social-btn {
  margin: 10px;
  padding: 14px 35px;
  border: 2px solid #c9a36a;
  color: #c9a36a;
  text-decoration: none;
  border-radius: 40px;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
  display: inline-block;
}

.social-btn:hover {
  background: #c9a36a;
  color: black;
  box-shadow: 0 0 25px #c9a36a;
}

#loader {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loader h1 {
  color: #c9a36a;
  font-family: Playfair Display;
  letter-spacing: 5px;
}

/* Cleaned up below */

/* Consolidated Video Box Styles */
.video-item {
  width: 200px;
  /* Smaller width for vertical videos */
  flex-shrink: 0;
}

.video-box {
  width: 100%;
  aspect-ratio: 9 / 16;
  /* Vertical aspect ratio for shorts */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
  /* Fallback */
}

.overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  letter-spacing: 2px;
  opacity: 0;
  transition: 0.4s;
  color: #fff;
  z-index: 2;
}

.video-box:hover .overlay-text {
  opacity: 1;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.4s ease;
}

.video-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(201, 163, 106, 0.5);
  z-index: 10;
}

.video-box:hover video {
  filter: brightness(1.15) contrast(1.1);
}

/* TOOLS SECTION */
.tools-section {
  padding: 80px 20px;
  /* background: #050505; - Removed to show body grain */
}

.tools-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-item p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #888;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  font-weight: 500;
}

.tool-item:hover {
  transform: translateY(-5px);
}

.tool-item:hover p {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}

/* ADOBE ICONS */
.adobe-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

/* Glassy Shine Effect */
.adobe-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: rotate(45deg);
  transition: 0.5s;
}

.adobe-icon:hover::after {
  left: 100%;
  top: 100%;
}

/* Specific Colors */
.pr {
  background: #00005b;
  color: #db96fd;
  border-color: #db96fd;
}

.pr:hover {
  box-shadow: 0 0 30px rgba(219, 150, 253, 0.6);
  text-shadow: 0 0 10px rgba(219, 150, 253, 0.8);
}

.ae {
  background: #00005b;
  color: #d291ff;
  border-color: #d291ff;
}

.ae:hover {
  box-shadow: 0 0 30px rgba(210, 145, 255, 0.6);
  text-shadow: 0 0 10px rgba(210, 145, 255, 0.8);
}

.ps {
  background: #001e36;
  color: #31a8ff;
  border-color: #31a8ff;
}

.ps:hover {
  box-shadow: 0 0 30px rgba(49, 168, 255, 0.6);
  text-shadow: 0 0 10px rgba(49, 168, 255, 0.8);
}

.lr {
  background: #001e36;
  color: #31a8ff;
  border-color: #31a8ff;
}

.lr:hover {
  box-shadow: 0 0 30px rgba(49, 168, 255, 0.6);
  text-shadow: 0 0 10px rgba(49, 168, 255, 0.8);
}

/* DAVINCI RESOLVE AUTHENTIC ICON */
/* DAVINCI RESOLVE AUTHENTIC ICON */
.davinci-box {
  width: 80px;
  height: 80px;
  background: #111;
  /* Dark background from image */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  cursor: pointer;
}

/* Rainbow Border using pseudo-element */
.davinci-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  /* Authentic thin border */
  background: conic-gradient(from 180deg, #ff0000,
      #ffff00,
      #00ff00,
      #00ffff,
      #0000ff,
      #ff00ff,
      #ff0000);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: spin-slow 20s linear infinite;
  /* Rotating border */
}

/* Container for petals */
.davinci-logo {
  width: 46px;
  height: 46px;
  position: relative;
  /* animation: spin-slow 10s linear infinite; - Removed spin of entire logo */
}

.d-petal {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 0 50% 50% 50%;
  /* Sharp corner at Top-Left */
  box-shadow: inset -1px -1px 4px rgba(0, 0, 0, 0.5);
  /* Depth shadow */
}

.d-petal.blue {
  background: radial-gradient(120% 120% at 80% 80%, #a2e0ff 0%, #00a8e8 50%, #005f88 100%);
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(225deg);
}

.d-petal.red {
  background: radial-gradient(120% 120% at 80% 80%, #ffcbd5 0%, #ff5e7e 50%, #b80026 100%);
  bottom: 3px;
  right: 1px;
  transform: rotate(0deg);
}

.d-petal.yellow {
  background: radial-gradient(120% 120% at 80% 80%, #faffbd 0%, #d4fc38 50%, #7db300 100%);
  bottom: 3px;
  left: 1px;
  transform: rotate(90deg);
}

/* Global Gloss/Shine Highlight for all petals */
.d-petal::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 40%;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(1px);
  transform: translate(20%, 20%);
  /* Move highlight to bulbous part */
}



/* Hover Effects */
.davinci-box:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.davinci-box:hover .davinci-logo {
  transform: scale(1.1);
}

.davinci-box:hover .davinci-box::before {
  animation-duration: 1s;
  /* Faster rainbow spin */
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* UPGRADED BY SECTION */
.upgraded-section {
  padding-bottom: 80px;
  /* Space it out */
}

.upgraded-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  /* Good separation */
  flex-wrap: wrap;
}

.upgraded-item img {
  height: 100px;
  /* Prominent size */
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.upgraded-item img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

@media (max-width: 768px) {
  .upgraded-logos {
    gap: 40px;
  }

  .upgraded-item img {
    height: 70px;
  }
}

/* AI TOOLS COLORS */
.mj,
.hf,
.ge,
.le,
.gp {
  background: transparent !important;
  /* Let the image background show */
  border: none;
  /* Images likely have their own definition or transparency */
  box-shadow: none;
  /* Reset shadow for pure image look, or keep? Let's check. */
}

/* Re-apply hover effects but on the image container or image itself */
.mj:hover,
.hf:hover,
.ge:hover,
.le:hover,
.gp:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  /* Generic shadow */
}

.adobe-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* or contain, depending on if they are square logos */
  border-radius: 20px;
  /* Match container */
  transition: transform 0.4s ease;
}


/* COLOUR GRADING SECTION */
.grading-section {
  padding: 80px 20px;
}

.comparison-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  user-select: none;
  cursor: none !important;
}

.comp-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Before Image Wrapper - The Mask */
.img-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  /* Default 50% */
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
}

/* Before Image - Needs to maintain full size */
.img-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* Width will be set by JS to match parent container */
  max-width: none;
}

/* Labels */
.comp-label {
  position: absolute;
  top: 20px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.label-before {
  left: 20px;
  z-index: 3;
}

.label-after {
  right: 20px;
  z-index: 1;
  /* Behind wrapper */
}

/* Slider Handle */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  /* Let clicks pass to range input */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Handle visuals */
.handle-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.handle-circle svg {
  width: 16px;
  height: 16px;
}

/* Range Input - Invisible Overlay */
.slider-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: none !important;
  z-index: 10;
}

/* SHORT FILM SECTION */
.short-film-section {
  padding: 80px 20px;
}

.film-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
}

.film-text {
  flex: 1;
}

.film-text p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #ddd;
  text-align: left;
}

.film-image {
  flex: 1;
  max-width: 500px;
}

.film-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.film-image img:hover {
  transform: scale(1.02);
}

.film-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid #222;
}

.film-video-wrapper iframe,
.film-video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  /* Fill the container, eliminating black bars */
  background: black;
}

@media (max-width: 992px) {
  .film-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .film-text p {
    text-align: center;
  }
}

/* LIBRARY PAGE STYLES */
.library-header {
  padding-top: 120px;
  padding-bottom: 50px;
}

.library-section-title,
.tools-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  color: #c9a36a;
  margin: 40px 0 20px 0;
  width: 100%;
}

@media (max-width: 768px) {
  .library-header h1 {
    font-size: 2.5rem;
  }

  .library-header p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .library-section-title {
    font-size: 1.8rem;
    text-align: center;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding-bottom: 80px;
}

.lib-video-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid #222;
}

.lib-video-item.rect {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.long-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

@media (max-width: 992px) {
  .long-form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .long-form-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}

.lib-video-item.poster-aspect {
  aspect-ratio: 4 / 5;
}

.lib-video-item:hover {
  transform: translateY(-8px);
  border-color: #c9a36a;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.lib-video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.lib-video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.lib-video-item:hover img {
  filter: brightness(1.1);
}

.lib-video-item:hover video {
  filter: brightness(1.1);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
}

.lib-video-item:hover .play-overlay {
  opacity: 1;
}

.play-overlay span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(201, 163, 106, 0.9);
  padding: 8px 15px;
  border-radius: 20px;
}

/* VIDEO MODAL */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: auto;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

#mainPlayer {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
}

.close-modal:hover {
  color: #c9a36a;
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }

  .close-modal {
    top: -50px;
    right: 10px;
    font-size: 50px;
    /* Larger tap target */
  }

  #mainPlayer {
    max-height: 70vh;
  }
}

/* Specific button style for library */
.library-btn {
  background: transparent;
  font-size: 1.2rem;
  padding: 15px 40px;
  border-width: 2px;
}

.library-btn:hover {
  transform: scale(1.05);
}