/* Projects Section */
.projects {
    width: auto;
    height: fit-content;
    margin: 60px auto;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
}

.projects h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.projects>p {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Slider Container */
.projects-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.projects-slider {
    display: flex;
    gap: 25px;
    animation: autoSlide 30s linear infinite;
    width: max-content;
}

.projects-slider:hover {
    animation-play-state: paused;
}

/* Auto-slide Animation */
@keyframes autoSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Project Card */
.project-card {
    min-width: 320px;
    max-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Project Image */
.project-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image i {
    opacity: 0.3;
}

/* Project Content */
.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 12px;
    font-weight: bold;
}

.project-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: #f0f0f0;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
    gap: 12px;
}

.project-link i {
    font-size: 0.9em;
}

/* Progress Indicator */
.slider-progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: progress 30s linear infinite;
    border-radius: 2px;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* View All Button */
.view-all-projects {
    text-align: center;
    margin-top: 30px;
}

.view-all-projects a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.view-all-projects a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .projects h2 {
        font-size: 2em;
    }

    .projects>p {
        font-size: 1em;
    }

    .project-card {
        min-width: 280px;
        max-width: 280px;
    }

    .project-image {
        height: 180px;
        font-size: 2.5em;
    }

    .project-content {
        padding: 15px;
    }

    .project-card h3 {
        font-size: 1.2em;
    }

    .projects-slider {
        animation-duration: 25s;
    }

    .progress-bar {
        animation-duration: 25s;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 20px 10px;
        margin: 40px 10px;
    }

    .projects h2 {
        font-size: 1.6em;
    }

    .project-card {
        min-width: 260px;
        max-width: 260px;
    }

    .project-image {
        height: 160px;
        font-size: 2em;
    }

    .projects-slider {
        animation-duration: 20s;
    }

    .progress-bar {
        animation-duration: 20s;
    }

    .view-all-projects a {
        padding: 12px 30px;
        font-size: 1em;
    }
}