
body.preload-mode {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out;
}


.preloader-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 95%;
    margin-bottom: 1.5rem;
    perspective: 1000px;
    padding: 0 10px;
}


.preloader-char {
    color: #4fc3f7;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.1rem;
    opacity: 0;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.7);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    display: inline-block;
    will-change: transform, opacity;
}


.preloader-char.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    text-shadow: 0 0 15px #4fc3f7, 0 0 30px #4fc3f7;
}


.preloader-char.final-position {
    transform: translate3d(0, 0, 0) !important;
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #4fc3f7;
    animation: float 3s ease-in-out infinite;
}


#loading-counter {
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

#loading-counter.show {
    opacity: 1;
}


@keyframes float {
    0%, 100% { transform: translate3d(0, -5px, 0); }
    50% { transform: translate3d(0, 5px, 0); }
}


#preloader.final-view {
    opacity: 1;
}


body.preload-mode #main-content {
    display: none;
}


body {
    background-color: #000;
    transition: background-color 0.5s ease;
}

body:not(.preload-mode) {
    background-color: #fff;
}

#main-content {
    opacity: 0;
    transition: opacity 0.5s ease 0.1s;
}

body:not(.preload-mode) #main-content {
    opacity: 1;
}


@media (max-width: 768px) {
    .preloader-char {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin: 0.05rem;
    }
    
    .preloader-text {
        margin-bottom: 1rem;
    }
    
    #loading-counter {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .preloader-char {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }
    
    .preloader-text {
        max-width: 98%;
    }
}
.slider {
  opacity: 0;
  transition: opacity 0.8s ease-out 0.3s;
}

body:not(.preload-mode) .slider {
  opacity: 1;
}

.slider .list {
  transition: left 500ms ease !important;
}