/* =========================================================
SERVICES SECTION
========================================================= */

.services-section
{
    position: relative;

    width: 100%;

    padding: 100px 20px;

    background:
    linear-gradient(
        180deg,
        #08111f 0%,
        #0b1220 100%
    );

    overflow: hidden;
}


/* =========================================================
HEADER
========================================================= */

.services-header
{
    max-width: 900px;

    margin: 0 auto 70px;

    text-align: center;
}

.services-header small
{
    display: inline-block;

    padding: 8px 18px;

    margin-bottom: 18px;

    border-radius: 50px;

    background: rgba(37,99,235,.12);

    border: 1px solid rgba(59,130,246,.20);

    color: #60a5fa;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.services-header h2
{
    font-size: 46px;

    line-height: 1.15;

    font-weight: 800;

    color: #ffffff;

    margin-bottom: 20px;
}

.services-header p
{
    font-size: 16px;

    line-height: 1.8;

    color: rgba(255,255,255,.72);
}


/* =========================================================
GRID
========================================================= */

.services-grid
{
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}


/* =========================================================
CARD
========================================================= */

.service-card
{
    position: relative;

    border-radius: 24px;

    overflow: hidden;

    background:
    linear-gradient(
        180deg,
        rgba(17,26,46,.95) 0%,
        rgba(10,18,34,.96) 100%
    );

    border: 1px solid rgba(255,255,255,.06);

    transition: .35s ease;

    display: flex;

    flex-direction: column;

    cursor: pointer;
}

.service-card:hover
{
    transform: translateY(-8px);

    border-color: rgba(59,130,246,.22);

    box-shadow:
    0 20px 40px rgba(0,0,0,.35);
}


/* =========================================================
IMAGE
========================================================= */

.service-image
{
    position: relative;

    width: 100%;

    height: 260px;

    overflow: hidden;
}

.service-image img
{
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .5s ease;
}

.service-card:hover .service-image img
{
    transform: scale(1.08);
}

.service-image::after
{
    content: "";

    position: absolute;

    inset: 0;

    background:
    linear-gradient(
        180deg,
        rgba(0,0,0,.05) 0%,
        rgba(0,0,0,.55) 100%
    );
}


/* =========================================================
CONTENT
========================================================= */

.service-content
{
    padding: 28px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.service-content h3
{
    font-size: 24px;

    line-height: 1.3;

    font-weight: 700;

    color: #ffffff;

    margin-bottom: 16px;
}

.service-modal
{
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.78);

    backdrop-filter: blur(8px);

    overflow-y: auto;
}

/* =========================================================
BUTTON
========================================================= */

.service-button
{
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding: 0 24px;

    border-radius: 50px;

    background:
    linear-gradient(
        135deg,
        #2563eb 0%,
        #3b82f6 100%
    );

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: .3s ease;
}

.service-button:hover
{
    transform: translateY(-2px);

    box-shadow:
    0 10px 24px rgba(37,99,235,.35);
}


/* =========================================================
PAGINATION
========================================================= */

.services-pagination
{
    width: 100%;

    margin-top: 60px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.services-pagination a
{
    width: 46px;

    height: 46px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    color: rgba(255,255,255,.75);

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.06);

    transition: .3s ease;
}

.services-pagination a:hover
{
    background: rgba(59,130,246,.16);

    border-color: rgba(59,130,246,.26);

    color: #ffffff;
}

.services-pagination a.active
{
    background:
    linear-gradient(
        135deg,
        #2563eb 0%,
        #3b82f6 100%
    );

    color: #ffffff;

    border-color: transparent;
}


/* =========================================================
MODAL
========================================================= */

.service-modal
{
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.78);

    backdrop-filter: blur(8px);
}

.service-modal.active
{
    display: flex;
}

.service-modal-box
{
    position: relative;

    width: 100%;

    max-width: 950px;

    max-height: 90vh;

    overflow-y: auto;

    border-radius: 28px;

    background:
    linear-gradient(
        180deg,
        #0f1729 0%,
        #0a1220 100%
    );

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
    0 40px 90px rgba(0,0,0,.55);

    animation: modalFade .25s ease;
}


@keyframes modalFade
{
    from
    {
        opacity: 0;

        transform: translateY(20px) scale(.96);
    }

    to
    {
        opacity: 1;

        transform: translateY(0) scale(1);
    }
}

.service-modal-close
{
    position: absolute;

    top: 18px;

    right: 18px;

    width: 44px;

    height: 44px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: #ffffff;

    font-size: 22px;

    cursor: pointer;

    z-index: 10;

    transition: .3s ease;
}

.service-modal-close:hover
{
    background: rgba(255,255,255,.16);

    transform: rotate(90deg);
}

.service-modal-image
{
    width: 100%;

    height: 420px;

    overflow: hidden;
}

.service-modal-image img
{
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.service-modal-content
{
    padding: 40px;
}

.service-modal-content h3
{
    font-size: 36px;

    line-height: 1.2;

    color: #ffffff;

    margin-bottom: 24px;
}

.service-modal-content p
{
    font-size: 16px;

    line-height: 1.9;

    color: rgba(255,255,255,.76);

    margin-bottom: 34px;
}


/* =========================================================
RESPONSIVE
========================================================= */

@media(max-width: 1200px)
{
    .services-grid
    {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
TABLET
========================================================= */

@media(max-width: 768px)
{
    .services-section
    {
        padding: 70px 16px;
    }

    .services-header
    {
        margin-bottom: 50px;
    }

    .services-header h2
    {
        font-size: 34px;
    }

    .services-header p
    {
        font-size: 15px;
    }

    .services-grid
    {
        gap: 20px;
    }

    .service-image
    {
        height: 220px;
    }

    .service-content
    {
        padding: 22px;
    }

    .service-content h3
    {
        font-size: 20px;
    }

    .service-content p
    {
        font-size: 14px;
    }

    .service-modal-image
    {
        height: 280px;
    }

    .service-modal-content
    {
        padding: 28px;
    }

    .service-modal-content h3
    {
        font-size: 28px;
    }
}


/* =========================================================
MOBILE
========================================================= */

@media(max-width: 580px)
{
    .services-grid
    {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .service-image
    {
        height: 220px;
    }

    .service-content
    {
        padding: 18px;
    }

    .service-content h3
    {
        font-size: 18px;

        margin-bottom: 10px;
    }

    .service-content p
    {
        font-size: 13px;

        line-height: 1.7;

        margin-bottom: 18px;
    }

    .service-button
    {
        width: 100%;

        min-height: 46px;

        font-size: 13px;
    }

    .service-modal
    {
        padding: 10px;
    }

    .service-modal-image
    {
        height: 220px;
    }

    .service-modal-content
    {
        padding: 22px;
    }

    .service-modal-content h3
    {
        font-size: 22px;
    }

    .service-modal-content p
    {
        font-size: 14px;
    }
}