@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/JetBrainsMono-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --primary: #ffffff;
    --secondary: #4084e7;
    --dark-bg: #121212;
    --medium-bg: #1a1a1a;
    --light-bg: #2a2a2a;
    --text: #ffffff;
    --text-light: #e0e0e0;
    --border-color: #333;
    --accent-color: #4361ee;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', 'Hack', monospace;
}
body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    padding: 10px;
    background: linear-gradient(135deg, #0f0f0f 0%, var(--dark-bg) 100%);
    min-height: 100vh;
}
.container {
    max-width: 800px;
    margin: 0 auto;
}
.container-wide {
    max-width: 1400px;
}
.header {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 900;
    color: var(--primary);
    padding: 20px 0;
    margin-bottom: 20px;
}
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-bordered {
    border-bottom: 3px solid var(--primary);
    background: rgba(30, 30, 30, 0.8);
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.header-underlined {
    position: relative;
}
.header-underlined::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}
.section-title {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 600;
    padding: 15px 0;
    margin-top: 30px;
    position: relative;
    padding-left: 15px;
    color: var(--secondary);
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 5px;
    background: var(--primary);
}
.content-box {
    border: 2px solid var(--primary);
    margin-bottom: 25px;
    padding: 20px;
    position: relative;
    background: rgba(25, 25, 25, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.content-box-thick {
    border-width: 3px;
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: clamp(15px, 3vw, 17px);
}
.content-box:hover {
    background: rgba(35, 35, 35, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-color: var(--secondary);
}
.content-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.content-box:hover::before {
    transform: scaleX(1);
}
a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    word-break: break-all;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
    text-decoration-thickness: 3px;
}
a.no-underline {
    text-decoration: none;
}
.btn {
    background: var(--light-bg);
    border: 2px solid var(--primary);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover, .btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    color: var(--text);
}
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 70px;
    margin: 0.2rem;
}
.btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-accent:hover {
    background: #3a51d8;
}
.flashes {
    margin-bottom: 20px;
}
.flash {
    padding: 12px 15px;
    border-radius: 5px;
    background: rgba(30, 30, 30, 0.9);
    border-left: 4px solid var(--text);
    font-weight: 600;
    margin-bottom: 10px;
}
.flash.error {
    border-left-color: #ff4444;
    color: #ff4444;
}
.flash.success {
    border-left-color: #00C851;
    color: #00C851;
}
.device-box {
    border-bottom: 2px solid var(--primary);
    padding: 15px 0;
}
.device-box:last-child {
    border-bottom: none;
}
.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.project-description {
    font-size: clamp(14px, 3vw, 16px);
    margin-top: 10px;
    line-height: 1.7;
    color: var(--text-light);
    padding: 10px;
    background: rgba(15, 15, 15, 0.4);
    border-left: 3px solid var(--secondary);
    border-radius: 0 5px 5px 0;
}
.footer {
    font-size: 11px;
    font-weight: 100;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #444;
    color: #aaa;
}
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 5px;
    }
    .header-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .header {
        font-size: clamp(18px, 7vw, 24px);
    }
    .btn, .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
