
/* Projects Page Styles */
.projects-page {
    position: absolute;
    top: 100px;
    left: 200px;
    width: 120vh;
    background: #181717;
    height: 80vh;
    border-radius: 10px;
    overflow: scroll;
    box-shadow: 0 0 7px black;
    padding-bottom: 60px;
}

.project-heroPage {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    padding: 2rem;
}

.project-card {
    background: #1e1e1e;
    border-radius: 8px;
    height: 450px;
    overflow: hidden;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-img:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.slideshow-container {
    width: 100%;
    height: 200px;
    position: relative;
}

.slide, .slide-four {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.slide:first-child {
    display: block;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-desc {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: #2a2a2a;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #fff;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.project-btn:hover {
    opacity: 0.8;
}

.demo-btn {
    background: #2ea043;
    color: white;
}

.github-btn {
    background: #333;
    color: white;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .projects-page {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .projects-section {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 100%;
    }

    .project-content {
        padding: 15px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .project-heroPage {
        padding: 10px;
    }

    .project-links {
        flex-direction: column;
    }

    .project-btn {
        width: 100%;
        text-align: center;
    }

    .tech-stack {
        gap: 5px;
    }

    .tech-badge {
        font-size: 0.75rem;
    }
}
