body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #333;
}

header {
    background: #0066cc;
    color: white;
    text-align: center;
    padding: 1rem;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: scale(1.03);
}

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

.project-info {
    padding: 10px;
}

.project-info h3 {
    margin: 5px 0;
    color: #0066cc;
}

footer {
    background: #0066cc;
    color: white;
    text-align: center;
    padding: 0.7rem;
    margin-top: 2rem;
}

/* Modal Style */
/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal box */
.modal-content {
    background: white;
    margin: 50px auto;
    padding: 15px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    /* Biar nggak melebihi layar */
    overflow: hidden;
    /* Scroll hanya di area dalam */
    display: flex;
    flex-direction: column;
}

/* Scrollable area */
.modal-scroll {
    flex: 1;
    overflow: auto;
    /* Scroll muncul kalau konten panjang */
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ccc;
}

/* Biar bisa scroll kanan kiri juga */
.modal-scroll ul,
.modal-scroll p {
    min-width: 600px;
    /* Kalau mau horizontal scroll */
}

/* Gambar di modal */
.modal-content img {
    max-height: 300px;
    object-fit: contain;
    width: 100%;
}

/* Tombol close */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: #e74c3c;
    /* merah biar jelas */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background-color: #c0392b;
    /* merah lebih gelap saat hover */
}

.close-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #facc15;
    /* Kuning khas SMK */
}

.hero-header h1 span {
    color: #38bdf8;
    /* Biru kreatif */
}

.hero-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #e2e8f0;
}

.hero-header strong {
    color: #f97316;
    /* Oranye hangat */
}

.site-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.site-footer strong {
    color: #facc15;
    /* Kuning khas SMK */
}

.site-footer p {
    margin: 0;
}





/* ====== RESPONSIVE DESIGN ====== */

/* Tablet */
@media (max-width: 992px) {
    .hero-header {
        padding: 2.5rem 1rem;
    }

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

    .hero-header p {
        font-size: 1rem;
        max-width: 90%;
    }

    .project-card img {
        height: 160px;
    }

    .modal-content {
        width: 90%;
        max-height: 85vh;
    }
}

/* Smartphone Landscape & Kecil */
@media (max-width: 768px) {
    .hero-header {
        padding: 2rem 1rem;
        border-radius: 0 0 1rem 1rem;
    }

    .hero-header h1 {
        font-size: 1.8rem;
    }

    .hero-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .project-card img {
        height: 150px;
    }

    .modal-content {
        margin: 20px auto;
        padding: 10px;
    }

    .close-btn {
        top: 10px;
        right: 15px;
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Smartphone Portrait / Very Small Devices */
@media (max-width: 480px) {
    .hero-header {
        padding: 1.5rem 1rem;
    }

    .hero-header h1 {
        font-size: 1.5rem;
    }

    .hero-header p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-card img {
        height: 140px;
    }

    .modal-content img {
        max-height: 200px;
    }

    .close-btn {
        font-size: 13px;
        padding: 5px 10px;
    }
}