@import url('https://fonts.googleapis.com/css2?family=Raleway:ital@0;1&display=swap');

:root {
    --bg-color: #1e1e1e;
    --text-color: #f0f0f0;
    --accent-color: #90847ef5;
    --font-family: 'Raleway', sans-serif;
    --font-weight: 500;

    --z-main: 0;
    --z-head: 1;
    --z-modal: 2;

    --nav-height: 70px;
    --footer-height: 50px;
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

/* ---------------- BODY ---------------- */

body {
    margin: 0;
    background-image: url('./assets/bg.gif');
    background-size: cover; /* stops reflow */
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    padding-top: var(--nav-height);
    padding-bottom: var(--footer-height);
    text-align: center;
}

/* --------------- NAV ---------------- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--accent-color);
    z-index: var(--z-head);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 10px;
    transition: 0.3s ease;
    border-radius: 4px;
}

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

/* ---------------- MAIN ---------------- */

main {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

/* intro box (scrollcard) */
.intro {
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 10px #0005;
    padding: 20px;
    max-width: 350px;
    max-height: 60vh;
    overflow-y: auto;
    margin: 0 auto;

    scrollbar-width: none;
}
.intro::-webkit-scrollbar { display: none; }

/* ---------------- FOOTER ---------------- */

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: var(--bg-color);
    border-top: 2px solid var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-head);
}

footer .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

/* ---------------- MARKDOWN AREA ---------------- */

.markdown {
    max-width: 800px;
    margin: 120px auto 40px;
    padding: 20px;
    border: 2px dashed var(--accent-color);
}

.markdown a {
    color: var(--accent-color);
    text-decoration: none;
    padding: 5px 10px;
    transition: 0.3s ease;
    border-radius: 4px;
}

.markdown a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* ---------------- PROJECT CARDS ---------------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 1000px;
}

.project-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 0 12px #0005;
}

.project-card h2 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.project-card p {
    margin: 0 0 12px 0;
    color: var(--text-color);
    opacity: 0.9;
}

.project-card a {
    display: inline-block;
    margin-top: 6px;
    text-decoration: none;
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.project-card a:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}