@import url("../../variables.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f5f5f5;
    color: #222;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

.services-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background:
        linear-gradient(rgba(7, 7, 7, .82), rgba(7, 7, 7, .82)),
        url("../../images/backdrop.png") center/cover;

}

.services-hero h1 {
    font-size: 64px;
    margin: 20px 0;
}

.services-hero p {
    max-width: 850px;
    margin: auto;
    color: #ddd;
    line-height: 34px;
    font-size: 19px;
}

.badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.service-grid {
    padding: 100px 0;
}

.service-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: linear-gradient(135deg, #070707, #171717);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transition: .35s;
}

.service-card:hover {
    transform: translateY(-12px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(255, 30, 0, .08);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    margin-bottom: 25px;
    transition: .35s;
}

.service-card:hover .icon {
    background: var(--primary);
    color: white;
    transform: rotate(360deg);
}

.service-card h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.service-card p {
    color: #ffffff;
    line-height: 30px;
}

.featured {
    background: linear-gradient(135deg, #070707, #171717);
    color: white;
}

.featured p {
    color: #666;
}

.featured .icon {
    background: white;
}

.workflow {
    padding: 110px 0;
    background: white;
}

.workflow h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 70px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: start;
    gap: 20px;
}

.step {
    text-align: center;
}

.circle {
    width: 85px;
    height: 85px;
    margin: auto;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    transition: .35s;
}

.step:hover .circle {
    background: var(--primary);
    color: white;
    transform: translateY(-10px);
}

.step h3 {
    margin: 25px 0 15px;
}

.step p {
    color: white;
    line-height: 28px;
}

.line {
    height: 4px;
    margin-top: 42px;
    background: #e4e4e4;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.line::after {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: flow 3s linear infinite;
}

@keyframes flow {

    to {
        left: 100%;
    }
}

.cta-services {
    background: #111;
    color: white;
    text-align: center;
    padding: 110px 0;
}

.cta-services h2 {
    font-size: 46px;
    margin-bottom: 20px;
}

.cta-services p {
    max-width: 750px;
    margin: auto;
    color: #d4d4d4;
    line-height: 34px;
    margin-bottom: 45px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    transition: .3s;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}

.service-card:nth-child(odd) {
    animation: float1 6s ease-in-out infinite;
}

.service-card:nth-child(even) {
    animation: float2 7s ease-in-out infinite;
}

@keyframes float1 {
    0%,

    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

}

@keyframes float2 {

    0%,

    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


@media(max-width:1100px) {

    .service-grid .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .line {
        display: none;
    }
}

@media(max-width:768px) {

    .services-hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .services-hero h1 {
        font-size: 42px;
    }

    .services-hero p {
        font-size: 17px;
        line-height: 30px;
    }

    .service-grid {
        padding: 80px 0;
    }

    .service-grid .container {
        grid-template-columns: 1fr;
    }

    .workflow {
        padding: 80px 0;
    }

    .workflow h2 {
        font-size: 34px;
    }

    .step {
        background: #fafafa;
        padding: 25px;
        border-radius: 18px;
    }

    .cta-services {
        padding: 80px 0;
    }

    .cta-services h2 {
        font-size: 34px;
    }
}

@media(max-width:480px) {

    .badge {
        font-size: 14px;
    }

    .services-hero h1 {
        font-size: 34px;
    }

    .service-card {
        padding: 28px;
    }

    .circle {
        width: 70px;
        height: 70px;
        font-size: 22px;
    }
}