Files
personal-website/hugo/eliaskohout.de/assets/css/style.css

221 lines
3.6 KiB
CSS
Raw Normal View History

2026-02-12 14:38:32 +01:00
html, body {
margin: 0;
padding: 0;
height: 100%;
background: #000;
font-family: 'Geist Mono', sans-serif;
color: #fff;
}
/* ── Background ── */
.background {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 0;
}
svg {
width: 100%;
height: 100%;
filter: blur(1px) brightness(1.2);
}
.flow-path {
fill: none;
stroke: white;
stroke-width: 1;
stroke-opacity: 0.20;
stroke-dasharray: 1500;
stroke-dashoffset: 0;
animation: flow 12s ease-in-out infinite alternate;
}
.glow {
stroke-opacity: 0.12;
animation-duration: 18s;
}
.flow-path:nth-child(3n) { animation-delay: 2s; }
.flow-path:nth-child(4n) { animation-delay: 4s; }
@keyframes flow {
0% { stroke-dashoffset: 0; }
100% { stroke-dashoffset: 3000; }
}
/* ── Landing Page ── */
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 1;
}
.centered h1 {
font-size: 3.5rem;
margin-bottom: 1.5rem;
letter-spacing: 4px;
}
.centered nav a {
display: block;
margin: 0.3rem 0;
color: #ccc;
text-decoration: none;
font-size: 1.1rem;
}
.centered nav a:hover {
color: #ff3c3c;
}
.nav-label {
display: block;
font-size: 0.7rem;
color: #555;
text-transform: uppercase;
letter-spacing: 2px;
margin-top: 1.2rem;
margin-bottom: 0.3rem;
}
/* Add an arrow after external links */
.centered nav a[href^="http"]::after {
content: " ↗";
font-size: 0.8em;
opacity: 0.5;
}
/* No arrow for internal links */
.centered nav a[href^="/"]::after {
content: none;
}
/* ── Page Content (Projects) ── */
.page-content {
position: relative;
z-index: 1;
max-width: 800px;
margin: 4rem auto;
padding: 0 2rem;
}
.page-content h1 {
font-size: 2.5rem;
letter-spacing: 3px;
margin-bottom: 2rem;
}
/* ── Project Grid ── */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
.project-card {
display: block;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 1.5rem;
text-decoration: none;
color: #fff;
transition: border-color 0.3s, transform 0.2s;
background: rgba(255, 255, 255, 0.05);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.project-card:hover {
border-color: #ff3c3c;
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.08);
}
.project-card img {
width: 100%;
border-radius: 4px;
margin-bottom: 1rem;
}
.project-card h2 {
font-size: 1.3rem;
margin: 0 0 0.5rem 0;
}
.project-card p {
color: #aaa;
font-size: 0.9rem;
margin: 0.3rem 0;
}
/* ── Tags ── */
.tags {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin: 0.5rem 0;
}
.tag {
background: rgba(255, 255, 255, 0.08);
padding: 0.2rem 0.6rem;
border-radius: 4px;
font-size: 0.8rem;
color: #ccc;
}
/* ── Project Detail ── */
.project-links {
margin: 1rem 0 2rem;
}
.project-links a {
color: #ff3c3c;
text-decoration: none;
margin-right: 1rem;
}
.project-links a:hover {
text-decoration: underline;
}
.project-body {
line-height: 1.8;
color: #ddd;
}
.project-body h2 {
color: #fff;
margin-top: 2rem;
font-size: 1.4rem;
}
/* ── Back Link ── */
.back-link {
margin-top: 3rem;
}
.back-link a {
color: #888;
text-decoration: none;
font-size: 0.9rem;
}
.back-link a:hover {
color: #ff3c3c;
}
/* ── Responsive ── */
@media (max-width: 600px) {
.centered h1 { font-size: 2rem; }
.page-content { margin: 2rem auto; }
.project-grid { grid-template-columns: 1fr; }
}