/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus outline styles for accessibility */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip to main content - accessibility feature */
.skip-to-main-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: white;
    color: black;
    opacity: 0;
}

.skip-to-main-content:focus {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

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

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

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

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Image hover effects */
.service-image {
    transition: transform 0.3s ease-in-out;
}

.service-image:hover {
    transform: scale(1.05);
}

/* Typography enhancements */
.font-serif {
    font-feature-settings: "lnum", "pnum";
    letter-spacing: -0.01em;
}

h1.font-serif, 
h2.font-serif, 
h3.font-serif {
    line-height: 1.2;
}

/* Enhance heading styles */
h1.font-serif {
    letter-spacing: -0.02em;
}

h2.font-serif {
    letter-spacing: -0.015em;
}

/* Add subtle text shadow for better contrast on light backgrounds */
.hero-heading {
    text-shadow: 0 1px 2px rgba(0,0,0,0.04);
} 