/* Additional custom styles for Threading World */

/* Smooth focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #ff5a44;
    outline-offset: 2px;
}

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

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

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

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

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

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .float-animation,
    .float-animation-delayed,
    .rotate-slow {
        animation: none;
    }
    
    nav,
    .geometric-shape {
        display: none;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .service-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .geometric-shape {
        display: none;
    }
}

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