html, body {
    background-color: #141414;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Custom premium text selection colors matching our theme */
::selection {
    background-color: #F22222;
    color: #ffffff;
}

/* Hide native cursor for targeted desktop environments to utilize smooth follower */
@media (min-width: 1024px) {
    body, a, button, input, textarea {
        cursor: none !important;
    }
}

/* Custom Interactive Smooth Follower Styles */
#custom-cursor {
    width: 8px;
    height: 8px;
    background-color: #F22222;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999; /* Higher than the 99999 lightbox modal */
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid #F2BB13;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999998; /* Higher than the 99999 lightbox modal */
    mix-blend-difference: difference;
}

/* Restore browser native cursor inside native fullscreen modes */
:fullscreen,
::backdrop,
video:fullscreen,
video:-webkit-full-screen,
video:-ms-fullscreen,
body.native-fullscreen-active,
body.native-fullscreen-active * {
    cursor: auto !important;
}

/* Hide custom cursors during native fullscreen playback to prevent ghost elements */
body.native-fullscreen-active #custom-cursor,
body.native-fullscreen-active #custom-cursor-follower {
    display: none !important;
}

/* Scroll Window Optimization */
.horizontal-scroll-container {
    will-change: transform;
}

/* Soft text glow effect */
.text-glow {
    text-shadow: 0 0 20px rgba(242, 34, 34, 0.4);
}

/* Custom background blur radial glow that follows the cursor behind everything */
#cursor-glow {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 34, 34, 0.18) 0%, rgba(242, 34, 34, 0) 70%);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    mix-blend-mode: screen;
    filter: blur(5px);
}

/* ====================================================
   PREMIUM CURSOR-HOVER TYPOGRAPHY HIGHLIGHT EFFECTS
   ==================================================== */
p, h1, h2, h3, h4, span, li, a {
    transition: color 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), text-shadow 0.4s ease;
}

/* Smooth word-level hover glow on all dynamically parsed typography */
.reveal-word {
    display: inline-block;
    will-change: transform, color;
    /* Ultra-smooth native transition curves */
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), text-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-word:hover {
    color: #F22222 !important;                  /* Force hover color without killing timeline */
    transform: translateY(-3px) !important;       /* Clean vertical character lift */
    text-shadow: 0 0 15px rgba(242, 34, 34, 0.6) !important; /* Premium crimson backlight glow */
}

/* Global text link hover transition defaults */
a:hover {
    color: #F2BB13;
}

/* ====================================================
   CONTACT FORM FLOATING LABEL FIXES & CASED TYPING
   ==================================================== */

/* Fix floating labels to remain floated up when inputs are not empty */
.peer.filled ~ label,
.peer:focus ~ label {
    top: -1rem !important;         /* Floating position above input boundary */
    font-size: 0.75rem !important;    /* Floating text size (text-xs) */
}

/* Highlight label in active gold when currently focused */
.peer:focus ~ label {
    color: #F2BB13 !important;     /* Active focus color (accent2) */
}

/* Mute label in neutral grey when input is populated but blurred */
.peer.filled:not(:focus) ~ label {
    color: #525252 !important;     /* Inactive populated state (neutral-600) */
}

