/* Custom base styles and overrides */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Selection color */
::selection {
    background: #e9d5ff;
    color: #4c1d95;
}

/* Floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 4.5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #faf5ff;
}

/* Nav transition */
.nav-fixed {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Smooth focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .nav-fixed,
    #mobile-menu-btn {
        display: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast {
        animation: none;
    }
}
