:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: #1e293b;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --border: rgba(255, 255, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    position: relative;
    z-index: 120;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    color: var(--muted);
    font-size: 15px;
    transition: 0.2s ease;
    position: relative;
}

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

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
}

/* Mobile menu button */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    z-index: 120;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--text);
    transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 28%),
        var(--bg);
}

.hero-content {
    padding: 96px 0;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-text {
    max-width: 680px;
    color: var(--muted);
    font-size: 20px;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #082f49;
}

.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Sections */

.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 34px;
    margin-bottom: 28px;
}

.page-hero {
    padding: 90px 0 50px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 30%),
        var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 20px;
}

/* Cards */

.cards-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card,
.project-card,
.content-box,
.contact-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.card,
.project-card {
    transition: 0.2s ease;
}

.card:hover,
.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
}

.card h3,
.project-card h2 {
    margin-bottom: 12px;
}

.card p,
.project-card p,
.content-box p,
.contact-box p {
    color: var(--muted);
}

.project-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.content-box {
    max-width: 900px;
}

.content-box h2 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-box h2:first-child {
    margin-top: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tags span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

/* Contacts */

.contact-box {
    max-width: 760px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-links a {
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
    font-weight: 700;
    transition: 0.2s ease;
}

.contact-links a:hover {
    background: var(--primary);
    color: #082f49;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    background: var(--bg-soft);
    text-align: center;
}

/* Responsive */

@media (max-width: 860px) {
    .header-content {
        min-height: 70px;
        padding: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 110;
        min-height: 100vh;
        padding: 110px 24px 40px;
        background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 32%),
            rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 18px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: 0.25s ease;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav a {
        width: 100%;
        padding: 16px 18px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        font-size: 20px;
        font-weight: 800;
    }

    .nav a.active::after {
        display: none;
    }

    .nav a.active {
        background: rgba(56, 189, 248, 0.12);
        border-color: rgba(56, 189, 248, 0.35);
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 72px 0;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 18px;
    }

    .cards-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

    .page-hero {
        padding: 64px 0 42px;
    }
}

@media (max-width: 520px) {
    .logo {
        font-size: 19px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .card,
    .project-card,
    .content-box,
    .contact-box {
        padding: 22px;
        border-radius: 20px;
    }
}

/* Intro section */

.intro-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.intro-grid h2 {
    max-width: 520px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.intro-text {
    display: grid;
    gap: 18px;
}

.intro-text p {
    color: var(--muted);
    font-size: 18px;
}

/* Section heading */

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--muted);
    font-size: 18px;
}

/* Featured projects */

.featured-section {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 28%),
        var(--bg);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.featured-card {
    min-height: 390px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 36%);
    opacity: 0;
    transition: 0.25s ease;
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.36);
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.featured-content {
    position: relative;
    z-index: 1;
}

.featured-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.featured-content p {
    color: var(--muted);
}

.featured-link {
    margin-top: 28px;
    color: var(--primary);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

/* CTA */

.cta-box {
    padding: 44px;
    border-radius: 32px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.cta-box h2 {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-box p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 26px;
}

/* Responsive extra */

@media (max-width: 860px) {
    .intro-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        min-height: auto;
    }

    .cta-box {
        padding: 28px;
        border-radius: 26px;
    }
}

/* Projects showcase */

.projects-showcase-section {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.project-showcase-card {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 34px;
    align-items: stretch;
    padding: 34px;
    margin-bottom: 28px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    transition: 0.25s ease;
}

.project-showcase-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 36%);
    opacity: 0;
    transition: 0.25s ease;
    pointer-events: none;
}

.project-showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.34);
}

.project-showcase-card:hover::before {
    opacity: 1;
}

.project-showcase-content,
.project-showcase-side {
    position: relative;
    z-index: 1;
}

.project-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid var(--border);
}

.project-status.active {
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.24);
}

.project-status.progress {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.24);
}

.project-status.soon {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.24);
}

.project-showcase-content h2 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.project-showcase-content p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 16px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tech-list span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.project-showcase-side {
    padding: 26px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.44);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

.project-big-icon {
    width: 92px;
    height: 92px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 950;
}

.project-points {
    list-style: none;
    display: grid;
    gap: 12px;
}

.project-points li {
    color: var(--muted);
    padding-left: 24px;
    position: relative;
    font-size: 15px;
}

.project-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Projects responsive */

@media (max-width: 860px) {
    .project-showcase-card {
        grid-template-columns: 1fr;
        padding: 26px;
        border-radius: 26px;
    }

    .project-showcase-side {
        padding: 22px;
    }

    .project-big-icon {
        width: 76px;
        height: 76px;
        border-radius: 24px;
        font-size: 24px;
    }
}

@media (max-width: 520px) {
    .project-showcase-card {
        padding: 22px;
    }

    .project-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* About page */

.about-hero h1 {
    max-width: 920px;
}

.about-intro-section {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 28px;
    align-items: stretch;
}

.about-profile-card,
.about-text-card {
    border-radius: 32px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.about-profile-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 32px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 950;
    margin-bottom: 28px;
}

.about-profile-card h2 {
    font-size: 30px;
    margin-bottom: 4px;
}

.profile-role {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 28px;
}

.profile-info {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.profile-info div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid var(--border);
}

.profile-info span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.profile-info strong {
    color: var(--text);
    font-size: 15px;
}

.about-text-card {
    padding: 38px;
}

.about-text-card h2 {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.about-text-card p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 18px;
}

/* Values */

.values-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.value-card {
    padding: 30px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.34);
}

.value-number {
    color: var(--primary);
    font-weight: 950;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--muted);
}

/* Skills */

.skills-section {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 42px;
    align-items: start;
}

.skills-grid h2 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.skills-grid p {
    color: var(--muted);
    font-size: 18px;
}

.skills-panel {
    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.skill-group {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.skill-group:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.skill-group h3 {
    margin-bottom: 14px;
}

/* Timeline */

.timeline-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline {
    position: relative;
    display: grid;
    gap: 22px;
    max-width: 900px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 20px;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--primary);
    border: 6px solid var(--bg-soft);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.timeline-content {
    padding: 24px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.timeline-content span {
    color: var(--primary);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 24px;
    margin: 8px 0 8px;
}

.timeline-content p {
    color: var(--muted);
}

/* About responsive */

@media (max-width: 860px) {
    .about-intro-grid,
    .values-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-text-card,
    .about-profile-card,
    .skills-panel {
        padding: 26px;
        border-radius: 26px;
    }

    .value-card {
        border-radius: 24px;
    }
}

@media (max-width: 520px) {
    .profile-avatar {
        width: 82px;
        height: 82px;
        border-radius: 26px;
        font-size: 28px;
    }

    .about-text-card,
    .about-profile-card,
    .skills-panel {
        padding: 22px;
    }

    .timeline-item {
        gap: 14px;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* Playground page */

.playground-hero h1 {
    max-width: 940px;
}

.playground-section {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.playground-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.play-card {
    min-height: 320px;
    padding: 30px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
}

.play-card-large {
    min-height: 420px;
}

.play-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 38%);
    opacity: 0;
    transition: 0.25s ease;
    pointer-events: none;
}

.play-card:hover::before {
    opacity: 1;
}

.play-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.play-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 24px;
}

.play-card h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.random-fact {
    min-height: 120px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.play-btn {
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Quiz */

.quiz-box {
    position: relative;
    z-index: 1;
}

.quiz-question {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 20px;
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.42);
    color: var(--text);
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.quiz-option:hover {
    border-color: rgba(56, 189, 248, 0.38);
    transform: translateY(-2px);
}

.quiz-option.correct {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.36);
}

.quiz-option.wrong {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.34);
}

.quiz-result {
    min-height: 28px;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 900;
}

/* Terminal */

.terminal-card {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0;
    background: #020617;
    overflow: hidden;
}

.terminal-top {
    height: 48px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid var(--border);
}

.terminal-top span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.terminal-body {
    padding: 28px;
    font-family: Monaco, Consolas, "Courier New", monospace;
}

.terminal-body p {
    color: #cbd5e1;
    margin-bottom: 10px;
}

.terminal-body p span {
    color: var(--primary);
    font-weight: 900;
}

.terminal-success {
    color: #86efac !important;
}

/* Playground ideas */

.playground-extra-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.idea-card {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
}

.idea-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.34);
}

.idea-card span {
    display: inline-block;
    color: var(--primary);
    font-weight: 950;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.idea-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.idea-card p {
    color: var(--muted);
}

/* Playground responsive */

@media (max-width: 860px) {
    .playground-grid,
    .ideas-grid {
        grid-template-columns: 1fr;
    }

    .play-card,
    .play-card-large {
        min-height: auto;
    }

    .random-fact {
        min-height: auto;
        font-size: 19px;
    }
}

@media (max-width: 520px) {
    .play-card {
        padding: 24px;
        border-radius: 24px;
    }

    .play-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .terminal-body {
        padding: 22px;
        font-size: 14px;
    }
}

/* Contacts page */

.contacts-hero h1 {
    max-width: 980px;
}

.contacts-section {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}

.contact-main-card,
.contact-side-card {
    border-radius: 32px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.contact-main-card {
    padding: 38px;
}

.contact-main-card h2 {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.contact-main-card p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 18px;
}

.contact-email-box {
    margin-top: 32px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid var(--border);
}

.contact-email-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.contact-email-box a {
    color: var(--primary);
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    word-break: break-word;
}

.contact-side-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.contact-avatar {
    width: 96px;
    height: 96px;
    border-radius: 32px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 950;
    margin-bottom: 28px;
}

.contact-side-card h2 {
    font-size: 30px;
    margin-bottom: 4px;
}

.contact-side-card > p {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 28px;
}

.contact-mini-list {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.contact-mini-list div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid var(--border);
}

.contact-mini-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.contact-mini-list strong {
    color: var(--text);
    font-size: 15px;
}

/* Social section */

.social-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.social-card {
    padding: 26px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.34);
}

.social-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 20px;
}

.social-card h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.social-card p {
    color: var(--muted);
}

/* Contact banner */

.contact-ideas-section {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.contact-banner {
    padding: 36px;
    border-radius: 32px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.contact-banner h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.contact-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.contact-topics span {
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--primary);
    font-weight: 800;
}

/* Contacts responsive */

@media (max-width: 860px) {
    .contacts-grid,
    .social-grid,
    .contact-banner {
        grid-template-columns: 1fr;
    }

    .contact-main-card,
    .contact-side-card,
    .contact-banner {
        padding: 26px;
        border-radius: 26px;
    }

    .contact-topics {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .contact-main-card,
    .contact-side-card,
    .contact-banner {
        padding: 22px;
    }

    .contact-avatar {
        width: 82px;
        height: 82px;
        border-radius: 26px;
        font-size: 28px;
    }

    .social-card {
        flex-direction: column;
        border-radius: 24px;
    }
}

/* Reveal animations */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

/* Scroll top button */

.scroll-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(15, 23, 42, 0.88);
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: #082f49;
    transform: translateY(-3px);
}

@media (max-width: 520px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

/* Accessibilità: se l'utente preferisce meno animazioni */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card,
    .project-card,
    .featured-card,
    .project-showcase-card,
    .value-card,
    .idea-card,
    .social-card {
        transition: none;
    }
}

/* Developer mode easter egg */

body.dev-mode {
    --primary: #22c55e;
    --primary-dark: #16a34a;
}

body.dev-mode::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(34, 197, 94, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
}

body.dev-mode .site-header {
    border-bottom-color: rgba(34, 197, 94, 0.28);
}

body.dev-mode .logo::after {
    content: " dev";
    color: var(--primary);
    font-size: 13px;
    margin-left: 6px;
    vertical-align: super;
}

.dev-toast {
    position: fixed;
    right: 22px;
    bottom: 88px;
    width: min(360px, calc(100% - 44px));
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(2, 6, 23, 0.92);
    color: var(--text);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    z-index: 300;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: 0.25s ease;
}

.dev-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dev-toast-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 20px;
}

.dev-toast strong {
    display: block;
    margin-bottom: 4px;
}

.dev-toast p {
    color: var(--muted);
    font-size: 14px;
}

.dev-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    background: rgba(2, 6, 23, 0.94);
    border-top: 1px solid rgba(34, 197, 94, 0.28);
    backdrop-filter: blur(14px);
    transform: translateY(100%);
    transition: 0.25s ease;
}

body.dev-mode .dev-bar {
    transform: translateY(0);
}

.dev-bar-content {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.dev-bar-content span {
    color: #86efac;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-bar-content strong {
    color: var(--text);
    margin-right: auto;
}

.dev-bar-content button {
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

body.dev-mode .terminal-card {
    border-color: rgba(34, 197, 94, 0.34);
    box-shadow: 0 18px 80px rgba(34, 197, 94, 0.08);
}

body.dev-mode .terminal-body p span,
body.dev-mode .terminal-success {
    color: #86efac !important;
}

body.dev-mode .scroll-top-btn {
    border-color: rgba(34, 197, 94, 0.28);
}

@media (max-width: 620px) {
    .dev-toast {
        right: 16px;
        bottom: 78px;
        width: calc(100% - 32px);
    }

    .dev-bar-content {
        min-height: 62px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .dev-bar-content strong {
        margin-right: 0;
        font-size: 13px;
    }

    .dev-bar-content button {
        margin-top: 6px;
    }
}

/* Home secret hint */

.secret-home-section {
    background:
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.secret-home-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 24px;
    align-items: stretch;
}

.secret-hint-card {
    padding: 32px;
    border-radius: 32px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
}

.secret-hint-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 38%);
    opacity: 0.8;
    pointer-events: none;
}

.secret-hint-card > * {
    position: relative;
    z-index: 1;
}

.secret-hint-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 26px;
    margin-bottom: 24px;
}

.secret-hint-card h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.secret-hint-card p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 22px;
}

.secret-hint-card strong {
    color: var(--primary);
}

.secret-keyword {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: Monaco, Consolas, "Courier New", monospace;
    font-weight: 900;
    letter-spacing: 4px;
}

@media (max-width: 860px) {
    .secret-home-grid {
        grid-template-columns: 1fr;
    }

    .secret-hint-card {
        padding: 26px;
        border-radius: 26px;
    }
}

@media (max-width: 520px) {
    .secret-hint-card {
        padding: 22px;
    }
}

/* Interactive terminal */

.interactive-terminal-card {
    padding: 0;
}

.terminal-output {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
}

.terminal-output p {
    margin-bottom: 4px;
}

.terminal-output strong {
    color: var(--primary);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
}

.terminal-input-row span {
    color: var(--primary);
    font-weight: 900;
}

.terminal-input-row input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: Monaco, Consolas, "Courier New", monospace;
    font-size: 15px;
}

.terminal-input-row input::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

.terminal-command {
    color: var(--text) !important;
}

.terminal-muted {
    color: var(--muted) !important;
}

.terminal-error {
    color: #fca5a5 !important;
}

.terminal-warning {
    color: #fde68a !important;
}

.terminal-link {
    color: var(--primary) !important;
}

/* Hero avatar */

.hero-grid {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 96px 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-grid .hero-content {
    padding: 0;
}

.hero-avatar-wrap {
    display: flex;
    justify-content: center;
}

.hero-avatar-card {
    width: min(390px, 100%);
    padding: 18px;
    border-radius: 36px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
        rgba(30, 41, 59, 0.72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    position: relative;
}

.hero-avatar-card img {
    width: 100%;
    display: block;
    border-radius: 28px;
    object-fit: cover;
}

.hero-avatar-badge {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-avatar-badge span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 72px 0;
    }

    .hero-avatar-wrap {
        justify-content: flex-start;
    }

    .hero-avatar-card {
        max-width: 340px;
    }
}

@media (max-width: 520px) {
    .hero-avatar-card {
        max-width: 100%;
        border-radius: 30px;
    }

    .hero-avatar-card img {
        border-radius: 24px;
    }

    .hero-avatar-badge {
        left: 22px;
        right: 22px;
        bottom: 22px;
        font-size: 12px;
    }
}

.image-avatar {
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.image-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Home - Now building section */

.now-section {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.now-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.now-content h2 {
    max-width: 620px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.now-content p {
    color: var(--muted);
    font-size: 18px;
}

.now-list {
    display: grid;
    gap: 16px;
}

.now-item {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
    transition: 0.25s ease;
}

.now-item:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.34);
}

.now-item strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.now-item p {
    color: var(--muted);
    font-size: 15px;
}

.now-dot {
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.12);
}

.now-dot.active {
    background: #22c55e;
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.12);
}

.now-dot.progress {
    background: #f59e0b;
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.12);
}

.now-dot.personal {
    background: var(--primary);
    box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.12);
}

.now-dot.idea {
    background: #a78bfa;
    box-shadow: 0 0 0 7px rgba(167, 139, 250, 0.12);
}

/* Home - Stats section */

.stats-section {
    background:
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.08), transparent 32%),
        var(--bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    min-height: 210px;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.34);
}

.stat-card span {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.stat-card strong {
    display: block;
    font-size: 23px;
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--muted);
    font-size: 15px;
}

/* Home additions responsive */

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

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

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

    .now-item {
        padding: 20px;
        border-radius: 22px;
    }

    .stat-card {
        min-height: auto;
        padding: 22px;
        border-radius: 24px;
    }
}

/* Home - Progress bars */

.now-item-content {
    width: 100%;
}

.now-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}

.now-title-row strong {
    margin-bottom: 0;
}

.now-title-row span {
    color: var(--primary);
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.progress-track {
    width: 100%;
    height: 10px;
    margin-top: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    transform-origin: left;
    animation: progressGrow 1.1s ease both;
}

.progress-green {
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.progress-orange {
    background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.progress-blue {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.progress-purple {
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

@keyframes progressGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

body.dev-mode .progress-blue,
body.dev-mode .progress-green {
    background: linear-gradient(90deg, #16a34a, #86efac);
}

@media (max-width: 520px) {
    .now-title-row {
        align-items: flex-start;
    }

    .progress-track {
        height: 9px;
    }
}

/* Home - Stack section */

.stack-section {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.stack-card {
    min-height: 250px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stack-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 38%);
    opacity: 0;
    transition: 0.25s ease;
    pointer-events: none;
}

.stack-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.34);
}

.stack-card:hover::before {
    opacity: 1;
}

.stack-card > * {
    position: relative;
    z-index: 1;
}

.stack-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 24px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 18px;
}

.stack-card h3 {
    font-size: 25px;
    margin-bottom: 12px;
}

.stack-card p {
    color: var(--muted);
    font-size: 15px;
}

body.dev-mode .stack-icon {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.28);
}

@media (max-width: 960px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .stack-card {
        min-height: auto;
        padding: 24px;
        border-radius: 24px;
    }
}

/* Project detail pages */

.project-detail-hero .back-link {
    display: inline-flex;
    margin-bottom: 28px;
}

.back-link {
    color: var(--primary);
    font-weight: 900;
    transition: 0.2s ease;
}

.back-link:hover {
    transform: translateX(-4px);
}

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.project-detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.project-detail-section {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--bg);
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.project-detail-main {
    display: grid;
    gap: 26px;
}

.detail-block {
    padding: 34px;
    border-radius: 32px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.detail-block h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.detail-block p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 16px;
}

.detail-block p:last-child {
    margin-bottom: 0;
}

.detail-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.detail-feature-grid div {
    padding: 20px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid var(--border);
}

.detail-feature-grid strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 8px;
}

.detail-feature-grid p {
    font-size: 15px;
    margin-bottom: 0;
}

.project-detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.project-side-card {
    padding: 26px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        var(--card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.project-side-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-side-card p {
    color: var(--muted);
}

.side-progress {
    margin-top: 24px;
}

.side-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.side-progress-top span {
    color: var(--muted);
    font-size: 14px;
}

.side-progress-top strong {
    color: var(--primary);
}

.project-actions {
    margin-top: 26px;
}

.project-actions .btn {
    width: fit-content;
}

body.dev-mode .project-detail-meta span {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.22);
}

@media (max-width: 980px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-side {
        position: static;
    }
}

@media (max-width: 620px) {
    .detail-block,
    .project-side-card {
        padding: 22px;
        border-radius: 24px;
    }

    .detail-feature-grid {
        grid-template-columns: 1fr;
    }

    .project-actions .btn {
        width: 100%;
    }
}

/* =========================
   NAVBAR AVATAR
========================= */

.logo-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.navbar-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #f7c948, #ffffff, #5b8cff);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.navbar-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
}

.logo-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .navbar-avatar {
        width: 38px;
        height: 38px;
    }

    .logo-with-avatar {
        gap: 10px;
    }

    .logo-text {
        font-size: 0.95rem;
    }
}

/* =========================
   CV REQUEST FORM
========================= */

.cv-request-section {
    position: relative;
}

.cv-request-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}

.cv-request-content,
.cv-request-form {
    border-radius: 28px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20);
}

.cv-request-content h2 {
    margin-bottom: 16px;
}

.cv-request-content p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.cv-mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.cv-mini-points span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    background: rgba(247, 201, 72, 0.14);
    border: 1px solid rgba(247, 201, 72, 0.22);
}

.cv-request-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    font: inherit;
    transition: 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(247, 201, 72, 0.75);
    box-shadow: 0 0 0 4px rgba(247, 201, 72, 0.12);
}

.form-group small {
    color: #ff8c8c;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-alert {
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-alert-success {
    color: #d9ffe2;
    background: rgba(35, 180, 95, 0.16);
    border: 1px solid rgba(35, 180, 95, 0.35);
}

.form-alert-error {
    color: #ffe0e0;
    background: rgba(255, 75, 75, 0.16);
    border: 1px solid rgba(255, 75, 75, 0.35);
}

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

    .cv-request-content,
    .cv-request-form {
        padding: 26px;
    }
}