/* Custom styles for High 5 Smoke Shop */

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

/* Navbar scroll effect */
.nav-link {
    position: relative;
}

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

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

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Bar animations for mobile menu */
.bar1 {
    transition: transform 0.3s ease 0.1s, opacity 0.2s ease;
}

.bar2 {
    transition: opacity 0.2s ease 0.1s;
}

.bar3 {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-open .bar1 {
    transform: translateY(8px) rotate(45deg);
}

.nav-open .bar2 {
    opacity: 0;
}

.nav-open .bar3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Product card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

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

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

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

/* Input focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(196, 112, 75, 0.1);
}

/* Section transitions */
section {
    position: relative;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
