/*
=====================================================
KP Portfolio Theme - Skills Page Styles
=====================================================
Version: 2.0
Description: Complete styles for Skills page template
*/

/* ==================== SKILLS HERO ==================== */

.skills-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.skills-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.skills-hero .hero-container {
    position: relative;
    z-index: 2;
}

.skills-hero .hero-subtitle {
    opacity: 0.9;
}

.skills-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    animation: rotateBackground 30s linear infinite;
    opacity: 0.3;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==================== SKILLS FILTER ==================== */

.skills-filter {
    padding: 40px 0;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--light-card);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== SKILLS GRID ==================== */

.skills-grid {
    padding: 80px 0;
    background: transparent;
}

.skill-item {
    transition: all 0.3s ease;
}

.skill-item.hidden {
    opacity: 0;
    transform: scale(0.8);
}

/* ==================== SKILL CARDS ==================== */

.skill-card-detailed {
    background: var(--light-card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.skill-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    transition: height 0.3s ease;
}

.skill-card-detailed:hover::before {
    height: 100%;
}

.skill-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ==================== SKILL HEADER ==================== */

.skill-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-card-detailed:hover .skill-icon-wrapper {
    transform: rotate(5deg) scale(1.05);
}

.skill-icon {
    font-size: 2rem;
    color: white;
}

.skill-info {
    flex: 1;
}

.skill-title {
    color: var(--text-primary);
    font-weight: 700;
}

.skill-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.skill-level-badge {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-card-detailed:hover .skill-level-badge {
    transform: scale(1.05);
}

.skill-years {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ==================== SKILL DESCRIPTION ==================== */

.skill-description {
    margin-bottom: 1.5rem;
}

.skill-description p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==================== PROFICIENCY BAR ==================== */

.proficiency-bar {
    margin-bottom: 1rem;
}

.proficiency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.proficiency-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 600;
}

.proficiency-percent {
    color: var(--primary-color);
    font-weight: 700;
}

.progress-bar-bg {
    background: var(--light-surface);
    height: 8px;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ==================== SKILL CATEGORIES ==================== */

.skill-categories {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-surface);
}

.skill-category-tag {
    display: inline-block;
    background: var(--light-surface);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* ==================== SKILLS SUMMARY ==================== */

.skills-summary {
    padding: 80px 0;
    background: var(--light-surface);
}

.category-card {
    background: var(--light-card);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-title {
    color: var(--text-primary);
}

.category-desc {
    color: var(--text-secondary);
}

.category-count-wrapper {
    background: var(--light-surface);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.category-count-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.category-count-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    display: block;
}

/* ==================== CTA SECTION ==================== */

.skills-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-title {
    color: white;
    font-weight: 700;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cta-btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: white;
    color: var(--primary-color);
}

.cta-btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 991px) {
    .skills-hero {
        padding: 80px 0 60px !important;
    }

    .filter-buttons {
        padding: 0 1rem;
    }

    .skill-card-detailed {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .skills-hero {
        padding: 80px 0 60px;
    }

    .skills-filter,
    .skills-grid,
    .skills-summary,
    .skills-cta {
        padding: 60px 0;
    }

    .skills-hero h1 {
        font-size: 2.5rem !important;
    }

    .filter-btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.875rem !important;
        margin: 0.25rem !important;
    }

    .skill-header {
        flex-direction: column;
        text-align: center;
    }

    .skill-icon-wrapper {
        margin: 0 auto !important;
    }

    .skill-meta {
        justify-content: center;
    }

    .category-card {
        padding: 1.5rem !important;
    }

    .category-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .category-icon i {
        font-size: 1.5rem !important;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

@media (max-width: 575px) {
    .skills-hero h1 {
        font-size: 2rem !important;
    }

    .skill-card-detailed {
        padding: 1.5rem !important;
    }

    .skill-icon-wrapper {
        width: 60px !important;
        height: 60px !important;
    }

    .skill-icon {
        font-size: 1.5rem !important;
    }

    .skill-title {
        font-size: 1.125rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */

.filter-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skill-card-detailed:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */

@media print {

    .skills-hero,
    .skills-filter,
    .skills-cta {
        display: none !important;
    }

    .skill-card-detailed,
    .category-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .progress-bar-fill::after {
        display: none;
    }
}

/* ==================== DARK MODE SUPPORT ==================== */
.dark-mode .skill-card-detailed,
.dark-mode .category-card,
.dark-mode .filter-btn {
    background: var(--dark-card) !important;
}

.dark-mode .skill-title,
.dark-mode .category-title {
    color: var(--text-light) !important;
}

.dark-mode .skill-description p,
.dark-mode .category-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-mode .progress-bar-bg {
    background: rgba(255, 255, 255, 0.1) !important;
}
