.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}
div:has(> .background-image)::before {
    z-index: 1;
    pointer-events: none;
}
div:has(> .background-image) > section,
div:has(> .background-image) > .projects-grid {
    position: relative;
    z-index: 2;
}
main { min-width: 0; }
a:focus-visible, button:focus-visible {
    outline: 3px solid #258cfb;
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

h1:focus {
    outline: none;
}

a {
    color: #0071c1;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

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

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            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");
    }

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background-color: #fafafa;
}

.container {
    padding: 1rem;
    max-width: 100%;
    margin: auto;
}

video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

p, li {
    font-size: 1rem;
    line-height: 1.5;
}

html, body, #app {
    height: 100%;
}

.page {
    height: 100%;
}

main {
    height: 100%;
    padding: 0 !important;
}

.nav-scrollable {
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
}

@media (min-width: 641px) {
    .collapse {
        display: block;
    }

    .navbar-toggler {
        display: none;
    }
}

@media (max-width: 640px) {
    .collapse {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-scrollable {
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
}

:root {
    --mobile-padding: 1rem;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0.5rem 0;
}

p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.nav-item .nav-link {
    padding: 0.9rem 1rem !important;
    font-size: 1.05rem;
    border-radius: 10px;
}

button {
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

@media (max-width: 768px) {

    .container {
        padding: var(--mobile-padding);
        max-width: 100%;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1.02rem;
    }

    video {
        border-radius: 12px;
        max-height: 55vh;
        object-fit: cover;
    }

    .top-row.navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}
