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

body {
    font-family: "JetBrains Mono", monospace;
    background: #0f0f10;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 12px;
}

.intro-code {
    max-width: 800px;
    margin: 48px auto 24px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2a2a2a;
    border-bottom: 1px solid #333333;
}

.window-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}
.control {
    width: 16px;
    height: 16px;
    border: 1px solid #666666;
    background: linear-gradient(135deg, #444444, #333333);
    border-radius: 2px;
    position: relative;
}
.control:hover {
    border-color: #888888;
    background: linear-gradient(135deg, #555555, #444444);
}
.control.close::after {
    content: "×";
    position: absolute;
    color: #cccccc;
    font-size: 12px;
    top: -1px;
    left: 4px;
}
.control.minimize::after {
    content: "−";
    position: absolute;
    color: #cccccc;
    font-size: 10px;
    top: 1px;
    left: 5px;
}
.control.maximize::after {
    content: "□";
    position: absolute;
    color: #cccccc;
    font-size: 10px;
    top: 1px;
    left: 3px;
}
.file-name {
    color: #aaaaaa;
    font-size: 0.9em;
}

.code-content {
    background: #1a1a1a;
    color: #cccccc;
    font-size: 0.95em;
    line-height: 1.4;
    white-space: pre;
    padding: 20px 20px 20px 70px;
    margin-left: -25px;
    text-align: left;
}

.line-number {
    display: inline-block;
    width: 25px;
    color: #777777;
    text-align: right;
    margin-right: 20px;
    margin-left: -45px;
    user-select: none;
}
.keyword {
    color: #ffffff;
    font-weight: 500;
}
.string {
    color: #bbbbbb;
}
.comment {
    color: #888888;
    font-style: italic;
}
.function {
    color: #dddddd;
}
.variable {
    color: #aaaaaa;
}
.type {
    color: #eeeeee;
}
.constant {
    color: #ffffff;
}
.number {
    color: #999999;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    display: block;
    background: #1a1a1a;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    width: 100%;
    text-decoration: none;
    font-weight: normal;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: rgba(24, 24, 26, 0.9);
    border-top: 1px solid #232326;
    border-radius: 18px 18px 0 0;
    backdrop-filter: blur(10px);
}

.name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15em;
}
.footer-links {
    display: flex;
    gap: 18px;
}
.footer-links a {
    color: #ffffff;
    opacity: 0.88;
    text-decoration: none;
    transition:
        opacity 0.2s,
        color 0.2s;
}
.footer-links a:hover {
    opacity: 1;
    color: #ffffff;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    .projects-grid {
        gap: 16px;
        max-width: 95%;
    }
    .card {
        padding: 20px;
    }
    .bottom-bar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }
    .intro-code {
        max-width: 95vw;
    }
    .code-content {
        padding: 16px 16px 16px 56px;
        margin-left: -20px;
        font-size: 0.85em;
    }
    .line-number {
        width: 20px;
        margin-right: 16px;
        margin-left: -36px;
    }
}
