/* ===== SKILLS SECTION FIX - GRID LAYOUT WITH HOVER EFFECTS ===== */


/* Skills Section Container */

.skills {
    padding: 80px 5%;
    background: linear-gradient(135deg, #0a0612 0%, #1a1029 50%, #0d0819 100%);
    position: relative;
    overflow: hidden;
}


/* Section Header - Skills Title */

.skills .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.skills .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.skills .section-title:hover {
    transform: scale(1.02);
}

.skills .section-title span {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.skills .section-title:hover span {
    filter: brightness(1.2);
}

.skills .section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}


/* Experience Summary - Stats Grid */

.skills .experience-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.skills .exp-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.skills .exp-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.15);
}

.skills .exp-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(254, 202, 87, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills .exp-card:hover .exp-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.skills .exp-icon i {
    font-size: 1.5rem;
    color: #ff6b6b;
    transition: transform 0.3s ease;
}

.skills .exp-card:hover .exp-icon i {
    transform: scale(1.1);
}

.skills .exp-content {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.skills .exp-card:hover .exp-content {
    transform: translateX(5px);
}

.skills .exp-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.skills .exp-card:hover .exp-number {
    color: #ff6b6b;
}

.skills .exp-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}


/* Skill Category Sections - Grid Layout */

.skills .skill-category-section {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.skills .category-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    transition: border-color 0.3s ease;
}

.skills .category-section-header:hover {
    border-color: rgba(255, 107, 107, 0.5);
}

.skills .category-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills .category-section-header:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.skills .category-icon.frontend {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.skills .category-icon.backend {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.skills .category-icon.database {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.skills .category-icon.tools {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.skills .category-icon.aiml {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.skills .category-icon i {
    font-size: 1.3rem;
    color: #ffffff;
}

.skills .category-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
}

.skills .category-section-header:hover .category-info h3 {
    color: #ff6b6b;
}

.skills .category-level {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}


/* Skill Cards Grid */

.skills .skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.skills .skill-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 1rem;
    align-items: start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}


/* Hover background effect */

.skills .skill-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.05), transparent);
    transition: left 0.4s ease;
    z-index: 0;
}

.skills .skill-detail-card:hover::before {
    left: 100%;
}

.skills .skill-detail-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skills .skill-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1;
}

.skills .skill-detail-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 107, 107, 0.15);
}

.skills .skill-icon i {
    font-size: 1.5rem;
    color: #ff6b6b;
    transition: color 0.3s ease, transform 0.3s ease;
}

.skills .skill-detail-card:hover .skill-icon i {
    color: #feca57;
    transform: scale(1.1);
}

.skills .skill-info {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.skills .skill-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem;
    transition: color 0.3s ease;
}

.skills .skill-detail-card:hover .skill-info h4 {
    color: #ff6b6b;
}

.skills .skill-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.skills .skill-detail-card:hover .skill-info p {
    color: rgba(255, 255, 255, 0.8);
}

.skills .skill-level {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.skills .level-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skills .level-badge.expert {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.skills .skill-detail-card:hover .level-badge.expert {
    background: rgba(255, 107, 107, 0.25);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.skills .level-badge.advanced {
    background: rgba(254, 202, 87, 0.15);
    color: #feca57;
    border: 1px solid rgba(254, 202, 87, 0.3);
}

.skills .skill-detail-card:hover .level-badge.advanced {
    background: rgba(254, 202, 87, 0.25);
    box-shadow: 0 0 15px rgba(254, 202, 87, 0.3);
}

.skills .level-badge.intermediate {
    background: rgba(0, 210, 211, 0.15);
    color: #00d2d3;
    border: 1px solid rgba(0, 210, 211, 0.3);
}

.skills .skill-detail-card:hover .level-badge.intermediate {
    background: rgba(0, 210, 211, 0.25);
    box-shadow: 0 0 15px rgba(0, 210, 211, 0.3);
}

.skills .level-badge.learning {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.skills .skill-detail-card:hover .level-badge.learning {
    background: rgba(155, 89, 182, 0.25);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}


/* Completed Section Tags Grid */

.skills .completed-section {
    margin-top: 2rem;
    padding: 0 1rem;
}

.skills .completed-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.skills .completed-title:hover {
    transform: translateX(5px);
}

.skills .completed-title i {
    color: #feca57;
    transition: transform 0.3s ease;
}

.skills .completed-title:hover i {
    transform: scale(1.2);
}

.skills .completed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skills .completed-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skills .completed-tag:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.4);
}

.skills .completed-tag i {
    color: #ff6b6b;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.skills .completed-tag:hover i {
    transform: rotate(360deg);
}


/* Learning Section Tags Grid */

.skills .learning-section {
    margin-top: 2rem;
    padding: 0 1rem;
}

.skills .learning-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.skills .learning-title:hover {
    transform: translateX(5px);
}

.skills .learning-title i {
    color: #00d2d3;
    transition: transform 0.3s ease;
}

.skills .learning-title:hover i {
    transform: scale(1.2);
}

.skills .learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skills .learning-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 210, 211, 0.1);
    border: 1px solid rgba(0, 210, 211, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skills .learning-tag:hover {
    background: rgba(0, 210, 211, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 210, 211, 0.25);
    border-color: rgba(0, 210, 211, 0.4);
}

.skills .learning-icon {
    color: #00d2d3;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.skills .learning-tag:hover .learning-icon {
    transform: rotate(360deg);
}


/* Responsive Grid */

@media (max-width: 768px) {
    .skills .skill-cards-grid {
        grid-template-columns: 1fr;
    }
    .skills .experience-summary {
        grid-template-columns: 1fr;
    }
    .skills .category-section-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .skills .skill-detail-card {
        grid-template-columns: 40px 1fr;
    }
    .skills .skill-level {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
}