:root {
    --primary-color: #F9BF15;
    --text-color: #333;
    --background-color: #f5f5f5;

    --btn-color: #F9BF15;
    --btn-color-hover: #ffd34d;

    --font-family: 'Poppins', sans-serif;
}

.projects {
    padding: 80px 20px 30px 20px;
    text-align: center;
}

/* HEADER */
.projects-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.projects-header p {
    color: #666;
    margin-bottom: 0px;
}

/* GRID */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.project-card {
    position: relative;
    overflow: hidden;

    border-radius: 14px;
    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.project-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;

    transition: 0.4s ease;
}

/* HOVER */
.project-card:hover img {
    transform: scale(1.1);
}

/* INFO */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;

    padding: 15px;
    text-align: left;
}

.project-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.project-info span {
    font-size: 12px;
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .project-card img {
        height: 260px;
    }

    .projects-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card img {
        height: 220px;
    }

    .projects-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 200px;
    }

    .projects-header h2 {
        font-size: 22px;
    }
}

/* MODAL BACKDROP */
.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;
    z-index: 3000;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

/* MODAL BOX */
.project-modal-content {
    background: #fff;
    width: 90%;
    max-width: 750px;

    border-radius: 16px;
    padding: 20px;

    position: relative;

    transform: scale(0.9);
    transition: 0.3s ease;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-modal.active .project-modal-content {
    transform: scale(1);
}

/* SLIDER WRAPPER */
.slider {
    position: relative;
    width: 100%;
}

/* IMAGE */
.slider img {
    width: 100%;
    height: 420px;
    object-fit:contain;
    border-radius: 12px;
}

/* NAV BUTTONS */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.5);
    color: #0e0e0e;

    display: flex;
    justify-content: center;
    align-items: center;

    border: none;
    font-size: 22px;

    width: 42px;
    height: 42px;
    border-radius: 50%;

    cursor: pointer;

    transition: 0.3s ease;
}

.prev:hover,
.next:hover {
    background: var(--primary-color);
    color: #000;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* CLOSE BUTTON */
.project-close {
    position: absolute;
    top: 10px;
    background: rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    right: 12px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;

    font-size: 26px;
    cursor: pointer;

    color: #333;
}

/* TEXT */
.project-modal-content h3 {
    margin-top: 15px;
    font-size: 20px;
}

.project-modal-content p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}