/* =========================
   SKILLS HERO
========================= */

.skills-hero{

    min-height: 40vh;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding:
    140px 10% 80px;

    position: relative;

    overflow: hidden;
}

/* =========================
   HERO GLOW
========================= */

.skills-hero::before{

    content: '';

    position: absolute;

    width: 450px;
    height: 450px;

    background:
    rgba(103,232,249,0.08);

    filter: blur(140px);

    top: -180px;
    left: -180px;

    z-index: -1;
}

.skills-hero::after{

    content: '';

    position: absolute;

    width: 400px;
    height: 400px;

    background:
    rgba(139,92,246,0.08);

    filter: blur(140px);

    bottom: -180px;
    right: -180px;

    z-index: -1;
}

/* =========================
   TITLE
========================= */

.skills-title{

    max-width: 760px;
}

.skills-title h1{

    font-size: 72px;

    line-height: 1.1;

    margin-bottom: 24px;

    font-weight: 700;

    background:
    linear-gradient(
        to right,
        var(--primary-color),
        var(--secondary-color)
    );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

.skills-title p{

    font-size: 20px;

    line-height: 1.8;

    color: var(--text-secondary);
}

/* =========================
   MAIN SECTION
========================= */

.skills-section{

    padding: 80px 10% 120px;

    position: relative;

    overflow: visible;
}

/* =========================
   GLOW EFFECTS
========================= */

.skills-section::before{

    content: '';

    position: absolute;

    width: 420px;
    height: 420px;

    background:
    rgba(103,232,249,0.08);

    filter: blur(120px);

    top: 0;
    left: -150px;

    z-index: -1;
}

.skills-section::after{

    content: '';

    position: absolute;

    width: 380px;
    height: 380px;

    background:
    rgba(139,92,246,0.08);

    filter: blur(120px);

    bottom: 0;
    right: -120px;

    z-index: -1;
}

/* =========================
   SEARCH BAR
========================= */

.skills-search{

    display: flex;

    justify-content: center;

    margin-bottom: 70px;
}

.skills-search input{

    width: 450px;

    padding: 18px 24px;

    border-radius: 18px;

    border:
    1px solid var(--border-color);

    background:
    rgba(255,255,255,0.04);

    color: var(--text-color);

    font-size: 16px;

    outline: none;

    transition: 0.4s ease;

    backdrop-filter: blur(10px);
}

/* INPUT FOCUS */

.skills-search input:focus{

    border-color:
    var(--primary-color);

    box-shadow:
    0 0 25px var(--glow-color);
}

/* PLACEHOLDER */

.skills-search input::placeholder{

    color: #94a3b8;
}

/* =========================
   GRID
========================= */

.skills-grid{

    display: grid;

    gap: 55px;

    margin-top: 20px;
}

/* =========================
   CATEGORY BOX
========================= */

.skill-category{

    background:
    var(--card-bg);

    border:
    1px solid var(--border-color);

    border-radius: 30px;

    padding: 45px;

    backdrop-filter: blur(14px);

    transition: 0.45s ease;

    position: relative;

    overflow: visible;
}

/* CATEGORY GLOW */

.skill-category::before{

    content: '';

    position: absolute;

    width: 260px;
    height: 260px;

    background:
    rgba(103,232,249,0.08);

    border-radius: 50%;

    filter: blur(100px);

    top: -120px;
    right: -120px;

    z-index: -1;
}

/* CATEGORY HOVER */

.skill-category:hover{

    transform:
    translateY(-10px);

    border-color:
    rgba(103,232,249,0.4);

    box-shadow:
    0 0 35px rgba(103,232,249,0.16);
}

/* =========================
   CATEGORY TITLE
========================= */

.skill-category h2{

    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 34px;

    margin-bottom: 40px;

    color: var(--primary-color);

    font-weight: 600;
}

.skill-category h2 i{

    font-size: 34px;
}

/* =========================
   SKILL GRID
========================= */

.skill-items{

    display: grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap: 28px;

    overflow: visible;
}

/* =========================
   SKILL CARD
========================= */

.skill-card{

    position: relative;

    overflow: visible;

    background:
    rgba(255,255,255,0.03);

    border:
    1px solid var(--border-color);

    border-radius: 22px;

    padding: 32px 22px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 16px;

    min-height: 170px;

    transition: 0.45s ease;

    backdrop-filter: blur(12px);
}

/* CARD GLOW */

.skill-card::before{

    content: '';

    position: absolute;

    inset: 0;

    border-radius: 22px;

    background:
    linear-gradient(
        135deg,
        rgba(103,232,249,0.06),
        rgba(139,92,246,0.03)
    );

    opacity: 0;

    transition: 0.45s ease;

    z-index: -1;
}

/* ICON */

.skill-card i{

    font-size: 50px;

    color: var(--primary-color);

    transition: 0.45s ease;
}

/* TEXT */

.skill-card span{

    font-size: 17px;

    font-weight: 500;

    color: var(--text-color);

    text-align: center;

    line-height: 1.5;
}

/* HOVER */

.skill-card:hover{

    transform:
    translateY(-10px)
    scale(1.04);

    border-color:
    rgba(103,232,249,0.4);

    box-shadow:
    0 0 28px rgba(103,232,249,0.18);
}

/* CARD HOVER GLOW */

.skill-card:hover::before{

    opacity: 1;
}

/* ICON HOVER */

.skill-card:hover i{

    color: var(--secondary-color);

    transform:
    scale(1.15)
    rotate(5deg);
}

/* =========================
   TOOLTIP SYSTEM
========================= */

.skill-card::after{

    content: attr(data-tooltip);

    position: absolute;

    left: 50%;

    top: 110%;

    transform:
    translateX(-50%);

    background:
    rgba(15,23,42,0.96);

    color: #f8fafc;

    padding: 12px 16px;

    border-radius: 14px;

    font-size: 13px;

    font-weight: 500;

    width: 240px;

    text-align: center;

    line-height: 1.6;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: 0.35s ease;

    z-index: 9999;

    border:
    1px solid rgba(103,232,249,0.2);

    box-shadow:
    0 10px 35px rgba(0,0,0,0.35);
}

/* SHOW TOOLTIP */

.skill-card:hover::after{

    opacity: 1;

    visibility: visible;

    top: 115%;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .skills-title h1{

        font-size: 58px;
    }

    .skill-category{

        padding: 38px;
    }

    .skill-items{

        grid-template-columns:
        repeat(auto-fit,minmax(160px,1fr));
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .skills-hero{

        padding:
        130px 8% 70px;
    }

    .skills-title h1{

        font-size: 44px;
    }

    .skills-title p{

        font-size: 17px;
    }

    .skills-section{

        padding:
        60px 8% 100px;
    }

    .skills-search{

        margin-bottom: 50px;
    }

    .skills-search input{

        width: 100%;
    }

    .skill-category{

        padding: 30px;
    }

    .skill-category h2{

        font-size: 26px;

        margin-bottom: 30px;
    }

    .skill-category h2 i{

        font-size: 28px;
    }

    .skill-items{

        grid-template-columns:
        repeat(auto-fit,minmax(130px,1fr));

        gap: 20px;
    }

    .skill-card{

        min-height: 140px;

        padding: 24px 16px;
    }

    .skill-card i{

        font-size: 40px;
    }

    .skill-card span{

        font-size: 14px;
    }

    .skill-card::after{

        width: 200px;

        font-size: 12px;
    }
}