/* Global Styles */
html {
    scroll-behavior: smooth;
}

/* Light Glass Header */
.glass-header-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

/* Dark Glass Header */
.glass-header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: none;
}

/* Utility Class: Shape Float */
.shape-float {
    float: right;
    shape-outside: margin-box;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Utility for mobile menu scroll lock */
.overflow-hidden {
    overflow: hidden;
}

/* --- SCROLLBARS --- */

/* Dark Theme Scrollbar */
html.dark ::-webkit-scrollbar {
    width: 8px;
}

html.dark ::-webkit-scrollbar-track {
    background: #020617;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #00D4FF;
}

/* Light Theme Scrollbar */
html.light ::-webkit-scrollbar {
    width: 8px;
}

html.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

html.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

html.light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Global Zoom for Desktop (90%) */
@media (min-width: 1024px) {
    html {
        zoom: 0.9;
    }

    /* Firefox Fallback */
    @supports (-moz-appearance:none) {
        html {
            zoom: 1;
            /* Reset zoom for Firefox */
            transform: scale(0.9);
            transform-origin: top center;
            width: 111.11%;
            overflow-x: hidden;
            height: 100%;
        }

        body {
            height: 100%;
        }
    }
}