/* Custom styles and overrides */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transitions */
.navbar-text {
    transition: color 0.3s ease;
}

.navbar-text-muted {
    transition: color 0.3s ease;
}

.navbar-link {
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

/* Mobile link transitions */
.mobile-link {
    transition: color 0.2s ease;
}

/* Hero gradient overlay for text readability */
.hero-overlay {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.92) 0%, rgba(33, 37, 41, 0.75) 50%, rgba(33, 37, 41, 0.5) 100%);
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #FF6B6B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion support */
@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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    .animate-bounce,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
    
    a {
        color: #000;
    }
}
