/* Custom styles for Dr. Vivek Rao MD website */

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

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

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

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

.nav-scrolled .nav-sub-text {
    color: #94a3b8 !important;
}

/* Mobile menu animations */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
#menu-icon span:nth-child(1) {
    transform-origin: center;
}
#menu-icon span:nth-child(2) {
    transform-origin: center;
}

.menu-active #menu-icon span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
    background-color: #0f172a;
}
.menu-active #menu-icon span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
    background-color: #0f172a;
}

/* Scroll reveal base - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #0D9488;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-indicator {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
