/* Layout: Header, Footer, and Main Structure */

/* Header Section */
.header {
    text-align: center;
    border-bottom: 3px solid var(--accent-primary);
    margin-bottom: 40px;
    padding-bottom: 30px;
    position: relative;
}

.logo {
    background-color: var(--accent-primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(30, 64, 175, 0.4);
}

h1 {
    color: var(--heading-color);
}

.tagline {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.description {
    color: var(--text-secondary);
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.3;
}

.description a {
    color: var(--link-color);
}

/* Back to Top Button */
.back-to-top {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    display: block;
    margin: 40px auto;
    font-weight: 600;
    text-align: center;
    width: fit-content;
}

.back-to-top:hover {
    background-color: #5a6268;
}

:root[data-theme="light"] .back-to-top {
    background-color: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

:root[data-theme="light"] .back-to-top:hover {
    background-color: rgba(108, 117, 125, 0.15);
    color: #495057;
    border-color: #495057;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer a {
    color: var(--link-color);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    .description {
        font-size: 1em;
        line-height: 1.4;
    }
}