/* Ensure body and html take the full height of the viewport */
html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Arrange body children in a column */
}

/* Main content wrapper to stretch and push footer down */
.content-wrapper {
    flex: 1;
    /* Pushes the footer to the bottom */
    padding-top: 80px;
    /* Offset for fixed header */
}

header {
    background: rgba(255, 255, 255, 0.8);
    /* Glassmorphism base */
    backdrop-filter: blur(10px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    color: var(--primary-color);
    padding: 1rem 0;
    text-align: center;
    font-family: var(--font-main);
    box-shadow: var(--shadow-sm);
    position: fixed;
    /* Sticky header */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

header h1 span {
    font-weight: 400;
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--text-light);
}

.header-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.header-link:hover {
    color: var(--primary-hover);
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 0;
    }

    header h1 {
        font-size: 1.4rem;
    }
}


footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    position: relative;
}