
:root {
    --primary-color: #102D33;
    --secondary-color: #4B6970;
    --tertiary-color: #899C99;
    --accent-color: #83ACB2;
    --highlight-color: #4B6970;
    --background-color: #102D33;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--primary-color);
}
.name-title {
    font-family: 'Times New Roman', Times, serif; /* Use a serif font */
    color: rgba(255, 255, 255, 0.5); /* White color with 50% transparency */
    text-align: center;
    width: 80%;
    margin: 0 auto;
    letter-spacing: 1.1em; /* Adjust kerning */
    font-size: 2.5em;
    line-height: 1.2;
    position: relative; /* Enable positioning */
    top: -100px; /* Move the element up */
}
.header {
    background: url('/img/MainImage.png') no-repeat top center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.header .container {
    margin: 10px;
    padding: 0 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.header .btn {
    background-color: var(--highlight-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
}

main {
    padding: 40px 0;
}

.updates {
    background-color: var(--tertiary-color);
    padding: 40px 0;
}

.updates .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.updates-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.updates-text {
    flex: 1;
    margin-right: 20px;
}

.updates-image {
    flex: 1;
}

.updates-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.updates-btn {
    display: inline-block;
    width: 33%;
    padding: 10px;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid white;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.updates-btn:hover {
    cursor: pointer;
    transform: translateY(-2px);
    background-color: var(--highlight-color);
    color: var(--secondary-color);
}

.updates-btn:active {
    transform: translateY(1px);
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.portfolio, .about, .contact, .updates {
    background-color: var(--tertiary-color);
    padding: 40px 0;
    margin-bottom: 20px;
}

.portfolio .container, .about .container, .contact .container, .updates .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio h2, .about h2, .contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio .container {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.portfolio-item p {
    margin-top: 10px;
}
.portfolio-item {
    background-color: var(--secondary-color);
    text-align: center;
    position: relative;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure child elements do not extend outside */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

.portfolio-item:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-item:active {
    transform: translateY(1px);
    box-shadow: none;
}

.portfolio-item:hover .overlay {
    opacity: .5;
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 10px); /* Adjust for padding */
    height: calc(100% - 10px); /* Adjust for padding */
    padding-top: 20px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: top;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1.5em; /* Increase font size */
    font-weight: bold; /* Make text bold */
}

.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer p {
    margin: 0;
}

.navigation {
    width: 100%;
    height: 72px;
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background-color);
}

.navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo-container {
    display: flex;
    align-items: flex-end; /* Aligns items to the bottom */
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.logo {
    width: 60px;
    height: 60px;
}
.project-title {
    font-size: 0.75em; /* Small font size */
    font-weight: bold; /* Bold text */
    color: rgba(255, 255, 255, 0.5); /* White color with 50% transparency */
    margin-left: 10px; /* Space between logo and text */
}

.logo img {
    width: 60px;
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: var(--highlight-color);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 5px;
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover a {
    background-color: var(--highlight-color);
}

@media (max-width: 1000px) {
    .portfolio .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio .container {
        grid-template-columns: 1fr;
    }
    .header .container {
        text-align: center;
        width: auto;
    }
    .portfolio-item {
        padding: 20px;
    }
    .updates .container {
        flex-direction: column;
    }
    .updates-text {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .updates-btn {
        width: 100%;
    }
}

@media (min-width: 601px) {
    .header .container {
        text-align: left;
        width: 40%;
        margin-left: 10%;
        margin-right: 10%;
    }
    .portfolio-item {
        padding: 10px;
    }
}
