:root {
    --background: #282828;
    --foreground: #ebdbb2;
    --primary: #fabd2f;
    /* Yellow */
    --accent: #fe8019;
    /* Orange */
    --muted: #bdae93;
    /* Gray */
    --destructive: #fb4934;
    /* Red */
    --border: #3c3836;
    /* Dark Gray */

    --dir: #83a598;
    /* Blue */
    --file: #ebdbb2;
    /* White */
    --exe: #b8bb26;
    /* Green */
    --symlink: #d3869b;
    /* Purple */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary);
    color: var(--background);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border: 2px solid var(--background);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    padding: 2rem;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Scanline effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.3;
}

.container {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.terminal-header {
    margin-bottom: 3rem;
}

.terminal-prompt {
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(250, 189, 47, 0.4);
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.file-link-wrapper {
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.file-link-wrapper:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.file-primary {
    color: var(--primary);
}

.file-accent {
    color: var(--accent);
}

.file-destructive {
    color: var(--destructive);
}

.file-dir {
    color: var(--dir);
}

.file-common {
    color: var(--file);
}

.file-exe {
    color: var(--exe);
}

.file-link {
    color: var(--symlink);
}

.section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Stagger animations for sections */
.section:nth-of-type(1) {
    animation-delay: 0.1s;
}

.section:nth-of-type(2) {
    animation-delay: 0.2s;
}

.section:nth-of-type(3) {
    animation-delay: 0.3s;
}

.section:nth-of-type(4) {
    animation-delay: 0.4s;
}

.section:nth-of-type(5) {
    animation-delay: 0.5s;
}

.section:nth-of-type(6) {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.section:hover .section-content {
    border-left-color: var(--primary);
}

.terminal-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.terminal-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 8px rgba(254, 128, 25, 0.5);
}

.terminal-accent {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(254, 128, 25, 0.3);
}

.muted {
    color: var(--muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.skill-category {
    margin-bottom: 1rem;
}

.skill-title {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 5px rgba(254, 128, 25, 0.3);
}

.skill-list {
    list-style: none;
    font-size: 0.875rem;
}

.skill-list li {
    margin-bottom: 0.5rem;
}

.experience-item,
.project-item,
.education-item {
    margin-bottom: 2rem;
}

.job-title,
.project-title,
.degree-title {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.job-meta,
.project-meta,
.degree-meta {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.achievement-list {
    list-style: none;
    font-size: 0.9rem;
}

.achievement-list li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.terminal-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
    text-shadow: 0 0 5px var(--primary);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.contact-info {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.contact-info div {
    margin-bottom: 0.5rem;
}

.separator {
    color: var(--muted);
    margin: 1.5rem 0;
    opacity: 0.5;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(254, 128, 25, 0.4);
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .file-list {
        flex-direction: column;
        gap: 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }
}