/* ================================
   Skills Section Background Animation
================================== */
.skills-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, 
        rgba(100, 255, 218, 0.08) 25%, 
        rgba(0, 200, 255, 0.08) 50%, 
        rgba(255, 100, 200, 0.08) 75%);
    background-size: 200% 200%;
    animation: gradientWaves 12s ease-in-out infinite;
    z-index: 0;
    border-radius: 15px;
    margin: 20px;
    margin-top: 0;
    padding: 80px 0;
}

@keyframes gradientWaves {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Keep content above animation */
.skills-section * {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

/* ================================
   Skills Categories
================================== */
.skills-category {
    margin-bottom: 50px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* ================================
   Grids
================================== */
.full-width-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    outline: none;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    outline: none;
}

/* ================================
   Skill Card
================================== */
.skill-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 20%;
    width: 100%;
    aspect-ratio: 1/1;
    margin: 0 auto;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    outline: none;
}

/* Subtle glossy overlay */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.08) 100%);
    z-index: 1;
    pointer-events: none;
        outline: none;
}

/* Glossy shine sweep effect */
.skill-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.skill-card:hover::after {
    left: 125%;
}

/* Hover floating effect */
.skill-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

/* ================================
   Icon + Title
================================== */
.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    z-index: 3;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.skill-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 3;
    text-align: center;
}

/* ================================
   Animations
================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }

/* ================================
   Responsive
================================== */
@media (max-width: 1024px) {
    .full-width-grid { grid-template-columns: repeat(4, 1fr); }
    .soft-skills-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .full-width-grid { grid-template-columns: repeat(3, 1fr); }
    .soft-skills-grid { grid-template-columns: repeat(3, 1fr); }
    .skill-icon { font-size: 2rem; }
    .skill-card h4 { font-size: 13px; }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }
    .skills-category h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .full-width-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .soft-skills-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 1.8rem; }
    .skills-section { padding: 40px 20px; }
}
