/* Services Page Styles */

/* 1. Hero Section */
.page-heading.services-heading {
    background-image: url(../images/services-left-image.png);
    /* Placeholder */
}

/* 2. Services Grid (Top Section) - Similar to Works but styled for Services */
/* 2. Services Section (Homepage Design) */
.our-portfolio.section {
    padding-top: 100px;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* Ensure columns have space between them vertically */
.our-portfolio .col-lg-4,
.our-portfolio .col-sm-6 {
    margin-bottom: 30px;
    /* Vertical spacing between rows */
}

/* Make the anchor tag filling the height of the column for equal height cards */
.our-portfolio a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.service-item {
    text-align: center;
    /* Ensure centering */
    padding: 40px 30px;
    /* More padding for larger items */
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    height: 100%;
    /* Uniform height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
}

/* Override existing .icon styles to remove the small circle */
.service-item .icon {
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    line-height: normal !important;
    margin-bottom: 25px !important;
    display: block;
}

/* Make image huge and responsive */
.service-item .icon img {
    width: 100%;
    max-width: 180px;
    /* Adjusted slightly smaller than homepage max for correct grid fitting with text */
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.service-item:hover .icon img {
    transform: scale(1.05);
    /* Subtle pop effect */
}

/* Make Title Bigger and Bold */
.service-item h4 {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    color: #2a2a2a;
}

.service-item p {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
}

/* Ghost Text Effect for Section Heading */
.our-portfolio .section-heading {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 80px;
}

.our-portfolio .section-heading h2 {
    font-size: 40px;
    font-weight: 800;
    color: #2a2a2a;
}

.our-portfolio .section-heading h2 em {
    font-style: normal;
    color: #4562ed;
}

.our-portfolio .section-heading::before {
    content: "OUR SERVICES";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    font-weight: 900;
    color: #2a2a2a;
    /* Same color as text but rely on opacity */
    opacity: 0.1;
    /* Very faint */
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 768px) {
    .our-portfolio .section-heading::before {
        font-size: 50px !important;
    }
}

/* Specific Styles for "Our Approach" Heading */
.approach-heading {
    position: relative;
    z-index: 1;
}

.approach-heading h2 {
    font-size: 50px;
    /* Larger than default 40px */
    font-weight: 800;
    color: #2a2a2a;
}

.approach-heading h2 em {
    font-style: normal;
    color: #4562ed;
}

.approach-heading::before {
    content: "OUR APPROACH";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 110px;
    /* Slightly larger ghost text */
    font-weight: 900;
    color: #2a2a2a;
    opacity: 0.1;
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 768px) {
    .approach-heading h2 {
        font-size: 40px;
        /* Responsive adjustment */
    }

    .approach-heading::before {
        font-size: 50px;
    }
}

/* 3. Service Journey (Curved Zigzag) */
.service-journey-section {
    padding: 20px 0 50px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.journey-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

/* Rows for items */
.journey-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 0px;
    /* Connectors handle spacing */
    min-height: 150px;
}

.journey-item {
    width: 45%;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: center;
}

.journey-item .icon-circle {
    width: 80px;
    height: 80px;
    background: #eef4ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #4562ed;
}

.journey-item h4 {
    font-size: 26px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 15px;
}

.journey-item p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

/* Empty divs to balance flex */
.journey-spacer {
    width: 45%;
}

/* The Curved Connectors (SVG) */
.snake-connector {
    width: 55%;
    height: 220px;
    margin: -50px auto;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.snake-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.snake-path {
    fill: none;
    stroke: #52d7fc;
    stroke-width: 3;
    stroke-dasharray: 15, 10;
    /* Dash length, Gap length */
    stroke-linecap: round;
    animation: snakeWalk 1s linear infinite;
}

@keyframes snakeWalk {
    to {
        stroke-dashoffset: -25;
    }
}

/* Decor elements */
.journey-item:hover .icon-circle {
    background: #4562ed;
    color: #fff;
    transform: rotateY(360deg);
    transition: all 0.6s;
}

/* Mobile */
@media (max-width: 768px) {
    .journey-row {
        flex-direction: column;
        margin-bottom: 50px;
    }

    .journey-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .journey-spacer {
        display: none;
    }

    .snake-connector {
        display: none;
        /* Hide curves on mobile */
    }

    /* Simple vertical line for mobile */
    .journey-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        background: #eee;
        z-index: 0;
    }
}
