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

* {
    font-family: Quicksand, sans-serif;
}

::-webkit-scrollbar {
    height: 7px;
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #411a79;
    /* Color of the scrollbar track */
    border-radius: 5px;
    /* Rounded corners for the track */
}

::-webkit-scrollbar-thumb {
    background-color: #6366f1;
    /* Color of the scrollbar thumb */
    border-radius: 20px;
    /* Rounded corners for the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #6e70f7
}

::-webkit-scrollbar-thumb:active {
    background-color: #6366f1
}

.static-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.interactive-orb {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.glow-orb {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0.4) 30%, rgba(139, 92, 246, 0.1) 60%, transparent 100%);
}

.glow-orb-secondary {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6) 0%, rgba(236, 72, 153, 0.3) 30%, rgba(236, 72, 153, 0.1) 60%, transparent 100%);
}

.glow-orb-tertiary {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.25) 30%, rgba(59, 130, 246, 0.1) 60%, transparent 100%);
}

.small-particle {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.content-area {
    position: relative;
    z-index: 10;
    min-height: 200vh;
    /* Make content scrollable */
}

@keyframes gentle-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(5px) translateX(-15px);
    }

    75% {
        transform: translateY(-10px) translateX(8px);
    }
}

@keyframes drift-horizontal {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(30px);
    }
}

@keyframes drift-vertical {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-25px);
    }
}

.pulse-gentle {
    animation: gentle-pulse 4s ease-in-out infinite;
}

.float-gentle {
    animation: gentle-float 8s ease-in-out infinite;
}

.drift-h {
    animation: drift-horizontal 6s ease-in-out infinite;
}

.drift-v {
    animation: drift-vertical 7s ease-in-out infinite;
}

::selection {
    color: indigo;
    background-color: #dcacff;
}


/* Custom backdrop filter for better browser support */
.backdrop-blur-custom {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Mobile nested dropdown positioning */
@media (max-width: 768px) {
    .mobile-nested-right {
        left: 0 !important;
        right: auto !important;
        top: 100% !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
    }
}

/* Add LaTeX specific styling */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
}

.katex {
    text-rendering: optimizeLegibility;
    white-space: normal !important;
    word-wrap: break-word;
}

/* For inline math */
.katex-inline {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    vertical-align: middle;
}

/* For display math */
.katex-block {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    text-align: center;
}