@font-face {
    font-family: 'Inconsolata';
    src: url('/fonts/Inconsolata.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Inconsolata';
    src: url('/fonts/Inconsolata-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-primary: #0f0f12;
    --bg-secondary: #16161a;
    --text-primary: #e0e1ff;
    --text-secondary: #a8aacb;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --border: #2a2a35;
    --terminal-header: #13131a;
    --highlight: #6d28d9;
}

body {
    font-family: 'Inconsolata', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
}

/* CRT monitor effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
}

/* scanline */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(124, 58, 237, 0.02) 50%,
        rgba(0, 0, 0, 0) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* blinking cursor */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent);
}

/* Navigation */
nav {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Terminal window style */
.terminal {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
}

.prompt {
    color: var(--accent);
}

.command {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Section titles */
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background-color: var(--accent);
    margin: 0.5rem auto;
}

/* File Tree Structure */
.file-tree {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tree-item {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.tree-node::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1px;
    background-color: var(--border);
}

.tree-icon {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    min-width: 1.2rem;
}

/* Projects */
.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--highlight));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-card:hover {
    border-color: var(--border);
    background-color: rgba(124, 58, 237, 0.03);
}

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

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

/*
.project-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}*/

.project-title {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    flex-grow: 1;
    line-height: 1.3;
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    background-color: transparent;
    color: var(--accent-light);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    width: fit-content;
}

.project-link::before {
    content: '→ ';
    margin-right: 0.4rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    background-color: rgba(124, 58, 237, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

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

/* Notes Section */
.notes-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.note-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.note-card:hover {
    background-color: rgba(124, 58, 237, 0.03);
    border-color: var(--border);
}

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

.note-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.note-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.note-title {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.note-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
}

#contact {
    margin-top: 8rem;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .file-tree {
        flex-direction: column;
    }

    .tree-item {
        margin-bottom: 0.75rem;
    }
}