/* Custom styles for Tootsie's Braiding Gallery */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #ff6b3f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f04a1d;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-logo-text {
    color: #ffffff !important;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

#navbar.scrolled .nav-link:hover {
    color: #ff6b3f !important;
}

/* Mobile menu link hover */
.mobile-menu-link:hover {
    color: #ff6b3f !important;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gallery item hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Fade-in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Pulse animation for CTA */
@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 63, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 107, 63, 0);
    }
}

.cta-pulse {
    animation: pulse-subtle 2s infinite;
}

/* Mobile menu animations */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(-100%);
}

/* Hamburger animation */
#menu-btn.active #menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #menu-icon span:nth-child(2) {
    opacity: 0;
}

#menu-btn.active #menu-icon span:nth-child(3) {
    width: 100%;
    transform: translateX(0);
}

/* Select dropdown styling */
select option {
    background: #2d2d2d;
    color: #ffffff;
}

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

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

/* Tablet and up */
@media (min-width: 768px) {
    .service-card:hover {
        transform: translateY(-8px);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .service-card:hover {
        transform: translateY(-12px);
    }
}
