/* ==========================================================================
   GLOBAL STYLES & RESET, NAV, HEADER and FOOTER STYLES
   ========================================================================== */
html {
    height: 100%;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh; /* Forces the body layout to match the window height minimum */
    background-color: #030712;
    scroll-behavior: smooth;
    
    /* FIX: Standard Flexbox stack forcing the footer to stay cleanly at the bottom */
    display: flex;
    flex-direction: column;
}

* {
    box-sizing: inherit;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f172a;
    color: #ffffff;
    padding: 15px 40px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
    
    /* FIX: Prevents the navigation header from shrinking when content grows long */
    flex-shrink: 0; 
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    background-color: rgba(15, 23, 42, 0.4);
}

.nav-link:hover {
    color: #10b981;
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.current-page {
    color: #cbd5e1;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s ease;
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    background-color: rgba(15, 23, 42, 0.4);
}

.current-page:hover {
    color: #10b981;
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.nav-special-button {
    display: inline-block;
    background-color: #5941c3;
    color: #ffffff; 
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(9, 75, 65, 0.755);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-special-button:hover {
    background-color: #0e9489; 
    transform: translateY(-2px);
}

.main-footer {
    width: 100%;
    background-color: #030712;
    color: #64748b;
    padding: 40px 60px 50px 60px; /* Increased bottom padding to prevent window taskbar overlaps */
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-top: 1px solid rgba(56, 189, 248, 0.05);
    margin-top: auto; /* FIX: Pushes footer to the absolute bottom of the layout screen */
    
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    gap: 30px;
    
    /* FIX: Prevents footer element squishing */
    flex-shrink: 0; 
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* Side columns take equal, narrower shares of space */
.footer-left, .footer-right {
    flex: 1;
}

/* Forces the center text area to be the widest column */
.footer-center {
    flex: 2;
    text-align: center;
    align-self: center;
}

.footer-center p {
    margin: 5px 0;
    color: #94a3b8;
}

.footer-subtext {
    font-size: 12px;
    font-style: italic;
    color: #475569 !important;
}

/* Typography styles for the side headers */
.footer-column h4 {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Hyperlinks and interaction adjustments */
.footer-column a {
    color: #64748b;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-column a:hover {
    color: #38bdf8; /* Swaps to clean cyan theme on hover */
    transform: translateY(-2px);
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Clean responsiveness configuration for smaller mobile viewports */
@media (max-width: 768px) {
    .main-footer {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 35px;
    }
    .footer-center {
        order: 3; /* Drops copyright to the bottom row on small mobile layouts */
    }
    .footer-column a:hover {
        transform: none; /* Disables slide effect on mobile screens */
    }
}