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


.projects-hero {
    background-color: var(--bg-main);
    text-align: center;
    padding: 90px 0 50px;
}

.projects-hero h1 {
    font-size: var(--h1-size);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.projects-hero p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.projects-grid-section {
    background-color: var(--bg-main);
    padding: 20px 0 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;

    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    overflow: hidden;

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.project-card img {
    width: 100%;
    max-width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.project-info {
    min-width: 0;
}

.project-info h3 {
    font-size: var(--h3-size);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.featured-project {
    background-color: var(--bg-card);
    padding: 100px 0;
}

.featured-project-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px; max-width: 1100px; margin: 0 auto;
}

.featured-image {
    flex: 1;
}

.featured-image img {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.featured-text {
    flex: 1; text-align: center;
}

.featured-text h2 {
    font-size: var(--h2-size);
    color: var(--text-primary);
    margin-bottom: 18px;
}

.featured-text p {
    color: var(--text-secondary);
    margin: 0 auto 18px;
    max-width: 520px;
}

.featured-text .btn {
    margin-top: 8px;
}

/* =========================
   PROJECTS PAGE RESPONSIVE
========================= */

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .featured-project-layout {
        flex-direction: column;
        text-align: center;
    }

    .featured-text p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 70px 0 40px;
    }

    .projects-hero h1 {
        font-size: 36px;
    }

    .projects-hero p {
        font-size: 16px;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
    }

    .project-card img {
        width: 100%;
        height: auto;
    }

    .featured-project {
        padding: 70px 0;
    }

    .featured-text h2 {
        font-size: 28px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-hero h1 {
        font-size: 30px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 18px;
    }

    .featured-text h2 {
        font-size: 24px;
    }
}