/* ===== SKILLS SECTION - ADVANCED PREMIUM STYLE ===== */
.skills-section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.skills-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.skills-header h2 {
    font-size: 2.9em;
    margin-bottom: 12px;
    color: #0b5ed7;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.22);
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s ease;
}

.skills-header p {
    font-size: 1.05em;
    color: #64748b;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.skills-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* Skill Card */
.skill-box {
    text-align: left;
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 94, 215, 0.08);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(45px) scale(0.96);
}

.skill-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-box:hover::before {
    opacity: 1;
}

.skill-box:hover {
    transform: translateY(-10px);
    box-shadow:
        0 28px 60px rgba(11, 94, 215, 0.14),
        0 0 0 1px rgba(56, 189, 248, 0.10) inset;
}

/* Top */
.skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.skill-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
}

.skill-badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0b5ed7;
    font-weight: 700;
    font-size: 0.9em;
    border: 1px solid rgba(11, 94, 215, 0.08);
}

/* Text */
.skill-box h3 {
    font-size: 1.28em;
    color: #0f172a;
    margin-bottom: 10px;
}

.skill-box p {
    color: #64748b;
    font-size: 0.98em;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Progress */
.skill-track {
    width: 100%;
    height: 12px;
    background: #e8eef7;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 1.4s ease;
    position: relative;
}

.skill-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(50%, -50%);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}

/* Progress Colors */
.skill-fill.blue {
    background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.skill-fill.red {
    background: linear-gradient(90deg, #fb7185, #ef4444);
}

.skill-fill.orange {
    background: linear-gradient(90deg, #fbbf24, #f97316);
}

.skill-fill.green {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.skill-fill.pink {
    background: linear-gradient(90deg, #f472b6, #db2777);
}

/* Matching Icon Colors */
.skill-box:nth-child(1) .skill-icon {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.skill-box:nth-child(2) .skill-icon {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

.skill-box:nth-child(3) .skill-icon {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.skill-box:nth-child(4) .skill-icon {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.24);
}

.skill-box:nth-child(5) .skill-icon {
    background: linear-gradient(135deg, #f472b6, #db2777);
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.24);
}

/* Active animation */
.skills-section.show .skills-header h2 {
    opacity: 1;
    transform: translateY(0);
}

.skills-section.show .skills-header p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.skills-section.show .skill-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skills-section.show .skill-box:nth-child(1) {
    transition-delay: 0.15s;
}

.skills-section.show .skill-box:nth-child(2) {
    transition-delay: 0.28s;
}

.skills-section.show .skill-box:nth-child(3) {
    transition-delay: 0.41s;
}

.skills-section.show .skill-box:nth-child(4) {
    transition-delay: 0.54s;
}

.skills-section.show .skill-box:nth-child(5) {
    transition-delay: 0.67s;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-section {
        padding: 80px 16px;
    }

    .skills-header h2 {
        font-size: 2.1em;
        letter-spacing: 1px;
    }

    .skills-header p {
        font-size: 0.98em;
    }

    .skill-box {
        padding: 24px 18px;
    }

    .skill-icon {
        width: 52px;
        height: 52px;
        font-size: 1.05em;
    }

    .skill-box h3 {
        font-size: 1.15em;
    }
}
