#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, #1a3d35, #2d5a4a, #3d7a5f);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Replaced 3D furniture with floating furniture bubbles */
#preloader .furniture-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.7;
}

#preloader .furniture-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    animation: preloader-bubbleFloat 15s infinite linear;
}

/* Chair bubble shapes */
#preloader .chair-bubble {
    width: 40px;
    height: 45px;
    background: rgba(212, 183, 143, 0.3);
    border-radius: 6px;
}

#preloader .chair-bubble::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 25px;
    background: rgba(212, 183, 143, 0.4);
    border-radius: 6px;
    top: 15px;
}

#preloader .chair-bubble::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 20px;
    background: rgba(140, 109, 70, 0.4);
    border-radius: 3px;
    bottom: -20px;
    left: 5px;
    box-shadow: 28px 0 0 rgba(140, 109, 70, 0.4);
}

/* Table bubble shapes */
#preloader .table-bubble {
    width: 60px;
    height: 8px;
    background: rgba(179, 139, 89, 0.4);
    border-radius: 4px;
}

#preloader .table-bubble::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 35px;
    background: rgba(140, 109, 70, 0.4);
    border-radius: 4px;
    top: 8px;
    left: 8px;
    box-shadow: 44px 0 0 rgba(140, 109, 70, 0.4);
}

/* Lamp bubble shapes */
#preloader .lamp-bubble {
    width: 30px;
    height: 20px;
    background: rgba(212, 183, 143, 0.3);
    border-radius: 50% 50% 0 0;
}

#preloader .lamp-bubble::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 40px;
    background: rgba(140, 109, 70, 0.4);
    border-radius: 2px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#preloader .lamp-bubble::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 8px;
    background: rgba(179, 139, 89, 0.4);
    border-radius: 50%;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

/* Sofa bubble shapes */
#preloader .sofa-bubble {
    width: 70px;
    height: 30px;
    background: rgba(212, 183, 143, 0.3);
    border-radius: 8px;
}

#preloader .sofa-bubble::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 35px;
    background: rgba(196, 166, 122, 0.4);
    border-radius: 8px 0 0 8px;
    left: -5px;
    top: -5px;
}

#preloader .sofa-bubble::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 35px;
    background: rgba(196, 166, 122, 0.4);
    border-radius: 0 8px 8px 0;
    right: -5px;
    top: -5px;
}

/* Bookshelf bubble shapes */
#preloader .bookshelf-bubble {
    width: 45px;
    height: 60px;
    background: rgba(140, 109, 70, 0.3);
    border-radius: 4px;
}

#preloader .bookshelf-bubble::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    background: rgba(179, 139, 89, 0.5);
    left: 5px;
    top: 15px;
    box-shadow: 0 15px 0 rgba(179, 139, 89, 0.5), 0 30px 0 rgba(179, 139, 89, 0.5), 0 45px 0 rgba(179, 139, 89, 0.5);
}

/* Bubble floating animations with different patterns */
@keyframes preloader-bubbleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

@keyframes preloader-bubbleFloatReverse {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(-80px) rotate(-270deg) scale(0.6);
        opacity: 0;
    }
}

@keyframes preloader-bubbleFloatSway {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.9);
        opacity: 0;
    }

    25% {
        transform: translateY(75vh) translateX(50px) rotate(90deg) scale(1.1);
        opacity: 1;
    }

    50% {
        transform: translateY(50vh) translateX(-30px) rotate(180deg) scale(0.8);
        opacity: 1;
    }

    75% {
        transform: translateY(25vh) translateX(70px) rotate(270deg) scale(1.3);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(-20px) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

/* Individual furniture bubble positioning and timing */
#preloader .furniture-bubble:nth-child(1) {
    left: 10%;
    animation: preloader-bubbleFloat 20s infinite linear;
    animation-delay: 0s;
}

#preloader .furniture-bubble:nth-child(2) {
    left: 25%;
    animation: preloader-bubbleFloatReverse 25s infinite linear;
    animation-delay: 2s;
}

#preloader .furniture-bubble:nth-child(3) {
    left: 40%;
    animation: preloader-bubbleFloatSway 18s infinite linear;
    animation-delay: 4s;
}

#preloader .furniture-bubble:nth-child(4) {
    left: 55%;
    animation: preloader-bubbleFloat 22s infinite linear;
    animation-delay: 1s;
}

#preloader .furniture-bubble:nth-child(5) {
    left: 70%;
    animation: preloader-bubbleFloatReverse 19s infinite linear;
    animation-delay: 3s;
}

#preloader .furniture-bubble:nth-child(6) {
    left: 85%;
    animation: preloader-bubbleFloatSway 24s infinite linear;
    animation-delay: 5s;
}

#preloader .furniture-bubble:nth-child(7) {
    left: 15%;
    animation: preloader-bubbleFloat 26s infinite linear;
    animation-delay: 6s;
}

#preloader .furniture-bubble:nth-child(8) {
    left: 60%;
    animation: preloader-bubbleFloatReverse 21s infinite linear;
    animation-delay: 7s;
}

/* Main Content Container */
#preloader .preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Brand Text */
#preloader .brand-text {
    margin-bottom: 30px;
}

#preloader .company-name {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0;
    animation: preloader-fadeInUp 1.5s forwards 1s;
    letter-spacing: 1px;
}

#preloader .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    overflow: hidden;
}

#preloader .tagline span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: preloader-letterDrop 0.5s forwards;
}

@keyframes preloader-fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloader-letterDrop {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Progress */
#preloader .loading-section {
    position: relative;
}

#preloader .progress-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

#preloader .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#preloader .loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
}

#preloader .loading-percent {
    font-weight: 600;
    color: #ffffff;
}

#preloader.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

@media (max-width: 768px) {
    #preloader .company-name {
        font-size: 24px;
    }

    #preloader .tagline {
        font-size: 14px;
    }

    /* Scale down furniture bubbles on mobile */
    #preloader .furniture-bubble {
        transform: scale(0.8);
    }
}