/* Global Fixes */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden !important;
    width: 100%;
}

body {
    max-width: 100%;
    overflow-x: hidden !important;
    width: 100%;
    background-color: #0f0f0f;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

/* Swiper Customization */
.swiper-button-next, .swiper-button-prev {
    color: #e50914 !important;
}
.swiper-pagination-bullet-active {
    background: #e50914 !important;
}

/* Glassmorphism - Optimized */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
}

/* Performance Badges */
.transform-gpu {
    transform: translate3d(0,0,0);
}

/* Text Shadows */
.text-shadow-hero {
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.4), 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

/* Mobile Specific Fixes */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: none; /* Disable blur on mobile for massive performance gain */
        background: rgba(255, 255, 255, 0.05);
    }
}
