/* =========== FIX FOOTER SELALU DI BAWAH =========== */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Konten tetap di tengah */
    align-items: center;
    padding: 20px;
}

/* Footer tetap di bawah */
footer {
    text-align: center;
    padding: 15px;
    width: 100%;
    font-size: 14px;
    margin-top: auto; /* Mendorong footer ke bawah */
}

/* =========== PROJECT SECTION =========== */
.projects-section {
    text-align: center;
    padding: 50px 20px;
}

.projects-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
    padding: 0 15px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.project-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.project-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.project-card:hover {
    transform: scale(1.05);
}

/* =========== RESPONSIVE DESIGN =========== */
@media screen and (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .project-card {
        padding: 10px;
    }

    .project-card img {
        height: 150px;
    }

    .project-card h3 {
        font-size: 16px;
    }

    .project-card p {
        font-size: 13px;
    }
}

/* =========== NAVBAR RESPONSIVE =========== */
@media screen and (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
    }
}

/* =========== FOOTER STYLING =========== */
footer {
    text-align: center;
    padding: 15px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* =========== MOBILE FOOTER ADJUSTMENT =========== */
@media screen and (max-width: 480px) {
    footer {
        font-size: 12px;
        padding: 10px;
    }
}

/* === NAVIGATION BAR === */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00bcd4;
}

/* === HAMBURGER MENU (MOBILE) === */
.menu-icon {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        transition: left 0.4s ease-in-out;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px 20px;
        display: block;
    }

    /* Menu Aktif */
    .nav-links.show {
        left: 0;
    }
}

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            justify-content: center;
            align-items: center;
        }
        .modal img {
            max-width: 80%;
            max-height: 80%;
        }
        .modal.active {
            display: flex;
        }
		.clickable {
           cursor: pointer;
        }