/*---------------------------------------------- * Global Reset *----------------------------------------------*/ * { margin: 0; padding: 0; box-sizing: border-box;} /*---------------------------------------------- * Body Styles *----------------------------------------------*/body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #fff; color: #333; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh;} /*---------------------------------------------- * Left Sidebar *----------------------------------------------*/body::before { content: ""; position: fixed; top: 0; left: 0; width: 40px; height: 100%; background-color: #e0e0e0;} /*---------------------------------------------- * Header Styles *----------------------------------------------*/header { text-align: left; background-color: #f9f9f9; padding: 20px 50px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);} header h1 { font-size: 32px; color: #333; font-family: 'Segoe UI', serif; margin-bottom: 5px;} header p { font-size: 14px; color: #666; font-family: 'Segoe UI', sans-serif; line-height: 1.4;} /*---------------------------------------------- * Navigation Bar *----------------------------------------------*/.navbar { background-color: #fff; padding: 10px 50px; border-bottom: 1px solid #e0e0e0; margin-top: 10px;} .navbar ul { list-style-type: none; display: flex; gap: 20px; padding: 10px 0;} .navbar ul li a { color: #333; font-size: 16px; text-decoration: none; font-weight: 400; transition: color 0.3s ease;} .navbar ul li a:hover,.navbar ul li a:focus,.navbar ul li a:active { color: #555;} /*---------------------------------------------- * Content Wrapper *----------------------------------------------*/.content-wrapper { display: flex; flex-direction: column; margin: 20px auto; background-color: #fff; border-radius: 8px; text-align: left; margin-left: 70px; max-width: 900px; padding: 20px;} /*---------------------------------------------- * Project Section *----------------------------------------------*/.project-section { font-family: "Georgia", "Times New Roman", Times, Serif; margin: 20px 0; color: #333;} .project-section h2 { font-size: 24px; margin-bottom: 30px; font-weight: 700; text-align: center;} /*---------------------------------------------- * Category Card *----------------------------------------------*/.category-card { background-color: #fff; padding: 20px; margin-bottom: 1.5rem; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); transition: transform 0.2s ease, box-shadow 0.2s ease;} .category-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);} /*---------------------------------------------- * Project Card *----------------------------------------------*/.project { display: flex; align-items: flex-start; margin-bottom: 25px; gap: 20px;} .project img { width: 90px; height: 140px; margin-right: 20px; border: 1px solid #ddd; border-radius: 8px;} .project-info { flex: 1;} .project-info h3 { font-size: 20px; margin-bottom: 8px; font-weight: 600; color: #4d4d4f;} .project-info p { font-size: 15px; line-height: 1.5; color: #555;} /*---------------------------------------------- * GitHub Button *----------------------------------------------*/.github-link { display: inline-block; margin-top: 10px; padding: 8px 12px; background-color: #666; color: white; text-decoration: none; border-radius: 4px; transition: background-color 0.3s;} .github-link:hover { background-color: #555;} /*---------------------------------------------- * Footer Styles *----------------------------------------------*/footer { position: relative; z-index: 10; text-align: center; padding: 20px; background-color: #f5f5f5; color: #666; border-top: 1px solid #e0e0e0; margin-top: 150px;} /*---------------------------------------------- * Dark Mode Styles *----------------------------------------------*/ @media (prefers-color-scheme: dark) { body { background-color: #121212; color: #e0e0e0; } body::before { background-color: #2c2c2c; } header { background-color: #1e1e1e; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); } header h1 { color: #ffffff; } header p { color: #b0b0b0; } .navbar { background-color: #1e1e1e; border-bottom: 1px solid #444; } .navbar ul li a { color: #e0e0e0; } .navbar ul li a:hover, .navbar ul li a:focus, .navbar ul li a:active { color: #ffffff; } .content-wrapper { background-color: #1e1e1e; color: #e0e0e0; } .project-section h2 { color: #ffffff; } .category-card { background-color: #2c2c2c; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } .category-card:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); } .project img { border-color: #444; } .project-info h3 { color: #ffffff; } .project-info p { color: #b0b0b0; } .github-link { background-color: #444; color: #ffffff; } .github-link:hover { background-color: #555; } footer { background-color: #1e1e1e; color: #b0b0b0; border-top: 1px solid #444; }}
/*----------------------------------------------
* Global Reset
*----------------------------------------------*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*----------------------------------------------
* Body Styles
*----------------------------------------------*/
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #fff;
color: #333;
line-height: 1.6;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/*----------------------------------------------
* Left Sidebar
*----------------------------------------------*/
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 40px;
height: 100%;
background-color: #e0e0e0;
}
/*----------------------------------------------
* Header Styles
*----------------------------------------------*/
header {
text-align: left;
background-color: #f9f9f9;
padding: 20px 50px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header h1 {
font-size: 32px;
color: #333;
font-family: 'Segoe UI', serif;
margin-bottom: 5px;
}
header p {
font-size: 14px;
color: #666;
font-family: 'Segoe UI', sans-serif;
line-height: 1.4;
}
/*----------------------------------------------
* Navigation Bar
*----------------------------------------------*/
.navbar {
background-color: #fff;
padding: 10px 50px;
border-bottom: 1px solid #e0e0e0;
margin-top: 10px;
}
.navbar ul {
list-style-type: none;
display: flex;
gap: 20px;
padding: 10px 0;
}
.navbar ul li a {
color: #333;
font-size: 16px;
text-decoration: none;
font-weight: 400;
transition: color 0.3s ease;
}
.navbar ul li a:hover,
.navbar ul li a:focus,
.navbar ul li a:active {
color: #555;
}
/*----------------------------------------------
* Content Wrapper
*----------------------------------------------*/
.content-wrapper {
display: flex;
flex-direction: column;
margin: 20px auto;
background-color: #fff;
border-radius: 8px;
text-align: left;
margin-left: 70px;
max-width: 900px;
padding: 20px;
}
/*----------------------------------------------
* Project Section
*----------------------------------------------*/
.project-section {
font-family: "Georgia", "Times New Roman", Times, Serif;
margin: 20px 0;
color: #333;
}
.project-section h2 {
font-size: 24px;
margin-bottom: 30px;
font-weight: 700;
text-align: center;
}
/*----------------------------------------------
* Category Card
*----------------------------------------------*/
.category-card {
background-color: #fff;
padding: 20px;
margin-bottom: 1.5rem;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/*----------------------------------------------
* Project Card
*----------------------------------------------*/
.project {
display: flex;
align-items: flex-start;
margin-bottom: 25px;
gap: 20px;
}
.project img {
width: 90px;
height: 140px;
margin-right: 20px;
border: 1px solid #ddd;
border-radius: 8px;
}
.project-info {
flex: 1;
}
.project-info h3 {
font-size: 20px;
margin-bottom: 8px;
font-weight: 600;
color: #4d4d4f;
}
.project-info p {
font-size: 15px;
line-height: 1.5;
color: #555;
}
/*----------------------------------------------
* GitHub Button
*----------------------------------------------*/
.github-link {
display: inline-block;
margin-top: 10px;
padding: 8px 12px;
background-color: #666;
color: white;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s;
}
.github-link:hover {
background-color: #555;
}
/*----------------------------------------------
* Footer Styles
*----------------------------------------------*/
footer {
position: relative;
z-index: 10;
text-align: center;
padding: 20px;
background-color: #f5f5f5;
color: #666;
border-top: 1px solid #e0e0e0;
margin-top: 150px;
}
/*----------------------------------------------
* Dark Mode Styles
*----------------------------------------------*/
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #e0e0e0;
}
body::before {
background-color: #2c2c2c;
}
header {
background-color: #1e1e1e;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
header h1 {
color: #ffffff;
}
header p {
color: #b0b0b0;
}
.navbar {
background-color: #1e1e1e;
border-bottom: 1px solid #444;
}
.navbar ul li a {
color: #e0e0e0;
}
.navbar ul li a:hover,
.navbar ul li a:focus,
.navbar ul li a:active {
color: #ffffff;
}
.content-wrapper {
background-color: #1e1e1e;
color: #e0e0e0;
}
.project-section h2 {
color: #ffffff;
}
.category-card {
background-color: #2c2c2c;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.category-card:hover {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.project img {
border-color: #444;
}
.project-info h3 {
color: #ffffff;
}
.project-info p {
color: #b0b0b0;
}
.github-link {
background-color: #444;
color: #ffffff;
}
.github-link:hover {
background-color: #555;
}
footer {
background-color: #1e1e1e;
color: #b0b0b0;
border-top: 1px solid #444;
}
}