:root {
    --bg-body: #ffffff;
    --bg-light: #f9f9fa; /* Very subtle grey for sections */
    --text-main: #111827; /* Near black */
    --text-muted: #6b7280; /* Cool grey */
    --accent: #d97706; /* Professional amber/gold */
    --border: #e5e7eb;
    
    --font-ui: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    --container-max: 1100px;
    --radius: 8px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Canvas Background */
#canvas-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Cursor */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; pointer-events: none; z-index: 9999;
}
.cursor-dot { width: 6px; height: 6px; background: var(--text-main); }
.cursor-outline { width: 32px; height: 32px; border: 1px solid rgba(0,0,0,0.2); transition: all 0.15s; }

/* Utilities */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--text-main); }
h1 { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 24px; }
h2.section-title { font-size: 2rem; margin-bottom: 60px; position: relative; display: inline-block; }
p { color: var(--text-muted); font-size: 1.05rem; }

/* Navbar */
.navbar a, .navbar a:hover, .navbar a:visited, .navbar a:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

.navbar { padding: 24px 0; position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); z-index: 100; border-bottom: 1px solid transparent; transition: border 0.3s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text-main); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text-main); }
.btn-nav { color: var(--text-main) !important; }

/* Hero */
.hero { padding-top: 120px; padding-bottom: 100px; }
.hero-text { max-width: 700px; }
.badge { display: inline-block; background: #ecfdf5; color: #059669; padding: 6px 12px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; border: 1px solid #a7f3d0; }
.hero-sub { font-size: 1.25rem; margin-bottom: 40px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; transition: all 0.2s; text-decoration: none; cursor: none; }
.btn.primary { background: var(--text-main); color: white; }
.btn.primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn.secondary { background: white; border: 1px solid var(--border); color: var(--text-main); }
.btn.secondary:hover { background: var(--bg-light); border-color: var(--text-muted); }
.btn.large { padding: 16px 32px; font-size: 1.1rem; }

/* Tech Bar */
.tech-bar { padding: 20px 0; background: white; overflow: hidden; white-space: nowrap; }
.bar-label { font-weight: 600; margin-right: 20px; color: var(--text-main); }
.stack-scroller { display: inline-block; color: var(--text-muted); font-weight: 500; }
.stack-scroller .dot { margin: 0 12px; color: var(--border); }
.stack-scroller .highlight-tech { /* New rule for C++20 */
    font-weight: 600;
    color: #2a323f; /* Slightly darker than muted, but not full black */
}

/* Experience Timeline */
.timeline { position: relative; border-left: 2px solid var(--border); padding-left: 40px; margin-left: 10px; }
.timeline-item { margin-bottom: 60px; position: relative; }
.timeline-date { font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.company { display: block; margin-bottom: 12px; font-weight: 500; color: var(--text-main); }
.timeline-content h3 { font-size: 1.3rem; margin-bottom: 4px; }
.experience-list {
    list-style: none;
    margin-top: 12px;
}
.experience-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}
.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}
.timeline-content p { font-size: 1rem; margin-bottom: 16px; max-width: 600px; }
.tags span { display: inline-block; background: var(--bg-light); padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; color: var(--text-muted); margin-right: 8px; border: 1px solid var(--border); }

/* Projects (Case Study Style) */
.project-card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 100px; align-items: center; }
.project-card:nth-child(even) .project-info { order: 2; } /* Alternating layout */

.project-overline { text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; display: block; }
.project-info h3 { font-size: 2rem; margin-bottom: 24px; }
.project-desc { margin-bottom: 16px; font-size: 1rem; }
.project-desc strong { color: var(--text-main); }
.project-tech { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 32px; }
.project-tech li { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.link-arrow { font-weight: 600; color: var(--text-main); display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid transparent; transition: border 0.2s; }
.link-arrow:hover { border-color: var(--text-main); gap: 12px; }

.project-visual {
    background: #f3f4f6;
    height: 350px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Updated Code Snippet Styling for Prism */
.code-snippet {
    width: 85%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden; /* Ensures rounded corners clip the pre content */
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
}

.project-card:hover .code-snippet {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Override Prism default margins */
.code-snippet pre[class*="language-"] {
    margin: 0;
    padding: 1.5em;
    border-radius: 0; /* Let container handle radius */
    font-size: 0.85rem;
}

.analysis-badge {
    background: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    color: #059669;
}

/* Project 3 specific visual styling */
.p3-visual {
    background: linear-gradient(135deg, #f0f4f8, #e0e6ec); /* Light gradient background for chat app */
}

.chat-mockup {
    width: 90%;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background-color: #e0f2f7; /* Light blue */
    align-self: flex-end;
    color: var(--text-main);
}

.chat-message.bot {
    background-color: #f0f0f0; /* Light grey */
    align-self: flex-start;
    color: var(--text-main);
}

/* Footer */
.footer { padding: 40px 0; background: white; }
.footer-flex { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem; }
.socials a { margin-left: 24px; color: var(--text-main); font-weight: 500; }

/* Contact Section Specific Spacing */
#contact .container { /* New rule to force vertical stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contact h2 {
    margin-bottom: 39px; /* Reduced by ~3% */
}
#contact .contact-sub {
    margin-bottom: 5px; /* Reduced to bring location text closer */
    font-size: 1.2rem; /* Slightly larger text */
}
.contact-location { /* Specific style for location text */
    font-size: 0.9rem; /* Smaller font size */
    color: var(--text-muted); /* Muted color */
    margin-top: 0px; /* Directly below the previous text */
    margin-bottom: 30px; /* Space to button below */
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f3f4f6;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 15px; /* Abstand nach oben */
    margin-bottom: 30px; /* Abstand zum Button */
}

.location-badge i {
    color: var(--accent);
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .project-card, .project-card:nth-child(even) .project-info { grid-template-columns: 1fr; order: 0; }
    .project-visual { height: 250px; margin-top: 24px; }
    .hero { padding-top: 80px; }
}
