:root {
    --primary: #38b2ac;
    --secondary: #805ad5;
    --dark: #1a202c;
    --light: #e2e8f0;
    --code-bg: #1e1e2e;
    --accent: #f687b3;
    --comment: #a0aec0;
    --keyword: #81A1C1;
    --string: #A3BE8C;
    --type: #88C0D0;
    --function: #EBCB8B;
    --variable: #D8DEE9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 0;
}

#canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background: linear-gradient(
            135deg,
            rgba(30, 41, 59, 1) 0%,
            rgba(18, 24, 35, 1) 100%
    );
}

.terminal-content {
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow: auto;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

.command {
    color: var(--light);
}

.output {
    color: var(--comment);
    padding-left: 1rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.8rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.ide-window {
    background-color: var(--code-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ide-titlebar {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.window-btn.close { background-color: #ff5f56; }
.window-btn.minimize { background-color: #ffbd2e; }
.window-btn.maximize { background-color: #27c93f; }

.file-tabs {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 35px;
    overflow-x: auto;
    scrollbar-width: none;
}

.file-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--comment);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
    white-space: nowrap;
}

.tab.active {
    background-color: var(--code-bg);
    color: var(--light);
    border-bottom: 2px solid var(--primary);
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
    counter-reset: line;
}

.code-line {
    display: flex;
    min-height: 24px;
    position: relative;
}

.code-line:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.line-number {
    user-select: none;
    text-align: right;
    color: var(--comment);
    opacity: 0.5;
    min-width: 40px;
    position: sticky;
    left: 0;
    background-color: var(--code-bg);
    padding-right: 12px;
}

.line-number::before {
    counter-increment: line;
    content: counter(line);
    font-size: 0.85rem;
}

.code-text {
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    white-space: pre;
}

.keyword { color: var(--keyword); }
.string { color: var(--string); }
.comment { color: var(--comment); }
.variable { color: var(--variable); }
.function { color: var(--function); }
.type { color: var(--type); }

.intro-section {
    margin: 3rem 0;
    text-align: center;
}

.name-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    color: var(--light);
    background-image: linear-gradient(120deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--light);
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.links-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-image: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
}

.link-card:hover::before {
    opacity: 1;
}

.link-icon {
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.link-card:hover .link-icon {
    opacity: 1;
}

.link-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.link-description {
    font-size: 0.9rem;
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-section {
    margin-top: 3rem;
    display: none;  /* Hide this section initially */
}

.terminal {
    background-color: #0d1117;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--comment);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-bar {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 16px;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    color: var(--comment);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-item:not(:last-child) {
    margin-right: 16px;
}

.footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--comment);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.binary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: var(--primary);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .name-title {
        font-size: 2rem;
    }

    .links-container {
        grid-template-columns: 1fr;
    }

    .code-content {
        font-size: 0.85rem;
    }
}

/* Particle animation styles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.pattern-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}