:root {
    --bg-start: #b8daf6;
    --bg-end: #5a88f1;
    --panel: #11192c;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f8ff;
    --muted: #a8b7d6;
    --primary: #19b5ff;
    --primary-strong: #0d8cff;
    --shadow: 0 24px 60px rgba(8, 19, 44, 0.22);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: linear-gradient(120deg, var(--bg-start), var(--bg-end));
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.26), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(25, 181, 255, 0.20), transparent 22%),
        radial-gradient(circle at 84% 80%, rgba(16, 92, 255, 0.18), transparent 25%);
    pointer-events: none;
}

.portfolio-shell {
    position: relative;
    z-index: 1;
    max-width: 1540px;
}

.side-nav-wrap {
    position: sticky;
    top: 2rem;
    display: flex;
    justify-content: center;
    z-index: 30;
}

.side-nav {
    display: inline-flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 0.9rem;
    background: rgba(13, 24, 45, 0.78);
    border: 1px solid rgba(25, 181, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 34px rgba(25, 181, 255, 0.2);
    backdrop-filter: blur(14px);
    position: relative;
    z-index: 31;
}

.side-link {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--muted);
    transition: 0.25s ease;
    position: relative;
    z-index: 1;
}

.side-link:hover,
.side-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    box-shadow: 0 0 24px rgba(25, 181, 255, 0.45);
}

.side-link-label {
    position: absolute;
    left: calc(100% + 0.8rem);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(10, 18, 34, 0.94);
    border: 1px solid rgba(25, 181, 255, 0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(4, 13, 28, 0.24);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.side-link:hover .side-link-label,
.side-link:focus-visible .side-link-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.side-link:hover,
.side-link:focus-visible {
    z-index: 40;
}

.panel-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 24, 44, 0.96), rgba(14, 20, 36, 0.96));
    border: 1px solid rgba(76, 131, 255, 0.16);
    border-radius: 2rem;
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 2.5vw, 3rem);
}

.panel-card::before {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(25, 181, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.hero-greeting {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
}

.hero-greeting span,
.hero-title {
    color: var(--primary);
}

.hero-typing {
    position: relative;
    display: inline-block;
    min-width: 1ch;
    white-space: nowrap;
}

.hero-typing.is-typing::after,
.hero-typing.is-complete::after {
    content: "";
    position: absolute;
    right: -0.14em;
    top: 50%;
    transform: translateY(-48%);
    width: 0.08em;
    height: 0.88em;
    background: currentColor;
    border-radius: 999px;
    animation: heroTypingCursor 0.85s step-end infinite;
}

.hero-title,
.section-heading h4 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2vw, 2rem);
    line-height: 1.15;
}

.hero-description {
    max-width: 38rem;
    color: var(--text);
    font-size: 1.05rem;
}

.hero-subtext,
.section-copy,
.info-card p,
.project-card p,
.timeline-card p,
.quote-card p {
    color: var(--muted);
    line-height: 1.8;
}

.btn-glow,
.btn-outline-soft {
    min-height: 3.25rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    box-shadow: 0 12px 28px rgba(25, 181, 255, 0.28);
}

.btn-outline-soft {
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
    background: transparent;
}

.btn-glow:hover,
.btn-outline-soft:hover {
    color: #fff;
    transform: translateY(-2px);
}

.mini-stat,
.info-card,
.project-card,
.timeline-card,
.quote-card,
.contact-card-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
}

.mini-stat {
    padding: 1rem;
    height: 100%;
}

.mini-stat strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

.mini-stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.profile-image-wrap {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1.05;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(25, 181, 255, 0.24);
    box-shadow: 0 0 0 10px rgba(25, 181, 255, 0.04), 0 0 44px rgba(25, 181, 255, 0.22);
}

.profile-image-wrap img,
.skills-illustration img,
.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-badge {
    position: absolute;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(15, 24, 44, 0.8);
    border: 1px solid rgba(25, 181, 255, 0.22);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(25, 181, 255, 0.18);
}

.badge-top {
    top: 1rem;
    left: 0;
}

.badge-right {
    right: 0;
    top: 45%;
}

.badge-bottom {
    bottom: 1rem;
    left: 1rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading-center {
    text-align: center;
}

.info-card {
    padding: 1.4rem;
    height: 100%;
}

.info-index {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.info-card h3,
.project-card h3,
.timeline-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.skills-illustration {
    position: relative;
    min-height: 100%;
    border-radius: 1.8rem;
    overflow: hidden;
    border: 1px solid rgba(25, 181, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.orb-one {
    top: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(25, 181, 255, 0.32), transparent 68%);
}

.orb-two {
    bottom: 10%;
    left: 10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(13, 140, 255, 0.22), transparent 68%);
}

.skill-list {
    display: grid;
    gap: 1rem;
}

.skill-category-list {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-category-card {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.skill-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-category-head span {
    display: block;
    margin-bottom: 0.2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.skill-category-head p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.skill-category-head small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(25, 181, 255, 0.12);
    border: 1px solid rgba(25, 181, 255, 0.18);
    color: #dff4ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.skill-list {
    display: grid;
    gap: 1rem;
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
    color: #fff;
    font-weight: 600;
}

.skill-meta i {
    color: var(--primary);
    margin-right: 0.55rem;
}

.progress-skill {
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.progress-skill .progress-bar {
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-strong), var(--primary));
    transition: width 1s ease;
}

.tool-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tool-chip {
    display: inline-flex;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: #d7e7ff;
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .skill-category-list {
        grid-template-columns: 1fr;
    }
}

.project-card {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.project-body {
    padding: 1.1rem 1.1rem 1.05rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-body h3,
.projects-directory-grid .project-body h3 {
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.project-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-size: 0.85rem;
    align-items: center;
}

.project-card-showcase {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.project-card-detailed {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.028));
}

.project-thumb-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(9, 16, 32, 0.78));
    pointer-events: none;
}

.project-thumb-badges {
    position: absolute;
    inset: 1rem 1rem auto 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 2;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: rgba(8, 16, 34, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.project-badge-featured {
    background: rgba(25, 181, 255, 0.18);
    border-color: rgba(25, 181, 255, 0.26);
    color: #e5f8ff;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #eef6ff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.project-status-badge.is-published {
    background: rgba(25, 181, 255, 0.14);
    border-color: rgba(25, 181, 255, 0.22);
    color: #dff6ff;
}

.project-status-badge.is-ongoing {
    background: rgba(255, 184, 77, 0.14);
    border-color: rgba(255, 184, 77, 0.22);
    color: #ffe8b8;
}

.project-status-badge.is-draft {
    background: rgba(168, 183, 214, 0.12);
    border-color: rgba(168, 183, 214, 0.16);
    color: #dce7fb;
}

.project-status-badge.is-archived {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.18);
    color: #ffd4d4;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.project-facts {
    display: grid;
    gap: 0.42rem;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.project-facts span {
    display: inline-flex;
    align-items: center;
}

.project-stack span {
    display: inline-flex;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(25, 181, 255, 0.08);
    color: #d5eeff;
    font-size: 0.74rem;
    border: 1px solid rgba(25, 181, 255, 0.14);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.85rem;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: center;
    min-width: 8.8rem;
    padding: 0.62rem 0.88rem;
    border-radius: 999px;
    background: rgba(25, 181, 255, 0.12);
    border: 1px solid rgba(25, 181, 255, 0.18);
    color: #e3f6ff;
    font-size: 0.78rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.project-link-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(25, 181, 255, 0.18);
    border-color: rgba(25, 181, 255, 0.3);
}

.project-link-btn-muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f7ff;
}

.project-link-btn-muted:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.projects-directory-grid .project-body {
    padding: 1rem 1rem 0.95rem;
}

.projects-directory-grid .project-facts {
    font-size: 0.78rem;
}

.projects-directory-grid .project-links {
    gap: 0.6rem;
    padding-top: 0.75rem;
}

.projects-directory-grid .project-link-btn {
    min-width: 8.2rem;
    padding: 0.58rem 0.8rem;
}

.highlight-list {
    padding-left: 1.1rem;
    margin: 0;
    display: grid;
    gap: 0.9rem;
    color: var(--muted);
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-card {
    padding: 1.4rem;
}

.timeline-period {
    display: inline-flex;
    margin-bottom: 0.2rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.timeline-company {
    color: #d6e7ff;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.quote-card {
    padding: 1.5rem;
    margin: 0;
    height: 100%;
}

.quote-card footer {
    margin-top: 1rem;
    color: #fff;
    font-weight: 700;
}

.quote-card footer span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-weight: 500;
}

.availability-box {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(25, 181, 255, 0.08);
    color: #d9edff;
    border: 1px solid rgba(25, 181, 255, 0.16);
}

.contact-card-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(25, 181, 255, 0.26);
}

.contact-card-link i {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(25, 181, 255, 0.1);
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-card-link span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-card-link strong {
    color: #fff;
    font-size: 0.98rem;
}

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

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

@keyframes heroTypingCursor {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .hero-visual {
        min-height: auto;
    }
}

@media (max-width: 1199.98px) {
    .side-nav-wrap {
        position: fixed;
        left: 50%;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        top: auto;
        transform: translateX(-50%);
        justify-content: center;
        margin-bottom: 0;
        z-index: 1000;
        pointer-events: none;
    }

    .side-nav {
        position: relative;
        top: auto;
        flex-direction: row;
        justify-content: space-between;
        background: rgba(13, 24, 45, 0.88);
        border: 1px solid rgba(25, 181, 255, 0.2);
        box-shadow:
            0 18px 44px rgba(8, 19, 44, 0.28),
            0 0 0 1px rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        pointer-events: auto;
    }

    .side-link-label {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .portfolio-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: calc(8.5rem + env(safe-area-inset-bottom));
    }

    .portfolio-page main {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .portfolio-page #contact {
        margin-bottom: calc(4rem + env(safe-area-inset-bottom));
        scroll-margin-bottom: calc(6.5rem + env(safe-area-inset-bottom));
    }

    .side-nav-wrap {
        width: calc(100% - 2.5rem);
    }

    .side-nav {
        width: min(100%, 42rem);
        gap: 0.65rem;
        padding: 0.8rem 1rem;
        border-radius: 1.25rem;
    }

    .side-link {
        width: 3.1rem;
        height: 3.1rem;
        border-radius: 1rem;
        flex: 1 1 0;
        max-width: 3.5rem;
    }

    .side-link.active,
    .side-link:hover,
    .side-link:focus-visible {
        border-radius: 1rem;
    }

    .panel-card {
        padding: 1.8rem;
        border-radius: 1.6rem;
    }

    .hero-panel .row,
    #about .row,
    #experience .row,
    #contact .row {
        row-gap: 1.5rem;
    }

    .hero-visual {
        min-height: 320px;
        margin-top: 0.5rem;
    }

    .profile-image-wrap {
        width: min(100%, 320px);
    }

    .hero-stats > div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .skill-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-hero-actions {
        justify-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .portfolio-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: calc(8.75rem + env(safe-area-inset-bottom));
    }

    .portfolio-page main {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .portfolio-page #contact {
        margin-bottom: calc(4.5rem + env(safe-area-inset-bottom));
        scroll-margin-bottom: calc(7rem + env(safe-area-inset-bottom));
    }

    .panel-card {
        border-radius: 1.5rem;
        padding: 1.25rem;
    }

    .hero-greeting {
        font-size: 2rem;
    }

    .hero-title,
    .section-heading h4 {
        font-size: 1rem;
    }

    .side-nav-wrap {
        width: calc(100% - 1.5rem);
    }

    .side-nav {
        width: min(100%, 31rem);
        gap: 0.45rem;
        padding: 0.75rem 0.85rem;
        border-radius: 1.35rem;
    }

    .side-link {
        width: 2.85rem;
        height: 2.85rem;
        flex: 1 1 0;
        max-width: 3.25rem;
        border-radius: 0.95rem;
    }

    .side-link.active,
    .side-link:hover,
    .side-link:focus-visible {
        border-radius: 0.95rem;
    }

    .floating-badge {
        position: static;
        display: inline-flex;
        margin: 0.35rem 0.35rem 0 0;
    }

    .hero-visual {
        display: block;
    }

    .profile-image-wrap {
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

.portfolio-page {
    --profile-bg-start: #b8daf6;
    --profile-bg-end: #5a88f1;
    --profile-line: rgba(255, 255, 255, 0.08);
    --profile-text: #f4f8ff;
    --profile-muted: #a8b7d6;
    --profile-primary: #19b5ff;
    --profile-primary-strong: #0d8cff;
    --profile-shadow: 0 24px 60px rgba(8, 19, 44, 0.22);
}

.portfolio-page {
    color: var(--profile-text);
    background: linear-gradient(120deg, var(--profile-bg-start), var(--profile-bg-end));
}

.portfolio-page a {
    text-decoration: none;
}

.portfolio-page .panel-card {
    box-shadow: var(--profile-shadow);
}

.portfolio-page .section-kicker,
.portfolio-page .hero-greeting span,
.portfolio-page .hero-title,
.portfolio-page .info-index,
.portfolio-page .timeline-period,
.portfolio-page .skill-meta i,
.portfolio-page .contact-card-link i {
    color: var(--profile-primary);
}

.portfolio-page .hero-description {
    color: var(--profile-text);
}

.portfolio-page .hero-subtext,
.portfolio-page .section-copy,
.portfolio-page .info-card p,
.portfolio-page .project-card p,
.portfolio-page .timeline-card p,
.portfolio-page .quote-card p,
.portfolio-page .mini-stat span,
.portfolio-page .project-top,
.portfolio-page .highlight-list,
.portfolio-page .quote-card footer span,
.portfolio-page .contact-card-link span {
    color: var(--profile-muted);
}

.portfolio-page .portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    line-height: 1;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.portfolio-page .btn-glow {
    background: linear-gradient(135deg, var(--profile-primary-strong), var(--profile-primary));
    color: #fff;
    box-shadow: 0 12px 28px rgba(25, 181, 255, 0.28);
}

.portfolio-page .btn-outline-soft {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.portfolio-page .btn-glow:hover,
.portfolio-page .btn-outline-soft:hover {
    color: #fff;
    transform: translateY(-2px);
}

.portfolio-page .mini-stat,
.portfolio-page .info-card,
.portfolio-page .project-card,
.portfolio-page .timeline-card,
.portfolio-page .quote-card,
.portfolio-page .contact-card-link {
    border: 1px solid var(--profile-line);
}

.portfolio-page .side-link {
    font-size: 1.05rem;
}

.portfolio-page .side-link i,
.portfolio-page .availability-box i {
    line-height: 1;
}

.portfolio-page .availability-box {
    background: rgba(25, 181, 255, 0.08);
    border-color: rgba(25, 181, 255, 0.16);
}

.portfolio-page .skill-meta i {
    width: 1.25rem;
    text-align: center;
}

.portfolio-page .progress-skill {
    overflow: hidden;
}

.portfolio-page .progress-skill .progress-bar {
    background: linear-gradient(90deg, var(--profile-primary-strong), var(--profile-primary));
}

.portfolio-page .tool-chip {
    border: 1px solid var(--profile-line);
}

.portfolio-page .project-stack span {
    text-decoration: none;
}

.portfolio-page .contact-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(25, 181, 255, 0.26);
}

.portfolio-page .contact-card-link i {
    background: rgba(25, 181, 255, 0.1);
}

.portfolio-page .side-link:focus-visible,
.portfolio-page .portfolio-btn:focus-visible,
.portfolio-page .contact-card-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(25, 181, 255, 0.18);
}

.portfolio-intro-copy {
    max-width: 42rem;
    margin: 1rem auto 0;
}

.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.portfolio-count {
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--profile-line);
    color: #d8e7ff;
    font-weight: 600;
}

.portfolio-footer-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.portfolio-projects-page .portfolio-shell {
    max-width: 1460px;
}

.projects-hero-panel .hero-title {
    max-width: 54rem;
}

.projects-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.projects-hero-actions {
    display: grid;
    gap: 1rem;
    justify-items: end;
}

.projects-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card-detailed {
    display: flex;
    flex-direction: column;
}

.project-card-detailed .project-thumb {
    aspect-ratio: 16 / 10;
}

.project-card-detailed .project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-card-detailed .project-stack {
    margin-top: auto;
    padding-top: 1rem;
}

@media (max-width: 1199.98px) {
    .projects-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {

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

    .projects-hero-actions {
        justify-items: stretch;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .projects-summary-grid,
    .projects-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    .portfolio-actions,
    .portfolio-footer-cta {
        justify-content: stretch;
    }

    .portfolio-actions .portfolio-btn,
    .portfolio-footer-cta .portfolio-btn,
    .projects-hero-actions .portfolio-btn {
        width: 100%;
    }
}
