/* === Custom Styles for Marina Podval, MD === */

/* Base animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation-name: fadeIn;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 11, 20, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 28, 46, 0.8);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.05);
}

/* Gold shimmer on hover for cards */
.group:hover .group-hover\\:bg-brand-teal\\/20 {
    background-color: rgba(13, 115, 119, 0.2);
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

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

::-webkit-scrollbar-track {
    background: #080B14;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0D7377;
}

/* Selection color */
::selection {
    background: rgba(13, 115, 119, 0.3);
    color: #E2E8F0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-fade-in {
        animation: none;
        opacity: 1;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Input autofill override for dark theme */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #141C2E inset !important;
    -webkit-text-fill-color: #E2E8F0 !important;
    caret-color: #E2E8F0;
}
