/* Projects Section */
.projects {
    padding: 100px 8%;
    background-color: #0a0a0a;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-top {
    margin-bottom: 60px;
    text-align: left;
}

/* Slider Wrapper */
.projects-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.projects-track-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.projects-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Project Card */
.project-card {
    min-width: calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    background: #111;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.15);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: crop;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.view-project-btn {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
    border: 1px solid transparent;
}

.view-project-btn:hover {
    background: transparent;
    color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

.view-project-btn .arrow {
    transition: transform 0.3s ease;
}

.view-project-btn:hover .arrow {
    transform: translate(3px, -3px);
}

/* Slider Buttons */
.slider-btn {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination Dots */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
    width: 25px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1100px) {
    .project-card {
        min-width: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 992px) {
    .projects {
        padding: 60px 16px 40px; /* Consistent padding */
    }

    .projects-top {
        margin-bottom: 32px;
        text-align: center;
    }

    .projects-slider-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .projects-track-container {
        width: 100%;
        overflow: hidden;
        padding: 10px 0;
    }

    .projects-track {
        gap: 0;
    }

    .project-card {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    .slider-btn {
        display: none;
    }

    .project-info {
        padding: 24px 20px;
        text-align: center;
    }

    .project-info h3 {
        font-size: 1.35rem;
    }

    .tech-stack {
        justify-content: center;
    }
}