@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=onest");

* {
  font-family: "Onest", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: normal;
  scroll-behavior: smooth;
  font-display: swap;
}

/* Fixed Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slideshow .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #003366;
  opacity: 0.4;
  z-index: 6;
  pointer-events: none;
}

/* Logo positioning fix */
.logo-container {
  position: absolute;
  top: 12px;
  left: 25%;
  z-index: 4;
}

/* Animation Styles */
.slide-from-left {
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.slide-from-right {
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.slide-from-bottom {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s ease-out;
}

.slide-from-top {
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.6s ease-out;
}

.slide-from-left.animated,
.slide-from-right.animated,
.slide-from-bottom.animated,
.slide-from-top.animated {
  transform: translate(0);
  opacity: 1;
}

/* Enhanced Client Carousel Styles with Fade Effect */
.client-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: white;
}

/* Fade overlay on both ends */
.client-carousel::before,
.client-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.client-carousel::before {
  left: 0;
  background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}

.client-carousel::after {
  right: 0;
  background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}

.client-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
  padding: 1rem;
}

.client-track:hover {
  animation-play-state: paused;
}

.client-item {
  flex: 0 0 auto;
  margin: 0 2rem;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-item:hover {
  transform: scale(1.1);
}

.client-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-item:hover img {
  filter: grayscale(0%);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Values Cards Styles */
.values-card {
  background: linear-gradient(135deg, #003366 0%, #2a4379 100%);
  position: relative;
  overflow: hidden;
}

.values-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  transition: all 0.3s ease;
}

.values-card:hover::before {
  top: -30%;
  right: -30%;
}

.values-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 51, 102, 0.3);
}

/* LK Switchgear Section Styles */
.lt-section {
  background: linear-gradient(135deg, #2a4379 0%, #003366 100%);
  position: relative;
  overflow: hidden;
}

.lt-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.lt-logo-container {
  background: linear-gradient(45deg, #ffffff, #ffffff);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.lt-logo-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: rotate 6s linear infinite;
}

.lt-logo-content {
  position: relative;
  z-index: 2;
}

.service-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.service-item:hover::before {
  left: 100%;
}

.service-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 184, 0, 0.5);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #ffb800, #ff8c00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-section:hover::before {
  left: 100%;
}

.cta-section:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 184, 0, 0.5);
}

/* LK Highlight Card Styles */
.lk-highlight {
  position: relative;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f7f7f8 100%
  ); /* Matches the blue shade in the image */
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.lk-highlight:hover {
  transform: scale(1.02);
}

.lk-highlight .bg-blue-500 {
  background-color: #3b82f6; /* Slightly lighter blue for the logo and buttons */
}

#lkbtn span {
  flex: 1;
  margin: 0 0.25rem;

  text-align: center;
}

.lk-hightlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.lk-hightlight:hover::before {
  left: 100%;
}

/* Ensure text alignment and spacing */
.lk-highlight h3 {
  margin-bottom: 0.5rem;
}

.lk-highlight p {
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Loader Overlay Styles */
.loader-overlay {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 110px;
  height: 110px;
}

.loader-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 110px;
  border: 6px solid #003366;
  border-top: 6px solid #ffb800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-sizing: border-box;
}

.loader-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  z-index: 2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .floating-nav {
    padding: 0.5rem 0.5rem;
    max-width: 98vw;
  }
  .floating-nav .nav-content {
    gap: 0.5rem;
  }
  .floating-nav img {
    width: 60px;
    margin-right: 0.5rem;
  }
  .floating-nav .nav-links {
    gap: 0.3rem;
  }
  .floating-nav a {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }
  .floating-nav .bg-accent-color {
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .client-track {
    animation-duration: 15s;
  }

  .client-item {
    margin: 0 1rem;
    width: 80px;
    height: 60px;
  }

  /* Smaller fade areas on mobile */
  .client-carousel::before,
  .client-carousel::after {
    width: 50px;
  }

  .enlistment-grid {
    grid-template-columns: 1fr;
  }

  .lt-logo-container {
    padding: 1.5rem;
  }

  .service-item {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .client-carousel::before,
  .client-carousel::after {
    width: 30px;
  }
}

/* styles.css */
/* @keyframes flip {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    45% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    55% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
} */

@keyframes flip {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  50% {
    transform: rotateX(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    opacity: 0;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* .rotating-text {
  animation: fade 1s ease-in-out;
} */

.rotating-text {
  display: inline-block;
  font-weight: bold;
  font-size: 4rem;
  color: #f1f1f1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

@media (max-width: 768px) {
  .rotating-text {
    font-size: 3rem;
  }
}

.rotating-text.fade-out {
  opacity: 0;
  transform: translateY(-15px);
}

.rotating-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}
