
:root {
    --bg: #050505;
    --bg-elev: #0a0a0a;
    --bg-soft: #0f1214;
    --ink: #00ff41; 
    --ink-muted: #008f11;
    --accent: #00ff41;
    --border: #008f11;
    --border-soft: rgba(0, 255, 65, 0.2);
    --shadow-hard: 6px 6px 0px rgba(0, 143, 17, 0.4);
    --radius: 0;
    --mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: auto; }

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.02) 2px, rgba(0, 255, 65, 0.02) 4px);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--ink);
    color: var(--bg);
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus { top: 0; }

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Hero Section - Restoring Original Layout */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.hero--single { grid-template-columns: 1fr; }

.hero__content { display: flex; flex-direction: column; gap: 0.75rem; }

.hero__title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
.hero__title::after { content: '_'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__subtitle { color: var(--ink-muted); font-size: 1.1rem; max-width: 28rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* Buttons */
.button {
    background: transparent;
    color: var(--ink);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 600;
    text-transform: lowercase;
}
.button:hover, .button:focus { background: var(--ink); color: var(--bg); }
.button--active { background: var(--ink-muted); color: var(--bg); border-color: var(--ink-muted); }

/* Original Hero Card */
.hero__card {
    background: var(--bg-elev);
    border: 2px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-hard);
    position: relative;
}
.hero__card::before {
    content: 'secret';
    position: absolute;
    top: -12px;
    right: 10px;
    background: var(--bg);
    padding: 0 5px;
    font-size: 0.7rem;
    color: var(--ink);
}

.card__label { font-size: 0.7rem; text-transform: uppercase; color: var(--ink-muted); }
.card__value { font-size: 1.2rem; font-weight: 600; margin-top: 0.5rem; }
.card__meta { margin-top: 0.75rem; font-size: 0.85rem; color: var(--ink-muted); }

/* Sections */
.section { margin-top: 3rem; }
.section__header { margin-bottom: 1.5rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.5rem; }
.section__title { font-size: 1.6rem; }
.section__title::before { content: '> '; color: var(--ink-muted); }
.section__desc { color: var(--ink-muted); font-size: 0.95rem; }

/* Grid and Cards */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.project-card {
    background: var(--bg-elev);
    border: 2px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-hard);
    position: relative;
}
.project-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0px var(--ink-muted); }

.project-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.project-card__title { font-size: 1.2rem; }
.project-card__title a { color: var(--ink); text-decoration: none; }
.project-card__title a:hover { background: var(--ink); color: var(--bg); }

.project-card__lang { font-size: 0.75rem; padding: 0.2rem 0.6rem; border: 1px solid var(--border); }
.project-card__desc { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.project-card__link { color: var(--ink); text-decoration: none; font-weight: bold; font-size: 0.85rem; }
.project-card__link::after { content: ' >>'; }

/* Badges (Vertical/UniPD) */
.badge {
    min-width: 50px; height: 50px;
    border: 2px solid var(--border);
    display: grid; place-items: center;
    font-weight: bold;
}

/* Stack Section */
.stack-section { margin-top: 2rem; }
.stack-section__title { font-size: 0.8rem; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

.logo-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 0.75rem;
}
.logo-card__icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.logo-card__icon img { width: 20px; height: 20px; object-fit: contain; }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip { padding: 0.5rem 1rem; border: 1px solid var(--border); color: var(--ink); background: var(--bg-soft); }

/* Footer */
.footer { text-align: left; padding: 2rem 0; border-top: 2px solid var(--border); margin-top: 4rem; color: var(--ink-muted); font-size: 0.8rem; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
