.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A494F, #00353D);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader-circle {
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-top-color: #fff;
    border-right-color: #fff;
    border-radius: 50%;
    position: absolute;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-circle:nth-child(2) {
    border-top-color: #227F92;
    border-right-color: #227F92;
    animation-delay: -0.4s;
}

.loader-text {
    position: absolute;
    top: 100px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hide loader when content is loaded */
.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Main content styles (example) */
.main-content {
    display: none; /* Hidden until loaded */
    min-height: 100vh;
    background: #fff;
    font-family: 'Arial', sans-serif;
    text-align: center;
    padding: 50px;
}

.main-content.loaded {
    display: block;
}