@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-ext-300-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-300-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

html, body {
    min-height: 100%;
    font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color-scheme: dark;
    color: #f1f5f9;
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 36rem),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.10), transparent 30rem),
        #0b1120;
    background-attachment: fixed;
}

#circuit-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, #000 75%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, #000 75%);
}

#app {
    position: relative;
    z-index: 1;
}

.mud-layout {
    min-height: 100vh;
    background: transparent;
}

.app-bar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(16px);
}

.app-bar-name {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-bar-home {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease;
}

.app-bar-home:hover {
    color: #60a5fa;
}

.language-selector-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.language-select {
    width: 68px;
}

.language-select .mud-input.mud-input-outlined {
    background: rgba(30, 41, 59, 0.55);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: border-color 180ms ease, background 180ms ease;
}

.language-select .mud-input.mud-input-outlined:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(96, 165, 250, 0.45);
}

.language-select .mud-input-control {
    margin-top: 0;
}

.language-select .mud-input-slot {
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.language-select-popover {
    min-width: 68px !important;
    width: 68px !important;
    border-radius: 12px !important;
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden;
}

.language-select-popover .mud-list {
    padding: 4px 0 !important;
    background: transparent !important;
}

.language-select-popover .mud-list-item {
    padding: 6px 0 !important;
    min-height: unset !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    transition: background 150ms ease;
}

.language-select-popover .mud-list-item:hover,
.language-select-popover .mud-list-item.mud-selected-item {
    background: rgba(96, 165, 250, 0.15) !important;
}

.language-select-popover .mud-list-item-content,
.language-select-popover .mud-list-item-text,
.language-select-popover .mud-list-item-gutters {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.language-select-popover .flag-icon {
    margin: 0 auto;
}

.flag-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.panel,
.project-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(17, 24, 39, 0.72) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.project-card {
    background: rgba(30, 41, 59, 0.55) !important;
    cursor: pointer;
    user-select: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.project-card.expanded {
    border-color: rgba(96, 165, 250, 0.45);
}

.profile-picture {
    display: block;
    width: 100%;
    height: auto;
    max-width: 260px;
    max-height: 42vh;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 959px) {
    .profile-picture {
        max-width: 180px;
        max-height: 30vh;
    }
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(30, 41, 59, 0.55);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.contact-item:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.contact-item .mud-typography {
    color: inherit;
}

.contact-icon {
    flex-shrink: 0;
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.45) !important;
}

.contact-item-text {
    min-width: 0;
}

.contact-item-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-item .contact-item-value.mud-secondary-text {
    color: var(--mud-palette-text-secondary);
}

.org-logo {
    background: #ffffff;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
}

.tech-chip-logo {
    width: 13.6px;
    height: 13.6px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
    margin-inline-end: 6px;
}

.org-logo-link {
    display: inline-flex;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 150ms ease, opacity 150ms ease;
}

.org-logo-link:hover {
    transform: scale(1.06);
    opacity: 0.9;
}

.org-name-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease;
}

.org-name-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.org-name-link .mud-typography {
    color: inherit;
}

.project-reference {
    border-left: 3px solid rgba(96, 165, 250, 0.6);
    padding-left: 16px;
}

.project-reference-text {
    font-style: italic;
    white-space: pre-line;
}

.project-reference-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-reference-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
    transition: color 150ms ease, opacity 150ms ease;
}

.project-reference-link:hover {
    color: #60a5fa;
    opacity: 1;
}

.project-reference-link .mud-icon-root {
    font-size: 1.0625rem;
}

.not-found-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--mud-appbar-height, 64px));
    min-height: calc(100dvh - var(--mud-appbar-height, 64px));
    padding: 1.5rem;
}

.not-found-panel {
    width: 100%;
    max-width: 640px;
    text-align: center;
    animation: not-found-enter 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.not-found-code {
    font-size: clamp(6rem, 22vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, #60a5fa 0%, #2dd4bf 55%, #fbbf24 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 12px 40px rgba(96, 165, 250, 0.25));
    animation: not-found-shimmer 8s ease-in-out infinite;
    user-select: none;
}

.not-found-text {
    max-width: 30rem;
}

@keyframes not-found-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes not-found-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-panel,
    .not-found-code {
        animation: none;
    }
}

.legal-heading {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-panel .mud-typography-body1 {
    line-height: 1.75;
}

.legal-panel ul {
    margin: 0.5rem 0 0 1.25rem;
    color: var(--mud-palette-text-secondary);
}

.legal-link {
    color: #60a5fa;
    text-decoration: none;
    word-break: break-word;
}

.legal-link:hover {
    text-decoration: underline;
}

.legal-note {
    font-style: italic;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #60a5fa;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #1e293b;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #60a5fa;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}