/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #121212;
    color: #e0e0e0;
    text-align: center;
}

header {
    margin-top: 1em;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding: .5em 0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

header span,
header p,
header i {
    color: #bb86fc;
    font-size: 1.2rem;
}

nav {
    margin: 1em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 0.5em;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.3em 0.5em;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

nav a:hover {
    background: #3700b3;
    color: #bb86fc;
}

hr {
    width: 95%;
    margin: 1em auto;
    border: 1px solid #e0e0e0;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2a2a2a;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: 6px;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 0.5em 1em;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #3700b3;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* Main content layout */
.main_content {
    max-width: 1200px;
    width: 80%;
    margin: 1em auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.project {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
}

.project-link {
    width: 100%;
}

/* Responsive styles */
@media (max-width: 500px) {
    header h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .main_content {
        width: 100%;
        gap: 0.2em;
    }

    .featured_image {
        width: 98%;
    }

    nav {
        flex-direction: column;
        gap: 0.5em;
        align-items: center;
    }

    nav a {
        font-size: 1rem;
        padding: 0.3em 0.5em;
    }

    .project {
        max-height: 200px;
    }
}