/* CSS Variables for Theme */
:root {
    --primary-dark: #1b263b; /* Deep slate blue matching logo edges */
    --secondary-dark: #0d1b2a;
    --accent-color: #415a77;
    --text-main: #2b2b2b;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Loader Animation --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-icon {
    width: 50px;
    height: 50px;
    z-index: 2;
    animation: pulse 2s infinite ease-in-out;
}

.spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--primary-dark);
    border-bottom-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

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

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* --- Header --- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 60px; /* Adjust based on preferred logo size */
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-btn:hover {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* --- Main Content & Hero --- */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-section {
    max-width: 800px;
}

.badge {
    display: inline-block;
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 20px 0;
}

.center-divider {
    margin: 20px auto;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
}

.update-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Buttons */
.primary-btn {
    display: inline-block;
    background-color: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--primary-dark);
}

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

.outline-btn {
    background-color: transparent;
    color: var(--primary-dark);
}

.outline-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* --- 404 Specific --- */
.error-page .hero-text {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    font-size: 6rem !important;
    color: var(--accent-color) !important;
    margin-bottom: 0 !important;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-dark);
    color: var(--white);
    padding: 30px 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Makes the icon white if it isn't */
}

.footer-title {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-right p {
    font-size: 0.85rem;
    color: #adb5bd;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1.1rem; }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .main-logo { height: 50px; }
}
