/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    transform-origin: center;
    animation: rotate 2s linear infinite;
}

#loader-circle {
    fill: none;
    stroke: #4f46e5;
    stroke-width: 4;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 50;
        stroke: #06b6d4;
    }
    100% {
        stroke-dashoffset: 200;
        stroke: #4f46e5;
    }
}

.loader-text {
    color: #ffffff;
    font-size: 18px;
    margin-top: 20px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}

.dots {
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Welcome Screen Styles */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-content {
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.welcome-screen.active .welcome-content {
    opacity: 1;
    transform: translateY(0);
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #cbd5e1;
}

.welcome-button {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.welcome-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 20px -3px rgba(6, 182, 212, 0.4);
}

/* Media Queries */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
}