/* Base Styles & Custom Utilities */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Industrial Component Stylings */
.clip-industrial {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}

.clip-slant {
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.animate-spin-slow {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Enhancements */

/* Container consistency */
.container {
    max-width: 1440px !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .clip-industrial {
        clip-path: none;
        /* Simplify on mobile for better performance/layout */
        border-radius: 0.5rem;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    .hero-video-container {
        height: 100% !important;
    }
}

/* Aspect Ratio Utilities (Tailwind might not be enough here) */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Dynamic Navbar specific styles if needed */
#navbar.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

/* Mobile Menu Animation */
#mobile-menu:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent scroll when menu is open */
.overflow-hidden {
    overflow: hidden;
}

/* Carousel Scrollbar Styling */
.scrollbar-thin::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 10vw;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #e40d2a;
    border-radius: 10px;
}

/* Hide scrollbar utility (preserved for other uses) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}