/* Base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Helvetica', 'Arial', sans-serif; background-color: #ffffff; color: #333333; line-height: 1.6; text-align: center; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; } /* Header styles */ header { padding: 40px 0 20px; } .site-title { font-size: 28px; font-weight: 300; letter-spacing: 1px; margin-bottom: 20px; } /* Navigation */ nav { margin-bottom: 20px; } nav ul { list-style: none; display: flex; justify-content: center; gap: 40px; } nav a { text-decoration: none; color: #555555; font-size: 14px; letter-spacing: 1px; transition: color 0.3s ease; } nav a:hover { color: #7b9ea8; } /* Divider */ .divider { width: 600px; height: 1px; background-color: #7b9ea8; margin: 0 auto 10px; opacity: 0.8; } /* Hero section */ .hero { padding: 20px 0 20px; display: flex; justify-content: space-between; gap: 40px; } .hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; } .hero h2 { font-size: 24px; font-weight: 400; margin-bottom: 20px; } .hero p { font-size: 16px; color: #555555; max-width: 700px; } .hero-image { flex: 0 0 auto; width: 500px; /* height: 450px; */ aspect-ratio: 4/3; max-width: 100%; overflow: hidden; } .slideshow { position: relative; border: 1px solid black; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 10px; background-color: #f7f7f7; width: 100%; height: 100%; overflow: hidden; } .slideshow img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s ease; opacity: 0; } @media (max-width: 768px) { .hero { flex-direction: column-reverse; text-align: center; } .hero-image { margin-bottom: 20px; width: 100%; } } /* Portfolio section */ .portfolio-section { padding: 20px 0 60px; } .section-title { font-size: 18px; letter-spacing: 1px; margin-bottom: 30px; } .projects-grid { display: grid; /* grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); */ grid-template-columns: 1fr; gap: 40px; max-width: 900px; margin: 0 auto; } .project-card { background-color: #f7f7f7; border: 1px solid #e0e0e0; padding: 20px; /* min-height: 200px; */ display: flex; /* flex-direction: column; */ /* justify-content: center; */ gap: 30px; align-items: center; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; } .project-card:hover { /* transform: translateY(-5px); */ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); } .project-card:nth-child(even) { flex-direction: row-reverse; } .project-image { flex: 0 0 300px; } .project-image img { width: 400px; height: 100%; object-fit: cover; } .project-info { flex: 1; display: flex; flex-direction: column; gap: 15px; } .project-card h3 { font-size: 14px; color: #555555; font-weight: 400; margin: 0; } /* .thumbnail { */ /* width: 100%; */ /* height: 120px; */ /* background-color: #e0e0e0; */ /* margin-bottom: 15px; */ /* display: flex; */ /* align-items: center; */ /* justify-content: center; */ /* font-size: 12px; */ /* color: #777; */ /* } */ .project-description { font-size: 13px; color: #666; line-height: 1.5; margin: 0; } .project-tech { font-size: 12px; color: #888; font-style: italic; } .project-links { display: flex; justify-content: center; gap: 15px; } .project-link { font-size: 12px; color: #333; text-decoration: none; padding: 5px 10px; border: 1px solid #ddd; transition: background-color 0.3s ease; } .project-link:hover { background-color: #f0f0f0; } /* Footer */ footer { padding: 40px 0 20px; color: #7b9ea8; font-size: 12px; } /* Responsive adjustments */ @media (max-width: 768px) { .projects-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } nav ul { gap: 20px; } } @media (max-width: 480px) { .projects-grid { grid-template-columns: 1fr; } nav ul { flex-direction: column; gap: 10px; } }