/*==================================================
  SERVICES SECTION
  Techmate AI
==================================================*/

.services {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

/* Background Glow */

.services::before {
    content: "";
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle,
            rgba(37, 99, 235, 0.08),
            transparent 70%);
    pointer-events: none;
}

/*==========================================
Section Header
==========================================*/

.services .section-header {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.services .section-header h2 {
    margin: 24px 0;
}

.services .section-header p {
    color: var(--color-light-gray);
    line-height: 1.8;
}

/*==========================================
Grid
==========================================*/

.services-grid {

    margin-top: 80px;

    display: grid;

    grid-template-columns: 2fr 1fr;

    grid-auto-rows: minmax(330px, auto);

    gap: 30px;

}

/* Bento Layout */

.service-ai {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.service-software {
    grid-column: 2;
    grid-row: 1;
}

.service-cloud {
    grid-column: 2;
    grid-row: 2;
}

.service-mobile {
    grid-column: 1 / span 2;
}

/*==========================================
Card
==========================================*/

.service-card {

    position: relative;

    display: flex;

    flex-direction: column;

    padding: 48px;

    border-radius: 30px;

    overflow: hidden;

    transition: .45s ease;

    isolation: isolate;

    cursor: pointer;

}

/* Glow */

.service-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(circle at top right,
            rgba(37, 99, 235, .16),
            transparent 65%);

    opacity: 0;

    transition: .45s;

    z-index: -1;

}

.service-card:hover::before {

    opacity: 1;

}

.service-card:hover {

    transform: translateY(-10px);

    border-color: rgba(37, 99, 235, .35);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .28);

}

/*==========================================
Icon
==========================================*/

.service-icon {

    width: 72px;

    height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

    border-radius: 20px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.08);

    backdrop-filter: blur(12px);

    margin-bottom: 28px;

    transition: .35s;

}

.service-card:hover .service-icon {

    transform:

        rotate(-8deg)

        scale(1.08);

}

/*==========================================
Typography
==========================================*/

.service-card h3 {

    font-size: 2.2rem;

    line-height: 1.15;

    margin-bottom: 18px;

    color: var(--color-white);

}

.service-card p {

    max-width: 90%;

    color: var(--color-light-gray);

    line-height: 1.8;

    margin-bottom: 30px;

}

/*==========================================
Service List
==========================================*/

.service-list {

    list-style: none;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px 30px;

    margin-bottom: auto;

}

.service-list li {

    position: relative;

    padding-left: 22px;

    color: var(--color-white);

    font-size: .95rem;

}

.service-list li::before {

    content: "";

    position: absolute;

    left: 0;

    top: 8px;

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--color-cyan);

    box-shadow: 0 0 10px var(--color-cyan);

}

/*==========================================
Button
==========================================*/

.service-link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 40px;

    font-weight: 600;

    color: var(--color-white);

    text-decoration: none;

    transition: .35s;

}

.service-link:hover {

    gap: 18px;

    color: var(--color-cyan);

}

/*==========================================
Decorative Glow
==========================================*/

.service-card::after {

    content: "";

    position: absolute;

    width: 240px;

    height: 240px;

    right: -120px;

    bottom: -120px;

    border-radius: 50%;

    background: radial-gradient(circle,
            rgba(124,58,237,.18),
            transparent 70%);

    opacity: 0;

    transition: .45s;

}

.service-card:hover::after {

    opacity: 1;

}

/*==========================================
Responsive
==========================================*/

@media (max-width:1200px){

    .service-card{

        padding:40px;

    }

}

@media (max-width:992px){

    .services-grid{

        grid-template-columns:1fr;

    }

    .service-ai,
    .service-software,
    .service-cloud,
    .service-mobile{

        grid-column:auto;

        grid-row:auto;

    }

}

@media (max-width:768px){

    .services{

        padding:100px 0;

    }

    .service-card{

        padding:32px;

    }

    .service-card h3{

        font-size:1.9rem;

    }

    .service-list{

        grid-template-columns:1fr;

    }

}

@media (max-width:576px){

    .service-card{

        padding:28px;

        border-radius:22px;

    }

    .service-icon{

        width:60px;

        height:60px;

        font-size:24px;

    }

    .service-card h3{

        font-size:1.7rem;

    }

    .service-card p{

        max-width:100%;

    }

}