/* Global Styles */
html, body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #2c5f8d;
}

a, .btn-link {
    color: #2c5f8d;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover, .btn-link:hover {
    color: #1e4261;
}

/* Layout */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        transform: translateX(0);
    }

    main {
        margin-left: 250px;
    }
}


main .top-row {
    background-color: #2c5f8d;
    justify-content: flex-start;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    main .top-row .navbar-toggler {
    }

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}


.content {
    padding: 2rem;
}

/* Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(44, 95, 141, 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 Spinner */
.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: #2c5f8d;
            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");
    }

/* Custom Styles */
.profile-picture {
    max-width: 150px;
}

.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: none; /* Remove the default border */
    border-radius: 10px; /* Add some border radius */
    box-shadow: 0 4px 8px rgba(44, 95, 141, 0.1); /* Add a subtle shadow */
}

.card:hover {
    transform: translateY(-10px) scale(1.02); /* Move the card up and scale it on hover */
    box-shadow: 0 12px 24px rgba(44, 95, 141, 0.2); /* Increase the shadow on hover */
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.hero-text h1 {
    color: #2c5f8d;
}

.hero-image img {
    max-width: 300px;
    border: 10px solid white;
}

.cta-buttons .btn-primary, .cta-section .btn-primary {
    background-color: #2c5f8d;
    border-color: #2c5f8d;
}

.cta-buttons .btn-primary:hover, .cta-section .btn-primary:hover {
    background-color: #1e4261;
    border-color: #1e4261;
}

.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(44, 95, 141, 0.2);
}

hr {
    border-top: 1px solid #ccc;
}

footer {
    position: relative;
    padding: 1rem;
    color: #888;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 2rem;
}