/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1e1e2e;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Navbar */
header {
    background: #2a2a3b;
    padding: 15px 30px;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ade80;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #f5f5f5;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #4ade80;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

/* Models Section */
.models {
    padding: 60px 20px;
    text-align: center;
}

.models h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.model-card {
    background: #2a2a3b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.model-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.model-card h3 {
    color: #4ade80;
    margin-bottom: 8px;
}

.model-card p {
    color: #cccccc;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4ade80;
    color: #1e1e2e;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
}

.btn:hover {
    background: #22c55e;
    transform: scale(1.05);
}

/* Search Bar */
.search-container {
    text-align: center;
    margin: 20px 0;
}

#searchBar {
    width: 80%;
    max-width: 400px;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #2a2a3b;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #999;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background-color: #1e1e1e;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .model-grid {
        grid-template-columns: 1fr; /* Stack models vertically on mobile */
    }
}

.model-card {
    background: #2a2a3b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.model-card img {
    max-width: 100%;        /* hindi lalampas sa card width */
    max-height: 200px;      /* limit sa taas */
    width: auto;            /* i-scale width proportionally */
    height: auto;           /* i-scale height proportionally */
    object-fit: contain;    /* hindi mae-cut ang image */
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;     /* center sa card */
}

