/* Custom Styles for Aileen McCready DDS */

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #115e59;
}

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

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

/* Text reveal animation for hero */
.reveal-text {
    animation: slideUp 0.8s ease-out forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.1s; }
.reveal-text:nth-child(2) { animation-delay: 0.2s; }
.reveal-text:nth-child(3) { animation-delay: 0.3s; }
.reveal-text:nth-child(4) { animation-delay: 0.4s; }

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-blur: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .font-serif {
    color: #0F766E;
}

/* Mobile menu transitions */
#mobile-menu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
a[href="#"], a[href^="#"] {
    position: relative;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Selection color */
::selection {
    background: #0F766E;
    color: white;
}

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

/* Mobile menu active state */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
