/* Experience Section Styles */
.experience-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2196F3, #E91E63);
    border-radius: 3px;
}

/* Skills Container */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skill Category Card */
.skill-category {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.skill-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    text-align: center;
}

.skill-header h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
}

/* Group Header Styles */
.group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.group-header h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* Skill Content */
.skill-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.skill-group {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge Styles */
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.skill-badges img {
    height: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
}

.skill-badges img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Soft Skills Specific Styling */
.soft-skills {
    padding: 10px 0;
}

.soft-skills img {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-category {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.skill-category:nth-child(1) { animation-delay: 0.2s; }
.skill-category:nth-child(2) { animation-delay: 0.4s; }
.skill-category:nth-child(3) { animation-delay: 0.6s; }
.skill-category:nth-child(4) { animation-delay: 0.8s; }

/* Background Pattern */
.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f5f5f5 25%, transparent 25%),
                linear-gradient(-45deg, #f5f5f5 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f5f5f5 75%),
                linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    z-index: 0;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-container {
        gap: 20px;
        padding: 0 15px;
    }

    .skill-category {
        padding: 25px;
    }

    .skill-badges img {
        height: 26px;
    }
}

@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .skill-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .experience-section {
        padding: 60px 0;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-badges img {
        height: 24px;
    }

    .group-header {
        flex-direction: row;
        gap: 8px;
    }

    .group-header h4 {
        font-size: 1rem;
    }

    .header-content {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .skill-badges {
        gap: 8px;
    }

    .skill-badges img {
        height: 22px;
    }

    .header-content {
        flex-direction: column;
        gap: 8px;
    }

    .group-header {
        flex-direction: row;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skill-category,
    .skill-badges img {
        animation: none;
        transition: none;
    }
}

/* Focus States */
.skill-badges img:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.skill-category + .skill-category {
    margin-top: 20px;
}

.skill-badges {
    padding: 5px 0;
    margin: 0 auto;
    max-width: 100%;
}

.skill-category {
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(33, 150, 243, 0.1),
        rgba(233, 30, 99, 0.1)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 20px;
}

.skill-category:hover::before {
    opacity: 1;
}

/* Lord Icon container styles */
lord-icon {
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

.group-header lord-icon {
    min-width: 30px; 
}

.header-content lord-icon {
    min-width: 60px; 
}

lord-icon:hover {
    transform: scale(1.1) translateY(-1px);
}
.skill-header h3 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.group-header h4 {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
}

/* Badge hover animation */
.skill-badges img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-badges img:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Loading animation for badges */
.skill-badges img {
    opacity: 0;
    animation: fadeInBadge 0.5s ease forwards;
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger badge animations */
.skill-badges img:nth-child(1) { animation-delay: 0.1s; }
.skill-badges img:nth-child(2) { animation-delay: 0.2s; }
.skill-badges img:nth-child(3) { animation-delay: 0.3s; }
.skill-badges img:nth-child(4) { animation-delay: 0.4s; }
.skill-badges img:nth-child(5) { animation-delay: 0.5s; }

/* Print styles */
@media print {
    .experience-section {
        padding: 20px 0;
    }

    .skill-category {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
    }

    .skill-badges img {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

@media (prefers-contrast: high) {
    .skill-category {
        border: 2px solid #000;
    }

    .skill-header {
        border-bottom: 2px solid #000;
    }

    .section-title::after {
        background: #000;
    }
}


@media (hover: none) {
    .skill-category:hover {
        transform: none;
    }

    .skill-badges img:hover {
        transform: none;
        box-shadow: none;
    }
}

