:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #00ff88;
    --glow: rgba(0, 255, 136, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
    color: var(--text-primary);
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    left: -100%;
    width: 50%;
    background: linear-gradient(to right, transparent, rgba(0, 255, 136, 0.05), transparent);
    transform: skewX(-25deg);
    z-index: -1;
    animation: grid-pulse 8s infinite linear;
    pointer-events: none;
}

@keyframes grid-pulse {
    to { left: 200%; }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 999;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(21, 21, 21, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo:hover,
.nav-logo:focus {
    color: var(--accent);
    outline: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding-bottom: 5px;
}

.nav-links a.active {
    color: var(--accent);
    box-shadow: 0 4px 0 var(--accent);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 120px 20px 80px;
}

.hero {
    text-align: center;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.avatar {
    width: 150px;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--glow);
    border: 3px solid var(--accent);
    cursor: pointer;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    background: #747f8d;
}

.status-online  { background: #3ba55d; box-shadow: 0 0 15px #3ba55d; }
.status-idle    { background: #faa81a; box-shadow: 0 0 15px #faa81a; }
.status-dnd     { background: #ed4245; box-shadow: 0 0 15px #ed4245; }

.status-text {
    display: block;
    margin-top: 10px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

h1 { font-size: 3.5rem; margin-top: 0; }
h2 { font-size: 2rem; margin-top: 60px; }

.subtitle { color: var(--text-secondary); }

.activity-container {
    margin-top: 25px;
    display: none;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(5px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.activity-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--glow);
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.spotify-art {
    border-radius: 50%;
    animation: spin 12s linear infinite;
}

.activity-text h4 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-text p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.activity-text small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--bg-secondary);
    transition: box-shadow 0.3s;
}

.badge:hover {
    box-shadow: 0 0 15px var(--glow);
}
.buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn.primary {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 20px var(--glow);
}

.btn.secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card .btn {
    margin-top: auto;
    align-self: center;
    width: fit-content;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px var(--glow);
}

.project-card img,
.project-image {
    width: 100%;
    border-radius: 8px;
}

.project-image {
    max-width: 800px;
    box-shadow: 0 0 20px #000;
}

.warning-box {
    background: var(--bg-secondary);
    border-left: 4px solid #ff6b6b; 
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px 12px 12px 4px; 
}

.warning-box strong {
    color: #ff6b6b;
}

.project-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.comparison-grid p {
    margin-bottom: 16px;
}

.future-update {
    margin-top: 25px;
    opacity: 0.7;
}

video.project-image {
    display: block;
    height: auto;
}

.gh-monitor {
    margin-top: 40px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.gh-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.stat-full {
    grid-column: span 2;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    padding-bottom: 15px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-family: monospace;
}

.bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-top: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--glow);
    transition: width 1.5s ease-out;
}

.value-large {
    font-size: 3rem;
    display: block;
}

.value {
    font-size: 1.2rem;
    color: var(--accent);
}

.pulse-dot {
    height: 10px;
    width: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.project-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    padding-top: 20px;
}

.pane h3 {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.mini-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.05);
    border-left: 2px solid transparent;
    padding-left: 6px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mini-list li:hover {
    background: rgba(0, 255, 136, 0.05);
    border-left-color: var(--accent);
    color: var(--accent);
}

.repo-name {
    color: var(--text-primary);
    font-size: 0.8rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.repo-count {
    color: var(--accent);
    font-family: monospace;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
}

.roadmap {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-left: 30px;
    border-left: 2px solid #333;
    margin: 40px 0;
}

.step {
    position: relative;
    display: flex;
    align-items: flex-start;
    transition: opacity 0.3s;
}

.step.completed { opacity: 0.4; }
.step.pending   { opacity: 0.8; }

.step:last-child {
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.node {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #333;
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
}

.step.active .node {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: node-breath 2s infinite ease-in-out;
}

@keyframes node-breath {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 10px var(--accent); }
    50%       { transform: scale(1.3); box-shadow: 0 0 25px var(--accent); }
}

.step.completed .node { background-color: #555; }

.content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-tag {
    font-family: monospace;
    font-size: 0.7rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--accent);
    text-transform: uppercase;
    font-weight: bold;
}

.step p {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

footer {
    text-align: center;
    padding: 40px;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icons a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-icons img {
    width: 36px;
    height: 36px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 768px) {
    .project-breakdown { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
}