body {
    font-family: 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    background-color: #f9f6f1;
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: height 0.3s, padding 0.3s;
}

.dynamic-header {
    padding: 20px 0; /* Initial padding */
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100px;
    height: auto;
    transition: width 0.3s;
}

.dynamic-header.shrink .logo {
    width: 60px; /* Smaller logo size when header shrinks */
}

.dynamic-header.shrink {
    padding: 10px 0; /* Smaller padding when header shrinks */
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav a:hover {
    color: #e67e22;
}

main {
    flex: 1;
    padding: 180px 20px 60px 20px; /* Adding top and bottom padding for fixed header and footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 240px); /* Adjusting for header and footer */
    box-sizing: border-box;
}

.bio-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-img {
    width: 200px;
    height: auto;
    border-radius: 50%;
}

.bio-text {
    flex: 1;
    text-align: left;
}

.bio-text h2, .bio-text h3 {
    margin-bottom: 10px;
}

.bio-text p {
    margin-bottom: 15px;
}

.bio-text ul {
    list-style-type: none;
    padding: 0;
}

.bio-text ul li {
    margin-bottom: 5px;
}

.error-404 {
    padding: 100px 20px; /* Centering content vertically */
    text-align: center;
}

.error-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
}

h1, h2, h3 {
    margin: 0;
}

p {
    line-height: 1.6;
}

a {
    color: #2c3e50;
}

a:hover {
    color: #e67e22;
}

/* Button style */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.btn:hover {
    background-color: #e67e22;
}

/* Animations */
.intro, .bio, .error-404 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.content.show {
    opacity: 1;
}

/* Small header for other pages */
.small-header {
    height: 60px;
    padding: 10px 0;
}

.small-header .header-container {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.small-header .logo {
    width: 60px;
    margin: 0;
}

.small-header nav ul {
    flex: 1;
    justify-content: flex-end;
}
