@font-face {
    font-family: 'Expression';
    src: url('fonts/expression-pro-v1.1/ExpressionPro.woff2') format('woff2'),
         url('fonts/expression-pro-v1.1/ExpressionPro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'WindowsXPTahoma';
    src: url('fonts/windows-xp-tahoma/windows-xp-tahoma.woff2') format('woff2'),
         url('fonts/windows-xp-tahoma/windows-xp-tahoma.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    color: #f5f5f5;
    font-family: 'WindowsXPTahoma', sans-serif;
    image-rendering: pixelated;
}

img {
    pointer-events: none;
}

a {
    text-decoration: none;
    color: #b71c1c;
}

.background {
    background-image: url('img/bg.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100dvh;
    width: 100dvw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    justify-content: center;
    color: #ef6c00;
}

.header h1 {
    font-family: 'Expression', sans-serif;
    font-size: 3.8em;
    text-shadow: 0 0.072em 0 #b71c1c;
    margin: 0;
    padding: 0;
}

.header img {
    width: 10em;
    height: 10em;
    margin-right: .4em;
    image-rendering: pixelated;
}

.bio {
    margin: 1dvh 1dvw;
    padding: 2dvh 2dvw;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 70dvw;
    margin-left: auto;
    margin-right: auto;
    font-size: 2em;
}

.bio .portrait {
    width:9em;
    height:auto;
    border-radius:8px;
    margin-left:auto;
    border: 3px solid #fff;
    align-items: center;
}

.social-icons {
    align-items: center;
    display: inline-block;
}

.social-icons a {
    size: 1.2em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Projects section styling */
.projects-section {
    width: 70dvw;
    margin: 5dvh auto;
    padding: 2dvh 2dvw;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 1dvh 1dvw;
}

.projects-section h2 {
    font-family: 'Expression', sans-serif;
    font-size: 4em;
    color: #3ee6f7;
    margin: 2dvh 0;
    text-align: center;
    letter-spacing: 0.04em;
    text-shadow: 0 0.08em 0px #0099a8;
    display: flex;
}

.projects-section h2 span {
    margin-left: auto;
    margin-right: 0;
    padding: 0 0.25em;
}

.projects-section h2 img {
    height: 1em;
    margin-right: auto;
    margin-left: 0;
}

.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.project-card {
    background: rgba(255,255,255,0.13);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    padding: 1em;
    width: 24em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.18s, box-shadow 0.18s;
    border: 2px solid #0099a8;
}

.project-card img {
    width: 23em;
    height: auto;
    border-radius:8px;
    margin: 0 auto 1em;
    border: 0.25em solid #fff;
}

.project-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-info h3 {
    font-family: 'Expression', sans-serif;
    font-size: 2em;
    color: #eaeaea;
    margin: 0 0 10px 0;
    text-shadow: 0 0.1em 0 #333333;
    margin-bottom: auto;
}

.project-info p {
    color: #f5f5f5;
    font-size: 1.6em;
}

.project-link {
    color: #fffde7;
    background: #0099a8;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    margin-top: auto;
    font-size: 1.6em;
}

.project-link:hover {
    background: #ef6c00;
    color:#333333;
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .bio {
        flex-direction: column;
        align-items: center;
        width: 80dvw;
        padding: 2dvh 4dvw;
    }

    .bio .socials {
        text-align: center;
    }

    .bio .portrait {
        width: 8em;
        margin-bottom: 1dvh;
        margin-left: auto;
        margin-right: auto;
    }

    .projects-section {
        width: 90dvw;
    }

    .project-card {
        width: 100%;
    }

    .project-card img {
        width: 100%;
    }

    .header h1 {
        font-size: 2.5em;
    }
    
}