:root {
    --color-background: #ffffff;
    --color-navbar: #002635;
    --color-footer-bg: #002635;
    --color-footer-text: #ffffff;
    --color-text-primary: #333333;
    --color-text-secondary: #ffffff;
    --color-primary: #1a73e8;
    --color-border: #f0f0f0;

    --font-family-sans-serif: "Roboto", system-ui, -apple-system, sans-serif;
    --font-weight-medium: 500;

    --navbar-height: 70px;
    --navbar-padding: 1.5rem;
    --container-width: 1140px;
    --border-radius: 6px;
    --transition-speed: 0.3s;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

/*
        ========================================
        Global Resets & Base Styles
        ========================================
        */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-sans-serif);
    background-color: #f9f9f9;
}

.content {
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem var(--navbar-padding);
    line-height: 1.7;
}

.content h1 {
    padding-top: var(--navbar-height);
    margin-top: 0;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--color-primary);
}

.message {
    background: white;
    max-width: 360px;
    margin: 100px auto 16px;
    padding: 32px 24px 16px;
    border-radius: 3px;
}

.cover {
    
    background-image: url('../images/indexCover.jpg');

    z-index: -10;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center center;
    top: 0;
    /* Center and scale the image nicely */

}

/*
        ========================================
        Main Navbar Structure & Animation
        ========================================
        */
.navbar {
    /* Position sticky allows the transform to work while still being "stuck" */
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;

    height: var(--navbar-height);
    display: flex;
    align-items: center;
    background-color: var(--color-navbar);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    /* Core animation logic */
    transform: translateY(0);
    transition: transform var(--transition-speed) ease-in-out;
}

/* This class, added via JS, is what hides the navbar */
.navbar.is-hidden {
    transform: translateY(-100%);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--navbar-padding);
}

.navbar__brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

/*
        ========================================
        Mobile Menu & Toggle
        ========================================
        */
.navbar__toggle {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 0.25rem 0.75rem;
    background: var(--color-navbar);
    cursor: pointer;
}

.navbar__toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--color-background);
    transition: transform var(--transition-speed) ease;
}

.navbar__toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar__toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-navbar);
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
}

.navbar__menu.is-active {
    display: flex;
}

.navbar__item {
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.navbar__link {
    display: block;
    padding: 1.25rem;
    font-weight: var(--font-weight-medium);
}

:is(.navbar__toggle, .navbar__link):focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/*
        ========================================
        Desktop Navbar Styles
        ========================================
        */
@media (min-width: 768px) {
    .navbar__toggle {
        display: none;
    }

    .navbar__menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: static;
        width: auto;
        background: none;
        border: none;
    }

    .navbar__list {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .navbar__item {
        border: none;
    }

    .navbar__link {
        font-weight: var(--font-weight-medium);
        padding: 0.5rem 0;
    }
}

/*
        ========================================
        Accessibility: Prefers Reduced Motion
        ========================================
        */
@media (prefers-reduced-motion: reduce) {
    .navbar {
        transition: none;
        /* Disable the slide animation */
    }
}

/* FOOTER STYLES START HERE */

.footer-centered {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 2.5rem 1.5rem;
    border-top: 0px solid var(--footer-border-color);
    text-align: center;
    margin-top: -5px;
    border-bottom: 0px solid var(--footer-border-color);
}

.footer-centered__container {
    max-width: 800px;
    margin: 0 auto;

    /* Core layout styles */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-centered__logo {
    display: block;
    width: 120px;
    height: auto;
}

.footer-centered__logo path {
    fill: #333;
}

.footer-centered__nav ul,
.footer-centered__social ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    /* Allow links to wrap on very narrow screens */
    justify-content: center;
    gap: 1.5rem;
}

.footer-centered__nav a,
.footer-centered__social a {
    color: var(--footer-link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.footer-centered__nav a:hover,
.footer-centered__social a:hover {
    color: var(--footer-link-hover-color);
}

.footer-centered__social svg {
    width: 22px;
    height: 22px;
    fill: var(--footer-text-color);
    transition: fill 0.2s ease-in-out;
}

.footer-centered__social a:hover svg {
    fill: var(--footer-link-hover-color);
}

.footer-centered__copyright {
    font-size: 0.875rem;
    margin: 0;
}