html, body {
  height: auto;
  margin: 0;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;

  /* ✅ GPU isolation */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

#background canvas {
  z-index: -1 !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#marquee-wrapper {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}







/* Fade down animation */
.fade-down {
  animation: fadeDown 0.6s ease-out forwards;
}

@keyframes fadeDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Glass effect base */
.glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

/* Glass card variant */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fade in up animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Glass nav effect with animation */
.glass-nav {
  background: rgba(255, 255, 255, 0.1); /* semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  animation: navFadeIn 0.5s ease-in-out forwards;
}

@keyframes navFadeIn {
  0% {
    background-color: rgba(255, 255, 255, 0);
    transform: translateY(-10px);
  }
  100% {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(0);
  }
}

/* Nav links underline on hover */
nav#navbar ul li a:hover,
nav#navbar ul li a.active {
  position: relative;
  color: #0076e8; /* or your primary color */
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-delay-1 { animation-delay: 0.2s; }
.fade-delay-2 { animation-delay: 0.4s; }
.fade-delay-3 { animation-delay: 0.6s; }
.fade-delay-4 { animation-delay: 0.8s; }
.fade-delay-5 { animation-delay: 1s; }

@media (max-width: 640px) {
  .timeline-line {
    left: 0 !important;
    margin-left: 0 !important;
  }
}


/* Desktop animation 
@keyframes marquee-left-desktop {
  0% { transform: translateX(50%); }
  100% { transform: translateX(-80%); }
}

@media (min-width: 641px) {
  .marquee-track {
    animation: marquee-left-desktop 8s linear infinite;
  }
}

@keyframes marquee-left-mobile {
  0% { transform: translateX(55%); }
  100% { transform: translateX(-190%); }
}

@media (max-width: 640px) {
  .marquee-track {
    animation-name: marquee-left-mobile;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
}*/





  @keyframes fade-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease-out forwards;
}

    @keyframes fadeUp {
      0% { opacity: 0; transform: translateY(40px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideIn {
      0% { opacity: 0; transform: translateX(60px) rotate(-3deg); }
      100% { opacity: 1; transform: translateX(0) rotate(-1deg); }
    }

    .animate-fade-up {
      animation: fadeUp 0.8s ease-out forwards;
    }

    .animate-slide-in {
      animation: slideIn 1s ease-out forwards;
    }

    .delay-200 {
      animation-delay: 0.2s;
    }

    .delay-500 {
      animation-delay: 0.5s;
    }


    @keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

/* Delay helpers */
.delay-0 { animation-delay: 0s; }
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }


     /* Hidden by default, shifted left */
  .feature-item,
  #custom-quote {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  /* Animate slide in */
  .feature-item.animate-slide-in-left,
  #custom-quote.animate-fade-in-up {
    opacity: 1;
    transform: translateX(0);
  }

  /* Fade up for price section */
  #price-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  #price-section.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
  }


  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-up-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
  }

  .fade-up-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
  }

    @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .fade-up-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
  }

  .fade-up-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
  }

  







  /* Button style */
.tag-btn {
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.tag-btn.active {
  background-color: rgba(255 255 255 / 0.8);
  color: #0F0F1C;
}

/* Counter bubble hidden permanently */
.tag-btn .count {
  display: none !important;
}






@media (min-width: 1024px) {
  html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
  }
}








.border-red-500 {
  border-color: #ef4444; /* Tailwind red-500 */
}





/* Shadow Effect  */
.glow-img-wrapper {
  position: relative;
  display: inline-block;
}

.glow-img {
  width: 120px;
  height: auto;
  position: relative;
  z-index: 10;
}

/* Gradient Pulse Behind Image */
.glow-img {
  width: 120px; /* or adjust as needed */
  height: auto;
  animation: glowShadow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 1px #00f0ff)
          drop-shadow(0 0 2px #00f0ff)
          drop-shadow(0 0 5px #00f0ff);
  transition: filter 0.5s ease;
}

@keyframes glowShadow {
  0%, 100% {
    filter: drop-shadow(0 0 2px #4ADEDE)
            drop-shadow(0 0 3px #4ADEDE)
            drop-shadow(0 0 5px #4ADEDE);
  }
  50% {
    filter: drop-shadow(0 0 5px #3813C2)
            drop-shadow(0 0 10px #3813C2)
            drop-shadow(0 0 15px #3813C2);
  }
}












/* Base container style */
.video-container {
  flex: 1 1 300px; /* allow flexible width with min size */
  max-width: 500px; /* optional: limit para di masyado lumapad */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  border-radius: 1px;
  background: #000;
  transition: overflow 0.3s ease;
}

/* Portrait-specific styling (adjustable like TikTok) */
.video-container.portrait-video {
  height: 500px; /* adjust as needed */
  max-width: 280px; 
  aspect-ratio: 9 / 16;
  margin: 0 0;
}

/* Landscape-specific styling */
.video-container.landscape-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-left: 0;
  margin-top: auto;
  margin-bottom: auto;
}

/* Video element default styling */
.video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
  padding: 0;
}

/* Fullscreen override (optimized) */
video:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  background-color: black !important;
  z-index: 9999 !important;
}



/* Controls placement */
.controls-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  display: flex;
  gap: 0.3rem;
}

/* Mute and control buttons */
.mute-btn,
.control-btn {
  font-size: 1.5rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.mute-btn:hover,
.control-btn:hover {
  color: #00ffff;
}

/* Grid wrapper styling */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers the entire row */
  align-items: flex-start;
  gap: 1.5rem; /* control spacing between videos */
  padding: 1rem;
}


/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
  .video-grid {
    gap: 1rem;
    padding: 0.5rem;
  }

  .video-container {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .video-container.portrait-video {
    height: 400px;
    max-width: 200px;
    aspect-ratio: 9 / 16;
  }

  .video-container.landscape-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
  }

  .video-el {
    border-radius: 0;
  }

  .controls-overlay {
    top: 0.3rem;
    right: 0.3rem;
    gap: 0.2rem;
  }

  .mute-btn,
  .control-btn {
    font-size: 1.2rem;
  }
}




