/* Header */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5em 0; 
    min-height: var(--header-height);
    display: flex; 
    align-items: center; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: filter 0.3s ease-in-out; /* Added for blur transition */
}

/* Make header container full width to push logo to edge */
header .container {
    padding: 0 15px; 
    width: 100%; 
    max-width: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

#main-logo { 
    height: 108px; 
    margin-right: 10px; 
}

header nav ul {
    display: flex; 
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 15px;
}

header nav ul li a {
    color: var(--text-light);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5em; 
}

header nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hamburger Button */
.nav-toggle-button {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; 
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    background-color: var(--text-light);
    height: 3px;
    width: 25px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before {
    transform: translateY(-8px);
}

.hamburger-icon::after {
    transform: translateY(5px); 
}

/* Hamburger to X animation */
.nav-toggle-button.active .hamburger-icon {
    background-color: transparent; 
}

.nav-toggle-button.active .hamburger-icon::before {
    transform: translateY(0px) rotate(45deg);
}

.nav-toggle-button.active .hamburger-icon::after {
    transform: translateY(-3px) rotate(-45deg); 
}

/* Info Sections (common styling for sections) */
.info-section {
    padding: 4em 0;
    transition: filter 0.3s ease-in-out; /* Added for blur transition (applies to main sections) */
}
.info-section:nth-child(odd) { 
    background-color: var(--background-grey);
}
.page-specific-padding { 
    padding: 2em 0 4em 0; 
}
.info-section:first-child:not(.hero) { 
     padding-top: 2em;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2em 0;
    margin-top: 3em;
    transition: filter 0.3s ease-in-out; /* Added for blur transition */
}

footer .container {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    flex-wrap: wrap; 
    position: relative; 
}

.footer-credits {
    text-align: left;
    margin-bottom: 0; 
}

.footer-credits p, .footer-info p {
    margin: 0.2em 0; 
    font-size: 0.9em;
}

.footer-info {
    text-align: center; 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto; 
    max-width: 70%; 
}

footer a {
    color: var(--secondary-color);
    font-weight: normal; 
    text-decoration: underline;
}
footer a:hover {
    color: var(--accent-color);
    font-weight: bold; 
}