/* Marquee RTL - Responsive Container */
.marquee-rtl-container{
    width: 100%;
    max-width: 700px;
    margin: auto;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Marquee RTL - Responsive Animation */
.marquee-rtl {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-rtl-desktop 10s linear infinite;
  will-change: transform;
}

/* Desktop Animation - 750px container */
@keyframes marquee-rtl-desktop {
    0% {
        transform: translateX(750px);
    }
    100% {
        transform: translateX(-750px);
    }
}

.hero-title-main {
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 700;
}

.preloader-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    width: 100%;
    padding: 0 20px;
}

.preloader-brand .preloader-company-name {
    margin-left: -10px;
}

.preloader-logo {
    width: 220px;
    height: auto;
    max-width: 50vw;
    max-height: 30vh;
    display: block;
    object-fit: contain;
    animation: logo-fade-zoom-slide 0.6s ease-in-out forwards;
}

.preloader-company-name {
    font-family: "Creato Display", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 96%;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    opacity: 0;
    position: relative;
    padding-left: 0;
    animation: company-name-reveal 0.4s ease-out 0.3s forwards;
}

/* Custom Preloader Animation: Zoom Out then Slide Left */
@keyframes logo-fade-zoom-slide {
  0% {
    transform: scale(1.8) translateX(0);
    opacity: 0;
  }
  12% {
    transform: scale(1.8) translateX(0);
    opacity: 1;
  }
  45% {
    transform: scale(1) translateX(0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateX(-80px);
    opacity: 1;
  }
}

@keyframes company-name-reveal {
  0% {
    opacity: 0;
    transform: translateX(100px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Large Desktop - 1439.98px */
@media only screen and (max-width: 1439.98px) {
  .marquee-rtl-container {
    max-width: 650px;
  }
  
  .marquee-rtl {
    animation: marquee-rtl-large-desktop 9.5s linear infinite;
  }
  
  @keyframes marquee-rtl-large-desktop {
    0% {
        transform: translateX(700px);
    }
    100% {
        transform: translateX(-700px);
    }
  }
}

/* Desktop - 1199.98px */
@media only screen and (max-width: 1199.98px) {
  .marquee-rtl-container {
    max-width: 550px;
  }
  
  .marquee-rtl {
    animation: marquee-rtl-medium 8s linear infinite;
  }
  
  @keyframes marquee-rtl-medium {
    0% {
        transform: translateX(600px);
    }
    100% {
        transform: translateX(-600px);
    }
  }
  
  .preloader-logo {
    width: 180px;
  }
  
  .preloader-company-name {
    font-size: 38px;
  }
}

/* Tablet - 991.98px */
@media only screen and (max-width: 991.98px) {
  .marquee-rtl-container {
    max-width: 450px;
  }
  
  .marquee-rtl {
    animation: marquee-rtl-tablet 7s linear infinite;
  }
  
  @keyframes marquee-rtl-tablet {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
  }
  
  .preloader-logo {
    width: 150px;
  }
  
  .preloader-brand {
    flex-direction: column;
    gap: 20px;
  }
  
  .preloader-company-name {
    font-size: 32px;
    padding-left: 0;
    padding-top: 0;
  }
  
  /* Mobile: Company name appears from below */
  @keyframes company-name-reveal {
    0% {
      opacity: 0;
      transform: translateY(30px);
      filter: blur(5px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0px);
    }
  }
  
  @keyframes logo-fade-zoom-slide {
    0% {
      transform: scale(1.8);
      opacity: 0;
    }
    15% {
      transform: scale(1.8);
      opacity: 1;
    }
    50% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
}

/* Mobile Landscape - 767.98px */
@media only screen and (max-width: 767.98px) {
  .marquee-rtl-container {
    max-width: 400px;
  }
  
  .marquee-rtl {
    animation: marquee-rtl-mobile 6.5s linear infinite;
  }
  
  @keyframes marquee-rtl-mobile {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
  }
  
  .preloader-logo {
    width: 130px;
  }
  
  .preloader-company-name {
    font-size: 26px;
  }
}

/* Mobile Portrait - 575.98px */
@media only screen and (max-width: 575.98px) {
  .preloader-company-name {
    font-size: 22px;
  }
  
  .marquee-rtl-container {
    max-width: 100%;
  }
  
  .marquee-rtl {
    animation: marquee-rtl-small 5s linear infinite;
  }
  
  @keyframes marquee-rtl-small {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
  }
}

/* Small Mobile - 420px */
@media only screen and (max-width: 420px) {
  .marquee-rtl-container {
    max-width: 100%;
  }
  
  .marquee-rtl {
    animation: marquee-rtl-tiny 4s linear infinite;
  }
  
  @keyframes marquee-rtl-tiny {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
  }
}
