main {
    animation: fadeIn 0.4s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition-fade-out {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out !important;
}

.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.page-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #173470);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.nav-link,
.mega-menu-item,
.mobile-nav-link,
.mobile-submenu-link,
.mobile-sub-submenu-link {
    position: relative;
    overflow: hidden;
}

.content-section {
    animation: fadeInUp 0.5s ease-in-out;
    animation-fill-mode: both;
}

.content-section:nth-child(1) {
    animation-delay: 0.1s;
}

.content-section:nth-child(2) {
    animation-delay: 0.2s;
}

.content-section:nth-child(3) {
    animation-delay: 0.3s;
}

.content-section:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

a, button, .nav-link, .mega-menu-item {
    transition: all 0.3s ease-in-out;
}

body.page-transitioning main {
    pointer-events: none;
}