:root {
    --purple-deep: #3b0764;
    --purple-mid: #7c3aed;
    --purple-light: #6D5DF6;
    --purple-gradient: linear-gradient(180deg, rgba(76, 0, 176, 1) 0%, rgba(109, 93, 246, 1) 50%, rgba(169, 156, 253, 1) 100%);
    --white: #f5f0ff;
    --font-color: #260058;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--white);
    color: var(--font-color);
}

.bg-blob {
    position: fixed;
    top: 100px;
    left: 0%;
    width: 50%;
    height: 110vh;
    transition: transform 0.05s linear;
    background-image: url("../resources/img/services/Ellipse.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ════════════════════
   HERO
════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 42vw;
    min-height: 260px;
    max-height: 480px;
    overflow: hidden;
    background: var(--purple-light);
    z-index: 1;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.hero-video-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Very subtle top-only darkening, strong white fade at bottom */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.0) 0%,
            rgba(0, 0, 0, 0.0) 55%,
            rgba(245, 240, 255, 0.55) 78%,
            rgba(245, 240, 255, 1.0) 100%);
}

/* Content — bottom-left with purple left bar */
.hero-content {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: 0;
    right: 0;
    padding: 0 40px 0 22px;
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 600px;
}

.hero-bar {
    width: 3px;
    height: 40px;
    background: var(--purple-light);
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(25px, 3.1vw, 37px);
    font-weight: 700;
    color: var(--font-color);
    line-height: 1.2;
}

/* No sub/desc in this design */
.hero-sub,
.hero-desc {
    display: none;
}


/* ════════════════════
   RESPONSIVE
════════════════════ */

@media (min-width: 1101px) {
    .hero-content {
        left: 0;
        margin-left: 40px;
        /* bottom: 60px; */
        padding-left: 40px;
    }
}

@media (max-width: 1100px) and (min-width: 851px) {
    .hero-content {
        left: 32px;
        bottom: 20px;
    }
}

@media (max-width: 850px) and (min-width: 538px) {
    .hero {
        height: 48vw;
        min-height: 220px;
        max-height: 340px;
    }

    .hero-content {
        left: 24px;
        bottom: 16px;
    }

    .hero-bar {
        height: 40px;
    }
}

@media (max-width: 537px) {
    .hero {
        height: 52vw;
        min-height: 180px;
        max-height: 280px;
    }

    .hero-content {
        left: 16px;
        bottom: 12px;
        gap: 20px;
    }

    .hero-bar {
        height: 50px;
        width: 3px;
    }

    /* .hero-title {
        font-size: clamp(14px, 4vw, 20px);
    } */
}

@media (max-width: 380px) {
    .hero {
        height: 54vw;
        min-height: 160px;
    }

    .hero-content {
        left: 12px;
        bottom: 10px;
    }
}



/* =====================
   SERVICES SECTION
===================== */
.services {
  display: flex;
  flex-direction: column;
  gap: 55px;
  width: 100%;
  max-width: 1160px;
  align-items: center;
  justify-content: center;
  margin: auto;
  padding: 80px 20px;
}

/* =====================
   CARD BASE
===================== */
.card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(100, 60, 200, 0.205);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  cursor: pointer;
}

/* Hover: lift + shadow */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(100, 60, 200, 0.22);
}

/* Purple gradient overlay on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--purple-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

/* =====================
   IMAGE WRAP
===================== */
.card__image-wrap {
  position: relative;
  flex: 0 0 42%;
  overflow: hidden;
  z-index: 2;
}

.card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card__image-wrap img {
  transform: scale(1.06);
}

/* Purple gradient over image on hover */
.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a99cfd2f, #6c5df631);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover .card__overlay {
  opacity: 1;
}

/* =====================
   CARD CONTENT
===================== */
.card__content {
  flex: 1;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.card__label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.card__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--font-color);
  line-height: 1.2;
}

.card__title em {
  font-style: italic;
  color: var(--purple-light);
}

.card__content p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--font-color);
  text-align: justify;
}

.card:hover .card__label {
  color: var(--white);
}

.card:hover .card__title {
  color: var(--white);
}

.card:hover .card__content p {
  color: var(--white);
}

/* =====================
   LAYOUT VARIANTS
===================== */
.card--image-left {
  flex-direction: row;
}



/* =====================
   RESPONSIVE
===================== */
@media (min-width: 701px) {
  .card--image-right {
    display: flex;
  flex-direction: row-reverse;
}
}

@media (max-width: 700px) {
  .card,
  .card--image-left,
  .card--image-right {
    flex-direction: column !important;
  }

  .card__image-wrap {
    flex: 0 0 220px;
    height: 220px;
    width: 100%;
  }

  .card__content {
    padding: 1.5rem 1.5rem;
  }
}

@media (max-width: 420px) {
  .card__content {
    padding: 18px 16px;
  }

  .card__image-wrap {
    height: 180px;
  }
}