:root {

    --bg-primary: #05070d;
    --bg-secondary: #0b1119;

    --cyan: #00c8ff;

    --text-primary: #f4f8fc;
    --text-secondary: #a8bac7;

    --border: rgba(0, 200, 255, 0.08);

    --radius: 24px;
}

/* ========================= */
/* BODY */
/* ========================= */

body {
    background:
        radial-gradient(circle at top right,
            rgba(0, 200, 255, 0.08),
            transparent 30%),
        linear-gradient(to bottom,
            #05070d,
            #09111a);

    color: var(--text-primary);

    font-family: 'Inter', sans-serif;

    overflow-x: hidden;
}

/* ========================= */
/* MAIN GRID */
/* ========================= */

main {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(340px, 1fr));

    gap: 35px;

    padding: 140px 60px 120px;

    max-width: 1600px;

    margin: auto;
}

/* ========================= */
/* CARD */
/* ========================= */

.card {
    position: relative;

    background:
        rgba(10, 16, 26, 0.92);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding: 38px;

    overflow: hidden;

    backdrop-filter: blur(12px);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* ========================= */
/* TOP GLOW */
/* ========================= */

.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(0, 200, 255, 0.8),
            transparent);

    opacity: 0.4;
}

/* ========================= */
/* HOVER */
/* ========================= */

.card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(0, 200, 255, 0.25);

    box-shadow:
        0 0 30px rgba(0, 200, 255, 0.08),
        0 0 60px rgba(0, 200, 255, 0.04);
}

/* ========================= */
/* TITLES */
/* ========================= */

.card h2 {
    font-size: 1.7rem;

    line-height: 1.3;

    margin-bottom: 18px;

    color: var(--text-primary);
}

/* ========================= */
/* TEXT */
/* ========================= */

.card p {
    color: var(--text-secondary);

    font-size: 1rem;

    line-height: 1.9;

    margin-bottom: 28px;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.card button {
    background: var(--cyan);

    color: #031018;

    border: none;

    padding: 14px 22px;

    border-radius: 12px;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.25);
}

/* ========================= */
/* README */
/* ========================= */

.readme {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    margin-top: 0;

    color: #90a5b3;

    line-height: 1.9;

    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        margin-top 0.35s ease;
}

/* ========================= */
/* EXPANDED */
/* ========================= */

.card.expanded .readme {
    max-height: 1200px;

    opacity: 1;

    margin-top: 28px;
}

/* ========================= */
/* README STYLE */
/* ========================= */

.readme strong {
    color: #dce8f2;
}

.readme ul {
    margin-top: 18px;
    margin-left: 20px;
}

.readme li {
    margin-bottom: 12px;
}

/* ========================= */
/* VOLVER BUTTON */
/* ========================= */

.volver {
    position: fixed;

    bottom: 30px;
    left: 30px;

    padding: 14px 20px;

    border-radius: 14px;

    background:
        rgba(0, 200, 255, 0.08);

    border:
        1px solid rgba(0, 200, 255, 0.15);

    color: #dce8f2;

    text-decoration: none;

    font-weight: 600;

    backdrop-filter: blur(10px);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.volver:hover {
    background:
        rgba(0, 200, 255, 0.15);

    transform: translateY(-3px);
}

/* ========================= */
/* FOOTER */
/* ========================= */

footer {
    text-align: center;

    padding: 50px 20px;

    color: #8ea5b2;

    border-top:
        1px solid rgba(0, 200, 255, 0.08);

    background:
        #04070d;
}

/* ========================= */
/* ANIMATION */
/* ========================= */

.card {
    animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 768px) {

    main {
        padding:
            120px 25px 100px;

        gap: 25px;
    }

    .card {
        padding: 30px;
    }

    .card h2 {
        font-size: 1.45rem;
    }

    .card p,
    .readme {
        font-size: 0.95rem;
    }

    .volver {
        left: 20px;
        bottom: 20px;
    }
}

.services-header{
    padding:80px 24px 0;
    text-align:center;
}

.services-header span{
    color:var(--cyan);
    font-size:.72rem;
    font-weight:800;
    letter-spacing:2.5px;
}

.services-header h1{
    margin:10px 0;
    font-size:clamp(2.2rem,5vw,4rem);
}

.services-header p{
    color:var(--text-secondary);
}
