/************************************
 * STATS
 ************************************/
.stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat-box h3 {
    font-size: 42px;
    font-weight: 700;
}


/************************************
 * PORTFOLIO GRID
 ************************************/
.portfolio-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}


/************************************
 * PORTFOLIO ITEM
 ************************************/
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}


/************************************
 * IMAGE
 ************************************/
.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}


/************************************
 * OVERLAY
 ************************************/
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;

    /* IMPORTANT: allow click to pass to item */
    pointer-events: none;
}


/************************************
 * OVERLAY TEXT
 ************************************/
.portfolio-overlay span {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}


/************************************
 * HOVER EFFECTS
 ************************************/
.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

/************************************
 * TEXT SCROLL ANIMATION – FINAL FIX
 * AcousticHub-style
 ************************************/

/* ---------------------------------
   INITIAL STATE (ALL TEXT)
--------------------------------- */
main h1, main h2, main h3, main p {
    opacity: 0;
    transform: translateY(50px);
    will-change: opacity, transform;
}

/* ---------------------------------
   HEADING ANIMATION
--------------------------------- */
main h1.animate,
main h2.animate,
main h3.animate {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------
   PARAGRAPH ANIMATION (FIXED)
--------------------------------- */
main p.animate {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

/* ---------------------------------
   SPAN ANIMATION INSIDE HEADINGS
--------------------------------- */
/* Span reveals AFTER heading */
main h1.animate,
main h2.animate,
main h3.animate,
main p.animate {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s ease-out 0.25s,
        transform 0.6s ease-out 0.25s;
}

/* ---------------------------------
   OPTIONAL: REDUCE MOTION SUPPORT
--------------------------------- */
@media (prefers-reduced-motion: reduce) {
    main h1,
    main h2,
    main h3,
    main p {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
    /* Default state */
/* .rotate-img {
    transform: rotate(0deg) !important;
    transition: transform 0.8s ease-in-out;
} */

/* When page-scroll class is added */
/* .page-scroll .rotate-img {
    transform: rotate(360deg);
} */
/* @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-scroll .rotate-img {
    animation: spin 1s linear;
} */

.rotate-img {
    transform: rotate(0deg);
}

.page-scroll .rotate-img {
    animation: spin 1s linear forwards;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===============================
   INITIAL HIDDEN STATE
   (h1 h2 h3 p span ul)
================================ */
main h1,
main h2,
main h3,
main p,
main ul {
    opacity: 0;
    transform: translateY(40px);
}

/* ===============================
   ACTIVE STATE
================================ */
main h1.animate,
main h2.animate,
main h3.animate,
main ul.animate {
    animation: fadeInUp 0.9s ease-out forwards;
    animation-delay: 0.25s;
}

main p.animate {
    animation: fadeInUp 0.9s ease-out forwards;
    animation-delay: 0.25s;
}


/* ===============================
   KEYFRAMES
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.test-card {
    display: none;
}

.test-card.active {
    display: block;
}

/* dots */
.test-dots span {
    width: 10px;
    height: 10px;
    background: #ccc;
    display: inline-block;
    margin: 0 4px;
    border-radius: 50%;
    cursor: pointer;
}

.test-dots .active-dot {
    background: #000;
}

/* arrows */
.test-nav span {
    cursor: pointer;
    font-size: 28px;
    user-select: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}




.portfolio .tab-content a{
    display:none;
}
.next-img.disabled,
.prev-img.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}
    .cv-btn {
    padding: 12px 29px;
    border-radius: 3px;
    font-size: 20px;
    background-color: #ff4136;
    color: #fff;
    display: inline-block;
}
.marquee-main {
	width: 100%;
	overflow: hidden;
	background: #ffffff;
	padding: 40px 0 40px 0;
}
 
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}
 
.marquee-track img {
	height: 35px;
	margin: 0 10px;
	object-fit: contain;
	flex-shrink: 0;
	filter: grayscale(100%);
	opacity: 1;
	transition: all 0.3s ease;
}
 
.marquee-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
 
.marquee-main:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-main .marquee-track {
	gap: 40px;
	width: 100%;
}
.marquee-main h2 {
	text-align: center;
	font-weight: 600;
	line-height: 45px !important;
	color: #191919;
	font-family: "Oxanium", sans-serif !important;
}
.marquee-main h2 span {
	color: #ff3b3b;
}
.main-banner-buttons .cv-btn:hover, .portfolio .cv-btn:hover {
	background: #000;
	color: #fff;
}
.marquee-main p {
	width: 100%;
	text-align: center;
	font-size: 14px;
	font-weight: 400;
	line-height: 26px;
	color: #000000;
	margin: 0 0 10px 0;
}
 
 .pop-ineer #website-link {
	position: absolute;
	left: 20px;
	bottom: 20px;
	padding: 20px 40px;
}
.hero.home_heroFirst .hero-wrapper .hero-left .main-banner-buttons {
	display: flex;
	gap: 14px;
}

.test-wrapper .new-test-slider.owl-carousel .new-test-card .rating-div {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 15px 0 10px 0;
}
.test-wrapper .new-test-slider.owl-carousel .new-test-card .rating-div .Rating {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	animation: inherit;
	transform: inherit;
	transition: inherit;
}
.test-wrapper .new-test-slider.owl-carousel .new-test-card a img {
    width: 100% !important;
	margin: 0 auto;
}
.test-wrapper .new-test-slider.owl-carousel .new-test-card .review-heading {
	width: 100%;
	text-align: left;
	margin-bottom: 5px;
}
.test-wrapper .new-test-slider.owl-carousel .new-test-card .review-heading {
	width: 100%;
	margin-bottom: 5px;
	text-align: left;
	font-size: 18px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
 
@media (max-width: 768px) {
  .marquee-track img {
    height: 30px;
    margin: 0 20px;
  }
  .test-wrapper .new-test-slider.owl-carousel .new-test-card a img {
	width: 100% !important;
	margin: 0 auto;
}
}

p.text-testimonial {
    width: 80%;
    margin: 0 auto;
    padding: 0 0 20px 0;
}

 