/* ===========================================
   MACIEJ ŁUKASIEWICZ PORTFOLIO
   Minimalist, modern, dark theme
   =========================================== */
/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@700&display=swap');

/* --- CSS Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* === DARK THEME === */

    /* --bg: #181818;
    --bg-secondary: #181818;
    --text: #e5e5e5;
    --text-muted: #888888;
    --accent: #ffffff;
    --border: #222222;
    --link: #e5e5e5;
    --link-hover: #ffffff; */


    /* === LIGHT THEME === */

    --bg: #fffdf7;
    --bg-secondary: #fffdf7;
    --text: #1a1a1a;
    --text-muted: #494949;
    --accent: #222222;
    --border: #e0dfd8;
    --link: #1a1a1a;
    --link-hover: #000000;

    /* --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace; */

    --font-sans: 'JetBrains Mono', monospace;
    --font-mono: 'JetBrains Mono', monospace;

    --max-width: 800px;
    --spacing: 0rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1rem;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--link-hover);
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* --- Header --- */
header {
    padding: 0rem 0;
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Navigation --- */
nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

nav a:hover {
    color: var(--accent);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    transition: transform 0.2s ease;
}

/* --- Main Content --- */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
}

section:last-child {
    margin-bottom: 0;
}

/* --- Cards / Items --- */
.item-list {
    list-style: none;
}

.item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.item:first-child {
    padding-top: 0;
}

.item:last-child {
    border-bottom: none;
}

.item a {
    display: block;
}

.item h3 {
    margin-bottom: 0.25rem;
}

.item p {
    font-size: 0.875rem;
}

.item .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bg);
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    /* Minimal rounding */
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Demo Link --- */
.item-with-demo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.item-with-demo>a:first-child {
    flex: 1;
}

.demo-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.demo-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- Article --- */
article {
    max-width: var(--max-width);
    margin: 0 auto;
}

article h1 {
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.article-meta a {
    color: var(--text-muted);
}

.article-meta a:hover {
    color: var(--accent);
}

article h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

article p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

article ul,
article ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

article li {
    margin-bottom: 0.5rem;
}

article strong {
    color: var(--text);
}

/* --- Footer --- */
footer {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--accent);
}

/* --- Neon Underline Hover Effect --- */
.nav-link,
.section-title,
.item h3 {
    position: relative;
    display: inline-block;
}

.nav-link::after,
.section-title h2::after,
.item h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.section-title:hover h2::after,
.item:hover h3::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

/* --- Section Titles --- */
.section-title {
    text-decoration: none;
    display: inline-block;
}

.section-title h2 {
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

/* --- Contact List --- */
.contact-list p {
    margin-bottom: 0.75rem;
}

.contact-list strong {
    color: var(--text);
}

/* --- Arrow Icons --- */
.arrow-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.25rem;
    vertical-align: middle;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.arrow-back {
    margin-left: 0;
    margin-right: 0.25rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 640px) {
    :root {
        --spacing: 1rem;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: var(--bg);
        padding: 0.5rem 0;
    }

    header .container {
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--bg-secondary);
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        border: 1px solid var(--border);
        min-width: 150px;
    }

    nav.open {
        display: flex;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1rem;
    }

    main {
        padding: 1.5rem 0;
    }

    section {
        margin-bottom: 2rem;
    }

    footer .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    footer {
        position: sticky;
        bottom: 0;
        z-index: 100;
        background-color: var(--bg);
        padding: 0.75rem 0;
        font-size: 0.625rem;
    }

    .social-links {
        gap: 0.75rem;
    }
}