/* ═══════════════════════ SKILLS SECTION ═══════════════════════ */
#skills-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Skills Tabs - Active state styles */
.skills-tab.bg-white.text-\[\#151515\] {
    pointer-events: auto;
}

.skills-tab.bg-white.text-\[\#151515\]:hover {
    border-color: #FFFFFF !important;
    background: #FFFFFF !important;
}

/* Card width - auto for grid on mobile/tablet */
#skills-section .skill-card {
    width: 100%;
    max-width: 100%;
    position: relative;
    isolation: isolate;
}

/* Gradient border effect directly on card using ::before pseudo-element */
#skills-section .skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: radial-gradient(96.25% 96.25% at 89.53% 100%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Responsive icon container size */
#skills-section .skill-card > div:first-child {
    width: 45px !important;
    height: 45px !important;
}

/* Responsive icon image size */
#skills-section .icon-img {
    width: 20px !important;
    height: 20px !important;
}

/* Responsive icon text size */
#skills-section .icon-text {
    font-size: 16px !important;
}

/* Responsive label size */
#skills-section .skill-label {
    font-size: 16px !important;
}

/* Small screens (640px+) */
@media (min-width: 640px) {
    #skills-section .skill-card > div:first-child {
        width: 50px !important;
        height: 50px !important;
    }
    
    #skills-section .icon-img {
        width: 22px !important;
        height: 22px !important;
    }
    
    #skills-section .icon-text {
        font-size: 17px !important;
    }
    
    #skills-section .skill-label {
        font-size: 18px !important;
    }
}

/* Medium screens (768px+) */
@media (min-width: 768px) {
    #skills-section .skill-card > div:first-child {
        width: 55px !important;
        height: 55px !important;
    }
    
    #skills-section .icon-img {
        width: 24px !important;
        height: 24px !important;
    }
    
    #skills-section .icon-text {
        font-size: 18px !important;
    }
    
    #skills-section .skill-label {
        font-size: 20px !important;
    }
}

/* Large screens (1024px+) */
@media (min-width: 1024px) {
    #skills-section .skill-card > div:first-child {
        width: 60px !important;
        height: 60px !important;
    }
    
    #skills-section .icon-img {
        width: 28px !important;
        height: 28px !important;
    }
    
    #skills-section .icon-text {
        font-size: 20px !important;
    }
    
    #skills-section .skill-label {
        font-size: 24px !important;
    }
}

/* Custom xs breakpoint at 480px for 2 columns */
@media (min-width: 480px) {
    .xs\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    /* Center last card if odd number of cards in 2-column grid */
    .skills-grid-mobile .skill-card.last-odd-card {
        grid-column: 1 / -1 !important;
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        justify-self: center !important;
    }
}

/* Fixed width only on lg screens and above for custom row layout */
@media (min-width: 1024px) {
    #skills-section .skill-card {
        width: calc((100% - 84px) / 4);
        flex-shrink: 0;
    }
}

/* FadeIn animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ══════════════════════════════════════════════════════════════
   SKILLS SECTION ANIMATIONS
══════════════════════════════════════════════════════════════ */

/* Only hide elements BEFORE animation starts (controlled by JS) */
#skills-section.before-animation .mb-\[10px\],
#skills-section.before-animation h2,
#skills-section.before-animation .skills-tabs,
#skills-section.before-animation .skills-content-item[data-active="true"] .skill-card {
    opacity: 0;
}

#skills-section.before-animation .mb-\[10px\] {
    transform: translateY(20px);
}

#skills-section.before-animation h2 {
    transform: translateY(20px);
}

#skills-section.before-animation .skills-tabs {
    transform: translateY(20px);
}

#skills-section.before-animation .skills-content-item[data-active="true"] .skill-card {
    transform: translateY(30px) scale(0.95);
}

/* Transitions - always applied */
#skills-section .mb-\[10px\] {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#skills-section h2 {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

#skills-section .skills-tabs {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.2s;
}

#skills-section .skill-card {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger animation for skill cards */
#skills-section .skill-card:nth-child(1) {
    transition-delay: 0.3s;
}

#skills-section .skill-card:nth-child(2) {
    transition-delay: 0.35s;
}

#skills-section .skill-card:nth-child(3) {
    transition-delay: 0.4s;
}

#skills-section .skill-card:nth-child(4) {
    transition-delay: 0.45s;
}

#skills-section .skill-card:nth-child(5) {
    transition-delay: 0.5s;
}

#skills-section .skill-card:nth-child(6) {
    transition-delay: 0.55s;
}

#skills-section .skill-card:nth-child(7) {
    transition-delay: 0.6s;
}

#skills-section .skill-card:nth-child(8) {
    transition-delay: 0.65s;
}

#skills-section .skill-card:nth-child(9) {
    transition-delay: 0.7s;
}

#skills-section .skill-card:nth-child(10) {
    transition-delay: 0.75s;
}

/* Animated state - elements return to normal */
#skills-section.animate-in .mb-\[10px\],
#skills-section.animate-in h2,
#skills-section.animate-in .skills-tabs,
#skills-section.animate-in .skill-card {
    opacity: 1;
    transform: none;
}
