/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Glassmorphism helpers */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .glass-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #2563eb, #3b82f6);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Mobile Menu Button Fix - Only show on mobile */
/* Let Tailwind's md:hidden class handle visibility */

/* Floating Buttons Mobile Fix */
@media (max-width: 768px) {
    .fixed.bottom-4.right-4 {
        bottom: 1rem !important;
        right: 1rem !important;
    }
    
    .fixed.bottom-4.right-4 a {
        padding: 0.625rem !important;
    }
}

/* Custom breakpoint for xs screens */
@media (max-width: 475px) {
    .xs\:hidden {
        display: none !important;
    }
    
    .xs\:inline {
        display: inline !important;
    }
}

/* Prevent horizontal scrolling */
* {
    box-sizing: border-box;
}

img, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Fix for wide content */
.container {
    max-width: 100%;
    overflow-x: hidden;
}