@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5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1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



.wavy-container {
    position: relative;
    width: 100%;
    
    background: linear-gradient(135deg, #3c1269 0%, #184592 100%);
    padding: 60px 20px; 
        display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wavy-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3.2rem;
    font-weight: 400; 
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
    text-align: center;
}

.gradient-text-title {
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3c1269 0%, #184592 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #3c1269;
}

@media (max-width: 768px) {
    .wavy-container {
        padding: 45px 15px;
    }
    .wavy-title {
        font-size: 1.85rem;
        letter-spacing: 0.08em;
    }
}

.title-hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.title-animate {
    animation: titleFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}


.shared-layout-wrapper {
    position: relative;
    width: 100%;
    align-self: flex-start;
}

.toc-sidebar-wrapper {
    position: fixed;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 100;
    top: 24px; 
    left: 24px;
}

.toc-sidebar {
    position: fixed;
    left: 15px;
    margin-top: 1px;          
    transform: translateY(-50%);
    z-index: 100;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.toc-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    padding: 7px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-btn.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

@media (hover: hover) {
    .toc-btn:not(.disabled):hover {
        background: #f8fafc;
        border-color: #3b82f6;
        transform: scale(1.05);
    }
}

.toc-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.toc-dropdown-panel {
    margin-top: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0px;
    max-width: 0px;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s ease-in-out, opacity 0.25s ease, padding 0.35s ease;
    display: flex;
    flex-direction: column;
}

.toc-dropdown-panel.open {
    padding: 16px;
    max-width: 260px;
    opacity: 1;
}

.toc-dropdown-panel h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #000000;
    font-family: sans-serif;
    font-weight: 600;
    border-bottom: 2px solid #520897;
    padding-bottom: 6px;
}

.toc-item {
    position: relative;
    color: #000000;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    margin-bottom: 4px;
    user-select: none;
    overflow: hidden;
}

.toc-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #184592;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px;
}
.toc-item:hover::before {
    transform: scaleY(1);
}

.toc-item:hover {
    background: #f1f5f9;
    color: #111622;
}

.shared-tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.shared-tech-badge img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}


.version-toggle-btn {
    background: transparent;
    border: 2px solid #184592;
    color: #000000;
    border-radius: 8px;
    padding: 4px 12px;
    font-family: 'Anonymous Pro', Courier, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.version-toggle-btn:hover {
    background: #184592;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(24, 69, 146, 0.2);
    transform: translateY(-1px);
}

.github-btn {
    padding: 3px; 
}
.github-btn img {
    width: 32px;
    height: 32px;
}


/* Image Modal Styles */
.clickable-chart {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clickable-chart:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-out;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
}

.image-modal-close:hover {
    color: #d1d5db;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: perspective(1200px) translateY(80px) scale(0.94) rotateX(-4deg);
    }

    100% {
        opacity: 1;
        transform: perspective(1200px) translateY(0) scale(1) rotateX(0);
    }
}

.tech-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 40px;
    padding: 45px 50px;
    margin: 40px auto;
    width: 92%;
    max-width: 1000px;
    box-sizing: border-box;
    border: 5px solid rgba(3, 5, 141, 0.548);
    box-shadow: 0 24px 40px rgba(19, 0, 63, 0.993), 0 0 24px rgba(24, 69, 146, 0.12);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.008);
    border-color: rgb(24, 69, 146);
    box-shadow: 0 24px 48px rgba(19, 0, 63, 0.28), 0 0 32px rgba(3, 5, 141, 0.2);
}

.tech-card-title {
    font-family: 'Anonymous Pro', Courier, monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111622;
    margin-top: 0;
    display: block;
    border-bottom: 2px solid #184592;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

.tech-card-body {
    display: block;
}

.tech-card-body p {
    font-family: Inter, Roboto, "Open Sans", "Lato", sans-serif;
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.65;
    color: #111622;
    letter-spacing: 0.01em;
    text-indent: 35px;
    margin: 0 0 8px 0;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.tech-card-body p:last-child {
    margin-bottom: 0;
}

.tech-card-body p:first-of-type {
    font-size: 1.05rem;
    font-weight: normal;
    text-indent: 15px;
}

.tech-card-body strong {
    color: #111622;
    font-weight: 600;
}

.tech-card-body a {
    color: #184592;
    text-decoration: none;
    border-bottom: 1px solid rgba(24, 69, 146, 0.3);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hide-card {
    opacity: 0;
    transform: perspective(1200px) translateY(80px) scale(0.94) rotateX(-4deg);
}

.animate-card {
    animation: cardFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}



video {
    min-height: 300px;
    min-width: 300px;
    background-color: black;
}
