/*
 * HTTPS Fix CSS
 * Ensures all assets load properly over HTTPS
 */

/* Force relative URLs for any background images */
body {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Ensure preloader styling is maintained */
.preloader-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.preloader-wrap img {
    position: relative;
    z-index: 1;
    max-width: 200px;
    height: auto;
}

/* Fix any broken icon fonts */
@font-face {
    font-family: 'line-awesome';
    src: url('../fonts/la-solid-900.woff2') format('woff2'),
         url('../fonts/la-solid-900.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Ensure Google Fonts load properly with fallback */
body, .aixor-main {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Fix button styles if missing */
.theme-btn, .btn {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1.6px solid #ffffff;
    background: none;
    color: var(--primary);
    border-radius: 30px;
    z-index: 1;
    text-decoration: none;
    gap: 10px;
    line-height: 16px;
    padding: 14px 24px;
    background: #1a1a1a;
    transition: 0.3s;
    -webkit-transition: 0.3s;
}


/* Ensure images load properly */
img {
    max-width: 100%;
    height: auto;
}

/* Fix video elements */
video {
    max-width: 100%;
    height: auto;
}

/* Magic cursor fallback */
#magic-cursor {
    pointer-events: none;
    position: fixed;
    z-index: 999999;
}

#ball {
    position: fixed;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* Hide WordPress Admin Bar from Frontend */
#wpadminbar {
    display: none !important;
}

/* Remove admin bar spacing from body */
body.admin-bar {
    margin-top: 0 !important;
}

/* Remove admin bar spacing from html */
html {
    margin-top: 0 !important;
}

/* Ensure no admin bar spacing on mobile */
@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-top: 0 !important;
    }
    
    html {
        margin-top: 0 !important;
    }
}

/* Fix any layout issues caused by admin bar removal */
body {
    padding-top: 0 !important;
}

/* Ensure main header is at the top */
.aixor-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide menu bar on Contact page (backup CSS rule) */
body.page-template-contact .navbar.navbar-expand-lg,
.page-template-contact nav.navbar {
    display: none !important;
}
