/* GLOBAL STYLES */
body, html  {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    color: #222;
    overflow-x: hidden;
}

/* LOADER STYLES */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000428;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0s ease 2s forwards;
}

#loader {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #004e92;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Hide content initially, fade in after loader */
.content {
    opacity: 0;
    animation: fadeIn 1ms ease 102ms forwards;
}

/* NAVIGATION */
header {
    background: linear-gradient(to right, #004e92, #000428);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

nav {
    background: #222;
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
}

nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* MAIN CONTENT */
main {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
}

.section-title {
    color: #004e92;
    border-bottom: 2px solid #004e92;
    padding-bottom: 5px;
    margin-bottom: 1rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1rem;
    background: #004e92;
    color: white;
}

/* ANIMATIONS */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Initially hide content */
.hidden {
    visibility: hidden;
}

/* Show content after loader */
.show {
    visibility: visible;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
