Let's update the `styles.css` file to include styles for the `about.html` page. We'll ensure it fits with the existing theme and maintains consistency across all pages.
### Updated CSS (styles.css)
```css
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
line-height: 1.6;
background-color: #f8f9fa;
color: #333;
}
.container {
width: 90%;
margin: 0 auto;
}
/* Navbar Styles */
.navbar {
background: #333;
color: #fff;
padding: 1rem 0;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-menu {
list-style: none;
display: flex;
}
.nav-menu li {
margin-left: 2rem;
}
.nav-menu a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
/* Section Title Styles */
.section-title {
text-align: center;
margin-bottom: 3rem;
font-size: 2.5rem;
color: #333;
}
/* About Section Styles */
.about-section {
padding: 4rem 0;
background: #fff;
text-align: center;
}
.about-content {
display: flex;
flex-direction: column;
gap: 2rem;
align-items: center;
}
.about-text {
max-width: 600px;
text-align: left;
}
.about-text h3 {
font-size: 2rem;
color: #333;
margin-bottom: 1rem;
}
.about-text p {
font-size: 1.1rem;
line-height: 1.6;
color: #555;
}
.about-image {
max-width: 100%;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.about-image img {
width: 100%;
height: auto;
display: block;
border-radius: 5px;
object-fit: cover;
}
/* Footer Styles */
.footer {
background: #333;
color: #fff;
padding: 1rem 0;
text-align: center;
}
.footer p {
margin: 0;
}
.social-links {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
gap: 1rem;
}
.social-links li {
margin: 0;
}
.social-links a img {
width: 24px;
height: 24px;
transition: transform 0.3s ease;
}
.social-links a img:hover {
transform: scale(1.2);
}
```
### Explanation:
1. **General Styles**:
- `body` styles ensure consistent font-family, margin, padding, box-sizing, line-height, and background color (`#f8f9fa`) for readability.
- `.container` sets a max-width and centers content horizontally.
2. **Navbar Styles**:
- `navbar` styles maintain a consistent look with a dark background (`#333`) and white text (`#fff`).
3. **Section Title Styles**:
- `.section-title` styles ensure consistent appearance of section titles across all pages with centered alignment, appropriate margin, and font size.
4. **About Section Styles**:
- `.about-section` styles set a white background (`#fff`) and padding (`4rem 0`) for the about section.
- `.about-content` uses flexbox (`display: flex`) with `flex-direction: column` and `align-items: center` to align content vertically.
5. **About Text and Image Styles**:
- `.about-text` styles set `max-width: 600px` for readability and `text-align: left` for left alignment.
- `.about-text h3` styles ensure the heading (`h3`) is visually distinct with a larger font size (`2rem`) and color (`#333`).
- `.about-text p` styles set font size (`1.1rem`), line height (`1.6`), and color (`#555`) for paragraphs.
- `.about-image` styles ensure images are responsive with `max-width: 100%`, `border-radius`, and `box-shadow` for a subtle effect.
6. **Footer Styles**:
- `.footer` maintains a dark background (`#333`) with white text (`#fff`) and central alignment.
- `.social-links` aligns social media icons (`img`) horizontally with a gap (`gap: 1rem`) and hover effect (`transform: scale(1.2)`).
### Integration:
- Ensure `styles.css` is correctly linked in all HTML pages (`<link rel="stylesheet" href="styles.css">`).
- Replace placeholder content (`Who We Are`, Lorem ipsum...) with actual information about yourself or your company.
- Customize the image (`about-image.jpg`) with a relevant image that represents your brand or yourself.
These updated styles for `styles.css` will ensure your `about.html` page fits seamlessly into your portfolio theme, maintaining a cohesive design across all pages. Adjustments can be made based on your specific design preferences and content requirements.