/* Basic Scroll Behavior */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dark Mode Glass */
.dark .glass {
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Text Selection */
::selection {
    background: #0071e3;
    color: white;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Dark Mode Overrides */
.dark body {
    background-color: #000000;
    color: #f5f5f7;
}

.dark nav {
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .text-gray-900 {
    color: #f5f5f7 !important;
}

.dark .text-gray-600,
.dark .text-gray-500,
.dark .text-gray-400 {
    color: #86868b !important;
}

.dark .bg-white {
    background-color: #1c1c1e !important;
}

.dark .bg-gray-50,
.dark .bg-bg-light {
    background-color: #000000 !important;
}

.dark .border-gray-200,
.dark .border-gray-100 {
    border-color: #38383a !important;
}

.dark .text-secondary {
    color: #f5f5f7 !important;
}

/* Invert icons in dark mode mainly if they are images, but font icons color is handled above */