
:root {
    
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { overflow-x: hidden; }

/* ── HERO ─────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* Background slides */
.bg-layer {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease, transform 1.2s ease;
    transform: scale(1.06);
    z-index: 0;
}
.bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

/* Dark overlay */
#hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(0,0,0,0.72) 38%, rgba(0,0,0,0.18) 100%);
    z-index: 1;
}

/* ── CONTENT WRAPPER ──────────────────────────────────── */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 120px 0 80px;
}

/* ── LEFT COLUMN ──────────────────────────────────────── */
.hero-left { position: relative; padding-left: 56px; }

/* Animated vertical line */
.v-line {
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    background: #51B56D;
    height: 0;
    border-radius: 2px;
    transition: height 0.6s cubic-bezier(.4,0,.2,1);
}
.v-line.filled { height: 100%; }

/* Dot indicators */
.dot-nav {
    position: absolute;
    left: 13px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    justify-content: center;
}
.dot-nav span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: block;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.dot-nav span.active {
    background: #51B56D;
    transform: scale(1.5);
}

/* Text content */
.hero-text { overflow: hidden; }

.slide-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #51B56D;
    margin-bottom: 14px;
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.slide-title {
    font-family: "Rubik", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease 0.18s, transform 0.55s ease 0.18s;
}
.slide-desc {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 420px;
    margin-bottom: 34px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease 0.26s, transform 0.55s ease 0.26s;
}

/* animate in */
.hero-text.visible .slide-tag,
.hero-text.visible .slide-title,
.hero-text.visible .slide-desc {
    opacity: 1; transform: translateY(0);
}

/* ── RIGHT COLUMN / CARD SLIDER ──────────────────────── */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    position: relative;
}

.cards-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* slick overrides */
.cards-slider .slick-list { overflow: visible !important; }
.cards-slider .slick-track {
    display: flex !important;
    align-items: center !important; 
    gap: 14px;
}

.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    height: 260px;
    transform: scale(0.9);
    transition: transform 0.5s ease, opacity 0.4s ease;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    outline: none;
    /* transition: height 0.55s cubic-bezier(.4,0,.2,1),
                transform 0.45s cubic-bezier(.4,0,.2,1),
                box-shadow 0.45s ease,
                border-color 0.35s ease; */
}

/* Active (first visible) card — taller & highlighted */
.service-card.slick-current {
    height: 360px;           /* taller than siblings */
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: scale(1);
    z-index: 2;
}

/* Dim non-active cards slightly */
.service-card:not(.slick-current) {
    opacity: 0.7;
    transition: height 0.55s cubic-bezier(.4,0,.2,1),
                opacity 0.45s ease,
                transform 0.45s ease,
                box-shadow 0.45s ease;
}
.service-card:not(.slick-current):hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.slick-slide {
    height: 400px !important;
    display: flex !important;
}

.card-img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s ease;
}
.service-card:hover .card-img { transform: scale(1.05); }

.card-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 18px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.card-label h5 {
    font-family: "Rubik", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.card-label p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-weight: 300;
}

/* ── ARROW NAVIGATION ─────────────────────────────────── */
.arrow-nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
}
.arrow-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    flex-shrink: 0;
}
.arrow-btn:hover {
    background: #51B56D !important;
    border-color: #51B56D !important;
    transform: scale(1.08);
}

/* ── PROGRESS BAR ─────────────────────────────────────── */
.progress-bar-wrap {
    position: absolute;
    bottom: 36px;
    left: 56px;
    width: 160px;
    height: 2px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    z-index: 2;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #51B56D;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* ── COUNTER ──────────────────────────────────────────── */
.slide-counter {
    position: absolute;
    bottom: 46px;
    left: 230px;
    z-index: 2;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    letter-spacing: 2px;
}
.slide-counter span { color: #fff; font-weight: 600; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-right { margin-top: 50px; }
    .progress-bar-wrap, .slide-counter { display: none; }
    .hero-left { padding-left: 40px; }
    .v-line { left: 14px; }
    .dot-nav { left: 7px; }
    .service-card { height: 240px; }
}
@media (max-width: 575px) {
    .hero-inner { padding: 100px 0 120px; }
    .hero-left { padding-left: 30px; }
    .service-card { height: 200px; }
    .arrow-nav { justify-content: flex-start; padding-left: 4px; }
}

/* ── INNER PAGES / EXTRA RESPONSIVE SECTIONS ───────────────────── */
.nav-link.active { color: #51B56D !important; font-weight: 700; }
.inner-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.76) 35%, rgba(0,0,0,.28) 100%);
}
.inner-hero .container { position: relative; z-index: 1; padding-top: 80px; }
.inner-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  margin: 16px 0;
}
.inner-hero p { color: rgba(255,255,255,.78); max-width: 680px; font-size: 1.05rem; line-height: 1.8; }
.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(81,181,109,.14);
  color: #51B56D;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: .75rem;
}
.service-overview-section .block { height: 100%; }
.service-overview-section .service-item a { display: block; height: 100%; text-decoration: none; }
.service-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  position: sticky;
  top: 76px;
  z-index: 5;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}
.service-nav-pills a {
  color: #111;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 600;
  transition: .25s ease;
}
.service-nav-pills a:hover { background: #51B56D; color: #fff; border-color: #51B56D; }
.service-detail-row {
  padding: 64px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  scroll-margin-top: 120px;
}
.service-detail-img {
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 25px 70px rgba(0,0,0,.14);
}
.service-detail-img img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; transition: transform .6s ease; }
.service-detail-row:hover .service-detail-img img { transform: scale(1.04); }
.service-detail-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; margin-bottom: 18px; }
.service-detail-content p { line-height: 1.8; color: #555; }
.service-detail-content ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.service-detail-content li { display: flex; gap: 12px; align-items: flex-start; color: #222; font-weight: 500; }
.service-detail-content li i { color: #51B56D; margin-top: 4px; }
.process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.process-card {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}
.process-card span { color: #51B56D; font-size: 2rem; font-weight: 900; }
.process-card h3 { margin: 12px 0 8px; }
.process-card p { margin: 0; color: #666; line-height: 1.7; }
@media (max-width: 1199px) {
  .service-nav-pills { position: relative; top: auto; }
}
@media (max-width: 991px) {
  .inner-hero { min-height: 360px; }
  .inner-hero .container { padding-top: 60px; }
  .service-detail-row { padding: 42px 0; }
  .service-detail-img, .service-detail-img img { min-height: 300px; }
}
@media (max-width: 767px) {
  .process-grid { grid-template-columns: 1fr; }
  .service-nav-pills { gap: 8px; padding: 10px; }
  .service-nav-pills a { width: 100%; text-align: center; }
  .footer .col-6 { width: 100%; }
}
@media (max-width: 575px) {
  .inner-hero { min-height: 330px; }
  .inner-hero p { font-size: .95rem; }
  .service-detail-img, .service-detail-img img { min-height: 240px; }
  .service-detail-content .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Service page image alignment fix
   Keeps all service images equal size and prevents portrait images
   from becoming too tall on the services page.
========================================================= */
.service-detail-wrap {
  overflow: hidden;
}

.service-detail-row {
  padding: 58px 0;
  align-items: center !important;
}

.service-detail-img {
  width: 100%;
  height: 380px;
  min-height: 0 !important;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(35, 50, 66, 0.12);
  background: #f4f7f5;
}

.service-detail-img img {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  display: block;
  object-fit: cover;
  object-position: center;
}

.service-detail-content {
  max-width: 560px;
}

.service-detail-content .colored-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1199.98px) {
  .service-detail-img {
    height: 340px;
  }
}

@media (max-width: 991.98px) {
  .service-detail-row,
  .service-detail-row.flex-lg-row-reverse {
    row-gap: 28px;
  }

  .service-detail-img {
    height: 320px;
  }

  .service-detail-content {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .service-detail-row {
    padding: 42px 0;
  }

  .service-detail-img {
    height: 280px;
    border-radius: 18px;
  }
}

@media (max-width: 575.98px) {
  .service-detail-img {
    height: 230px;
  }

  .service-detail-content h2 {
    font-size: 2rem;
  }
}
