/* GENERAL STYLES */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: url("../images/banner.jpg") no-repeat center center/cover;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #333;
    color: white;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 650px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        width: 100%;
        left: 0;
        top: 60px;
    }

    .menu-toggle {
        display: block;
    }

    .show-menu {
        display: flex;
    }
}

/* MAIN STYLES */
main {
    padding: 2rem;
    text-align: center;
}

.intro {
    margin-bottom: 2rem;
}

.project {
    display: flex;
    max-width: 80vw;
    max-height: 50vh;
    margin: 2rem auto;
    overflow: hidden;
    justify-content: center; /* Keep the columns centered */
    gap: 1rem; /* Space between columns */
}

/* Project Image with Border */
.project-image {
    flex: 0 0 40%;
    position: relative; /* Ensure positioning for border */
    max-width: 100%; /* Prevents overflow */
    overflow: hidden;
    display: inline-block; /* Ensures the container shrinks to fit the image */
    border: 2px solid black; /* Border around the image */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container, cropping if necessary */
    display: block; /* Prevents any unwanted space under the image */
}

/* Project Description */
.project-description {
    flex: 0 0 40%;
    max-width: 40%;
    justify-content: center;
    overflow-y: auto; /* Enable scrolling if text overflows */
    padding: 1rem;
    text-align: justify;
}

.project-description h3 {
    font-size: 1.2 rem;
    margin-bottom: 1rem;
}

.project-description p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.project-description a {
    color: #007BFF;
    text-decoration: none;
}

.project-description a:hover {
    text-decoration: underline;
}

.divider {
    width: 80%;
    height: 2px;
    background-color: #ccc; 
    border: none; /* Removes default border */
    margin: 20px auto; /* Centers and adds spacing */
}

/* Show logo by default, hide text */
.linkedin-text {
    display: none;
}

.linkedin-logo {
    display: inline-block;
    height: 24px; 
    width: auto;
}

@media (max-width: 650px) {
    .project {
        flex-direction: column;
        max-height: none;
        width: 100%;
        max-width: 100%;  
        margin: 2rem 0;  
    }

    .project-image {
        width: 96%; 
        margin: 0 auto;  
    }

    .project-description {
        width: 96%;  
        max-width: 96%;  
        margin: 0 auto; 
        flex: none; 
    }

    nav {
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        padding: 1rem 0;
        z-index: 1000;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .show-menu {
        display: flex !important;
    }

    /* LinkedIn specific styles */
    .linkedin-text {
        display: inline-block !important;
        color: white;
    }
    
    .linkedin-logo {
        display: none !important;
    }
}

main {
    padding-bottom: 100px; /* Adjust this value if needed */
}

body, html {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

