/* -------------------------------------------------------------------------- */
/* CRITICAL CSS & TYPOGRAPHY                    */
/* -------------------------------------------------------------------------- */
/* Critical CSS for above-the-fold content to prevent layout shifts before Tailwind loads */
body { 
    background-color: black; 
    color: #e5e7eb; 
    font-family: 'Manrope', sans-serif; 
}

.font-anton { 
    font-family: 'Anton', sans-serif !important; 
    letter-spacing: 0.05em; 
    text-transform: uppercase; 
}

h1, h2, h3, h4 { 
    font-family: 'Anton', sans-serif; 
}

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

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

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

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

/* -------------------------------------------------------------------------- */
/* UTILITIES                                    */
/* -------------------------------------------------------------------------- */
.text-outline { 
    -webkit-text-stroke: 1px rgba(255,255,255,0.3); 
    color: transparent; 
}

.text-outline-muse { 
    -webkit-text-stroke: 1px #e9e629; 
    color: transparent; 
}

/* -------------------------------------------------------------------------- */
/* BENTO GRID EFFECTS                           */
/* -------------------------------------------------------------------------- */
.bento-card {
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(233, 230, 41, 0.5);
    transform: translateY(-2px);
    background: rgba(24, 24, 27, 0.8);
}

/* -------------------------------------------------------------------------- */
/* ANIMATIONS & COMPONENTS                      */
/* -------------------------------------------------------------------------- */
/* Marquee for industries */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Cloak to prevent flash of unstyled content if Tailwind is slow */
[x-cloak] { 
    display: none !important; 
}

/* -------------------------------------------------------------------------- */
/* PRELOADER (Fixes FOUC)                       */
/* -------------------------------------------------------------------------- */

#preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505; /* Matches your dark theme */
    z-index: 9999; /* Ensures it sits on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 150px;       /* Keep your size */
    height: auto;
    
    /* NEW: This forces the image to center itself */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; /* Keeps the space below the logo */
    
    /* Keep the pulse animation */
    animation: pulse 2s infinite; 
}

.preloader-text {
    font-family: 'Inter', sans-serif; /* Your site font */
    color: #e8e623; /* Your yellow brand color */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Optional: A moving loading line */
.loading-bar {
    width: 0%;
    height: 2px;
    background-color: #e8e623;
    margin: 0 auto;
    animation: loadProgress 2s ease-in-out infinite;
    border-radius: 2px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes loadProgress {
    0% { width: 0%; opacity: 1; }
    50% { width: 100%; opacity: 1; }
    100% { width: 0%; opacity: 0; }
}

/* Class to hide the loader */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}