/* Custom styles for Denniss Specialty Cuts */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #102238;
}
::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Floating animation for hero card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll reveal base — content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal when animated — only applied via JS */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.animated) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar styles */
.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #102238;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #102238;
}

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

.mobile-link:hover {
    color: #d97706;
}

/* Card hover effects */
.scroll-reveal:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

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

/* Selection color */
::selection {
    background: #d97706;
    color: #102238;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Reduce motion preference */
@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;
    }
}
