:root {
    --bg-color: #050505;
    --text-color: #f4f4f4;
    --accent-color: #ff3366;
    --surface-color: #111111;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (pointer: fine) { * { cursor: none; } }
html { scroll-behavior: initial; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Utilities --- */
.accent { color: var(--accent-color); }
.italic { font-style: italic; }

/* Noise Overlay */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9998; opacity: 0.04;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png');
    background-repeat: repeat; mix-blend-mode: overlay;
}

/* Navigation */
.main-nav {
    position: fixed; top: 2rem; right: 5vw; z-index: 100;
    display: flex; gap: 2.5rem; mix-blend-mode: difference;
}
.main-nav a {
    color: #fff; text-decoration: none; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease;
}
.main-nav a:hover { color: var(--accent-color); }

/* Custom Cursor */
.cursor {
    position: fixed; top: 0; left: 0; width: 16px; height: 16px;
    background-color: var(--accent-color); border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    mix-blend-mode: difference; transition: width 0.2s ease, height 0.2s ease;
    will-change: transform, width, height;
}
@media (pointer: coarse) { .cursor { display: none; } }

/* Headers (Instrument Serif) */
h1, h2, h3, .hero-title, .section-title, .huge-text {
    font-family: var(--font-heading); font-weight: 400;
}

/* --- Hero Section --- */
.hero {
    position: relative; height: 100vh; display: flex;
    flex-direction: column; justify-content: center; padding: 0 5vw; overflow: hidden;
}
.hero-video {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    object-fit: cover; z-index: -2; opacity: 0.8;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.6) 0%, rgba(5,5,5,0.2) 100%);
    z-index: -1;
}
.hero-content { z-index: 1; }

.hero-title { 
    font-size: clamp(4rem, 15vw, 12rem); 
    line-height: 1; 
    color: #fff; 
}


.line-wrapper { 
    display: block; 
    overflow: hidden; 
    padding-left: 0.2em;
    margin-left: -0.2em;
    padding-bottom: 0.4em;
    margin-bottom: -0.4em;
}

.line { 
    display: block; 
    will-change: transform; 
}
.hero-sub {
    margin-top: 2rem; font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    text-transform: uppercase; letter-spacing: 1px; opacity: 0.7;
}

/* --- Marquee --- */
.marquee-container {
    padding: 1rem 0; background: transparent; color: var(--text-color);
    overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.marquee-text {
    display: inline-block; font-size: 1.2rem; font-weight: 400;
    letter-spacing: 2px; will-change: transform; animation: marquee 35s linear infinite;
}
@keyframes marquee { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

/* --- Typography Generell --- */
.section-title { font-size: clamp(4rem, 10vw, 8rem); line-height: 0.9; }
.sub-text { margin-top: 1.5rem; font-size: 1rem; opacity: 0.6; text-transform: uppercase; }

/* --- NEW: Projects Section --- */
.projects { padding: 15vw 5vw 5vw; }
.project-list { margin-top: 5rem; display: flex; flex-direction: column; }
.project-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 3rem 0; border-bottom: 1px solid var(--border-color);
    text-decoration: none; color: var(--text-color);
    transition: padding 0.4s ease, color 0.3s ease;
    will-change: transform, padding;
}
.project-row:hover { padding: 3rem 2rem; color: var(--accent-color); }
.project-info h3 { font-size: 3.5rem; margin-bottom: 0.5rem; }
.project-info span { font-size: 0.9rem; text-transform: uppercase; opacity: 0.6; letter-spacing: 1px; }
.project-year { font-size: 1.2rem; font-family: var(--font-heading); font-style: italic; opacity: 0.8; }

/* --- Experience Section --- */
.experience { display: flex; padding: 10vw 5vw 15vw; gap: 5vw; position: relative; }
.experience-sticky { flex: 1; position: sticky; top: 20vh; height: max-content; }
.experience-scroll { flex: 2; display: flex; flex-direction: column; gap: 6vh; }
.timeline-item { background: transparent; padding: 2rem 0; border-top: 1px solid var(--border-color); will-change: transform, opacity; }
.timeline-date { color: var(--accent-color); margin-bottom: 0.5rem; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.timeline-item h3 { font-size: 3rem; margin-bottom: 0.2rem; }
.timeline-item h4 { font-size: 1rem; opacity: 0.5; font-weight: 300; }

/* --- Bento Skills Section --- */
.bento-skills { padding: 5vw 5vw 15vw; }
.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto);
    gap: 1rem; margin-top: 4rem;
}
.bento-item {
    background: var(--surface-color); padding: 2.5rem; display: flex; flex-direction: column;
    justify-content: flex-start; border: 1px solid var(--border-color);
    transition: background 0.3s; will-change: transform, opacity;
}
.bento-item:hover { background: #1a1a1a; }
.bento-item.span-2 { grid-column: span 2; }
.bento-item.span-3 { grid-column: span 3; } /* For Industrial Bullet Points */

.bento-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    opacity: 0.5; margin-bottom: 1.5rem; font-family: var(--font-body);
}

/* Bullet Points for Industrial Engineering */
.mechanic-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mechanic-list li {
    position: relative; padding-left: 1.5rem; font-size: 1.1rem; opacity: 0.8;
}
.mechanic-list li::before {
    content: '✦'; position: absolute; left: 0; color: var(--accent-color); font-size: 0.9rem; line-height: 1.6;
}

/* Tech Icons Styling */
.icon-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 3.5rem; color: rgba(255,255,255,0.7); }
.icon-grid i { transition: color 0.3s, transform 0.3s; }
.icon-grid i:hover { color: var(--accent-color); transform: translateY(-5px); }

.text-icon {
    font-family: var(--font-body); font-weight: bold; font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.7); padding: 0.2rem 0.5rem;
    display: inline-flex; align-items: center; justify-content: center; transition: 0.3s;
}
.text-icon:hover { color: var(--accent-color); border-color: var(--accent-color); transform: translateY(-5px); }

/* --- Contact Footer --- */
.contact {
    height: 100vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; background: var(--surface-color); border-top: 1px solid var(--border-color);
}
.huge-text { font-size: clamp(5rem, 18vw, 15rem); line-height: 0.8; }
.magnetic-wrap { padding: 3rem; margin-top: 2rem; }
.magnetic-button {
    display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 150px;
    background-color: var(--accent-color); color: #fff; border-radius: 50%;
    text-decoration: none; font-size: 1rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px; font-family: var(--font-body);
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .experience { flex-direction: column; }
    .experience-sticky { position: static; margin-bottom: 2rem; }
    .bento-grid { display: flex; flex-direction: column; }
    .project-row { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 0; }
    .mechanic-list { grid-template-columns: 1fr; }
    .main-nav { display: none; }
}