/* GLOBAL VARIABLES & THEME SETUP */
:root {
    /* Brand Colors */
    --primary-color: #0B2046; /* Deep Navy Blue */
    --secondary-color: #F26522; /* Vibrant Orange */
    
    /* Light Theme (Default) */
    --bg-color: #ffffff;
    --text-color: #222222;
    --text-muted: #555555;
    --card-bg: #f9f9f9;
    --border-color: #dddddd;
    --nav-bg: #ffffff;
    --footer-bg: #0B2046;
    --footer-text: #ffffff;
}

[data-theme="dark"] {
    /* Dark Theme Overrides */
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --text-muted: #aaaaaa;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --nav-bg: #1a1a1a;
    --footer-bg: #071530;
}

/* RESET & BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER & NAVIGATION */
.global-header {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.desktop-nav .nav-links {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav .nav-links li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.desktop-nav .nav-links li a:hover,
.desktop-nav .nav-links li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle svg {
    transition: transform 0.3s ease;
}

#theme-toggle:hover svg {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Theme SVG Toggles */
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

#mobile-menu-toggle {
    display: none;
}

/* FOOTER */
.global-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 1.5rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.footer-links h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* RESPONSIVE DESIGN (GLOBAL) */
@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: block;
    }

    .desktop-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        border-bottom: 1px solid var(--border-color);
        display: none; /* Handled via JS */
        flex-direction: column;
    }

    .desktop-nav.active {
        display: flex;
    }

    .desktop-nav .nav-links {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
}