/* MainLayout Custom Styles */

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #e26428, #ffc107);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #d45520, #f7b039);
}

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

/* Custom text selection */
::selection {
    background: rgba(226, 100, 40, 0.3);
    color: #1a1a1a;
}

/* Improved focus states */
*:focus-visible {
    outline: 2px solid #e26428;
    outline-offset: 2px;
}

/* Enhanced button hover effects */
.btn-gradient {
    background: linear-gradient(45deg, #e26428, #ffc107);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* Animation improvements */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(226, 100, 40, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(226, 100, 40, 0.5);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improved mobile navigation */
@media (max-width: 1024px) {
    .mobile-menu-slide {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-menu-slide.open {
        transform: translateX(0);
    }
}

/* Custom loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(226, 100, 40, 0.1);
    border-left: 4px solid #e26428;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Background patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(226, 100, 40, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(226, 100, 40, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 100, 40, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Text effects */
.text-gradient {
    background: linear-gradient(45deg, #e26428, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive improvements */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}