/* ===== CUSTOM STYLES ===== */

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E8645A;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c6cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a5b0;
}

/* Nav scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
    max-height: 500px;
}

/* 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Animation utility */
@keyframes scroll-reveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scroll-reveal .reveal {
    animation: scroll-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}

.animate-scroll-reveal .reveal-delay-1 { --reveal-delay: 0.1s; }
.animate-scroll-reveal .reveal-delay-2 { --reveal-delay: 0.2s; }
.animate-scroll-reveal .reveal-delay-3 { --reveal-delay: 0.3s; }
.animate-scroll-reveal .reveal-delay-4 { --reveal-delay: 0.4s; }

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}
.group {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #e2e3e6 0%, #f6f6f7 100%);
}
