:root {
    --bg-color: #000000;
    --terminal-bg: #050505;
    --accent: #39FF14;
    --accent-dim: rgba(57, 255, 20, 0.1);
    --white: #e0e0e0;
    --bright-white: #ffffff;
    --gray: #666666;
    --font-body: 'Inconsolata', monospace;
    --font-head: 'VT323', monospace;
    --nav-height: 60px;
    --footer-height: 30px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 40px);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid var(--accent);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    background-color: var(--bg-color);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    overflow-x: hidden;
    padding-bottom: var(--footer-height);
}

/* === Boot & Effects === */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 10000;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    font-family: var(--font-body);
    color: var(--accent);
}

.scanlines {
    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;
    z-index: 9998;
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 9999;
    pointer-events: none;
}

.hidden-initially {
    opacity: 0;
}

.hidden {
    display: none;
}

/* === Typography === */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 400;
    text-transform: uppercase;
}

.neon-text {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.highlight-white {
    color: var(--bright-white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.prompt {
    color: var(--accent);
    margin-right: 10px;
}

.comment {
    color: var(--gray);
    font-style: italic;
}

.subtle-glitch {
    transition: color 0.2s;
    cursor: default;
}

.subtle-glitch:hover {
    color: var(--accent);
    text-shadow: 2px 2px 0px rgba(57, 255, 20, 0.3);
}

.section-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

/* === Navigation === */
.terminal-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    transition: opacity 1s;
}

.brand {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--accent);
}

.blink-cursor {
    animation: blink 1s step-end infinite;
}

#nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--gray);
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.nav-link.active::before {
    content: '>';
    position: absolute;
    left: -15px;
    color: var(--accent);
}

/* === Hero === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    padding-bottom: 2rem;
}

.terminal-window {
    width: 90%;
    max-width: 850px;
    background: var(--terminal-bg);
    border: 1px solid #444;
    box-shadow: 10px 10px 0 rgba(20, 20, 20, 0.5);
}

.terminal-header {
    background: #1a1a1a;
    padding: 5px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title {
    color: var(--gray);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 2rem;
    border-left: 2px solid var(--accent);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.console-line {
    margin-bottom: 10px;
    display: block;
}

.highlight {
    color: var(--bright-white);
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 1rem;
}

.cursor-block {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

.btn-group {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.terminal-btn {
    background: var(--accent);
    color: black;
    border: 1px solid var(--accent);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-head);
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    font-weight: bold;
}

.terminal-btn:hover {
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px);
}

.terminal-btn.outline {
    background: transparent;
    color: var(--accent);
}

.terminal-btn.outline:hover {
    background: var(--accent);
    color: black;
}

/* === Layout Blocks (Fixed: Removed Green Gradient) === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

/* Changed to pure transparent/black, just border */
.terminal-block {
    background: #050505;
    /* Was var(--accent-dim) */
    border: 1px solid #333;
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    position: relative;
}

/* === ABOUT === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.profile-card {
    border: 1px solid #333;
    background: #080808;
    padding: 1rem;
    text-align: center;
}

.ascii-art {
    font-family: monospace;
    white-space: pre;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    overflow-x: hidden;
}

.profile-stats p {
    border-bottom: 1px dashed #333;
    padding: 5px 0;
    font-size: 0.9rem;
    text-align: left;
}

/* === SKILLS === */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h3 {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    border: 1px solid #333;
    color: var(--accent);
    padding: 5px 15px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    transition: 0.2s;
    background: #080808;
}

.skill-item:hover {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 10px var(--accent);
}

/* === EDUCATION === */
.log-entry {
    border: 1px solid #333;
    background: #080808;
    font-family: var(--font-body);
}

.log-header {
    background: #151515;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.status-code.success {
    color: var(--accent);
}

.log-body {
    padding: 1.5rem;
}

/* === EXPERIENCE (Git Graph) === */
.git-graph {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #333;
    margin-left: 10px;
}

.git-commit {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 30px;
}

.commit-marker {
    position: absolute;
    left: -27px;
    top: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    box-shadow: 0 0 8px var(--accent);
    z-index: 2;
}

.commit-marker.start {
    border-color: var(--gray);
    box-shadow: none;
}

.commit-content {
    border: 1px solid #333;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.commit-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-family: monospace;
}

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

.changelog {
    list-style: none;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.changelog li {
    margin-bottom: 5px;
}

/* === PROJECTS (Single Column Terminal Style) === */
.single-column-projects {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.terminal-row {
    font-family: monospace;
    margin-bottom: 2rem;
    border-bottom: 1px dashed #333;
    padding-bottom: 2rem;
}

.terminal-row:last-child {
    border-bottom: none;
}

.cmd-line {
    margin-bottom: 10px;
    font-size: 1rem;
}

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

.cmd {
    color: var(--white);
}

.cmd-output {
    padding-left: 1rem;
    color: #ccc;
    font-size: 0.95rem;
    border-left: 2px solid #333;
    margin-left: 5px;
}

.cmd-output h3 {
    margin-bottom: 5px;
    margin-top: 5px;
    font-size: 1.1rem;
}

.tech-stack-inline {
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.file-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-top: 10px;
}

.file-link:hover {
    text-decoration: underline;
    background: var(--accent);
    color: black;
}


/* === CONTACT === */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    color: var(--bright-white);
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #000;
}

/* === VIM STYLE FOOTER === */
.system-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background: #111;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inconsolata', monospace;
    font-size: 0.9rem;
    z-index: 2000;
    transition: opacity 1s;
}

.status-left,
.status-right {
    display: flex;
    height: 100%;
    align-items: center;
}

.status-mode {
    background: var(--accent);
    color: black;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.status-item {
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white);
    border-right: 1px solid #333;
}

.status-right .status-item {
    border-right: none;
    border-left: 1px solid #333;
}

.icon {
    margin-right: 5px;
    font-weight: bold;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        color: var(--accent);
        font-family: var(--font-head);
        font-size: 1.4rem;
        cursor: pointer;
    }

    #nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #000;
        border-bottom: 1px solid var(--accent);
        padding: 1rem;
    }

    #nav-list.open {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .status-right {
        display: none;
    }
}