@font-face {
  font-family: 'base';
  src: url('./font/f4.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'heading';
  src: url('./font/f2.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body{
  font-family: "base";
  line-height: 1.6;
}

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;    
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}
:root{
	--color:#ED1D21;
	--padding: 1rem;
}

.main-container{
	position: relative;
	height: fit-content;
	width:100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: "base";
	overflow-x: hidden;
  max-width: 2000px;
  margin: 0 auto;
}

img{
	height: 100%;
	width: 100%;
	object-fit: cover;
}



.animate-text span {
    display: inline-block;
    overflow: hidden;
    will-change: transform,opacity;
    line-height: 1.2;
}

.animate-text span span {
    display: inline-block
}



.counter-item {
            display: flex;
            height: 5rem;
            font-size: 5rem;
            line-height: 5rem;
            font-family: "heading";
            color: #333;
            overflow: hidden; 
            background: white;
        }

        .digit-container {
            height: 100%; 
            position: relative;
            display: inline-block; /* Keeps digits side by side */
        }

        .digit-strip {
            display: flex;
            flex-direction: column;
        }

        .digit-strip span {
            height: 80px; /* Must match counter-item height */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .suffix {
            position: relative;
            margin-left: 5px;
        }



.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 5vw;
  padding-bottom: 5vw;
}

.hero-content h1 {
  font-family: "heading";
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  width: 80%;
  max-width: 900px;
  text-align: left;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content .sub-text {
  width: 80%;
  max-width: 500px;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
}

.hero-content .cta-button {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

#hero-section .gradient {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: linear-gradient(45deg,rgba(94, 94, 94, 0.5) 0%, rgba(94, 94, 94, 0) 40%);
  z-index: 99;
  pointer-events: none;
}

.hero-content .cta-button button{
  border:2px solid var(--color);
  border-radius: 100px;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  font-size: 1.1rem;
  font-family: "base";
  background: var(--color);
  color: #fff;
  cursor: pointer;
}

.hero-content .cta-button button:nth-child(2){
  background: transparent;
  color: #fff;
}


.about {
  padding: 6rem 5vw;
  background: #fff;
  overflow: hidden;
}

.about-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Image Column */
.about-image-col {
  width: 45%;
  position: relative;
}

.about-image-col .image-frame {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 20px 20px 0px rgba(237, 29, 33, 0.1); /* offset shadow using brand color */
}

.about-image-col img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s ease;
}

.about-image-col:hover img {
  transform: scale(1.05);
}

.about-image-col .exp-badge {
  position: absolute;
  bottom: 30px;
  right: 0px;
  background: var(--color);
  color: #fff;
  padding: 1.5rem;
  border-radius: 0.3rem;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  box-shadow: 0 10px 30px rgba(237, 29, 33, 0.3);
  text-align: center;
  min-width: 120px;
}

.about-image-col .exp-badge .years {
  display: block;
  font-family: "heading";
  font-size: 2rem;
  line-height: 1;
  font-weight: bold;
}

.about-image-col .exp-badge .text {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Content Column */
.about-content-col {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content-col .eyebrow {
  color: var(--color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-content-col .eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--color);
  display: block;
}

.about-content-col h2 {
  font-family: "heading";
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.2;
  color: #222;
}

.about-content-col .lead {
  font-size: 1.25rem;
  color: #444;
  font-weight: 500;
  border-left: 4px solid var(--color);
  padding-left: 1rem;
}

.about-content-col p {
  color: #666;
  font-size: 1rem;
}

.about-content-col .highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-content-col .highlights li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-content-col .highlights .check-icon {
  background: rgba(237, 29, 33, 0.1);
  color: var(--color);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-content-col .highlights strong {
  display: block;
  color: #333;
  margin-bottom: 2px;
}
.about-content-col .highlights span {
  font-size: 0.9rem;
  color: #666;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  width: fit-content;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.about-cta-btn:hover {
  background: var(--color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  .about-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
  .about-image-col, .about-content-col {
    width: 100%;
  }
  .about-image-col .exp-badge {
    right: 0;
  }
  .about-content-col .highlights {
    grid-template-columns: 1fr;
  }
}


.numbers {
  display: flex; /* Changed from just padding to flex container */
  justify-content: center;
  gap: 2rem;
  background: var(--color); /* Changed bg to brand color */
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.num-card {
  flex: 1;
  min-width: 300px; /* Minimum width for cards */
  max-width: 400px;
  padding: 3rem;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.num-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.num-card .counter-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: #fff;
  font-family: "heading";
  line-height: 1;
}

.num-card .count {
  font-size: 4rem;
  font-weight: bold;
}

.num-card .suffix {
  font-size: 2.5rem;
  margin-left: 0.2rem;
}

.num-card h3 {
  font-size: 1.5rem;
  font-family: "heading";
  color: #fff;
  text-align: center;
  margin-top: 0.5rem;
}

.num-card .details {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Update Media query for numbers */
@media (max-width: 1000px){
  .numbers {
     padding: 2rem;
  }
}


.work{
  padding: 5rem;
  padding-bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-direction: column;
}

.work h2{
  color: var(--color);
  text-align: center;
}

.work h1{
  font-family: "Heading";
  font-size: 3rem;
  text-align: center;
  width: 70%;
}
.work p{
  text-align: center;
  font-size: 1rem;
  width: 70%;
}

.how-we-work {
  padding: 6rem 5vw;
  background: var(--color);
}

.how-we-work-heading {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.how-we-work-heading .tag-line {
  color: #fff;
  font-family: "base";
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.how-we-work-heading .tag-line .line-deco {
  width: 40px;
  height: 2px;
  background: #fff;
}

.how-we-work-title {
  font-family: "heading";
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: #fff;
}

.how-we-work-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; /* Add gap between cards */
  max-width: 1400px;
  margin: 0 auto;
}

.how-we-work-card {
  background: #fff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px; /* Add rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.how-we-work-card:hover {
  transform: translateY(-10px); /* Lift card on hover */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Add shadow on hover */
}

.how-we-work-card:last-child {
  border-right: 1px solid #eee;
}

.how-we-work-card .card-number {
  background: var(--color);
  color: #fff;
  font-family: "heading";
  font-size: 1.5rem;
  font-weight: bold;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px; /* Slightly rounded corners for the number box */
}

.how-we-work-card .card-title {
  font-family: "heading";
  font-size: 1.4rem;
  color: #222;
  margin-top: 0.5rem;
}

.how-we-work-card .card-description {
  color: #666;
}

@media (max-width: 1150px) {
  .how-we-work-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .how-we-work-card {
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 560px) {
  .how-we-work-card {
    border-right: 1px solid #eee;
  }
}

#work-bottom {
  height: 60vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(0deg,rgba(229, 229, 229, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.slider-container {
  margin-top: 1rem;
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
  background: none;
  display: flex;
  align-items: center;
  /* Add fade mask for a smooth infinite look */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.slider-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
}

.brand-logo {
  width: 160px;
  height: 60px;
  margin-right: 2rem;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.4rem;
  background-color: #fff;
  padding: 0.2rem;
}

.brand-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}


.products{
  padding: 5rem;
  background: var(--color);
  color: #fff;
}
.products .products-wrapper{
  display: flex;
  gap: 1rem;
}
.products .products-container{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.products .products-container .products-heading{
  font-family: "heading";
  font-size: 3rem;
}
.products .products-container .products-details{
  font-size: 1.3rem;
}
.products .products-container button{
  border:2px solid #fff;
  width: fit-content;
  margin-top: 1rem;
  border-radius: 100px;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  font-size: 1.1rem;
  font-family: "base";
  background: var(--color);
  color: #fff;
  cursor: pointer;
}
.products .product-list{
  width: 100%;
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

.products .product-list .product{
  display: flex;
  gap: 0.5rem;
}

.products .product-list .product .s-no{
  font-family: "heading";
  font-size: 1.5rem;
}

.products .product-list .product .content .content-heading{
  font-family: "heading";
  font-size: 1.5rem;
}

.products .product-list .product .content .content-detail{
  font-size: 1.2rem;
}




@media (max-width: 1000px){
  .hero-content h1{
    font-size: 2rem;
  }
  .hero-content .sub-text{
    font-size: 1rem;
  }
  .about .about-container .about-text{
    font-size: 1.4rem;
  }
  .numbers .num-1 .counter-item{
    font-size: 4rem;
  }
  .numbers .num-1 h2{
    font-size: 1.7rem;
  }
  .numbers .num-1 .details{
    font-size: 1rem;
  }
  .products .products-container .products-heading{
    font-size: 2.4rem;
  }
  .products .products-container .products-details{
    font-size: 1rem;
  }
  .products .product-list .product .content .content-heading{
    font-size: 1.2rem;
  }
  .products .product-list .product .content .content-detail{
    font-size: 1rem;
  }
}


@media (max-width: 500px){
  .hero-content h1{
    font-size: 1.3rem;
  }
  .hero-content .sub-text{
    font-size: 1rem;
  }
  .about{
    padding: 2rem;
  }
  .about .about-container{
    flex-direction: column;
  }
  .about .about-container .about-text{
    width: 100%;
  }
  .about .about-container .about-details{
    font-size: 1rem;
  }

  .numbers{
    padding: 2rem;
    flex-direction: column;
  }

  .work{
    padding: 2rem;
    padding-bottom: 2rem;
  }
  .work h2{
    font-size: 1.2rem;
  }
  .work h1{
    font-size: 1.5rem;
    width: 100%;
  }
  .work .details{
    width: 100%;
    font-size: 1rem;
  }
  .products{
    padding: 2rem;
  }
  .products h2{
    font-size: 1.2rem;
  }
  .products .products-wrapper{
    flex-direction: column;
  }
  .products .products-wrapper .products-container .products-heading{
    font-size: 1.5rem;
  }
  .features-slider{
    display: none;
  }
}






 .content-showcase-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            height: fit-content; 
            width: 100%;
            padding: 5rem; /* Add some breathing room */
        }

        .showcase-grid{
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap; /* Allow wrapping */
            width: 100%;
            gap: 1.5rem; /* Increased gap slightly */
            max-width: 1400px;
        }        
        .item-card{
            position: relative;
            height: 400px;
            width: 400px;
            background: #e5e5e5;
            border-radius: 0.5rem;
            will-change: width;
            transition: 0.3s cubic-bezier(0.89, 0.01, 0.46, 1);
            padding: 0.5rem;
            flex-shrink: 0;
        }
        
        .item-card .item-visual{
            position: relative;
            height: 300px;
            width: 100%;
            will-change: margin-top;
            transition: 0.3s cubic-bezier(0.89, 0.01, 0.46, 1);
        }
        .item-card .item-info-panel{
            width: 100%;
            height: 40px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            will-change: height;
            transition: 0.3s cubic-bezier(0.89, 0.01, 0.46, 1);
            background: rgba(229, 229, 229, 0.9); /* Slight background for readability over canvas if needed */
        }
        .item-card .item-info-panel .item-text-content{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
        }
        .item-card .item-info-panel .item-text-content h3{
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin: 0;
        }
        .item-card .item-info-panel .item-desc-wrapper{
            width: 90%; /* Use percentage instead of fixed px */
            text-align: justify;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            opacity: 0; /* Hide initially to prevent layout jumps */
            transition: opacity 0.3s ease;
        }
        .canvas-container {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .canvas-container canvas{
          z-index: 999;
        }

        /* Desktop Hover State */
        @media (min-width: 1024px) {
            .item-card:hover{
                width: 500px;
            }
            .item-card:hover .item-visual{
                margin-top: -130px;
            }
            .item-card:hover .item-info-panel{
                height: 210px;
            }
            .item-card:hover .item-desc-wrapper {
                opacity: 1;
            }
        }

        /* Tablet/Mobile Responsive Styles */
        @media (max-width: 1023px) {
            .content-showcase-wrapper {
                height: auto;
                padding: 1rem;
            }
            .showcase-grid {
                flex-direction: column;
                height: auto;
            }
            .item-card {
                width: 90%; /* Responsive width */
                max-width: 400px;
                height: auto; /* Let content dictate height */
                min-height: 450px; /* Minimum height ensures canvas space */
                margin-bottom: 2rem;
            }
            
            /* Disable the "hover expands" effect on touch devices, show content by default or structured differently */
            .item-card .item-visual {
                height: 250px; /* Slightly smaller visual area */
                margin-top: 0;
            }
            
            .item-card .item-info-panel {
                height: auto; /* Always show content */
                min-height: 180px;
                padding-bottom: 1rem;
            }
            
            .item-card .item-desc-wrapper {
                opacity: 1;
                width: 100%;
                padding: 0 1rem;
            }
            
            .item-card .item-info-panel .item-text-content h3 {
                margin-bottom: 0.5rem;
                font-size: 1.2rem;
            }

            .item-card .item-info-panel .item-desc-wrapper{
              text-align: justify;
              opacity: 1;
            }

            .num-card{
              padding: 1rem;
            }
        }


.item-visual .bg-logo{
  position: absolute;
  top:0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 100%;
  display: flex;
}

.item-visual .bg-logo .logo{
  height: fit-content;
  width: 12rem;
  margin-bottom: -5rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  will-change: transform, left, bottom;
  transition: 0.2s;
}


.item-visual .bg-logo .logo.evershine{
  margin-bottom: -1rem;
}

@media (min-width: 1024px) {
  .item-card:hover .item-visual .bg-logo .logo.sparyzet{
    left: 0;
    bottom: 40%;
    transform: translateX(0);
  }

  .item-card:hover .item-visual .bg-logo .logo.evershine{
    left: 100%;
    bottom: 20%;
    transform: translateX(-100%);
  }
}