/* GRID CONTAINER */
.container {
    padding-left: 20px;
    padding-right: 20px;
    width: 84%;
    box-sizing: border-box;
}

/* CONTAINER HEADER */
.main-content h1 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.main-content p {
    margin-bottom: 30px;
    color: #ccc;
}

/* GRID PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* PROJECT CARD */
.project-card-modern {
    position: relative;
    background-color: rgba(10,10,10,0.6);
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}

.project-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.project-card-modern::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.project-card-modern:hover::after {
    transform: rotate(25deg) translateX(100%);
}

/* CARD IMAGE */
.card-image img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}

/* CARD INFO */
.card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.card-info .role,
.card-info .duration {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-info .repo a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
}

.card-info .repo a:hover {
    color: #fff;
}

.card-info .role,
.card-info .duration,
.card-info .repo {
    margin: 2px 0; /* jarak makin dekat */
}

/* TOOLS ICONS */
.tools {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.tools img {
    width: 20px;
    height: 20px;
}

/* PAGINATION */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination button {
    background-color: #111;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.pagination button.active {
    background-color: #444;
    border-color: #fff;
}

/* RESPONSIVE */

/* Max 1366px — laptop besar */
@media (max-width: 1366px) {
    .container {
        width: 78%;
    }

    .card-image img {
        height: 165px;
    }
}

/* Max 1100px — tablet landscape */
@media (max-width: 1100px) {
    .container {
        width: 90%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-image img {
        height: 155px;
    }

    .card-info h3 {
        font-size: 16px;
    }
}

/* Max 700px — mobile */
@media (max-width: 700px) {
    .container {
        width: 95%;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-image img {
        height: 140px;
    }

    .card-info h3 {
        font-size: 15px;
    }

    .tools img {
        width: 16px;
        height: 16px;
    }
}
