/* Skills Section Styles */
.skills-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/skills-bg-pattern.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.03;
    z-index: 1;
}

.skills-section .container {
    position: relative;
    z-index: 2;
}

.skill-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.skill-card-inner {
    position: relative;
    z-index: 2;
}

.skill-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon-wrapper {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.skill-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-tag {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Technical Expertise Styles */
.tech-category-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-category-card .card-header {
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tech-category-card .card-body {
    padding: 2rem;
}

.skill-meter {
    margin-bottom: 2rem;
}

.skill-info {
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.skill-percentage {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.skill-progress {
    height: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress .progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.skill-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Certification Styles */
.certification-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.certification-card:hover::before {
    transform: scaleX(1);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.certification-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.certification-card:hover .certification-badge {
    transform: scale(1.1);
}

.certification-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.certification-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.certification-year {
    margin-bottom: 1rem;
}

.certification-link .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Technology Timeline Styles */
.tech-timeline {
    position: relative;
    padding: 2rem 0;
}

.tech-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 100px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.year-badge {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 0 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #fff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeline-content:hover .tech-badge {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-timeline::before {
        left: 20px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 3rem;
    }
    
    .timeline-year {
        position: absolute;
        left: -2rem;
        flex: none;
    }
    
    .year-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .skill-card {
        padding: 2rem 1.5rem;
    }
    
    .tech-category-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .skill-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .certification-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
