body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

p{
    font-size: 1vw !important;
    line-height: 4vh;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}


.slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the area like the image */
    transform: scale(1.5); /* Start at a larger scale for zoom-out effect */
    transition: transform 10s cubic-bezier(0.25, 0.1, 0.25, 1); /* 10-second zoom-out */
    animation: zoomOut 15s ease-in-out forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.3); /* Start zoomed in */
    }
    100% {
        transform: scale(1); /* End at original size */
    }
}

.slide.active .hero-video {
    transform: scale(1); /* Zoom out to normal size */
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-overlay h1 {
    font-family: 'Arial', sans-serif;
    font-size: 4rem;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.slide.active .text-overlay h1 {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .text-overlay h1 {
        font-size: 2.5rem;
    }
}

.hero-h1 {
    font-size: 4vw !important;
}

.text-overlay p {
    font-size: 1vw;
    margin: 3vh 0;
}

.product-container {
    position: relative;
    width: 100%;
    min-height: fit-content;
    margin: 4vh 0;
    /* background-color: gray; */
}

.product-container div {
    position: relative;
    width: 100%;

}

.product-container .product-container-title {
    padding: 1rem 0;
}

.product-container .product-container-styled-box {
    /* background-color: #262161; */
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(9, 9, 121, 1) 50%, rgba(38, 33, 97, 1) 100%);
    height: 30vh !important;
    border-radius: 0vw 0vw 2vw 2vw;
    z-index: 1;
}

.product-container .product-container-boxes {
    /* background-color: rgba(157, 255, 0, 0.363); */
    z-index: 2;
    min-height: 30vh;
    top: -20vh;
}

.product-container .product-card-container {
    display: flex;
    flex-direction: row;
    gap: 3vw;
    padding: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.product-image-wrapper{
    overflow: hidden;
}

.product-container .card {
    display: flex;
    flex-direction: column;
    width: 25vw;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease;
    overflow: hidden;

}

.product-container .card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.product-container .card:hover img {
    filter: brightness(1.1);
    scale: 1.1;
}

.product-container .card:hover .card-content {
    background-color: white;
}

.product-container .card:hover .card-content h3 {
    color: rgba(38, 33, 97, 1);
    font-size: 1.2vw;
}

.product-container .card img {
    width: 100%;
    /* height: 12rem; */
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    transition: filter 0.5s ease;
    transition: scale 0.5s ease;
}

.product-container .card-content {
    padding: 2rem;
    background-color: rgba(38, 33, 97, 1);
    border-radius: 0rem 0rem 0.5rem 0.5rem;
    height: 100%;
}

.product-container .card-content h3 {
    margin: 0;
    font-size: 1vw;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    transition: font-size 0.5s ease;

}

.product-container .card:hover .card-content h3 {
    text-decoration: none !important;
}

.solutions {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 2vw;
    justify-content: center;
    padding: 0 2vw;
}

.solution-container {
    position: relative;
    /* top: -15vh; */
    /* margin-bottom: 2rem; */
    top: -12vh;
}

.solution-indicator {
    font-size: 2vw;
}

#clients img {
    transition: scale 0.5s ease;
}

#clients {
    background-color: rgba(238, 238, 238, 0.644) !important;
}

#clients img:hover {
    scale: 1.1;
}

.process-icon {
    display: flex;
    min-width: fit-content;
    flex-wrap: wrap;
}

.process-icon>div {
    flex: 1;
}

.process-icon p {
    text-align: justify;
}

.process-icon h3 {
    width: 100%;
    padding: 0 !important;
}

.designing-manufacturing {
    /* position: relative; */
    top: -13vh;
    display: flex;
    flex-direction: row;
    /* Stack images vertically */
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 3px;
}

.solution-wrapper {
    position: relative;
    top: -13vh;
}

.image-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}


.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    margin: 0;
}

.image-wrapper:hover img {
    transform: scale(1.1);
}

.image-text {
    position: absolute;
    bottom: 2vw;
    left: 2vw;
    color: white;
    /* Adjust color for visibility */
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: bottom 0.3s ease;
}

.designing-manufacturing .image-wrapper:hover {
    cursor: pointer;
}

.designing-manufacturing .image-wrapper:hover .image-text {
    bottom: 3vw;
}

h3{
    font-size: 1.3vw;
}

h2{
    font-size: 3vw !important;
}

h1{
    font-size: 2.3vw !important;
}

a{
    font-size: 1vw !important;
}

.breadcrumb{
    font-size: 0.7vw !important;
}

.form-label{
    font-size: 1.2vw !important;
}

@media (max-width: 1024px) {
    p, .form-label, .breadcrumb {
        font-size: 1.5vw !important;
    }

    h1{
        font-size: 5vw !important;
    }

    h2 {
        font-size: 4vw !important;
    }
}

@media (max-width: 768px) {
    p, .form-label, .breadcrumb {
        font-size: 2vw !important;
    }

    .process-icon{
        gap: 1rem;
    }

    .card{
        width: 29vw !important;
    }

    h3{
        font-size: 1.7vw !important;
    }

    .card-content{
        padding: 1rem !important;
    }

    h2 {
        font-size: 4vw !important;
    }
}

@media (max-width: 425px) {
    p , .breadcrumb{
        font-size: 3.2vw !important;
    }

    .form-label {
        font-size: 4vw !important;
    }

    .process-icon{
        gap: 1rem;
    }

    .card{
        width: 40vw !important;
    }

    h3{
        font-size: 4vw !important;
    }

    .card-content{
        padding: 1rem !important;
    }

    h2 {
        font-size: 6vw !important;
    }

    h1, .hero-h1{
        font-size: 6vw !important;
    }

    .designing-manufacturing{
        gap: 1rem;
    }


    .designing-manufacturing{
        flex-direction: column;
    }

    .process-icon{
        flex-direction: column !important;
        padding: 0 2rem;
        text-align: center;
    }

    .product-container .product-card-container{
        flex-direction: column;

    }

    .product-container .card{
        width: 100% !important;
    }

}

.client-container {
    display: grid;
    gap: 5rem; /* Space between grid items */
    padding: 0 2rem;

    margin: 0 auto; /* Center the container */
  }

  /* Ensure images are responsive and fit within grid cells */
  .client-container img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio and cover the grid cell */
    display: block;
    background-color: rgba(238, 238, 238, 0.397);
  }

  /* Desktop view: 6x1 grid (6 columns, 1 row) */
  @media (min-width: 1025px) {
    .client-container {
      grid-template-columns: repeat(6, 1fr); /* 6 equal columns */
      grid-template-rows: 1fr; /* 1 row */
    }
  }

  /* Tablet view: 3x2 grid (3 columns, 2 rows) */
  @media (min-width: 601px) and (max-width: 1024px) {
    .client-container {
      grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
      grid-template-rows: repeat(2, 1fr); /* 2 rows */
      gap: 1rem 5rem;
    }
  }

  /* Mobile view: 2x3 grid (2 columns, 3 rows) */
  @media (max-width: 600px) {
    .client-container {
      grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
      grid-template-rows: repeat(3, 1fr); /* 3 rows */
      gap: 1rem 3rem;
    }
  }

  .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4x1 on desktop */
    gap: 2rem;
    padding: 0 5rem;
    margin: 0 auto;
}

.box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing for hover */
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.box:hover::before {
    left: 100%; /* Shimmer effect on hover */
}

.box h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.box p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.box:hover {
    transform: translateY(-8px) scale(1.02); /* Lift and slight scale */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #2621618c; /* Subtle blue border on hover */
}

.box:hover h3 {
    color: #262161; /* Color change for title */
}

.box:hover p {
    color: #555; /* Darken description slightly */
}

/* Mobile: 2x2 grid */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on mobile */
        gap: 15px;
        padding: 0 10px;
    }

    .box {
        padding: 20px 15px;
    }

    .box h3 {
        font-size: 1.1em;
    }
}

/* Extra small screens: Stack to 1 column if needed */
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}