/* Shared CSS Variables and Base Styles */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        font-family: 'Space Grotesk', 'Noto Sans', 'Inter', sans-serif;
    }
}

/* Custom Scrollbar for all pages */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utility classes often used across Dr. Mehta's sites */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.mesh-bg {
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(200, 100%, 94%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(200, 100%, 94%, 1) 0, transparent 50%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.animated-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(13, 147, 242, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 147, 242, 0.07) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
    animation: gridMove 60s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

@keyframes panX {
    0% {
        transform: translateX(0) scale(1.1);
    }

    50% {
        transform: translateX(calc(-100% + 500px)) scale(1.1);
    }

    100% {
        transform: translateX(0) scale(1.1);
    }
}

.animate-panorama {
    animation: panX 30s ease-in-out infinite;
    /* ensure the image fills height and width naturally overflows */
    height: 100%;
    width: auto;
    max-width: none;
    object-position: left center;
}

.infinity-symbol {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}

/* Base styles for sidebar component */
#sidebar-nav-root.glass-sidebar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 5px 0 25px rgba(30, 41, 59, 0.05);
}