/* Custom Styles for Urban Bush Midwifery */

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

/* Base Typography Adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Navbar Transition */
#navbar {
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(244, 241, 234, 0.95);
    padding-top: 1rem;
    padding-bottom: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled a {
    color: #104A3F;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Image Aspect Ratio Fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(16, 74, 63, 0.2);
}

/* Selection Color */
::selection {
    background-color: #104A3F;
    color: #F4F1EA;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #104A3F;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d3d35;
}
