:root {
    --primary-color: #2196f3;
    --primary-color-darker: #1976d2;
    --background-color: #121212;
    --surface-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-color-light: #ffffff;
    --accent-color: #00aaff;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.page {
    background-color: var(--background-color);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar .container {
    padding-block: 1rem;
}

.navbar-brand {
    display: flex;
    gap: 15px;
}

.navbar-brand, .nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.navbar-brand .separator {
    color: var(--accent-color);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.socials {
    font-size: 1.3rem;
}

.socials a {
    color: var(--text-color-light);
}

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

.card {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.timeline {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #333;
}

.timeline-item {
    position: relative;
    width: 50%;
    opacity: 0;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-content {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--surface-color);
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.tagcloud {
    max-width: 100% !important;
    height: auto !important;
}

.tagcloud--item {
    padding: 2px 5px;
    color: var(--text-color);
    text-decoration: none;
}

.tagcloud--item:hover {
    color: var(--accent-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 170, 255, 0.2);
}

.list-group-item {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #333;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-light);
}

a, .btn-link {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
}

.btn:focus, .btn:active:focus, .nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.5);
}

.content {
    padding-top: 2rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: #ff5252;
}

#blazor-error-ui {
    background: #1e1e1e;
    color: var(--text-color);
    bottom: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWR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zkhMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRjUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--text-color);
}

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

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

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

.loading-progress circle:last-child {
    stroke: var(--primary-color);
    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;
    color: var(--text-color);
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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

code {
    color: #ff4081;
}

.animate__animated.animate__fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {

    .navbar-brand .separator {
        display: none;
    }

    .navbar-brand .left-span {
        display: none;
    }

    .navbar-brand {
        flex-direction: column;
        gap: 5px;
        font-size: 1.1rem;
    }
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding: 0 !important;
        margin-bottom: 2rem;
        box-sizing: border-box;
    }
    .timeline-item:after {
        left: 0 !important;
        top: 42px !important;
        right: auto !important;
        border-radius: 0 !important;
        border: none !important;
        height: 2px !important;
        width: 14px !important;
    }
    .timeline::before {
        display: none;
    }
}