html, body {
    margin: 0;
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

#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: #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

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

.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.loading-sub {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #6c757d;
    height: 1.4em;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
    align-self: flex-end;
    margin-bottom: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #6c757d;
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 80%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.project-grid .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.carousel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-img {
    height: 200px;
    width: 100%;
    display: block;
    object-fit: contain;
    background: #f8f9fa;
}

.contact-profile-img {
    max-width: 250px;
}

.loading-title {
    color: #2780e3;
}

@media (min-width: 576px) {
    .carousel-img {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .carousel-img {
        height: 400px;
    }
}


