/* Custom styles for Danville Osteopathic Internist */

/* Clip path for hero diagonal */
.clip-diagonal {
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Scroll line animation */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Hero geometric animations */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.02); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-8px, 12px) scale(1.01); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -8px); }
}

.hero-geo {
    animation: float-slow 8s ease-in-out infinite;
}

.hero-geo:nth-child(2) {
    animation: float-medium 6s ease-in-out infinite;
}

.hero-geo:nth-child(3) {
    animation: float-fast 5s ease-in-out infinite;
}

/* Service card hover glow */
.service-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.5s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px -20px rgba(6, 95, 70, 0.25);
}

/* Approach card */
.approach-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.approach-card:hover {
    box-shadow: 0 12px 40px -12px rgba(6, 95, 70, 0.15);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-text-color {
    color: #0a1f14 !important;
}

.nav-scrolled .nav-subtext-color {
    color: #059669 !important;
}

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #059669;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav-link:hover::after {
    width: 60%;
}

/* Mobile menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
    margin-left: 0;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Smooth focus for accessibility */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}
