/* FONTS + VARS */
@font-face {
    font-family: 'Ndot55-Regular';
    src: url('55.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #000000;
    --text: #ffffff;
    --border: #ffffff;
    --dim-text: rgba(255, 255, 255, 0.6);
    --grid-color: rgba(255, 255, 255, 0.3);
    --grid-gap: 80px;
    --type-duration: 1.5s;
}

/* BASE */
body {
    font-family: 'Ndot55-Regular', monospace;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.4;
    text-transform: lowercase;
}

#grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content {
    max-width: 1500px;
    padding: 60px 5%;
    position: relative;
    z-index: 1;
}

/* HEADER */
header h1 {
    font-size: 5rem;
    margin: 0 0 5px 0;
    letter-spacing: -3px;
    font-weight: 900;
    display: inline-block;
    white-space: nowrap;
    border-right: 4px solid var(--border);
    max-width: 0;
    animation:
        typing var(--type-duration) steps(12, end) forwards,
        blink 0.8s step-end 3 forwards;
}

.description {
    font-size: 1.2rem;
    color: var(--dim-text);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* STATUS */
.status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--dim-text);
    text-transform: none;
}

#status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #747f8d;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    animation: status-pulse 2s infinite;
}

/* COMPONENTS */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.skill-tag {
    border: 1px solid var(--border);
    padding: 4px 12px;
    font-size: 0.85rem;
}

.links {
    margin-bottom: 5rem;
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    border: 1px solid var(--border);
    background: var(--text);
    color: var(--bg);
    transition: all 0.1s ease-in-out;
}

.btn:hover {
    background: var(--bg);
    color: var(--text);
}

/* TABS */
.dashboard-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--grid-color);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    color: var(--dim-text);
    border: none;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--text);
}

.tab-btn.active::before { content: "[ ~/"; }
.tab-btn.active::after  { content: "/ ]"; }

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

/* GALLERY + CARDS */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 25px;
    width: 100%;
    margin-bottom: 5rem;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.project-card {
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.2s ease;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.project-info {
    padding: 24px;
    flex-grow: 1;
    transition: background 0.15s, color 0.15s;
}

.project-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
}

.project-info p {
    margin: 0;
    font-size: 1rem;
    color: var(--dim-text);
}

.project-card:hover .project-info {
    background: var(--text);
    color: var(--bg);
}

.project-card:hover .project-info p {
    color: var(--bg);
}

.project-card:hover .skill-tag {
    border-color: var(--bg);
    color: var(--bg);
    background: transparent;
}

.project-card:hover .skill-tag:hover {
    background: var(--bg);
    color: var(--text);
}

/* BLOG */
.blog-post {
    cursor: default;
}

.blog-meta {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--grid-color);
    padding-bottom: 15px;
}

.blog-title {
    font-size: 2rem !important;
    margin-top: 10px !important;
}

.blog-body p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.blog-heading {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    text-decoration: underline;
}

.blog-note {
    border-left: 3px solid var(--text);
    padding-left: 15px;
    color: var(--dim-text);
    font-style: italic;
}

.blog-post:hover .project-info,
.blog-post:hover .project-info p {
    background: transparent;
    color: var(--text);
}

.blog-post:hover .skill-tag {
    border-color: var(--border);
    color: var(--dim-text);
    background: transparent;
}

/* ANIMATIONS */
@keyframes typing {
    from { max-width: 0; }
    to   { max-width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50%      { border-color: var(--border); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.description,
.skills-container,
.links,
.dashboard-tabs,
.gallery {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* SPECS */
.neofetch-layout {
    display: flex;
    gap: 2rem;
    color: #d1d1d1;
    padding: 20px;
    width: 2000px;
    text-transform: none;
}

.fetch-art img {
    width: 250px;
    height: 250px;
    border: 1px solid #444;
}

.fetch-header { color: #bb9af7; font-weight: bold; }
.fetch-key { color: #ff9e64; font-weight: bold; margin-right: 10px; }
.fetch-val { color: #a9b1d6; }

.color-grid { margin-top: 15px; display: flex; gap: 4px; }
.color-grid span { 
    width: 20px; height: 20px; display: inline-block; 
}

.c1 { background: #7aa2f7; } .c2 { background: #ff9e64; } 
.c3 { background: #bb9af7; } .c4 { background: #ffffff; }