/* --- 1. Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 101, 189, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effect on clickable elements */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 101, 189, 0.1);
    border-color: transparent;
}

/* --- 2. Scroll Progress Bar --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 100000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00a8ff, var(--primary-color));
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

/* --- 3. Page Preloader --- */
/* --- 3. Page Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 80px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: logoFloat 2s ease-in-out infinite;
}

/* Pulsing Ripple Effect behind Logo */
.loader-logo-container::before,
.loader-logo-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 101, 189, 0.1);
    animation: ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loader-logo-container::after {
    animation-delay: -1s;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.loader-progress {
    width: 150px;
    height: 3px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: var(--primary-color);
    border-radius: 10px;
    animation: progressIndeterminate 1.5s infinite ease-in-out;
}

@keyframes progressIndeterminate {
    0% {
        left: -50%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.loader-text {
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-light);
    text-transform: uppercase;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* --- Hide Default Cursor on PC only --- */
@media (min-width: 992px) {
    body {
        cursor: none;
    }

    a,
    button,
    .btn,
    input,
    textarea {
        cursor: none;
        /* We handle this with JS class */
    }
}