/* Custom styles for Charlie's Saw Shop */

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

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #022c22;
}

/* Selection color */
::selection {
    background: #064e3b;
    color: #fdfbf7;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(6, 78, 59, 0.1);
}

/* Image hover effect */
img {
    transition: opacity 0.3s ease;
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle line decorations */
.line-decoration {
    position: relative;
}

.line-decoration::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 1px;
    background: #064e3b;
}

/* Thin border accents */
.border-thin {
    border-width: 0.5px;
}

/* Typography refinements */
.font-thin {
    font-weight: 200;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-anim {
        animation-duration: 0.6s;
    }
}
