/* Skills Section Styles */

.skills {
    padding: 5rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.03) 90%);
    z-index: 0;
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: #333;
    z-index: 1;
}

.skills h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.skills-container {
    max-width: 1100px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.skills-category {
    background-color: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.skills-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
}

.skills-category h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.skills-category h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.skill-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    animation: fadeInUp 0.8s forwards;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

.skill-item:nth-child(1) { --delay: 1; }
.skill-item:nth-child(2) { --delay: 2; }
.skill-item:nth-child(3) { --delay: 3; }
.skill-item:nth-child(4) { --delay: 4; }

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-item span {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #444;
    font-size: 1.05rem;
}

.skill-item span::after {
    content: attr(data-percent);
    font-weight: 600;
    color: #3498db;
}

.skill-bar {
    height: 12px;
    background-color: #ecf0f1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 20px;
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.45, 0.1, 1);
}

.skill-level::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 0 20px 20px 0;
}

/* Animation for skill bars */
.skill-item.animate .skill-level {
    animation: skill-fill 1.5s ease-out forwards;
}

@keyframes skill-fill {
    0% {
        width: 0;
    }
    100% {
        width: var(--percent);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skill icons */
.skill-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-icon i {
    font-size: 2.8rem;
    color: #3498db;
    margin-bottom: 0.8rem;
    transition: all 0.4s ease;
}

.skill-icon:hover {
    transform: translateY(-5px);
}

.skill-icon:hover i {
    color: #2980b9;
    transform: scale(1.15);
}

.skill-icon span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Add pulse animation for icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.skill-icon i.pulse {
    animation: pulse 0.8s ease-in-out;
}

/* Certificate section related to skills */
.certificates {
    margin-top: 4rem;
}

.certificates h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.certificate-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.12);
}

.certificate-item i {
    font-size: 2.2rem;
    color: #3498db;
    margin-right: 1.2rem;
}

.certificate-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #333;
}

.certificate-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.certificate-info .date {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skills h2 {
        font-size: 2.2rem;
    }
    
    .skills-category h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 4rem 0;
    }
    
    .skills h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .skills-category {
        padding: 2rem;
    }
    
    .certificate-list {
        grid-template-columns: 1fr;
    }
    
    .skill-icons {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .skills h2 {
        font-size: 1.8rem;
    }
    
    .skills-category {
        padding: 1.5rem;
    }
    
    .skill-icons {
        gap: 1.2rem;
    }
    
    .skill-icon {
        width: 70px;
    }
    
    .skill-icon i {
        font-size: 2.2rem;
    }
    
    .skill-item span {
        font-size: 0.95rem;
    }
} 