/* Custom Styles for Shannon Martin MD */

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

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

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

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 5px;
}

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

/* Navbar Transition */
#navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.active {
    transform: translateX(0);
}

/* Card Hover Effects */
.group:hover .w-14 {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.group .w-14 {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Hover Effects */
a[href="#contact"],
a[href="tel:18888240200"] {
    position: relative;
    overflow: hidden;
}

a[href="#contact"]::before,
a[href="tel:18888240200"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

a[href="#contact"]:hover::before,
a[href="tel:18888240200"]:hover::before {
    left: 100%;
}

/* Input Focus Effects */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobileMenu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: #065f46;
    color: #fefdf8;
}
