/* Base Styles */
:root {
    --primary-color: anthracite;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Albert Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Map Container */
.map-container {
    position: absolute;
    width: 83%;
    height: 264px;
    border-radius: 8px;
    overflow: hidden;

}

.map-marker {
    position: relative;
    z-index: 999;
    top: 20%;
    left: 15rem;
}

.title-container {
    background-color: white; /* fallback */
    background: linear-gradient(70deg, rgba(255,255,255,1) 140px, rgba(255,255,255,0) 75%);
    z-index: 1;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.current-flag {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    background-color: white;
}

.current-flag:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    min-width: 44px;
    display: flex;
    flex-direction: column;
    padding: 0.25rem;
    gap: 0.25rem;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-selector {
    margin-left: auto;
}

.flag-option {
    background: none;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    background-color: white;
}

.flag-option:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.flag-option[aria-current="true"] {
    background-color: #eff6ff;
    border: 1px solid var(--primary-color);
}

.flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none; /* Remove underline */
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}



.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Main Content */
main {
    margin-top: 80px; /* Account for fixed header */
}

.content {
    font-size: 1.1rem;
    font-weight: regular;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 600;
}

.section {
    padding: 2rem 10rem;
    min-height: 40vh;   
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
}

.section:nth-child(even) {
    background-color: #f9fafb;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    z-index: 1;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    > a > img  {
        height: 80px; display: block; margin-left: auto; margin-right: auto;
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Project card styles consolidated in .project-card */

.project-link {
    display: inline-block;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1f2937;
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: #1f2937;
    text-align: center;
    color: #ffcd00;
    padding: 2rem;
}

footer a {
    color: #ffcd00;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Language Selector */
.language-selector select {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background-color: white;
    font-family: 'Albert Sans', sans-serif;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
    }
    
    .hamburger {
        display: flex;
    }

    .logo {
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 2rem 0;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        margin-left: 0;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .nav-menu.active {
        left: 0;
        z-index: 1001;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .language-selector {
        margin-top: 1rem;
    }

    .map-marker {
        left: 12rem;
        width: 75%;
        height: auto
    }

    .map-container {
        width: 90%;
    }

    .section {
        padding: 2rem 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}
