/* GLOBAL */
.servicesPage {
    font-family: "Poppins", sans-serif;
    color: var(--dark-color);
}

.expTitle,
.serviceTitle {
    font-size: 24px;
    font-weight: 700;
}

/* TEXT */
.expCard .text {
    font-size: 18px;
    line-height: 1.6;
}

/* HERO */
.heroSect {
  position: relative;
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.heroSect .slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.heroSect .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.heroSect .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.heroSect .title,
.heroSect .text {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s forwards;
}

.heroSect .text {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SERVICES */
.servicesSect {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-light-warm));
    text-align: center;
}

.servicesSect .title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
}

/* SERVICE CARDS CONTAINER */
.serviceCardCont {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* SERVICE CARD */
.serviceCard {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    position: relative;
    width: 100%;
}

/* IMAGE */
.serviceImg {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: 15px;
    height: 160px;
}

/* TITLE */
.serviceTitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding: 0 15px;
    height: 40px;
}

/* DESCRIPTION */
.serviceCard .text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    padding: 0 15px;
    margin: 10px;
    height: 100px;
    text-align: left;
}

/* HOVER EFFECT */
.serviceCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.serviceCard:hover .serviceTitle {
    color: var(--accent-color);
}

/* ACCENT DOTS */
.serviceCard::after {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-color1));
    border-radius: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .servicesSect {
        padding: 20px;
    }

    .servicesSect .title {
        margin-bottom: 20px;
    }

    .serviceCard {
        max-width: 100%;
    }

    .serviceTitle {
        margin: 10px;
        height: min-content;
    }

    .serviceCard .text {
        margin: 0 0 10px 10px;
        height: min-content;
    }

    .serviceImg {
        max-height: 140px;
    }
}

/* EXPERIENCE SECTION */
.experienceSect {
    padding: 70px 100px;
    text-align: center;
    background: var(--bg-mid);
    color: var(--light-color);
}

.experienceSect .title {
    font-size: 32px;
    margin-bottom: 15px;
}

.experienceSect p {
    margin-bottom: 40px;
    opacity: 0.9;
}

/* EXPERIENCE CARD CONTAINER */
.expCardCont {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: start;
}

/* EXPERIENCE CARD */
.expCard {
    background: #fff;
    color: var(--dark-color);
    /* width: 100%; */
    max-width: 280px;
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 300px;
    max-height: 300px;
    /* taller for portrait feel */
    overflow: hidden;
}

/* STAGGERED LAYOUT */
.expCard:nth-child(odd) {
    margin-top: 30px;
}

.expCard:nth-child(even) {
    margin-top: 0;
}

/* CARD HEADER ACCENT */
.expCard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(var(--accent-color), var(--accent-color1));
    border-radius: 20px 0 0 20px;
}

/* TITLE */
.expTitle {
    margin-bottom: 12px;
    color: var(--primary-color);
    z-index: 1;
}

/* TEXT */
.expCard .text {
    color: #555;
    flex-grow: 1;
    z-index: 1;
}

/* HOVER EFFECT */
.expCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {

    .experienceSect {
        padding: 20px;
    }

    .expCardCont {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;

        /* KEY: make all items same height */
        align-items: stretch;
    }

    .expCard {
        width: 80%;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .expTitle {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .expCard .text {
        font-size: 14px;

        /* pushes content evenly */
        flex-grow: 1;
    }
}