Let's update the `styles.css` file to include styles for the `about.html` page, ensuring it complements 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;
justify-content: center;
align-items: flex-start;
gap: 4rem;
}
.about-text {
flex: 1;
text-align: left;
}
.about-text h3 {
font-size: 2rem;
margin-bottom: 1rem;
color: #333;
}
.about-text p {
font-size: 1.1rem;
line-height: 1.8;
color: #666;
}
.about-skills {
flex: 1;
text-align: left;
}
.about-skills h3 {
font-size: 2rem;
margin-bottom: 1rem;
color: #333;
}
.about-skills ul {
list-style-type: none;
padding: 0;
}
.about-skills ul li {
margin-bottom: 1rem;
font-size: 1.1rem;
color: #666;
}
/* Call to Action Section Styles */
.cta-section {
padding: 4rem 0;
background: #f4f4f4;
text-align: center;
}
.cta-section p {
font-size: 1.2rem;
margin-bottom: 2rem;
color: #555;
}
.cta-section .btn {
display: inline-block;
padding: 1rem 2rem;
background: #ff6347;
color: #fff;
border: none;
border-radius: 5px;
text-decoration: none;
font-size: 1rem;
transition: background 0.3s ease;
}
.cta-section .btn:hover {
background: #e65100;
}
/* 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**: Updated `body` background color and text color for better readability on light backgrounds (`#f8f9fa` for background and `#333` for text).
2. **Section Title Styles**: Added styles for `.section-title` to ensure consistent appearance of section titles across all pages.
3. **About Section Styles**:
- `.about-section` now has a white background (`#fff`) and text aligned to the center for a clean look.
- `.about-content` uses flexbox for layout (`flex`, `justify-content`, `align-items`) to evenly distribute content.
- `.about-text` and `.about-skills` have specific styles (`flex`, `text-align`, `color`) for structured content display.
4. **Call to Action Section Styles**:
- `.cta-section` has a light gray background (`#f4f4f4`) to distinguish it from other sections.
- Styles for `.cta-section p` and `.cta-section .btn` ensure the call to action stands out with appropriate padding, background color (`#ff6347`), and hover effect (`#e65100`).
5. **Footer Styles**: Kept the footer background dark (`#333`) with white text (`#fff`), central alignment, and social links (`social-links`) with hover effect (`transform: scale(1.2)`).
### Integration:
- Ensure `styles.css` is linked correctly in all HTML pages (`<link rel="stylesheet" href="styles.css">`).
- Replace placeholder content and images (`images/icon-facebook.svg`, `images/icon-twitter.svg`, etc.) with actual content relevant to the portfolio creator and their social media links.
By updating `styles.css` with these styles, you maintain a cohesive design across all pages of your portfolio theme, enhancing user experience and visual appeal. Adjustments can be made based on your specific design preferences and requirements.