/* ============================================
 * PROJECTS PAGE STYLES
 * ============================================ */

.projects-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 60px;
}

.projects-page-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: rgba(243, 156, 18, 0.1);
}

@media (hover: hover) {
    .back-link:hover {
        background: #f39c12;
        color: #fff;
        transform: translateX(-5px);
    }

    .back-link:hover svg {
        transform: translateX(-3px);
    }
}

.back-link svg {
    transition: transform 0.3s ease;
}

.projects-page-header h1 {
    font-size: 3rem;
    color: #222;
    background: linear-gradient(135deg, #f39c12, #e67e22, #ff3535);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* All Projects Grid */
.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.project-card-full {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    animation: projectCardFadeIn 0.6s ease forwards;
}

@keyframes projectCardFadeIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Stagger the animations */
.project-card-full:nth-child(1) { animation-delay: 0.1s; }
.project-card-full:nth-child(2) { animation-delay: 0.2s; }
.project-card-full:nth-child(3) { animation-delay: 0.3s; }
.project-card-full:nth-child(4) { animation-delay: 0.4s; }
.project-card-full:nth-child(5) { animation-delay: 0.5s; }
.project-card-full:nth-child(6) { animation-delay: 0.6s; }

@media (hover: hover) {
    .project-card-full:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(243, 156, 18, 0.15);
    }

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

    .project-card-full:hover .project-content h3 {
        color: #f39c12;
    }
}

/* Dark Mode Adjustments for Projects Page */
body.dark .projects-page-header h1 {
    background: linear-gradient(135deg, #FFD700, #f1c40f, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark .back-link {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

@media (hover: hover) {
    body.dark .back-link:hover {
        background: #FFD700;
        color: #222;
    }
}

body.dark .projects-subtitle {
    color: #bbb;
}

body.dark .project-card-full {
    background: #222;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

body.dark .project-card-full:hover {
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

/* Responsive Design for Projects Page */
@media (max-width: 1024px) {
    .projects-page-container {
        padding: 100px 30px 50px;
    }

    .projects-page-header h1 {
        font-size: 2.5rem;
    }

    .all-projects-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-page-container {
        padding: 90px 20px 40px;
    }

    .projects-page-header {
        margin-bottom: 40px;
    }

    .projects-page-header h1 {
        font-size: 2rem;
    }

    .projects-subtitle {
        font-size: 1rem;
    }

    .back-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .all-projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card-full .project-content {
        padding: 20px;
    }

    .project-card-full .project-content h3 {
        font-size: 1.15rem;
    }

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

    .project-card-full .project-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .projects-page-container {
        padding: 80px 15px 30px;
    }

    .projects-page-header h1 {
        font-size: 1.7rem;
    }

    .projects-subtitle {
        font-size: 0.95rem;
    }

    .all-projects-grid {
        gap: 20px;
    }

    .project-card-full .project-image {
        height: 160px;
    }

    .project-card-full .project-content {
        padding: 18px;
    }

    .project-card-full .project-content h3 {
        font-size: 1.05rem;
    }

    .project-card-full .project-content p {
        font-size: 0.9rem;
    }
}
