/* Custom styles for Wildflower Pediatrics */

:root {
    --midnight-blue: #06101b;
    --midnight-light: #0d1f33;
    --mint: #98d4c4;
    --mint-dark: #1a5276;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-blue);
    color: #e8f5f2;
}

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

::-webkit-scrollbar-track {
    background: var(--midnight-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--mint);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7bc4b2;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(6, 16, 27, 0.95) !important;
    backdrop-filter: blur(10px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: 0 4px 30px rgba(152, 212, 196, 0.1);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Custom focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(152, 212, 196, 0.2);
}

/* Selection color */
::selection {
    background: var(--mint);
    color: var(--midnight-blue);
}

/* Ensure all links are readable */
a {
    text-decoration: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effects */
.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

/* Glow effects */
.glow-mint {
    box-shadow: 0 0 40px rgba(152, 212, 196, 0.3);
}

.glow-mint:hover {
    box-shadow: 0 0 60px rgba(152, 212, 196, 0.5);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #98d4c4, #7bc4b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border gradient effect */
.border-gradient {
    border-image: linear-gradient(135deg, #98d4c4, transparent) 1;
}
