:root {
    --color: #d95300;
    --whiteColor: #ffffff;
    --mainColor: #d95300;
    --bs-primary: #d95300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Preloader container */
.preloader-container {
    position: fixed;
    inset: 0;
    background-color: var(--whiteColor);
    backdrop-filter: blur(0.25rem);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 3D Cube Loader */
.cube-loader {
    width: 120px;
    height: 120px;
    position: relative;
    perspective: 400px;
}

.cube-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateWrapper 4s linear infinite;
}

.cube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: rotateCube 2s ease-in-out infinite alternate;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color), #d95300);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(251, 140, 4, 0.436);
}

.cube-face.front {
    transform: translateZ(30px);
}

.cube-face.back {
    transform: translateZ(-30px) rotateY(180deg);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(30px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(30px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(30px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

@keyframes rotateWrapper {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    25% {
        transform: rotateX(90deg) rotateY(90deg);
    }

    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }

    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes rotateCube {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(180deg) rotateY(180deg) rotateZ(180deg);
    }
}

/* Loading text */
.loading-text {
    margin-top: 40px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: var(--color);
    font-weight: 600;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Loading dots */
.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots::after {
    content: '';
    animation: dots 2s linear infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .cube-loader {
        width: 100px;
        height: 100px;
        perspective: 350px;
    }

    .cube {
        width: 50px;
        height: 50px;
    }

    .cube-face {
        width: 50px;
        height: 50px;
    }

    .cube-face.front,
    .cube-face.back {
        transform: translateZ(25px);
    }

    .cube-face.back {
        transform: translateZ(-25px) rotateY(180deg);
    }

    .cube-face.right {
        transform: rotateY(90deg) translateZ(25px);
    }

    .cube-face.left {
        transform: rotateY(-90deg) translateZ(25px);
    }

    .cube-face.top {
        transform: rotateX(90deg) translateZ(25px);
    }

    .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(25px);
    }

    .loading-text {
        font-size: 16px;
        margin-top: 35px;
    }
}

@media (max-width: 480px) {
    .cube-loader {
        width: 80px;
        height: 80px;
        perspective: 300px;
    }

    .cube {
        width: 40px;
        height: 40px;
    }

    .cube-face {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .cube-face.front,
    .cube-face.back {
        transform: translateZ(20px);
    }

    .cube-face.back {
        transform: translateZ(-20px) rotateY(180deg);
    }

    .cube-face.right {
        transform: rotateY(90deg) translateZ(20px);
    }

    .cube-face.left {
        transform: rotateY(-90deg) translateZ(20px);
    }

    .cube-face.top {
        transform: rotateX(90deg) translateZ(20px);
    }

    .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(20px);
    }

    .loading-text {
        font-size: 14px;
        margin-top: 30px;
    }
}

/* Main content styles */
.main-content {
    display: none;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Arial', sans-serif;
}

.main-content.loaded {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-demo {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.logo {
    color: var(--color);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '🚀';
    font-size: 24px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.welcome-title {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color), #d95300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-title {
    color: var(--color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-list {
    text-align: left;
    color: #555;
    line-height: 2;
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 8px;
}

.demo-button {
    background: linear-gradient(135deg, var(--color), #d95300);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 202, 127, 0.3);
}

.demo-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 202, 127, 0.4);
}

.demo-button:active {
    transform: translateY(-1px);
}