/* ========================================================================= */
/* Service Process Section */
/* ========================================================================= */
.serviceg {
    position: relative;
    padding: 80px 20px;
    background: transparent;
    overflow: hidden;
    text-align: center;
}

.serviceg .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.serviceg .section-title {
    font-size: calc(2.5rem * 1.2);
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

.serviceg p {
    font-size: calc(1.1rem * 1.1);
    color: #ffffff;
    margin-bottom: 50px;
    font-family: 'Montserrat', sans-serif;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.serviceg .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.serviceg .grid-item {
    background: #1a1a2e;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    min-height: 200px;
}

.serviceg .grid-item i {
    font-size: 2.5rem;
    color: #6b48ff;
    margin-bottom: 20px;
}

.serviceg .grid-item h3 {
    font-size: calc(1.3rem * 1.1);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.serviceg .grid-item p {
    font-size: calc(0.95rem * 1.1);
    color: #cccccc;
    margin: 0;
}

.serviceg .cta-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: calc(1rem * 1.1);
    font-weight: 600;
    text-decoration: none;
    background-color: #6b48ff;
    color: #ffffff;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 1.5;
    min-width: unset;
    width: auto;
}

.serviceg .cta-button:hover {
    background-color: #7c5aff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(107, 72, 255, 0.5);
}

.serviceg .bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* ========================================================================= */
/* Testimonial Section */
/* ========================================================================= */
.serviceg.testimonial-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #0a0a12, #1a1a2e);
}

.serviceg .container-full {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.serviceg.testimonial-section .section-title {
    font-size: calc(3rem * 1.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.serviceg.testimonial-section p {
    font-size: calc(1.2rem * 1.1);
    max-width: 800px;
}

.testimonial-carousel {
    display: flex;
    overflow: visible;
    width: 100%;
    gap: 30px;
    position: relative;
    margin: 50px 0;
    white-space: nowrap;
}

.testimonial-card {
    flex: 0 0 33.33%;
    min-width: 400px;
    height: 320px;
    position: relative;
    perspective: 1000px;
    display: inline-block;
}

.testimonial-card .card-content {
    background: rgba(26, 26, 46, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transform: translateZ(20px);
    transition: transform 0.5s ease;
    white-space: normal;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 72, 255, 0.2), rgba(26, 26, 46, 0.5));
    border-radius: 12px;
    z-index: 1;
    transform: translateZ(-20px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card .stars {
    margin-bottom: 15px;
}

.testimonial-card .stars i {
    color: #ffb400;
    font-size: 1.2rem;
}

.testimonial-card .quote {
    font-size: calc(1rem * 1.1);
    color: #ffffff;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-card .author {
    font-size: calc(0.9rem * 1.1);
    color: #cccccc;
    font-weight: 500;
}

.testimonial-section .cta-button {
    margin-top: 30px;
}

/* ========================================================================= */
/* New Timeline Styles for "How Our Process Works" */
/* ========================================================================= */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 50px 0;
}

.timeline-tab {
    width: 30%;
    height: 300px;
    border: 2px solid #1a1a2e;
    background: transparent;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    position: relative;
    z-index: 1;
}

.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.icon-container i {
    font-size: 32px;
    color: #6b48ff;
}

.timeline-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

.timeline-step p {
    font-size: 1rem;
    color: #cccccc;
    text-align: center;
}

/* Stack timeline tabs vertically and adjust button spacing on smaller screens */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
        white-space: normal;
        padding-bottom: 20px;
        gap: 20px;
        margin-bottom: 20px;
    }

    .timeline-tab {
        width: 100%;
        max-width: 300px;
        min-width: unset;
        height: auto;
        min-height: 250px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .timeline-step {
        width: 90%;
        min-width: unset;
        margin-right: 0;
    }

    .serviceg .cta-button {
        margin-top: 10px;
    }
}

/* ========================================================================= */
/* Media Queries */
/* ========================================================================= */
@media (max-width: 959px) and (min-width: 769px) {
    .serviceg .grid-container {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        grid-template-areas: 
            "item1 item2"
            "item3 item3";
        gap: 40px;
    }

    .serviceg .grid-item:nth-child(1) {
        grid-area: item1;
    }

    .serviceg .grid-item:nth-child(2) {
        grid-area: item2;
    }

    .serviceg .grid-item:nth-child(3) {
        grid-area: item3;
    }

    .testimonial-carousel {
        gap: 20px;
    }

    .testimonial-card {
        flex: 0 0 45%;
        min-width: 350px;
        height: 300px;
    }

    .testimonial-card .card-content {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .serviceg {
        padding: 50px 15px;
    }

    .serviceg .section-title {
        font-size: calc(1.8rem * 1.2);
    }

    .serviceg p {
        font-size: calc(1rem * 1.1);
    }

    .serviceg .grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .serviceg .cta-button {
        padding: 10px 25px;
        font-size: calc(1rem * 1);
    }

    .serviceg.testimonial-section {
        padding: 60px 0;
    }

    .serviceg.testimonial-section .section-title {
        font-size: calc(2rem * 1.2);
    }

    .testimonial-carousel {
        gap: 20px;
    }

    .testimonial-card {
        flex: 0 0 100%;
        min-width: 300px;
        height: 280px;
    }

    .testimonial-card .card-content {
        padding: 20px;
        height: 100%;
    }
}