﻿@import url('base/reset.css');
@import url('base/variables.css');
@import url('base/typography.css');

@import url('layout/header.css');
@import url('layout/footer.css');

@import url('components/buttons.css');
@import url('components/cards.css');
@import url('components/scroll-top.css');

@import url('pages/home.css');
@import url('pages/programs.css');
@import url('pages/installment-calculator.css');
@import url('pages/services.css');
@import url('pages/contact.css');

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, .96);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderFade .4s ease;
}

html[data-theme="dark"] .page-loader {
    background: rgba(2, 6, 23, .96);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.loader-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    animation: loaderFloat 1.4s ease-in-out infinite;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(25, 196, 0, .18);
    border-top-color: var(--color-primary);
    animation: spin .8s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes loaderFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .55s ease,
        transform .55s ease,
        box-shadow var(--transition),
        border-color var(--transition),
        background-color var(--transition);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}
