:root {
    --bg: #141420;
    --card-bg: #1e1e2e;
    --text: #cdd6f4;
    --primary: #cba6f7;
    --accent: #fab387;
    --green: #a6e3a1;
    --red: #f38ba8;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 32, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    border-bottom: 1px solid #333;
}
nav .logo { font-weight: 700; color: var(--green); }
nav .links a { margin-left: 15px; color: var(--primary); font-size: 0.9rem; }
nav .links a:hover { color: var(--accent); }

.container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
section { margin-bottom: 5rem; scroll-margin-top: 100px; }

.hero { padding-top: 2rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.highlight { color: var(--primary); }
.status-bar { font-size: 0.8rem; color: var(--accent); margin-bottom: 1rem; }
.pulse { color: var(--green); animation: blink 2s infinite; }
.console-line { font-size: 1.2rem; margin-bottom: 2rem; color: var(--text); }
.prompt { color: var(--green); }
.cursor { animation: blink 1s infinite; }

.split-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}
.about-text { flex: 1.3; }
.fox-widget { flex: 1; }

.summary-block { margin-top: 1.5rem; }
.text-link { color: var(--accent); display: inline-block; margin-top: 1rem; font-weight: bold; }
.text-link:hover { text-decoration: underline; }

.terminal-logs {
    background: #0f0f16;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.log-header {
    background: #1e1e2e;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}
.log-header .title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #888;
}
.log-content {
    padding: 1.5rem;
    font-size: 0.9rem;
}
.log-line {
    margin-bottom: 12px;
    line-height: 1.5;
}
.log-line:last-child { margin-bottom: 0; }
.time { color: #6c7086; margin-right: 8px; font-size: 0.8rem; }
.cmd { color: var(--primary); font-weight: bold; }
.comment { color: #585b70; font-style: italic; display: block; margin-left: 55px; }
.output { color: var(--green); display: block; margin-left: 55px; }
.error { color: var(--red); display: block; margin-left: 55px; }

.fox-widget {
    background: #000;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    min-width: 300px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.widget-header {
    background: #333;
    padding: 8px 12px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.window-controls span {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 4px;
}
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.fox-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.fox-caption { padding: 10px; font-size: 0.8rem; text-align: center; font-style: italic; background: #222; }
.btn-small {
    width: 100%; padding: 5px; background: #333; color: white; border: none; cursor: pointer; font-family: inherit; font-size: 0.8rem;
}
.btn-small:hover { background: #444; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.skill-category h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 0.5rem; border-bottom: 1px dashed #444; padding-bottom: 5px;}
.skill-category p { font-size: 0.9rem; opacity: 0.9; }

.section-header { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 2rem; color: var(--primary); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    display: flex; flex-direction: column; justify-content: space-between;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.card-header h3 { color: var(--accent); font-size: 1.1rem; }
.tag { background: rgba(203, 166, 247, 0.1); color: var(--primary); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.card p { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.9; }
.funny-footer { font-size: 0.75rem; color: #6c7086; font-style: italic; margin-bottom: 1rem; padding-top: 0.5rem; border-top: 1px dashed #333; }
.links a { font-size: 0.85rem; color: var(--green); font-weight: bold; margin-right: 10px; }

.terminal-window { background: #000; padding: 2rem; border-radius: 8px; border: 1px solid #333; }
.output { color: var(--text); margin-bottom: 1.5rem; }
.social-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { background: var(--primary); color: var(--bg); padding: 0.5rem 1rem; border-radius: 4px; font-weight: bold; }
.btn:hover { background: var(--accent); }

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

@media (max-width: 900px) {
    .split-layout { flex-direction: column; }
    .fox-widget { width: 100%; min-width: auto; }
    .fox-img { height: 300px; }
    .log-content { font-size: 0.8rem; }
    .comment, .output, .error { margin-left: 0; display: block; margin-top: 5px; }
}