@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
/* ==========================================================================
   Quarkie Loading CSS Custom Properties (Variables)
   ========================================================================== */
.qloading-container {
    /* Colors */
    --ql-color-primary: #040404;
    --ql-color-secondary: #f2f2f2;
    --ql-color-white: #ffffff;
    --ql-color-background: #fafafa;
    --ql-color-text-primary: #000000;
    --ql-color-text-secondary: #000000cc;

    /* Typography */
    --ql-font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ql-font-size-brand: 45px;
    --ql-font-size-heading: 32px;
    --ql-font-size-body: 18px;
    --ql-font-weight-normal: 400;
    --ql-font-weight-semibold: 600;

    /* Spacing */
    --ql-spacing-xs: 4px;
    --ql-spacing-sm: 8px;
    --ql-spacing-md: 15px;
    --ql-spacing-lg: 24px;
    --ql-spacing-xl: 32px;

    /* Layout */
    --ql-brand-height: 64px;
    --ql-button-width: 320px;
    --ql-button-height: 40px;
    --ql-welcome-section-height: 312px;
    --ql-border-radius-sm: 10px;
    --ql-border-radius-md: 12px;

    /* Animation */
    --ql-duration-fast: 0.4s;
    --ql-duration-medium: 0.5s;
    --ql-duration-slow: 1s;
    --ql-easing-smooth: ease-in;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.qloading-container {
    width: 100dvw;
    height: 100dvh;
    display: grid;
    place-items: center;
    position: relative;
    box-sizing: border-box;
    font-family: var(--ql-font-family-primary);
}

.qloading-container * {
    box-sizing: border-box;
}

.ql-content-wrapper {
    z-index: 1;
    position: relative;
}

/* ==========================================================================
   Background Components
   ========================================================================== */

.ql-background-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transform: scale(1.5);
    transition: opacity var(--ql-duration-fast) var(--ql-easing-smooth);
}

.ql-side-background {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30vw;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform var(--ql-duration-medium) var(--ql-easing-smooth);
}

.ql-side-background--left {
    left: 0;
    background-position: right center;
    background-image: url('../img/loading-animation/left-side.svg');
    transform: translateX(-100%);
}

.ql-side-background--right {
    right: 0;
    background-image: url('../img/loading-animation/right-side.svg');
    background-position: left center;
    transform: translateX(100%);
}

.ql-side-background--visible {
    transform: translateX(0);
}

/* ==========================================================================
   Brand Title Component
   ========================================================================== */

.ql-loading-header {
    text-align: center;
    margin-bottom: var(--ql-spacing-lg);
}

.ql-brand-title {
    max-width: max-content;
    margin: 0 auto;
    background: var(--ql-color-background);
    height: var(--ql-brand-height);
    width: 100%;
    padding: 0px 18px 0;
    transition: all var(--ql-duration-slow) var(--ql-easing-smooth);
    overflow: hidden;
    white-space: nowrap;
    border-radius: var(--ql-border-radius-sm);
    display: flex;
    align-items: center;
    transform: scale(1.4);
}

.ql-brand-title  *{
    flex-shrink: 0;
    line-height: 0;
}


.ql-brand-title--collapsed {
    width: var(--ql-brand-height);
}

.ql-brand-title__remaining {
    display: inline-block;
}

.ql-brand-title__remaining span{
    display: inline-block;
    transition: all var(--ql-duration-slow) var(--ql-easing-smooth);
}
.ql-brand-title--collapsed .ql-brand-title__remaining span {
    padding-left: 20px;
}

/* ==========================================================================
   Welcome Section Component
   ========================================================================== */

.ql-welcome-section {
    text-align: center;
    transition: all var(--ql-duration-fast) var(--ql-easing-smooth);
    overflow: hidden;
}

.ql-welcome-section--collapsed {
    height: 0;
}

.ql-welcome-title {
    font-size: var(--ql-font-size-heading);
    font-weight: var(--ql-font-weight-semibold);
    font-family: var(--ql-font-family-primary);
    font-optical-sizing: auto;
    margin: 0 0 var(--ql-spacing-lg) 0;
    color: var(--ql-color-text-primary);
}

.ql-welcome-description {
    font-size: var(--ql-font-size-body);
    color: #646464;
    font-family: var(--ql-font-family-primary);
    line-height: 1.4;
    font-weight: var(--ql-font-weight-semibold);
    font-optical-sizing: auto;
    margin: 0 0 var(--ql-spacing-xl) 0;
}

/* ==========================================================================
   Button Components
   ========================================================================== */

.ql-action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ql-spacing-sm);
}

.ql-btn {
    width: var(--ql-button-width);
    height: var(--ql-button-height);
    font-family: var(--ql-font-family-primary);
    font-size: 16px;
    font-weight: var(--ql-font-weight-normal);
    border-radius: var(--ql-border-radius-md);
    border: none;
    cursor: not-allowed;
    transition: all 0.2s var(--ql-easing-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.ql-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ql-btn:active {
    transform: translateY(0);
}

.ql-btn--primary {
    background: var(--ql-color-primary);
    color: var(--ql-color-white);
}

.ql-btn--primary:hover {
    background: #1a1a1a;
}

.ql-btn--secondary {
    background: #00000008;
    color: var(--ql-color-primary);
}

.ql-btn--secondary:hover {
    background: #e8e8e8;
}

/* ==========================================================================
   Progress Bar Components
   ========================================================================== */

.ql-progress-container {
    position: absolute;
    bottom: var(--ql-spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    transition: opacity 0.5s var(--ql-easing-smooth);
}

.ql-progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--ql-spacing-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ql-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
    var(--ql-color-primary) 0%,
    #1a1a1a 50%,
    var(--ql-color-primary) 100%);
    width: 0%;
    transition: width 0.3s var(--ql-easing-smooth);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.ql-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
    animation: ql-progress-shine 2s infinite;
}

@keyframes ql-progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.ql-progress-text {
    font-family: var(--ql-font-family-primary);
    font-size: 12px;
    color: var(--ql-color-text-secondary);
    font-weight: var(--ql-font-weight-semibold);
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Alternative progress styles */
.ql-progress-container--circular {
    width: 60px;
    height: 60px;
}

.ql-progress-circular {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(
            var(--ql-color-primary) 0deg,
            var(--ql-color-primary) calc(var(--progress, 0) * 3.6deg),
            rgba(255, 255, 255, 0.1) calc(var(--progress, 0) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ql-progress-circular::before {
    content: '';
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ql-color-background);
}

.ql-progress-circular .ql-progress-text {
    position: absolute;
    font-size: 10px;
    color: var(--ql-color-primary);
    font-weight: var(--ql-font-weight-semibold);
}

/* ==========================================================================
   Animation States
   ========================================================================== */

.ql-background-svg--visible {
    opacity: 1;
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .qloading-container * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.ql-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.ql-btn:focus-visible {
    outline: 2px solid var(--ql-color-primary);
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .qloading-container {
        --ql-color-text-secondary: var(--ql-color-text-primary);
    }

    .ql-btn--secondary {
        border: 2px solid var(--ql-color-primary);
    }
}