/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f6f1; /* Off-white background */
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
header {
    padding: 20px 0;
    background-color: #f9f6f1; /* Match body background */
    display: flex;
    justify-content: center; /* Centers the entire header */
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 600px; /* Fixed width to center the header content */
}

.name {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-buttons {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-buttons li a {
    color: #333;
    text-decoration: none; /* Removes underline */
    font-size: 0.9rem;
    padding: 8px 12px;
    transition: text-decoration 0.3s;
}

.nav-buttons li a:hover {
    text-decoration: underline;
}

/* Intro Section */
.intro-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 20px;
    text-align: left;
    max-width: 600px; /* Condensed width */
}

.intro-header img {
    border-radius: 50%;
    margin-left: 20px;
    width: 150px;
    height: 150px;
}

.intro-header .intro-text {
    flex-grow: 1;
    max-width: 400px;
}

.intro-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.intro-header p {
    color: #666;
}

/* Main Content */
main {
    padding: 20px;
    max-width: 600px; /* Condensed width */
    margin: 0 auto;
}

main h2, main h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

main p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Fade-In Animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s; /* Slightly faster transition */
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Social Media Icons */
.footer-right a {
    text-decoration: none; /* Removes blue underline */
}

.footer-right .social-icon {
    width: 20px;
    height: 20px;
    margin-left: 15px; /* Increased space between icons */
}

/* Footer Styling */
footer {
    padding: 20px;
    border-top: 1px solid #eaeaea;
    background-color: #f9f6f1; /* Match body background */
    display: flex;
    justify-content: center; /* Center the entire footer */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 600px; /* Fixed width to center footer content */
}

.footer-left {
    font-size: 0.8rem;
    margin-right: 150px; /* Increased gap to further distance the text from icons */
}

.footer-right {
    display: flex;
    margin-left: 150px; /* Increased gap to further distance the icons from text */
}

/* Mobile-Friendly Layout */
@media (max-width: 768px) {
    .top-bar, .footer-content {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Full width on mobile */
    }

    .nav-buttons, .footer-right {
        margin-left: 0;
        margin-top: 10px;
        flex-direction: column;
        gap: 10px;
    }

    .intro-header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .intro-header img {
        margin-left: 0;
        margin-top: 20px;
    }

    main {
        padding: 15px;
    }
}
