body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
background-color: #f4f6f8;
color: #333;
}
section {
padding: 40px 20px;
}
/* ===== Header Section ===== */
header {
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d');
background-size: cover;
background-position: center;
color: #fff;
text-align: center;
padding: 60px 20px;
}
header h1 {
font-size: 2.5rem;
font-weight: 600;
text-transform: uppercase;
display: block; /* display property */
}
header p {
font-size: 1.2rem;
font-weight: 300;
display: inline-block; /* display property */
margin-top: 10px;
}
/* ===== Profile Section (Flexbox) ===== */
.profile {
display: flex;
justify-content: center;
align-items: center;
gap: 30px;
max-width: 1000px;
margin: auto;
}
.profile img {
width: 200px;
height: 200px;
border-radius: 50%;
object-fit: cover;
display: block;
}
.bio {
max-width: 600px;
}
.bio p {
font-size: 1rem;
text-align: justify;
}
/* ===== Skills Section (Grid) ===== */
.skills {
background-color: #ffffff;
}
.skills h2 {
text-align: center;
margin-bottom: 30px;
text-transform: uppercase;
font-size: 1.8rem;
}
.skills-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
max-width: 1000px;
margin: auto;
}
.skill-card {
background-color: #e3f2fd;
padding: 20px;
text-align: center;
font-weight: 500;
border-radius: 8px;
}
/* ===== Contact Section ===== */
.contact h2 {
text-align: center;
margin-bottom: 20px;
text-transform: uppercase;
}
form {
max-width: 600px;
margin: auto;
background-color: #ffffff;
padding: 30px;
border-radius: 8px;
}
label {
display: block; /* display property */
margin-bottom: 5px;
font-weight: 500;
}
input, textarea {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-family: inherit;
}
button {
background-color: #1976d2;
color: #fff;
border: none;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
display: inline; /* display property */
}
/* ===== Footer ===== */
footer {
background-color: #222;
color: #fff;
text-align: center;
padding: 20px;
font-size: 0.9rem;
}
/* ===== Responsive Design ===== */
@media (max-width: 768px) {
.profile {
flex-direction: column;
text-align: center;
}
.skills-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
header h1 {
font-size: 1.8rem;
}
.skills-grid {
grid-template-columns: 1fr;
}
}
</style>
Eletrical Engineering Student
HTML
CSS
Problem Solving
Teamwork
Message
<textarea id="message" rows="4" placeholder="Your message"></textarea>Send Message
Aysha Yimam © 2025
