:root {
    --primary: #0044cc;
    --primary-hover: #3366ff;
    --accent: #4CAF50;
    --text: #333333;
    --text-primary: #1A3C6D;
    --bg: #E8F0F5;
    --high-contrast-bg: #000000;
    --high-contrast-text: #ffffff;
    --font-size-base: 18px;
    --font-size-footer: 16px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    background-color: var(--bg);
    color: var(--text);
    transition: font-size 0.3s, background-color 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    position: sticky;
    top: 0;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav li {
    margin: 0 15px;
}
nav a {
    display: block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: background-color 0.3s, transform 0.2s;
}
nav a:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

.banner {
    background: linear-gradient(135deg, var(--bg) 0%, var(--primary) 100%);
    padding: 50px 20px;
    text-align: center;
    color: var(--text-primary);
}
.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.banner-content h1 span {
    color: var(--accent);
}
.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.banner-content .highlight {
    color: var(--accent);
    font-weight: 700;
}
.banner-content .cta-button {
    background-color: var(--accent);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.banner-content .cta-button:hover {
    background-color: #45a049;
}
.banner-content .subtext {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-primary);
}

main {
    flex: 1;
}
main h1, main h2 {
    color: var(--text-primary);
}

footer {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    position: sticky;
    bottom: 0;
    font-size: var(--font-size-footer);
}
footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}
footer .fa-envelope {
    margin-right: 5px;
}
footer .social-links a {
    margin: 0 8px;
    font-size: 24px;
}

.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.social-sidebar a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
    font-size: 20px;
}
.social-sidebar a:hover {
    background-color: var(--primary-hover);
    transform: scale(1.2);
}

.accessibility-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}
.accessibility-controls button {
    padding: 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.accessibility-controls button:hover {
    background-color: var(--primary-hover);
}

body.high-contrast {
    background-color: var(--high-contrast-bg);
    color: var(--high-contrast-text);
}
body.high-contrast nav, body.high-contrast footer {
    background-color: #333333;
}
body.high-contrast a {
    color: #ffffff;
}
body.high-contrast .social-sidebar a {
    background-color: #333333;
}
body.high-contrast .accessibility-controls button {
    background-color: #333333;
}
body.high-contrast .tile {
    background-color: #222222;
}

.cookie-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    text-align: center;
}
.cookie-popup p {
    margin: 0;
    font-size: 0.9rem;
}
.cookie-popup button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.cookie-popup button:first-child {
    background-color: var(--accent);
    color: white;
}
.cookie-popup button:first-child:hover {
    background-color: #45a049;
}
.cookie-popup button:last-child {
    background-color: #cccccc;
}
.cookie-popup button:last-child:hover {
    background-color: #bbbbbb;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav li {
        margin: 10px 0;
    }
    .social-sidebar {
        right: 10px;
    }
    .accessibility-controls {
        top: 10px;
        right: 10px;
        flex-direction: column;
    }
    .banner-content h1 {
        font-size: 1.8rem;
    }
}