/* Custom Styles for Sticks Cigar Company */

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

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
}

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(15, 28, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #1a2e22;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4f7d5a;
}

/* Selection color */
::selection {
    background: #3d6348;
    color: #f0f7f3;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 125, 90, 0.2);
}

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .text-cream-200\/60 {
        color: rgba(240, 247, 243, 0.9);
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-forest-900,
    .bg-forest-800 {
        background: #fff !important;
        color: #000 !important;
    }
}
