/* ========================== Home page Hero section ================================== */
/* =========================================
HERO SECTION
========================================= */

.hero{
min-height:80vh;
display:flex;
align-items:center;
overflow:hidden;
padding:80px 0;
}


/* =========================================
CONTAINER
========================================= */

.hero-container{
width:1200px;
margin:0 auto;
display:flex;
flex-direction:column;
gap:80px;
position:relative;
}


/* =========================================
ROW
========================================= */

.hero-row{
display:flex;
align-items:center;
justify-content:space-between;
}


/* =========================================
LEFT CONTENT
========================================= */

.hero-left{
width:45%;
}


/* =========================================
TITLE
========================================= */

.hero-title{
font-size:56px;
line-height:1.15;
font-weight:300;
color:#3f3f3f;
overflow:hidden;
}


/* TITLE LINE ANIMATION */

.hero-title .line{
display:block;
opacity:0;
transform:translateY(80px);
animation:lineReveal 0.8s ease forwards;
}

.hero-title .line:nth-child(1){
animation-delay:0.2s;
}

.hero-title .line:nth-child(2){
animation-delay:0.4s;
}

.hero-title .line:nth-child(3){
animation-delay:0.6s;
}

.hero-title .line:nth-child(4){
animation-delay:0.8s;
}


/* HIGHLIGHT TEXT */

.highlight{
color:#0C63CE;
font-weight:600;
letter-spacing:1px;
}


/* =========================================
ABOUT CONTENT
========================================= */

.about-content{
max-width:600px;
}

.about-title{
font-size:32px;
font-weight:600;
color:#0e2a47;
margin-bottom:10px;
line-height:1.3;
}

.about-underline{
width:120px;
height:4px;
background:#0C63CE;
margin:15px 0 30px 0;
border-radius:2px;
}

.about-content p{
font-size:16px;
line-height:1.8;
color:#5b6775;
margin-bottom:22px;
}


/* =========================================
SCROLL / SEQUENCE ANIMATION
========================================= */

.scroll-animate .animate-item{
opacity:0;
transform:translateY(60px);
transition:all 0.8s ease;
}

.scroll-animate.active .animate-item{
opacity:1;
transform:translateY(0);
}

.scroll-animate.active .animate-item:nth-child(1){
transition-delay:0.2s;
}

.scroll-animate.active .animate-item:nth-child(2){
transition-delay:0.4s;
}

.scroll-animate.active .animate-item:nth-child(3){
transition-delay:0.6s;
}

.scroll-animate.active .animate-item:nth-child(4){
transition-delay:0.8s;
}

.scroll-animate.active .animate-item:nth-child(5){
transition-delay:1s;
}


/* =========================================
IMAGE SIDE
========================================= */

.hero-right{
width:55%;
display:flex;
align-items:flex-start;
perspective:1500px;
position:relative;
top:-40px;
justify-content:flex-end;
}


.hero-row.reverse .hero-right{
justify-content:flex-start;
margin-left:-60px;
}

.hero-row.reverse .hero-left{
padding-left:60px;
}


/* =========================================
CAROUSEL
========================================= */

.carousel{
position:relative;
width:520px;
height:380px;
transform-style:preserve-3d;
transform:rotateZ(-25deg);
animation:spin 50s linear infinite;
}

.carousel span{
position:absolute;
top:50%;
left:50%;
width:280px;
height:170px;
margin:-85px -140px;

transform:
rotateY(calc(var(--i) * 45deg))
translateZ(360px);
}

.carousel img{
width:100%;
height:100%;
object-fit:cover;
border-radius:18px;
box-shadow:0 30px 50px rgba(0,0,0,0.25);
}


/* =========================================
CAROUSEL ROTATION
========================================= */

@keyframes spin{

0%{
transform:rotateZ(-25deg) rotateY(0deg);
}

100%{
transform:rotateZ(-25deg) rotateY(360deg);
}

}


/* =========================================
TEXT REVEAL ANIMATION
========================================= */

@keyframes lineReveal{

0%{
opacity:0;
transform:translateY(60px);
}

100%{
opacity:1;
transform:translateY(0);
}

}


/* =========================================
LARGE TABLET
========================================= */

@media(max-width:1200px){

.hero-container{
width:95%;
}

.hero-title{
font-size:48px;
}

.carousel{
transform:rotateZ(-25deg) scale(0.9);
}

}


/* =========================================
TABLET
========================================= */

@media(max-width:992px){

.hero{
align-items:flex-start;
padding-top:30px;
}

.hero-row{
flex-direction:column;
text-align:center;
}

.hero-row .hero-left{
order:1;
}

.hero-row .hero-right{
order:2;
}

.hero-row.reverse .hero-left{
order:1;
padding-left:0;
}

.hero-row.reverse .hero-right{
order:2;
margin-left:0;
}

.hero-left,
.hero-right{
width:100%;
}

.hero-left{
margin-bottom:0px;
}

.hero-right{
justify-content:center;
top:0;
}

.about-content{
margin:0 auto;
}

.about-underline{
margin-left:auto;
margin-right:auto;
}

.carousel{
transform:rotateZ(-25deg) scale(0.8);
}

}


/* =========================================
MOBILE
========================================= */

@media(max-width:600px){

.hero{
padding-top:0;
}

.hero-title{
font-size:36px;
}

.about-title{
font-size:26px;
}

.about-content p{
font-size:15px;
}

.carousel{
transform:rotateZ(-25deg) scale(0.65);
}
}



/* ========================== Home Page Project Logos Section ================================== */
/* SECTION */

.partners-section{
padding:30px 0;
background:#ffffff;
text-align:center;
overflow:hidden;
font-family:"Inter",sans-serif;
}



/* CONTENT */

.partners-content{
max-width:850px;
margin:30px auto;
padding:0 20px;
}

.partners-content h2{
font-size:35px;
color:#0c63cd;
line-height:1.2;
margin-bottom:18px;
font-weight:500;
}

.partners-content p{
font-size:18px;
color:#666;
}



/* MARQUEE */

.logo-marquee{
width:100%;
overflow:hidden;
position:relative;
}

.logo-slide{
display:flex;
width:max-content;
animation:scroll 60s linear infinite;
}

.logo-marquee.reverse .logo-slide{
animation-direction:reverse;
}



/* LOGO ROW */

.logo-track{
display:flex;
align-items:center;
gap:70px;
padding:20px 40px;
}



/* LOGOS */

.logo-track img{
height:50px;
opacity:50;
filter:grayscale(100%);
transition:.1.5s;
}

.logo-track img:hover{
opacity:1;
filter:none;
}



/* ANIMATION */

@keyframes scroll{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}



/* TABLET */

@media(max-width:1024px){

.partners-content h2{
font-size:30px;
}

.logo-track{
gap:55px;
}

.logo-track img{
height:50px;
}

}



/* MOBILE */

@media(max-width:768px){

.partners-section{
padding:30px 0;
}

.partners-content{
margin:40px auto;
}

.partners-content h2{
font-size:25px;
}

.partners-content p{
font-size:16px;
}

.logo-track{
gap:40px;
}

.logo-track img{
height: 50px;
}

}



/* SMALL MOBILE */

@media(max-width:480px){

.partners-content h2{
font-size:20px;
}

.logo-track{
gap:30px;
}

.logo-track img{
height:50;
}

}



/* ========================== Home Page Why Choose Us Section ================================== */
/* =====================================================
   ADM Locations — style.css  (section code only)
   ===================================================== */

/* =========================================
   WHY CHOOSE US - V2 PREMIUM BENTO
   ========================================= */

.grupwcu-v2-section {
  padding: 30px 24px;
  background-color: #ffffff;
  overflow: hidden;
}

.grupwcu-v2-container {
  max-width: 1400px;
  margin: 0 auto;
}

.grupwcu-v2-header {
  text-align: center;
  margin-bottom: 20px;
}

.grupwcu-v2-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0c63cd;
  letter-spacing: 5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
}

.grupwcu-v2-main-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #0e2a47;
  font-weight: 700;
  line-height: 1.2;
}

.grupwcu-v2-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 15px;
}

.grupwcu-v2-card {
  position: relative;
  background: #0e2a47;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bento Sizing */
.card-tall { grid-row: span 2; }
.card-wide { grid-column: span 2; }
.card-featured { 
  background: #0e2a47;
}

.grupwcu-v2-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.grupwcu-v2-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%);
  transition: all 0.8s ease;
}

.grupwcu-v2-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 42, 71, 0.9), transparent 80%);
  z-index: 2;
  transition: opacity 0.6s ease;
}

.grupwcu-v2-card-content {
  position: relative;
  z-index: 3;
  transition: transform 0.6s ease;
}

.grupwcu-v2-number {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: -80px;
  left: -20px;
  line-height: 1;
  transition: all 0.6s ease;
}

.grupwcu-v2-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.4s ease;
}

.grupwcu-v2-card-desc {
  font-size: 15px;
  color: #5b6775;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Hover & Auto-Active Effects */
.grupwcu-v2-card:hover,
.grupwcu-v2-card.active-auto {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(14, 42, 71, 0.15);
}

.grupwcu-v2-card:hover .grupwcu-v2-card-bg,
.grupwcu-v2-card.active-auto .grupwcu-v2-card-bg {
  transform: scale(1.1);
}

.grupwcu-v2-card:hover .grupwcu-v2-card-bg img,
.grupwcu-v2-card.active-auto .grupwcu-v2-card-bg img {
  opacity: 0.8;
  filter: grayscale(0%);
}

.grupwcu-v2-card:hover .grupwcu-v2-card-title,
.grupwcu-v2-card.active-auto .grupwcu-v2-card-title {
  color: #ffffff;
}

.grupwcu-v2-card:hover .grupwcu-v2-number,
.grupwcu-v2-card.active-auto .grupwcu-v2-number {
  color: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
}

.grupwcu-v2-card:hover .grupwcu-v2-card-desc,
.grupwcu-v2-card.active-auto .grupwcu-v2-card-desc {
  max-height: 200px;
  opacity: 1;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

/** All cards now follow this theme **/

/* Responsive */
@media (max-width: 1200px) {
  .grupwcu-v2-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .card-tall, .card-wide { grid-column: span 1; grid-row: span 1; }
  .card-featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .grupwcu-v2-section { padding: 60px 20px; }
  .grupwcu-v2-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card-featured { grid-column: span 1; }
  .grupwcu-v2-card { padding: 24px; height: auto; min-height: 250px; }
  .grupwcu-v2-card-desc { 
    opacity: 1 !important; 
    max-height: 500px !important; 
    color: rgba(255,255,255,0.8) !important; 
    margin-top: 10px;
  }
  .grupwcu-v2-card-title { color: #fff !important; }
  .grupwcu-v2-card-bg img { opacity: 0.4 !important; filter: none !important; }
  .grupwcu-v2-card-overlay { opacity: 1 !important; }
}




/* ========================== Home Page Project Section ================================== */
.gruprojecth-main-container {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  height: auto; /* DYNAMIC TO PREVENT CUTTING */
  min-height: 85vh; 
  padding: 60px 80px 80px; /* INCREASED BOTTOM PADDING */
  gap: 20px;
  background: #000;
  overflow: visible; /* ALLOWS 3D SHADOWS TO FLOW FREELY */
  position: relative;
  z-index: 1;
}

/* SECTION HEADER */
.gruprojecth-header-text {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 15px; /* SMALLER MARGIN */
  position: relative;
  z-index: 10;
}

.gruprojecth-label {
  display: block;
  font-family: 'Inter', sans-serif;
  color: #fff;
  opacity: 0.6;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 5px;
  margin-bottom: 12px;
}

.gruprojecth-main-title {
  font-family: 'Inter', sans-serif;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  margin: 0;
}

/* ATMOSPHERIC DYNAMIC BG */
.gruprojecth-bg-blur-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; /* MOVED BEHIND */
  pointer-events: none;
  overflow: hidden;
}

.gruprojecth-bg-blur {
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
  filter: blur(10px); /* SLIGHTLY REDUCED BLUR FOR VIBRANCY */
  opacity: 0;
  transition: opacity 1.5s ease;
}

.gruprojecth-bg-blur.active {
  opacity: 0.5; /* INCREASED OPACITY */
}

/* Z-INDEX MANAGEMENT */
.gruprojecth-content-area,
.gruprojecth-slider,
.gruprojecth-thumbs {
  position: relative;
  z-index: 10;
}

/* LEFT */
.gruprojecth-content-area {
  position: relative;
  height: 250px; /* COMPACT HEIGHT */
  display: flex;
  align-items: center;
}

.gruprojecth-info-set {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.gruprojecth-info-set.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gruprojecth-logo-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.gruprojecth-logo-wrap img {
  height: 95px; /* REFINED SLIGHTLY SMALLER */
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* PURE WHITE BRANDS */
}

/* TEXT BLOCKS (REPLACED BY LARGE LOGOS) */
.gruprojecth-desc {
  color: #fff;
  opacity: 0.8;
  line-height: 1.6;
  font-size: 15px;
  max-width: 320px;
  margin-bottom: 30px;
}

.gruprojecth-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid #fff;
  padding-bottom: 4px;
  display: inline-block;
}

/* CENTER */
.gruprojecth-slider {
  position: relative;
  width: 100%;
  height: 520px; /* INCREASED HEIGHT */
  max-width: 950px; 
  margin: 0 auto;
  /* UPDATED ANGLE TO MATCH REFERENCE IMAGE */
  transform: perspective(1400px) rotateY(-12deg) rotateX(5deg) rotateZ(-2deg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 130px rgba(0,0,0,0.9);
}

.gruprojecth-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.gruprojecth-slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}

/* RIGHT */
.gruprojecth-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end; /* ALIGNED TO RIGHT EDGE */
  width: 100%;
  justify-content: center;
}

.gruprojecth-thumb {
  width: 85px; /* SMALLER SIZE */
  height: 60px;
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gruprojecth-thumb.active {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 4px;
  transform: scale(1.05);
}

.gruprojecth-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* =====================================================
   RESPONSIVE DESIGN - ALL DEVICES
   ===================================================== */

/* Tablet & Smaller Desktop (max-width: 1100px) */
@media (max-width: 1100px) {
  .gruprojecth-main-container {
    padding: 0 40px;
    gap: 30px;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .gruprojecth-main-container {
    grid-template-columns: 1fr;
    height: auto;
    padding: 80px 40px;
    gap: 50px;
    overflow-x: hidden;
  }

  .gruprojecth-content-area {
    height: auto;
    text-align: center;
    order: 1;
  }

  .gruprojecth-logo-wrap {
    justify-content: center;
  }

  .gruprojecth-desc {
    margin: 0 auto 30px;
    max-width: 450px;
  }

  .gruprojecth-info-set {
    position: relative;
    top: auto; 
    left: auto;
    width: 100%;
    transform: none;
    display: none;
  }

  .gruprojecth-info-set.active {
    display: block;
    transform: none;
  }

  .gruprojecth-slider {
    width: 95%;
    margin: 0 auto;
    height: 480px;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    order: 2;
  }

  .gruprojecth-thumbs {
    flex-direction: row;
    justify-content: center;
    gap: 8px; /* SMALLER GAP TO FIT */
    flex-wrap: nowrap; 
    overflow: hidden; /* NO SCROLLING */
    width: 100%;
    order: 3;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .gruprojecth-main-container {
    padding: 60px 10px; /* TIGHTER PADDING TO FIT 6 ITEMS */
    gap: 30px;
  }

  .gruprojecth-slider {
    height: 320px;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  }

  .gruprojecth-thumb {
    flex: 1; /* EQUAL WIDTH */
    max-width: 55px; /* SMALLER TO FIT ALL 6 IN ONE LINE */
    height: 40px;
    border-radius: 2px;
  }
  
  .gruprojecth-main-title {
    font-size: 26px; /* MATCHED TO SITEWIDE H2 SIZE */
    white-space: nowrap;
  }

  .gruprojecth-label {
    font-size: 11px;
    letter-spacing: 3px;
  }
  
  .gruprojecth-desc {
    font-size: 13px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .gruprojecth-main-title {
    font-size: 22px; /* MATCHED TO SITEWIDE SMALL H2 SIZE */
  }

  .gruprojecth-slider {
    height: 260px;
  }
  
  .gruprojecth-thumb {
    max-width: 45px;
    height: 32px;
  }
}

/* ========================== Home Page What We Do Section ================================== */
.qwer-container {
  background-color: #ffffff;
  height: 150vh; /* Adjusted to balance scroll duration */
  position: relative;
  font-family: sans-serif;
}

/* Background Image with Opacity */
.qwer-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Replace with your preferred background image URL */
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Gives it a premium parallax scroll effect */
  
  /* ADJUST OPACITY HERE (0.0 to 1.0) */
  opacity: 0.08; 
  
  z-index: 0;
  pointer-events: none;
}

.qwer-sticky-wrapper {
  position: sticky;
  top: 120px; /* Aligned with body padding-top */
  height: 85vh; /* Increased from 65vh to fully show the bottom content */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2; /* Ensures content stays above background */
}

/* --- Added QWER HEADER --- */
.qwer-header {
  position: absolute;
  top: 8%; /* Moved down slightly to provide gap from exact top */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 100%;
  padding: 0 20px;
  opacity: 1;
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Header remains visible now */

.qwer-label {
  color: #0c63cd;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 5px;
  margin-bottom: 12px;
}

.qwer-main-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #0e2a47;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.qwer-card {
  position: absolute;
  width: 280px; /* Reduced from 300px */
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The Images */
.qwer-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.qwer-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hidden Content Initially */
.qwer-content {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.3s;
}

.qwer-content h2 {
  color: #0c63cd; /* BRAND BLUE */
  font-size: 19px; /* REDUCED TO FIT ON ONE LINE */
  white-space: nowrap;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* STACKED STATE (Initial) */
#qwer-card-1 { transform: translate(-40%, calc(10% + 50px)) rotate(-5deg); z-index: 3; }
#qwer-card-2 { transform: translate(0, 50px); z-index: 1; }
#qwer-card-3 { transform: translate(40%, calc(10% + 50px)) rotate(5deg); z-index: 2; }

/* SEPARATED STATE (On Scroll) */
.active #qwer-card-1 { transform: translate(-120%, 50px) rotate(0); }
.active #qwer-card-2 { transform: translate(0, 50px); }
.active #qwer-card-3 { transform: translate(120%, 50px) rotate(0); }

.active .qwer-content {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive: Laptop / Tablet Landscape */
@media (max-width: 1100px) {
  .qwer-card { width: 250px; }
  .active #qwer-card-1 { transform: translate(-105%, 50px) rotate(0); }
  .active #qwer-card-2 { transform: translate(0, 50px); }
  .active #qwer-card-3 { transform: translate(105%, 50px) rotate(0); }
}

/* Responsive: Tablet Portrait / Mobile */
@media (max-width: 800px) {
  .qwer-container { height: 280vh; } /* Taller scroll space for multiple steps */
  .qwer-card { width: 280px; } /* Clean, readable width on mobile */

  /* Override basic desktop active state which shouldn't run on mobile natively */
  .active #qwer-card-1 { transform: none; }
  .active #qwer-card-2 { transform: none; }
  .active #qwer-card-3 { transform: none; }

  /* -------------------------------------------
     MOBILE STEP 0 : Initial Stacked State 
  ------------------------------------------- */
  .mobile-state-0 #qwer-card-1 { transform: translate(-20px, 40px) rotate(-5deg); z-index: 3; }
  .mobile-state-0 #qwer-card-2 { transform: translate(0, 40px) rotate(0); z-index: 2; }
  .mobile-state-0 #qwer-card-3 { transform: translate(20px, 40px) rotate(5deg); z-index: 1; }
  
  .mobile-state-0 .qwer-content { opacity: 0; transform: translateY(20px); }

  /* -------------------------------------------
     MOBILE STEP 1 : 1st Card Centered
  ------------------------------------------- */
  .mobile-state-1 #qwer-card-1 { transform: translate(0, 40px) rotate(0); z-index: 3; }
  .mobile-state-1 #qwer-card-1 .qwer-content { opacity: 1; transform: translateY(0); }
  
  .mobile-state-1 #qwer-card-2 { transform: translate(130%, 40px) rotate(5deg); z-index: 2; opacity: 0; pointer-events: none; }
  .mobile-state-1 #qwer-card-3 { transform: translate(160%, 40px) rotate(10deg); z-index: 1; opacity: 0; pointer-events: none; }

  /* -------------------------------------------
     MOBILE STEP 2 : 2nd Card Centered
  ------------------------------------------- */
  .mobile-state-2 #qwer-card-1 { transform: translate(-130%, 40px) rotate(-5deg); z-index: 1; opacity: 0; pointer-events: none; }
  
  .mobile-state-2 #qwer-card-2 { transform: translate(0, 40px) rotate(0); z-index: 3; opacity: 1; }
  .mobile-state-2 #qwer-card-2 .qwer-content { opacity: 1; transform: translateY(0); }
  
  .mobile-state-2 #qwer-card-3 { transform: translate(130%, 40px) rotate(5deg); z-index: 2; opacity: 0; pointer-events: none; }

  /* -------------------------------------------
     MOBILE STEP 3 : 3rd Card Centered
  ------------------------------------------- */
  .mobile-state-3 #qwer-card-1 { transform: translate(-160%, 40px) rotate(-10deg); z-index: 1; opacity: 0; pointer-events: none; }
  .mobile-state-3 #qwer-card-2 { transform: translate(-130%, 40px) rotate(-5deg); z-index: 2; opacity: 0; pointer-events: none; }
  
  .mobile-state-3 #qwer-card-3 { transform: translate(0, 40px) rotate(0); z-index: 3; opacity: 1; }
  .mobile-state-3 #qwer-card-3 .qwer-content { opacity: 1; transform: translateY(0); }
}



/* ========================== Home Page Count Section ================================== */
.hcountn-section {
    background: radial-gradient(circle, #0a3d91 0%, #031435 100%);
    padding: 50px 0 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

/* Same styles and fonts as Qwer What We Do Section */
.hcountn-header {
    text-align: center;
    z-index: 20;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 0px;
}

.hcountn-label {
    color: #ffffff; /* Fits the blue background */
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 12px;
}

.hcountn-title {
    font-size: clamp(28px, 4vw, 42px);
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.hcountn-wrapper {
    position: relative;
    width: 800px;
    height: 500px;
    margin: -60px 0; /* Trim the invisible 60px SVG void block off the top and bottom */
    flex-shrink: 0;
    min-width: 800px;
}

.hcountn-center-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 170px; height: 170px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.2) inset; /* Outer border glow */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

@keyframes hcountnOrbitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hcountn-half-line {
    position: absolute;
    width: 210px; height: 210px;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: hcountnOrbitRotate 15s linear infinite;
    animation-play-state: paused; /* Paused by default to save energy until scrolled into view */
}
.hcountn-section.is-visible .hcountn-half-line {
    animation-play-state: running; /* Starts spinning smoothly when scrolled into view */
}
.hcountn-half-line.hcountn-top { border-top: 2px solid white; top: -20px; }
.hcountn-half-line.hcountn-bottom { border-bottom: 2px solid white; bottom: -20px; }

.hcountn-orbit-dot {
    position: absolute;
    width: 8px; height: 8px; /* Matched to SVG dot diameter */
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px white;
    transform: translate(-50%, -50%); /* Centers the dot exactly on coordinate */
}
/* CSS border-top and border-bottom on a circle naturally terminate exactly at 45 degrees.
   Radius = 105. At 45 deg, coordinates are ~31px and ~179px */
.hcountn-top .hcountn-dot-left { top: 31px; left: 31px; }
.hcountn-top .hcountn-dot-right { top: 31px; left: 179px; }
.hcountn-bottom .hcountn-dot-left { top: 179px; left: 31px; }
.hcountn-bottom .hcountn-dot-right { top: 178px; left: 178px; }

.hcountn-flip-box { width: 85px; height: 85px; perspective: 1000px; }
.hcountn-flip-inner {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation: hcountnRotateLogo 6s infinite ease-in-out;
}
@keyframes hcountnRotateLogo {
    0%, 20% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    80%, 100% { transform: rotateY(360deg); }
}
.hcountn-flip-front, .hcountn-flip-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; }
.hcountn-flip-back { transform: rotateY(180deg); }
.hcountn-flip-front img, .hcountn-flip-back img { width: 100%; }

.hcountn-lines-svg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none;
}

@keyframes hcountnContinuousDraw {
    0% { stroke-dashoffset: var(--hcountn-path-length); opacity: 0; }
    5% { opacity: 1; stroke-dashoffset: var(--hcountn-path-length); }
    35% { stroke-dashoffset: 0; opacity: 1; }
    60% { stroke-dashoffset: 0; opacity: 1; }
    65% { opacity: 0; stroke-dashoffset: 0; }
    100% { stroke-dashoffset: var(--hcountn-path-length); opacity: 0; }
}

.hcountn-draw-line { 
    stroke: rgba(255, 255, 255, 0.9); 
    stroke-width: 2; 
    fill: none; 
    stroke-linecap: round; 
    stroke-dasharray: var(--hcountn-path-length);
    stroke-dashoffset: var(--hcountn-path-length);
    opacity: 0;
}

.hcountn-section.is-visible .hcountn-draw-line {
    animation: hcountnContinuousDraw 3s ease-in-out infinite;
}
@keyframes hcountnDotPulseStart {
    0% { opacity: 0; transform: scale(0); }
    5% { opacity: 0; transform: scale(0); }
    15% { opacity: 1; transform: scale(1); }
    60% { opacity: 1; transform: scale(1); }
    65% { opacity: 0; transform: scale(0); }
    100% { opacity: 0; transform: scale(0); }
}

@keyframes hcountnDotPulseEnd {
    0% { opacity: 0; transform: scale(0); }
    30% { opacity: 0; transform: scale(0); }
    40% { opacity: 1; transform: scale(1); }
    60% { opacity: 1; transform: scale(1); }
    65% { opacity: 0; transform: scale(0); }
    100% { opacity: 0; transform: scale(0); }
}

.hcountn-dot { 
    fill: white; 
    filter: drop-shadow(0 0 3px white);
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
}

/* Inner starting dots (appear as line starts drawing) */
.hcountn-section.is-visible .hcountn-dot[cx="275"],
.hcountn-section.is-visible .hcountn-dot[cx="525"] {
    animation: hcountnDotPulseStart 3s ease-in-out infinite;
}

/* Outer ending dots (appear exactly when line finishes drawing at 35%) */
.hcountn-section.is-visible .hcountn-dot[cx="100"],
.hcountn-section.is-visible .hcountn-dot[cx="700"] {
    animation: hcountnDotPulseEnd 3s ease-in-out infinite;
}

.hcountn-node { position: absolute; width: 220px; text-align: center; }
.hcountn-main-number { font-size: 36px; font-weight: 900; color: #ffffff; margin-bottom: 2px; }
.hcountn-node p { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }

/* Coordinates adjusted for the new L-shapes */
.hcountn-tl { top: 75px; left: -10px; }
.hcountn-bl { bottom: 75px; left: -10px; }
.hcountn-tr { top: 75px; right: -10px; }
.hcountn-br { bottom: 75px; right: -10px; }

/* Scale down the infographic desktop view proportionally for all smaller screens */
@media (max-width: 850px) {
    .hcountn-wrapper { -webkit-transform: scale(0.85); transform: scale(0.85); -webkit-transform-origin: center; transform-origin: center; margin: -90px 0; }
}
@media (max-width: 768px) {
    .hcountn-wrapper { -webkit-transform: scale(0.75); transform: scale(0.75); margin: -110px 0; }
}
@media (max-width: 650px) {
    .hcountn-wrapper { -webkit-transform: scale(0.65); transform: scale(0.65); margin: -125px 0; }
}
@media (max-width: 550px) {
    .hcountn-wrapper { -webkit-transform: scale(0.55); transform: scale(0.55); margin: -145px 0; }
}
@media (max-width: 480px) {
    .hcountn-wrapper { -webkit-transform: scale(0.46); transform: scale(0.46); margin: -165px 0; }
    .hcountn-section { padding: 40px 0 20px 0; }
}
@media (max-width: 400px) {
    .hcountn-wrapper { -webkit-transform: scale(0.38); transform: scale(0.38); margin: -180px 0; }
    .hcountn-section { padding: 30px 0 10px 0; }
}
@media (max-width: 350px) {
    .hcountn-wrapper { -webkit-transform: scale(0.33); transform: scale(0.33); margin: -190px 0; }
}

/* ========================== Home Page Testimonial Section ================================== */
/* ============================= */
/* TESTIMONIAL SECTION */
/* ============================= */

.gtest-testimonial-section{
padding:30px 20px;
display:flex;
justify-content:center;
align-items:center;
font-family:'Segoe UI',Roboto,Arial,sans-serif;
text-align:center;
position:relative;
overflow:hidden;
background-color: #fcfcfc;
background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 2px, transparent 2px, transparent 12px);
background-size: 100% 100%;
}


/* ============================= */
/* TESTIMONIAL BOX */
/* ============================= */

.gtest-testimonial-box{
max-width:950px;
width:100%;
margin:auto;
position:relative;
}


/* ============================= */
/* HEADER */
/* ============================= */

.gtest-testimonial-header h2{
font-size:34px;
font-weight:700;
margin-bottom:12px;
color:#1a1a1a;
}

.gtest-testimonial-header p{
color:#777;
margin-bottom:30px;
font-size:16px;
max-width:450px;
margin-left:auto;
margin-right:auto;
}


/* ============================= */
/* AVATAR PREVIEW */
/* ============================= */

.gtest-avatar-area{
position:absolute;
top:55%;
left:0;
right:0;
transform:translateY(-50%);
display:flex;
justify-content:space-between;
padding:0 40px;
pointer-events:none;
}

.gtest-avatar{
width:60px;
height:60px;
border-radius:50%;
object-fit:cover;
opacity:0.25;
filter:grayscale(100%);
}


/* ============================= */
/* SLIDER */
/* ============================= */

.gtest-testimonial-slider{
display:flex;
align-items:center;
justify-content:center;
position:relative;
}

.gtest-testimonial-container{
max-width:950px;
width:100%;
}

.gtest-testimonial{
display:none;
animation:gtestFade .5s ease;
}

.gtest-testimonial.active{
display:block;
}

@keyframes gtestFade{
from{opacity:0;transform:scale(.95)}
to{opacity:1;transform:scale(1)}
}


/* ============================= */
/* CLIENT IMAGE */
/* ============================= */

.gtest-client-img{
width:150px;
height:150px;
border-radius:50%;
object-fit:cover;
margin-bottom:20px;
border:4px solid #fff;
box-shadow:0 8px 20px rgba(0,0,0,0.1);
}


/* ============================= */
/* TEXT */
/* ============================= */

.gtest-testimonial h3{
font-size:26px;
margin-bottom:8px;
color:#333;
}

.gtest-testimonial span{
display:block;
color:#0c63cd;
font-weight:600;
margin-bottom:15px;
text-transform:uppercase;
font-size:13px;
letter-spacing:1px;
}

.gtest-stars{
color:#0c63cd;
margin-bottom:20px;
font-size:18px;
}

.gtest-testimonial p{
line-height:1.8;
color:#555;
font-size:17px;
}


/* ============================= */
/* NAV BUTTONS */
/* ============================= */

.gtest-nav-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
width:55px;
height:55px;
border-radius:50%;
border:none;
background:#0c63cd;
color:#fff;
font-size:22px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:.3s;
box-shadow:0 10px 25px rgba(12,99,205,.25);
}

.gtest-btn-left{
left:-20px;
}

.gtest-btn-right{
right:-20px;
}

.gtest-nav-btn:hover{
background:#094ea3;
transform:translateY(-50%) scale(1.08);
}


/* ============================= */
/* TABLET */
/* ============================= */

@media(max-width:768px){

.gtest-avatar-area{
display:none;
}

.gtest-btn-left{
left:-10px;
}

.gtest-btn-right{
right:-10px;
}

.gtest-client-img{
width:90px;
height:90px;
}

.gtest-testimonial-header h2{
font-size:26px;
}

}


/* ============================= */
/* MOBILE */
/* ============================= */

@media(max-width:480px){

.gtest-testimonial-header h2{
font-size:22px;
}

.gtest-testimonial p{
font-size:15px;
}

}