.custom-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.falling-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.youtube-icon {
    position: absolute;
    top: -100px;
    animation: fall 2s linear infinite;
    opacity: 0.7;
}

.youtube-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes fall {
    0% {
        top: -100px;
        opacity: 0.7;
        transform: rotate(0deg);
    }
    100% {
        top: 110vh;
        opacity: 0.2;
        transform: rotate(360deg);
    }
}

.text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.preloader-text {
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.8s ease;
    width: 100%;
}

.text-small {
    font-size: 100px;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.text-huge {
    font-size: 200px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

/* First screen - with gradient */
.text-first .text-small {
    background: linear-gradient(180deg, #000000 0%, #666666 50%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
}

.text-first .text-huge {
    background: linear-gradient(180deg, #000000 0%, #666666 50%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.4));
}

/* Second screen - solid black */
.text-second .text-small {
    color: #000000;
}

.text-second .text-huge {
    color: #000000;
}

.text-first {
    opacity: 1;
}

.text-second {
    opacity: 0;
}

.fade-out {
    opacity: 0 !important;
}

.fade-in {
    opacity: 1 !important;
}

@media (max-width: 1400px) {
    .text-small {
        font-size: 80px;
    }
    .text-huge {
        font-size: 160px;
    }
}

@media (max-width: 1024px) {
    .text-small {
        font-size: 60px;
    }
    .text-huge {
        font-size: 120px;
    }
}

@media (max-width: 768px) {
    .text-small {
        font-size: 40px;
    }
    .text-huge {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .text-small {
        font-size: 28px;
    }
    .text-huge {
        font-size: 56px;
    }
}

@media (max-width: 375px) {
    .text-small {
        font-size: 24px;
    }
    .text-huge {
        font-size: 48px;
    }
}