Untitled
body { font-family: 'Helvetica Neue', Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f9; color: #333; } header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background-color: #222; color: #fff; } header .logo { font-size: 28px; font-weight: bold; } header nav ul { list-style: none; display: flex; gap: 20px; } header nav ul li a { color: #fff; text-decoration: none; font-weight: bold; } .hero { background-image: url('hero-bg.jpg'); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 100px 20px; background-color: rgba(0, 0, 0, 0.5); } .hero h1 { font-size: 48px; margin-bottom: 10px; } .hero p { font-size: 24px; } #portfolio { padding: 50px 20px; text-align: center; } #portfolio h2 { font-size: 36px; margin-bottom: 20px; } .projects { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; } .project { width: 300px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; } .project img { width: 100%; height: auto; } .project p { padding: 15px; font-size: 16px; } #about { padding: 50px 20px; text-align: center; background-color: #fff; } #about h2 { font-size: 36px; margin-bottom: 20px; } #about img { width: 150px; height: auto; border-radius: 50%; margin-bottom: 20px; } #about p { font-size: 18px; line-height: 1.6; } footer { background-color: #222; color: #fff; padding: 50px 20px; text-align: center; } footer h2 { font-size: 36px; margin-bottom: 20px; } footer form { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto; } footer form input, footer form textarea { padding: 10px; border: none; border-radius: 5px; font-size: 16px; } footer form button { padding: 10px; border: none; border-radius: 5px; background-color: #555; color: #fff; cursor: pointer; font-size: 16px; } @media (max-width: 768px) { header { flex-direction: column; align-items: flex-start; } header nav ul { flex-direction: column; gap: 10px; } .projects { flex-direction: column; } .project { width: 100%; } .hero { padding: 50px 20px; } }
Leave a Comment