/* =========================
   GLOBAL PAGE
========================= */

body {
    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(circle at top center,
            rgba(77, 163, 255, 0.14),
            transparent 35%),

        radial-gradient(circle at 20% 40%,
            rgba(77, 163, 255, 0.08),
            transparent 30%),

        radial-gradient(circle at 80% 70%,
            rgba(77, 163, 255, 0.08),
            transparent 30%),

        linear-gradient(180deg,
            #ffffff 0%,
            #f8fbff 100%);

    background-attachment: fixed;
}

/* TOP GLOW */

body::before {
    content: "";

    position: fixed;

    top: -250px;
    left: -250px;

    width: 750px;
    height: 750px;

    background:
        radial-gradient(circle,
            rgba(77, 163, 255, 0.18),
            transparent 70%);

    filter: blur(100px);

    z-index: -2;

    pointer-events: none;
}

/* BOTTOM GLOW */

body::after {
    content: "";

    position: fixed;

    bottom: -250px;
    right: -250px;

    width: 750px;
    height: 750px;

    background:
        radial-gradient(circle,
            rgba(77, 163, 255, 0.14),
            transparent 70%);

    filter: blur(100px);

    z-index: -2;

    pointer-events: none;
}

/* =========================
   HERO SECTION
========================= */

.testing-hero {
    min-height: 55vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;

    padding: 120px 8% 80px;
}

.testing-hero-content {
    position: relative;
    z-index: 2;

    max-width: 900px;
}

.small-title {
    color: #4da3ff;

    letter-spacing: 3px;

    font-size: 13px;

    margin-bottom: 20px;

    font-weight: 600;
}

.testing-hero h1 {
    font-size: 70px;

    line-height: 1.1;

    margin-bottom: 25px;

    color: #000000;
}

.testing-hero p {
    color: #6b7280;

    font-size: 18px;

    line-height: 1.8;
}

/* HERO GLOW */

.glow {
    position: absolute;

    width: 500px;
    height: 500px;

    background:
        radial-gradient(circle,
            rgba(77, 163, 255, 0.22),
            transparent 70%);

    filter: blur(80px);

    z-index: 1;

    animation: floatGlow 10s ease-in-out infinite;
}

/* =========================
   TESTING SECTION
========================= */

.testing-services {
    padding: 30px 8% 100px;
}

.testing-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 28px;
}

/* =========================
   TEST CARDS
========================= */

.test-card {
    position: relative;

    min-height: 260px;

    padding: 40px;

    border-radius: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.82);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.6);

    text-decoration: none !important;

    overflow: hidden;

    transition: all 0.4s ease;
}

/* CARD GLOW */

.test-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top left,
            rgba(77, 163, 255, 0.14),
            transparent 55%);

    opacity: 0;

    transition: 0.4s ease;
}

/* BORDER */

.test-card::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    padding: 1px;

    background:
        linear-gradient(135deg,
            rgba(77, 163, 255, 0.25),
            rgba(77, 163, 255, 0.02));

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

/* HOVER */

.test-card:hover {
    transform: translateY(-12px);

    border-color: rgba(77, 163, 255, 0.25);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(77, 163, 255, 0.12);
}

.test-card:hover::before {
    opacity: 1;
}

/* =========================
   CONTENT
========================= */

.card-top,
.card-bottom,
.test-card p,
.test-card h3 {
    position: relative;
    z-index: 2;
}

/* TITLE */

.test-card h3 {
    font-size: 28px;

    line-height: 1.35;

    color: #111827 !important;

    margin-bottom: 20px;

    font-weight: 700;
}

/* DESCRIPTION */

.card-desc,
.test-card p {
    color: #4b5563 !important;

    line-height: 1.8;

    font-size: 15px;

    margin-bottom: 30px;
}

/* =========================
   TEST GROUPS
========================= */

.test-group {
    margin-bottom: 24px;
}

.test-group h4 {
    color: #111827 !important;

    font-size: 15px;

    font-weight: 600;

    margin-bottom: 12px;

    line-height: 1.5;
}

/* =========================
   STANDARDS
========================= */

.standards {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.standards span {
    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(77, 163, 255, 0.08);

    border: 1px solid rgba(77, 163, 255, 0.18);

    color: #2563eb !important;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.4px;

    white-space: nowrap;

    transition: 0.3s ease;
}

.test-card:hover .standards span {
    background: rgba(77, 163, 255, 0.14);

    border-color: rgba(77, 163, 255, 0.3);

    transform: translateY(-2px);
}

/* =========================
   KNOW MORE
========================= */
.know-more {
    color: #2563eb !important;

    font-size: 15px;

    font-weight: 600;

    transition: 0.3s ease;
}

.card a:visited {
    color: #2563eb;
}

/* =========================
   ANIMATION
========================= */

@keyframes floatGlow {

    0% {
        transform: translate(0px, 0px) scale(1);
    }

    50% {
        transform: translate(40px, 20px) scale(1.08);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .testing-hero {
        padding: 120px 6% 70px;
    }

    .testing-hero h1 {
        font-size: 48px;
    }

    .testing-hero p {
        font-size: 16px;
    }

    .testing-grid {
        grid-template-columns: 1fr;
    }

    .test-card {
        min-height: 220px;
        padding: 32px;
    }

    .test-card h3 {
        font-size: 22px;
    }

}