/* *{
    margin: 0;
    padding: 0;
    font-family: 'Baskerville old face', sans-serif;
    box-sizing: border-box;
    color: #fff;
}

body{
    background: linear-gradient(145deg, #fdb226, #161616) no-repeat;
    background-size: cover;
    height: 100vh;
} */

.timeline{
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}

/* vertical line between services */
.timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: #000;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: increaseline 6s linear forwards;
}

/* animation for timeline */
@keyframes increaseline {
    0%{
        height: 0;
        opacity: 0;
    }
    100%{
        height: 100%;
    }
}

.dialog{
    padding: 10px 50px;
    position: relative;
    width: 50%;
    animation: showSelf 1s linear forwards;
    opacity: 0;
    color: #fff;
}

/* animation for dialog */
@keyframes showSelf {
    0%{
        opacity: 0;
        transform: translateY(-30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}
.dialog:nth-child(1){
    animation-delay: 1s;
}
.dialog:nth-child(2){
    animation-delay: 2s;
}
.dialog:nth-child(3){
    animation-delay: 3s;
}
.dialog:nth-child(4){
    animation-delay: 4s;
}

.text-box{
    padding: 20px 30px;
    color: #fff;
    position: relative;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 1px;
}

.text-box p{
    color: #000000;
}

.text-box h2{
    font-weight: 600;
}

.text-box small{
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 12px;
}

.left-dialog{
    left: 0;
}

.right-dialog{
    left: 50%;
}

.left-text-box{
    background: linear-gradient(145deg, #faad29, #4df696db);
    border-radius: 25px 0 25px 0;
}

.right-text-box{
    background: linear-gradient(145deg, #c3f825, #2cd0f1db);
    border-radius: 0 25px 0 25px;
}

/* logo designing */

.dialog img{
    position: absolute;
    width: 40px;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    z-index: 10;
}

.right-dialog img{
    left: -20px;
}

/* arrows */
.left-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 5px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 14px solid #ffffff;
    right: -16px;
}

.right-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 5px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 14px solid #ffffff;
    left: -16px;
}

@media screen and (max-width: 800px) {
    .timeline{
        margin: 50px auto;
    }

    .timeline::after{
        left: 31px;
    }

    .dialog{
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .text-box{
        font-size: 13px;
    }

    .text-box small{
        margin-top: 0;
        margin-bottom: 10px;
    }

    .right-dialog{
        left: 0;
    }

    .left-dialog img, .right-dialog img{
        left: 10px;
    }

    .left-arrow, .right-arrow{
        border-right: 15px solid #fff;
        border-left: 0;
        left: -15px;
    }
}

#services-grid {
  background-color: #f9f9f9; /* light background */
}

.service-card {
  background-color: #ffffff; /* white card */
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Ensure images are always centered */
.img-wrapper {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
