/* ================= ROOT ================= */
:root{
  --brand: #2F4DBA;
  --brand-2: #1F3A8A;
  --accent: #F2994A;
  --bg: #FFFFFF;
  --section-bg: #F7F8FC;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-light: #6B7280;
  --button-bg: #3F455A;
  --border: #cbcdcf;
  --cta-dark: #1C1C1C;
  --cta-text: #FFFFFF;
  --glass: rgba(47,77,186,0.08);
  --radius: 10px;
  --font-sans: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
} 

.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background: url("/assets/services/6.webp") right center / cover no-repeat;
  overflow: hidden;
}

/* DIAGONAL WHITE OVERLAY */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #ffffff 0%, #ffffffd1 46%, rgba(255, 255, 255, 0.9) 41%, rgba(255, 255, 255, 0.6) 46%, rgba(255, 255, 255, 0) 50%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-left: 120px;
}



.hero-content {
  max-width: 900px;
  animation: fadeSlide 1.2s ease-out forwards;
}

.hero-content h1 {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: #111; /* perfect for services */
  max-width: 700px;

}

.hero-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--button-bg);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgb(26 30 43 / 25%);
}

/* Hover Effect (Premium Feel) */
.hero-cta-btn:hover {
  background: var(--card);
  color: var(--button-bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21, 28, 51, 0.158);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-left: 10px;
}


.hero-content {
  max-width: 900px;
  animation: fadeSlide 1.4s ease-out forwards;
}




@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-pill {
  background: var(--bg);
  padding: 30px 20px;
}

.services-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Heading */
.services-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* Description */ 
.services-desc {
  max-width: 820px;
  margin: 0 auto 48px;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
}

/* Pills container */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.pill {
  position: relative;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid #111827;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s ease, transform 0.35s ease;
}

/* CIRCLE LAYER */
.pill::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #111827;
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}

/* HOVER */
.pill.hovered::before {
  transform: translate(-50%, -50%) scale(25);
}

.pill.hovered {
  color: #fff;
  transform: translateY(-2px);
}

.pill.active::before {
  transform: translate(-50%, -50%) scale(25);
}

.pill.active {
  color: #fff;
}

.services-wrapper {
  position: relative;
}

/* scroll distance */
.service {
  min-height: 240vh;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* sticky viewport */
.service-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  padding: 0 20px;
  margin: auto;
  gap: 80px;
}

.service-text {
   opacity: 0.4;
  filter: blur(1.5px);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.service-text h3 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.service-text p {
  color: #4B5563;
  line-height: 1.7;
}

.service-text .pill-grid{
  justify-content: flex-start;
  margin-top: 24px;
}

/* STICKY IMAGE CONTAINER */
.services-image {
  position: sticky;
  top: 30px;
  height: 100vh;
  width: 50%;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img {
  position: absolute;
  width: 100%;
  max-width: 520px;
  opacity: 1;
  clip-path: ellipse(120% 0% at 50% 100%);
  transform: scale(1.02);
  will-change: clip-path, transform;
}

.service-img.active {
  opacity: 1;
  filter : blur(0);
}


    /* STACKED IMAGES */
.service-img {
  position: absolute;
  width: 100%;
  max-width: 520px;
  opacity: 1;
  clip-path: ellipse(120% 0% at 50% 100%);
  transform: scale(1.02);
  will-change: clip-path, transform;
}


.service.active .service-text {
  opacity: 1;
  filter: blur(0);
}


@media (min-width: 1025px) and (max-width: 1366px) {

  .hero-inner{
   padding-left: 20px;

  }

  .hero::before {
    background:linear-gradient(115deg, #ffffff 0%, #ffffffa3 60% 47%, rgba(255, 255, 255, 0.9) 32%, rgba(255, 255, 255, 0.6) 22%, rgba(255, 255, 255, 0) 37%);
  }

  .hero-content h1 {
    font-size: 32px;
    max-width: 570px;
  }
  
   .hero-cta-btn {
    padding: 15px 20px;
    font-size: 15px;
  }

  .service-sticky {
    gap: 30px;
    padding: 0 40px;
  }

  .services-image {
    width: 45%;
    top: 20px;
  }
 
  .service-img {
    max-width: 460px;
  }

  .service-text h3 {
    font-size: 28px;
  }

  .service {
    min-height: 200vh;
  }
}


@media (min-width: 769px) and (max-width: 1024px) {

  .hero{
    height: 75vh  ;
  }

  .hero::before {
    background: linear-gradient(115deg, #ffffff 0%, #ffffffa3 55% 66%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.6) 22%, rgba(255, 255, 255, 0) 37%);
  }
  .hero-inner {
    margin-left: 48px;
    padding-left: 20px;
    align-items: flex-start;
    margin-top: 25%;
  }

  .hero-content h1 {
    font-size: 30px;
    max-width: 500px;
  }
  
  .hero-cta-btn {
    padding: 15px 20px;
    font-size: 15px;
  }

  .service-sticky {
    gap: 20px;
    padding: 0 30px;
  }

  .services-image {
    width: 42%;
    top: 16px;
    margin-right: 20px;
  }

  .service-img {
    max-width: 400px;
    
  }

  .service-text h3 {
    font-size: 26px;
  }

  .service-text p {
    font-size: 15px;
   

  }

  .service {
    min-height: 180vh;
  }
}

@media (min-width: 601px) and (max-width: 768px) {


  .hero{
    height: 60vh  ;
  }

  .hero::before {
    background: linear-gradient(115deg, #ffffff 0%, #ffffffa3 55% 60%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.6) 22%, rgba(255, 255, 255, 0) 37%);
  }
  .hero-inner {
    margin-left: 48px;
    padding-left: 20px;
    align-items: flex-start;
    margin-top: 30%;
  }

  .hero-content h1 {
    font-size: 26px;
    max-width: 400px;
  }
  
   .hero-cta-btn {
    padding: 15px 20px;
    font-size: 15px;
  }


  .services-wrapper {
    display: block;
    margin-bottom: 100px;
  }

  .services-image {
    width: 35%;
    top: 16px;
    margin-right: 30px;
  }

  .service-img {
    max-width: 400px;
   
  }

  .service-sticky {
    gap: 10px;
    padding: 0 20px;
  }

  .service-text {
    opacity: 1;
    filter: none;
  }


  .service {
    min-height: auto;
    padding: 60px 24px;
  }

  .service-text h3 {
    font-size: 22px;
  }

  .service-text p {
    font-size: 15px;
    text-align: justify;
  }

  .pill {
    padding: 12px 22px;
    font-size: 13px;
  }
}


@media (min-width: 481px) and (max-width: 600px) {
   .hero{
    height: 60vh  ;
  }

  .hero::before {
    background: linear-gradient(115deg, #ffffff 0%, #ffffffa3 55% 65%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.6) 22%, rgba(255, 255, 255, 0) 37%);
  }
  .hero-inner {
    margin-left: 25px;
    padding-left: 20px;
    align-items: flex-start;
    margin-top: 40%;
  }

  .hero-content h1 {
    font-size: 24px;
    max-width: 350px;
  }
  
   .hero-cta-btn {
    padding: 15px 20px;
    font-size: 14px;
  }

  .services-wrapper {
    display: block;
    margin-bottom: 100px;
  }

  .services-image {
    display: none;
  }


  .service-text {
    opacity: 1;
    filter: none;
  }

  .service-sticky {
    display: flex;
    flex-direction: column; 
    height: auto;
  }

  .service {
    min-height: auto;
    padding: 24px;
  }

  .service-text h3 {
    font-size: 22px;
  }

  .service-text p {
    font-size: 15px;
    text-align: justify;
  }

  .pill {
    padding: 10px 12px;
    font-size: 13px;
  }
}


@media (max-width: 480px) {

  .hero{
    display: none;
  }


  .services-pill {
    margin-top: 25%;
  }

  .services-title {
    font-size: 20px;
  }

  .services-desc {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .services-image {
    display: none;
  }

  .service-img {
    position: relative;
    clip-path: none;
    transform: none;
  }

  .service-sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
  }

  .service {
    min-height: auto;
    padding: 10px 16px;
  }

  .service-text {
    opacity: 1;
    filter: none;
  }

  .service-text h3 {
    font-size: 22px;
  }

  .service-text p {
    font-size: 14px;
  }

  .pill {
    padding: 9px 11px;
    font-size: 12px;
  }
}


