@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
    --bg-color: #030d07;
    --text-color: #4ade80;
    --text-glow-val: 0 0 5px rgba(74, 222, 128, 0.6);
    --border-color: #22c55e;
    --nav-bg: #06180d;
    --nav-active-bg: #4ade80;
    --nav-active-text: #030d07;
    --project-hover-bg: #0a2614;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 5px; }

/* Main Wrapper with CRT styling */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 99;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.8) 120%);
    pointer-events: none;
    z-index: 98;
}

.app-wrapper {
    animation: flicker 0.15s infinite;
    position: relative;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .app-wrapper { padding: 2rem; }
}

@keyframes flicker {
    0% { opacity: 0.98; }
    50% { opacity: 0.95; }
    100% { opacity: 0.99; }
}

h1, h2, h3, p, span, div, a {
    text-shadow: var(--text-glow-val);
}

.terminal-window {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    background-color: rgba(3, 13, 7, 0.85); /* Slightly transparent inside */
}

.terminal-header {
    background-color: var(--nav-bg);
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.terminal-nav {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--nav-bg);
    border-bottom: 1px solid rgba(34, 197, 94, 0.5);
    justify-content: center;
    padding: 0.5rem;
    gap: 0.5rem;
}

.nav-btn {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-btn:hover { background-color: rgba(74, 222, 128, 0.1); }
.nav-btn.active {
    background-color: var(--nav-active-bg);
    color: var(--nav-active-text);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    text-shadow: none;
    font-weight: 700;
}

.terminal-content { padding: 1.5rem; position: relative; }
@media (min-width: 768px) {
    .terminal-content { padding: 2.5rem; }
}

.cow-art {
    font-size: 1.3rem;
    line-height: 1.2;
    white-space: pre;
    margin-bottom: 2rem;
    font-weight: 700;
    overflow-x: auto;
}

.terminal-output {
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    min-height: 15rem; /* prevent jumping */
}

.terminal-output h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    text-transform: uppercase;
}

.terminal-output .header-text {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 1rem;
    color: var(--text-color);
}

.projects-container { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.project-card {
    border-left: 4px solid var(--border-color);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: rgba(74, 222, 128, 0.05);
}

.project-card:hover {
    background-color: var(--project-hover-bg);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.1);
    border-left-width: 6px;
}

.project-card h3 { font-size: 1.4rem; margin: 0 0 0.5rem 0; font-weight: 700; }
.project-card p { font-size: 1rem; margin: 0; opacity: 0.9; }

.intro-text { font-size: 1.2rem; margin-bottom: 1rem; }

.contact-links { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.contact-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: inline-block;
    padding: 0.3rem 0;
}
.contact-links a:hover {
    text-shadow: 0 0 10px rgba(74,222,128,1);
    transform: translateX(5px);
}

.terminal-footer { text-align: center; font-size: 0.85rem; margin-top: 1.5rem; padding-bottom: 1rem;}

.cursor {
    display: inline-block;
    width: 12px;
    height: 1.2em;
    background-color: var(--text-color);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    box-shadow: var(--text-glow-val);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.fade-in {
    animation: fadeIn 0.4s ease-in forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
