/* Reset and global styles */ body { box-sizing: border-box; margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; transition: 0.5s; } /* Body styles */ body { background: #f5f5f5 url("assets/background.jpg") no-repeat center fixed; display: flex; flex-direction: column; align-items: center; min-height: 100vh; } /* Header styles */ header { background-color: rgba(0, 0, 0, 0.7); padding: 10px; width: 100%; position: fixed; top: 0; left: 0; z-index: 1000; } .header-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } .project-name { color: white; font-size: 1.5em; } .burger-menu { background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; display: none; } .menu { list-style: none; display: flex; justify-content: space-around; flex-grow: 1; } header li { margin: 0 10px; } header a { color: white; text-decoration: none; padding: 10px; border-radius: 5px; transition: background-color 0.3s ease; } header a:hover { background-color: rgba(255, 255, 255, 0.2); } /* Article styles */ article { margin-top: 140px; padding: 30px; width: 90%; max-width: 800px; background: rgba(255, 255, 255, 0.9); border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); text-align: center; } h1, p { margin-bottom: 20px; } h1 { color: #333; font-size: 1.8em; } h2{ margin-bottom: -1em; } p { color: #666; line-height: 1.6; } img { max-width: 100%; height: auto; margin-bottom: 20px; } button { padding: 12px 24px; margin: 0; border: none; background-color: #333; color: white; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #555; } /* Cards section styles */ section .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 50px; } section .card { text-align: center; list-style: none; background-color: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); text-decoration: none; color: #333; transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; } section .card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); } section .card img { height: 64px; width: 64px; object-fit: cover; border-radius: 5px; margin: 0 auto 10px; } section .card h3 { margin: 10px 0; } section .card p { flex-grow: 1; } /* Mobile Styles */ @media (max-width: 768px) { .burger-menu { display: block; } .menu { display: none; flex-direction: column; background-color: rgba(0, 0, 0, 0.7); position: absolute; top: 100%; left: 0; width: 100%; z-index: 999; } .menu.active { display: flex; } header { padding: 8px; /* Adjusted padding */ height: auto; } .header-content { flex-direction: row; justify-content: space-between; align-items: center; } .project-name { font-size: 1.2em; } header li { margin: 0; width: 100%; } header a { padding: 10px; width: 100%; display: block; } article { margin-top: 180px; /* Adjusted margin-top */ padding: 20px; /* Adjusted padding */ } section .card { padding: 12px; /* Adjusted padding */ } section .card img { height: 60px; /* Adjusted height */ width: 60px; /* Adjusted width */ border-radius: 8px; /* Adjusted border-radius */ } }