body {
    background-color: #343434;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 1rem;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #555;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    justify-content: center; /* Center items in the navbar */
    align-items: center;
    width: 100%;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
}

.nav-links a:hover {
    color: #ddd;
}

.banner {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.banner-content {
    position: absolute;
    top: 30%;
    left: 1%;
    transform: none;
    text-align: left;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.banner-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content span {
    font-size: 1.5rem;
    display: block;
    width: 30%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

.results img {
    max-width: 50%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    padding: 10px;
    background-color: white;
    object-fit: contain;
}

.abstract {
    padding: 20px;
    border-radius: 8px;
    width: 30%;
    text-align: left;
    background-color: #444;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.abstract-title {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #666;
    padding-bottom: 10px;
}

.abstract-body {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

/* --- DATASETS SECTION --- */
.datasets {
    background-color: #222;
    padding: 3rem 0 3rem 0;
    margin-top: 2rem;
}

.datasets h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.dataset-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.dataset-item {
    background: #333;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid #444;
}

.dataset-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    border-color: #666;
}

.dataset-item h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    margin-top: 0;
    font-weight: 600;
}

.dataset-item p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    margin-top: 0;
    line-height: 1.5;
}

.dataset-item a {
    color: #fff;
    background: #4a90e2;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.15s, color 0.15s;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(74,144,226,0.08);
}

.dataset-item a:hover {
    background: #357ab8;
    color: #e0e0e0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background-color: rgba(204, 170, 255, 1.0);
    padding: 0.5rem;
    border-radius: 8px;
}

.menu-toggle .bar {
    background-color: white;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle:hover {
    background-color: rgba(204, 170, 255, 0.75);
}

@media (max-width: 900px) {
    .dataset-list {
        flex-direction: column;
        align-items: center;
    }
    .dataset-item {
        max-width: 90vw;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .banner-content {
        text-align: center;
        padding: 0 1rem;
    }

    .banner-content h1 {
        font-size: 3rem;
    }

    .banner-content span {
        font-size: 1.2rem;
        width: 100%;
    }

    .results {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .results img {
        max-width: 90%;
        height: auto;
    }

    .abstract {
        width: 90%;
        margin: 1rem auto;
        text-align: center;
    }

    .datasets {
        padding: 2rem 1rem;
    }

    .dataset-list {
        flex-direction: column;
        align-items: center;
    }

    .dataset-item {
        width: 90%;
        margin-bottom: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        height: 100vh;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content span {
        font-size: 1rem;
    }

    .dataset-item h2 {
        font-size: 1.1rem;
    }

    .dataset-item p {
        font-size: 0.9rem;
    }

    .dataset-item a {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

@media (min-width: 769px) {
    .results {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: stretch; /* Ensure items have the same height */
        text-align: left;
    }

    .results img {
        max-width: 50%;
        height: auto;
    }

    .abstract {
        width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
    }
}