html {
    height: 100%;
    scroll-behavior: smooth;
}

body,
#app {
    height: 100%;
}

body {
    margin: 0;
}

#app {
    display: flex;
    flex-direction: column;
}

.mud-layout {
    min-height: 100%;
}

.mud-main-content {
    flex: 1 1 auto;
}

footer {
    margin-top: auto;
}

code {
    color: #c02d76;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px #000000;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4O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.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: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * 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: "Loading";
    }

/* ============================================================
   Global page background — single soft gradient that flows
   underneath every section so the whole page feels tied together
   ============================================================ */
.mud-main-content {
    position: relative;
    background:
        radial-gradient(circle at 12% 8%, rgba(36, 86, 180, 0.10), transparent 45%),
        radial-gradient(circle at 88% 35%, rgba(26, 164, 184, 0.08), transparent 45%),
        radial-gradient(circle at 18% 70%, rgba(99, 102, 241, 0.07), transparent 45%),
        radial-gradient(circle at 85% 95%, rgba(36, 86, 180, 0.08), transparent 45%);
}

/* ============================================================
   Hero section
   ============================================================ */
.hero-section {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(36, 86, 180, 0.22), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(26, 164, 184, 0.18), transparent 55%);
}

.hero-container {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-eyebrow {
    align-self: flex-start;
    font-weight: 600;
    letter-spacing: 0.04em;
}

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

.hero-accent {
    background: linear-gradient(135deg, #2456B4 0%, #1AA4B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-weight: 500;
    opacity: 0.9;
}

.hero-lead {
    max-width: 38rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-actions {
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-meta {
    margin-top: 1rem;
    opacity: 0.75;
    flex-wrap: wrap;
}

.hero-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(127, 156, 220, 0.18);
}

.hero-avatar {
    width: 96px;
    height: 96px;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(36, 86, 180, 0.35);
}

.hero-card-subtitle {
    opacity: 0.75;
}

.hero-tech-stack {
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   Page sections — alternating subtle accents tie everything
   together with the hero gradient
   ============================================================ */
.page-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.page-section-alt {
    background:
        radial-gradient(circle at 90% 15%, rgba(36, 86, 180, 0.07), transparent 50%),
        radial-gradient(circle at 10% 85%, rgba(26, 164, 184, 0.06), transparent 50%);
}

/* ============================================================
   Shared section heading
   ============================================================ */
.section-heading {
    margin-bottom: 1rem;
}

.section-heading .mud-typography-overline {
    font-weight: 700;
    letter-spacing: 0.18em;
    opacity: 0.9;
}

.section-heading .mud-typography-h3 {
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.section-divider {
    width: 64px;
    border-top-width: 3px;
    border-color: var(--mud-palette-primary);
    opacity: 1;
    margin-top: 0.5rem;
}

/* ============================================================
   About section
   ============================================================ */
.about-paragraph {
    line-height: 1.8;
    opacity: 0.9;
}

.about-card {
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
}

/* ============================================================
   Skills section
   ============================================================ */
.skill-category-title {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ============================================================
   Projects section
   ============================================================ */
.project-card {
    height: 100%;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(36, 86, 180, 0.18);
}

.project-card .mud-card-content {
    flex: 1 1 auto;
    padding: 2rem;
}

.project-card .mud-card-actions {
    padding: 0.5rem 1.5rem 1.25rem;
}

.project-description {
    line-height: 1.7;
    opacity: 0.85;
}

/* ============================================================
   Contact section
   ============================================================ */
.contact-lead {
    max-width: 36rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-top: 0.5rem;
}

.contact-card {
    padding: 2.5rem;
    border-radius: 20px;
}

.contact-actions {
    height: 100%;
}

/* ============================================================
   Chips & cards
   ============================================================ */
.chip-row {
    flex-wrap: wrap;
}

.experience-card {
    border-radius: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.experience-card:hover {
    transform: translateY(-2px);
}

.experience-card-minor {
    opacity: 0.85;
}

.experience-card-minor .mud-typography-h6 {
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================================
   Footer — proper breathing room above social icons
   ============================================================ */
footer {
    margin-top: auto;
    padding: 4rem 1.5rem 2.5rem;
    background: transparent;
    position: relative;
}

footer::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 80%);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--mud-palette-lines-default) 50%,
        transparent 100%);
}

footer .mud-paper {
    background: transparent;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .page-section {
        padding: 4rem 0;
    }

    .hero-eyebrow {
        align-self: center;
    }

    footer {
        padding: 3rem 1rem 2rem;
    }
}
