/* Material Icons fallback - hide text until font loads */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}



/* Smooth scrolling for anchor links */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #181111;
}

::-webkit-scrollbar-thumb {
    background: #392828;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f20d0d;
}

@keyframes gradient-xy {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-xy {
    background: linear-gradient(-45deg, rgba(242, 13, 13, 0.2), rgba(55, 65, 81, 0.4), #1a1a1a, rgba(242, 13, 13, 0.2));
    background-size: 400% 400%;
    animation: gradient-xy 15s ease infinite;
}

/* Print Optimization for PDF Saving */
@media print {

    /* Preserve exact colors including backgrounds */
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: #181111 !important;
        /* Ensure background matches dark theme */
    }

    /* Prevent cards from breaking across pages */
    .bg-surface-dark {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Ensure text contrast is maintained */
    * {
        text-shadow: none !important;
    }
}