homepage/style.css
2026-05-18 20:52:34 +02:00

252 lines
6.2 KiB
CSS

:root {
--bg-color: #050505;
--text-color: #00f3ff;
--card-bg: #0a0a0f;
--accent-color: #ff00ff;
--link-color: #ffd700;
--mono-font: 'SFMono-Regular', Consolas, Menlo, monospace;
}
@keyframes pulse-trace {
0%, 100% { opacity: 0.3; }
50% { opacity: 1; }
}
@keyframes scan-line {
0% { transform: translateX(-150%) skewX(-45deg); opacity: 0; }
10% { opacity: 0.5; }
20% { transform: translateX(150%) skewX(-45deg); opacity: 0; }
100% { transform: translateX(150%) skewX(-45deg); opacity: 0; }
}
@keyframes fade-in-up {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: var(--mono-font);
background-color: var(--bg-color);
background-image: radial-gradient(rgba(0, 243, 255, 0.15) 1px, transparent 1px); /* Grid background */
background-size: 24px 24px;
color: var(--text-color);
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding: 40px 20px;
overflow-x: hidden;
}
.bento-grid {
display: grid;
max-width: 900px;
gap: 24px;
grid-template-columns: repeat(4, 1fr);
}
.card {
background: var(--card-bg);
padding: 24px;
border: 0.2rem solid transparent;
overflow: hidden;
filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3))
drop-shadow(0 0 30px rgba(0, 243, 255, 0.15));
position: relative;
transition: all 0.3s ease;
backface-visibility: hidden; /* Fixes potential text blur on rotated cards */
clip-path: polygon(
0 15px, 15px 0,
100% 0,
100% calc(100% - 15px), calc(100% - 15px) 100%,
0 100%
);
}
/* Desktop-only effects: Shuffle and Gradient Borders */
@media (min-width: 769px) {
.card {
background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
linear-gradient(135deg, rgba(0, 243, 255, 0.4), rgba(255, 0, 255, 0.4)) border-box;
}
.card:hover {
filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.5))
drop-shadow(0 0 50px rgba(0, 243, 255, 0.3));
background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
linear-gradient(135deg, rgba(0, 243, 255, 0.8), rgba(255, 0, 255, 0.8)) border-box;
}
/* Shuffle Logic */
.profile { transform: rotate(0.1deg); }
.about { transform: translate(-4px, 2px) rotate(-0.5deg); }
.interests { transform: translate(6px, -2px) rotate(0.4deg); }
.links { transform: translate(-2px, -4px) rotate(-0.3deg); }
.contact { transform: translate(4px, 6px) rotate(0.5deg); }
/* CV sections also shuffled */
.experience { transform: translate(3px, -2px) rotate(-0.2deg); }
.skills { transform: translate(-3px, 4px) rotate(0.6deg); }
.education { transform: translate(2px, 3px) rotate(-0.4deg); }
}
@media (max-width: 768px) {
.card {
border-color: rgba(0, 243, 255, 0.3);
}
.card:hover {
border-color: rgba(0, 243, 255, 0.6);
}
}
.profile { grid-column: span 4; display: flex; align-items: center; gap: 32px; }
.experience, .education { grid-column: span 3; }
.skills { grid-column: span 1; }
.hidden {
display: none;
}
.reveal {
animation: fade-in-up 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
/* CV Specific Content Styles */
.cv-item {
margin-bottom: 20px;
border-left: 2px solid rgba(0, 243, 255, 0.2);
padding-left: 15px;
}
.cv-item:last-child { margin-bottom: 0; }
.cv-header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 4px;
}
.cv-title {
font-weight: bold;
color: #fff;
font-size: 1rem;
}
.cv-date {
font-size: 0.7rem;
color: var(--accent-color);
}
.cv-org {
font-size: 0.8rem;
color: var(--link-color);
margin-bottom: 8px;
}
.cv-desc {
font-size: 0.85rem;
line-height: 1.4;
opacity: 0.9;
}
.skill-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag {
font-size: 0.7rem;
padding: 4px 8px;
background: rgba(0, 243, 255, 0.1);
border: 1px solid rgba(0, 243, 255, 0.3);
}
.profile::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 60px;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
animation: scan-line 4s infinite linear;
pointer-events: none;
}
.about { grid-column: span 2; }
.interests { grid-column: span 2; }
.links { grid-column: span 2; }
.contact { grid-column: span 2; }
.link-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-grid a {
font-size: 0.75rem;
display: block;
padding: 8px;
border-left: 3px solid var(--text-color);
color: var(--link-color);
background: rgba(255, 255, 255, 0.02);
text-align: center;
transition: all 0.2s ease;
}
.links::after {
content: "";
position: absolute;
top: 10px; right: 10px;
width: 10px; height: 10px;
background: var(--link-color);
box-shadow: 0 0 15px 2px var(--link-color);
border-radius: 50%;
animation: pulse-trace 1s infinite;
}
.avatar {
width: 120px;
height: 160px; /* Explicit height for aspect ratio 3:4 */
object-fit: cover;
filter: brightness(0.8) contrast(1.2) sepia(1) hue-rotate(140deg);
border: 1px solid var(--text-color);
}
h1 {
margin: 0;
font-size: clamp(1.5rem, 5vw, 2.2rem);
color: #fff;
text-shadow: 2px 2px 0 var(--accent-color), -2px -2px 0 var(--text-color);
}
h2 {
font-size: 0.75rem;
text-transform: uppercase;
color: var(--accent-color);
text-shadow: 0 0 8px var(--accent-color);
margin-bottom: 16px;
margin-top: 0;
letter-spacing: 2px;
}
.link-grid a:hover {
background: rgba(255, 255, 255, 0.08);
border-left-color: var(--accent-color);
box-shadow: 0 0 15px var(--accent-color);
}
a { color: var(--link-color); text-decoration: none; }
@media (max-width: 768px) {
.bento-grid { grid-template-columns: 1fr; }
.profile, .about, .interests, .links, .contact,
.experience, .skills, .education {
grid-column: span 1;
transform: none;
}
.profile { flex-direction: column; text-align: center; }
}