/* Custom Styles for Sticks & Stones & Stuff */

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

/* Custom Selection Color */
::selection {
    background-color: #C65D3E;
    color: #FDF8F0;
}

/* Navbar Scroll State */
.navbar-scrolled {
    background-color: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(198, 93, 62, 0.08);
}

.navbar-scrolled .font-display {
    color: #8A3F29 !important;
}

.navbar-scrolled .italic {
    color: #A67546 !important;
}

.navbar-scrolled a:not(.inline-flex) {
    color: #4B5563 !important;
}

/* Mobile Menu Transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hero Parallax-like Effect */
#hero img {
    will-change: transform;
}

/* Product Card Hover */
.group:hover img {
    transform: scale(1.1);
}

/* Geometric Shape Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-reverse-slow {
    animation: float-reverse 10s ease-in-out infinite;
}

.pulse-dot {
    animation: pulse-dot 3s ease-in-out infinite;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(198, 93, 62, 0.1);
}

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

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

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

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

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

/* Image Aspect Ratios */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Geometric Pattern Overlay */
.geometric-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(198, 93, 62, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 165, 112, 0.03) 0%, transparent 50%);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* 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;
    }
}

/* Print Styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
