/* Custom styles for Crisp Arts */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 32px; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

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

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

header.scrolled .menu-line {
    background: #1a1a1a;
}

/* Mobile menu open state */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 20px;
}

/* Mobile link hover */
.mobile-link {
    opacity: 1;
}

/* Selection color */
::selection {
    background: #f07050;
    color: white;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-dot {
        animation: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    img {
        transition: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #f07050;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Select dropdown styling */
select option {
    background: #2d2d2d;
    color: white;
    padding: 8px;
}
