/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Added for better layout consistency */
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif; /* Fallback font-family for cross-browser */
    width: 100%;
}

/* Navigation Bar */
header {
    position: -webkit-sticky; /* Safari and older browsers */
    position: sticky;
    top: 0;
    left: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    width: 100%;
}

header nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

header nav ul li a {
    text-decoration: none;
    color: #3b3737;
    font-size: 18px;
    padding: 20px;
    transition: color 0.3s ease; /* Added for smooth hover effect */
}

header nav ul li a:hover {
    color: #000000;
}

/* Sections */
.section {
    display: flex;
    padding-bottom: 5vh;
}

#pad_in {
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 5%;
    padding-top: 5%;
}

#animatedText span {
    font-size: 60px;
    margin: 0px; 
    padding: 0px;
    font-family: Arial, sans-serif;
}

/* Banner Styling */
#banner {
    /* height: 20vh; */
    padding-bottom: 5vh;
    /* display: flex; */
    /* align-items: center; */
    padding-top: 5vh;
    /* justify-content: center; */
}

#headshot {
    width: 190px;
    height: 180px;
    /* aspect-ratio: 1.1; */
    padding-right: 2vh;
}

h1 {
    font-size: 30px;
    margin: 0px; 
}

#banner h1 {
    font-size: 30px;
    font-style: italic;
}

#banner a {
    text-decoration: none;
    font-size: 25px; 
    color: #3b3737;
    padding: 3px;
}

/* Research Interests */
.research-interests {
    display: flex;
    align-items: center;
}

#viz_footer {
    width: 100%;
    height: auto;
}

/* Footer */
footer {
    background-color: #f1f1f1;  
    color: #333;                
    text-align: center;        
    padding: 20px;              
    font-size: 14px;            
    position: relative;
    bottom: 0;
    margin-top: 40px;           
}

/* Flexbox Fallbacks for Older Browsers */
@supports not (display: flex) {
    .section, .research-interests {
        display: block; /* Use block layout for older browsers that don’t support flexbox */
    }
}
