
body,
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Montserrat', sans-serif;
}

.company-font {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  /* Increased weight */
}

/* Navigation styles */
.nav-link {
  position: relative;
  font-weight: 400;
  /* Lighter weight */
  font-size: 0.95rem;
  padding: 0.5rem 0;
  color: #555;
  /* Darker gray for better contrast */
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #800000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #800000;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Engineering tape progress indicator */
#engineering-tape {
  height: 10px;
  width: 0;
  background: repeating-linear-gradient(45deg,
      #FFD800,
      #FFD800 10px,
      #000000 10px,
      #000000 20px);
  transition: width 0.3s ease-out;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
  filter: brightness(0.7);
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* Lighter overlay */
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Slide content - now in front of overlay */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 20;
  /* Increased z-index */
  width: 85%;
  max-width: 800px;
  padding: 2rem;
}

/* Text animation */
.letter {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  animation: textReveal 0.8s forwards;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Read More Button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  margin-top: 2rem;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.read-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #800000;
  transition: all 0.4s ease;
  z-index: -1;
}

.read-more-btn:hover {
  color: white;
  border-color: #800000;
}

.read-more-btn:hover::before {
  left: 0;
}

.read-more-btn .arrow {
  margin-left: 8px;
  transition: all 0.4s ease;
}

.read-more-btn:hover .arrow {
  transform: translateX(5px);
}
/* Word animation for responsive carousel text */
.word {
  display: inline-block;       /* treat each word as a block for animation */
  opacity: 0;                  /* start invisible */
  transform: translateY(20px); /* slide-up effect */
  animation: wordReveal 0.8s forwards;
}

/* Keyframes for word reveal */
@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Make slide text wrap nicely on small screens */
.slide-content h1 {
  word-break: break-word;      /* allow words to wrap naturally */
  font-size: clamp(1.5rem, 4vw, 3rem); /* responsive font size */
}


.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.8s forwards;
  margin-right: 0.25em; /* add small space between words */
}

/* Typography */
.slide-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Playfair Display', serif;
}

.slide-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Enhanced Contact Bar */
.contact-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  /* Increased padding */
  max-width: 100%;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  /* Slightly larger */
}

.contact-icon {
  width: 18px;
  /* Slightly larger icons */
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
  }

  .contact-item {
    justify-content: center;
    width: 100%;
  }
}

/* Enhanced Navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 2rem;
  /* Wider padding */
}

.company-name {
  font-size: 1.8rem;
  /* Slightly larger */
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  /* Wider spacing between links */
}

@media (max-width: 767px) {
  .company-name {
    font-size: 1.5rem;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-subtitle {
    font-size: 1rem;
  }

  .nav-container {
    padding: 1rem;
  }
}

.mask-diagonal {
    clip-path: polygon(0 10%, 100% 0%, 100% 90%, 0% 100%);
  }
  
  .fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
  }
  
  .fade-in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  
  
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    .animate-fade-in-up {
      animation: fadeInUp 1s ease-out forwards;
    }
    

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fade-in-up {
    animation: fadeInUp 1.2s ease-out forwards;
  }
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  .animate-scroll {
    animation: scroll 40s linear infinite;
  }
  
  .partners-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f0f0, #dcdcdc);
    text-align: center;
    overflow: hidden;
  }
  
  .partners-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    font-family: 'Playfair Display', serif;
  }
  
  .carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .carousel-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 60s linear infinite;
  }
  
  .carousel-track img {
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .carousel-track img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 1;
  }
  
  /* Adjust animation keyframe to ensure infinite scroll */
 
.partners-section {
  background: linear-gradient(135deg, #616161, #dcdcdc); /* Greish gradient */
  padding: 4rem 2rem;
  font-family: 'Times New Roman', Times, serif;
}

.partner-logo {
  height: 60px;           /* Reduced size */
  width: auto;
  margin-right: 4rem;
  object-fit: contain;
  filter: none !important; /* Show original colors */
  opacity: 1;
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05); /* Optional: gentle hover zoom */
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: scroll 60s linear infinite;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease forwards;
}
.delay-100 {
  animation-delay: 0.2s;
}
.delay-200 {
  animation-delay: 0.4s;
}
.delay-300 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.logo-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 2rem;
}

.logo-path {
  fill: none;
  stroke: #800000;
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 3s ease forwards;
}


.preloader-text {
  font-family: 'Times New Roman', serif;
  font-size: 1.5rem;
  color: #800000;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 2s forwards;
}

.split-screen {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100%;
  background: #fff;
  z-index: 9998;
  transform: scaleY(0);
  transform-origin: top;
}




    .heading-font {
      font-family: 'Times New Roman', serif;
    }

    .typography-art {
      position: relative;
      display: inline-block;
    }

    .typography-art::after {
      content: "";
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, #800000, #000000);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s ease;
    }

    .typography-art:hover::after {
      transform: scaleX(1);
    }

    .project-card {
      transition: all 0.4s ease;
      background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    }

    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    }

    .client-carousel {
      display: flex;
      width: 200%;
      animation: scroll 50s linear infinite;
    }

    .client-carousel.reverse {
      animation: scroll-reverse 50s linear infinite;
    }

    @keyframes scroll {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-50%);
      }
    }

    @keyframes scroll-reverse {
      0% {
        transform: translateX(-50%);
      }

      100% {
        transform: translateX(0);
      }
    }

    .client-logo {
      flex: 0 0 auto;
      width: 100px;
      height: 50px;
      margin: 0 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      filter: grayscale(100%);
      opacity: 0.7;
      transition: all 0.3s ease;
    }

    .client-logo:hover {
      filter: grayscale(0);
      opacity: 1;
    }

    .maroon-divider {
      height: 3px;
      background: linear-gradient(90deg, #800000, #000000, #800000);
    }

    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }
  


    body {
        font-family: 'Montserrat', sans-serif;
    }

    h1,
    h2,
    h3,
    h4 {
        font-family: 'Playfair Display', serif;
    }

    /* scroll animations */
    [data-scroll] {
        opacity: 0;
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    [data-scroll="fade"] {
        transform: translateY(30px);
    }

    [data-scroll="fade-left"] {
        transform: translateX(-50px);
    }

    [data-scroll="fade-right"] {
        transform: translateX(50px);
    }

    [data-scroll].animate {
        opacity: 1;
        transform: translate(0);
    }

    /* Glowing hover effect */
    .glow-hover:hover {
        box-shadow: 0 0 20px rgba(128, 0, 0, 0.4);
    }

    /* Service card styling */
    .service-card {
        transition: all 0.4s ease;
        background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    /* Hero overlay gradient */
    .hero-overlay {
        background: linear-gradient(135deg, rgba(128, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    }

    /* Floating animation */
    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-15px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    .floating {
        animation: float 6s ease-in-out infinite;
    }



    