/* ── Custom Properties ──────────────────────────────────────────── */
:root {
    /* Colors */
    --bg: #0d0d0d;
    --bg-card: #141414;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #6c9bff;
    --border: #222;

    /* Per-project accent colors */
    --color-shula: #2dd4bf;
    --color-puntua: #f97066;
    --color-3dnames: #f472b6;
    --color-impostor: #fbbf24;
    --color-nfcreader: #34d399;
    --color-globalapp: #a78bfa;
    --color-kupeka: #94a3b8;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;

    /* Misc */
    --radius: 8px;
    --transition: 0.2s ease;
}

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

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    padding: 0 var(--space-sm);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #93b8ff;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Utility ───────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    margin: 0 calc(var(--space-sm) * -1);
    padding: 0 var(--space-sm);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: auto;
}

/* Burger toggle */
.nav-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle:checked ~ .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .burger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: var(--space-lg) 0;
}

.hero-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 3px solid var(--border);
}

.hero-greeting {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: var(--text-lg);
    line-height: 1.7;
}

/* ── Scroll offset for sticky nav ──────────────────────────────── */
:target {
    scroll-margin-top: 40px;
}

/* ── Section ───────────────────────────────────────────────────── */
.section {
    padding: var(--space-lg) 0;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

/* ── Project Grid ──────────────────────────────────────────────── */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border-top: 3px solid var(--card-accent, var(--accent));
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-card.featured {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15em 0.6em;
    border-radius: 999px;
    background: var(--card-accent, var(--accent));
    color: var(--bg);
}

.badge-discontinued {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.card-tagline {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.card-description {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: auto;
}

.platform-badges {
    display: flex;
    gap: var(--space-xs);
}

.platform-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.card-link {
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact {
    text-align: center;
    padding: var(--space-xl) 0;
}

.contact-email {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ── CV Page ───────────────────────────────────────────────────── */
.cv-page .container {
    max-width: 800px;
}

.cv-header {
    padding: var(--space-lg) 0 var(--space-md);
}

.cv-header h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.cv-role {
    font-size: var(--text-xl);
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.cv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.cv-meta a {
    color: var(--text-muted);
}

.cv-meta a:hover {
    color: var(--accent);
}

.cv-section {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
}

.cv-section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.cv-section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.cv-entry {
    margin-bottom: var(--space-md);
}

.cv-entry:last-child {
    margin-bottom: 0;
}

.cv-entry-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.cv-entry-title {
    font-weight: 600;
}

.cv-entry-company {
    color: var(--accent);
}

.cv-entry-date {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-left: auto;
}

.cv-entry p,
.cv-entry ul {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.cv-entry ul {
    padding-left: var(--space-md);
}

.cv-entry ul li {
    margin-bottom: 0.25rem;
}

.cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    list-style: none;
}

.cv-skills-list li {
    font-size: var(--text-sm);
    padding: 0.3em 0.8em;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.cv-languages {
    list-style: none;
}

.cv-languages li {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.cv-languages strong {
    color: var(--text);
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-style: italic;
    line-height: 1.7;
}

blockquote cite {
    display: block;
    margin-top: var(--space-xs);
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

/* ── Print Button ──────────────────────────────────────────────── */
.print-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.5em 1.2em;
    font-family: var(--font);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity var(--transition);
}

.print-btn:hover {
    opacity: 0.85;
}

/* ── Experience List (index) ────────────────────────────────────── */
.experience-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.experience-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border-top: 3px solid var(--card-accent, var(--accent));
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.experience-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.experience-company {
    font-weight: 600;
    font-size: var(--text-xl);
}

.experience-detail {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    flex: 1;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.tech-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ── Hobbies ───────────────────────────────────────────────────── */
.hobby-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}

.hobby-content {
    padding: var(--space-md);
}

.hobby-banner {
    height: 260px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: var(--radius) var(--radius) 0 0;
    width: calc(100% + var(--space-md) * 2);
}

.hobby-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.hobby-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.hobby-roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.hobby-role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 599px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 30%;
        height: 2000px;
        flex-direction: column;
        background: #1a1a1a;
        padding: 100px var(--space-lg) var(--space-lg);
        gap: var(--space-sm);
        border-left: 1px solid var(--border);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.6);
        z-index: 1001;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .nav-links a {
        color: var(--text);
    }

    .nav-toggle:checked ~ .nav-links {
        visibility: visible;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: var(--text-base);
        padding: var(--space-xs) 0;
    }

    .project-card {
        padding: var(--space-sm);
    }
}

@media (min-width: 600px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


