/* Modern Styles for Tims Portfolio */

:root {
    --primary-color: #6366f1;
    --secondary-color: #04DBFC;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-card: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #CDF4FC;
    --text-muted: #64748b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #04DBFC 100%, #ec4899 100%);
    --gradient-3: linear-gradient(135deg, #04DBFC 0%, #ec4899 100%);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.gradient-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glitch {
    position: relative;
    color: var(--text-primary);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 2s infinite;
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 12px;
    width: 100%;
    height: 100%;
}

.text-glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.text-glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75); }
    25% { text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75); }
    75% { text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75); }
}

@keyframes glitch-1 {
    0%, 100% { clip: rect(42px, 9999px, 44px, 0); transform: skew(0.5deg); }
    25% { clip: rect(12px, 9999px, 59px, 0); transform: skew(0.5deg); }
    50% { clip: rect(48px, 9999px, 19px, 0); transform: skew(0.5deg); }
    75% { clip: rect(42px, 9999px, 73px, 0); transform: skew(0.5deg); }
}

@keyframes glitch-2 {
    0%, 100% { clip: rect(65px, 9999px, 119px, 0); transform: skew(0.5deg); }
    25% { clip: rect(20px, 9999px, 45px, 0); transform: skew(0.5deg); }
    50% { clip: rect(34px, 9999px, 90px, 0); transform: skew(0.5deg); }
    75% { clip: rect(88px, 9999px, 12px, 0); transform: skew(0.5deg); }
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.95);
}

.navbar-brand .logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.navbar-brand:hover .logo {
    transform: scale(1.1) rotate(5deg);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(99, 102, 241, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248, 250, 252, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: space-around;
    padding-top: 80px;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../img/main-banner-img2.jpg') center/cover no-repeat;
    filter: brightness(0.3);
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 10rem;
    min-height: 1.5rem;
}

.typing-text {
    border-right: 2px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-3);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
    margin: 0 auto 1rem;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.divider.center {
    margin: 1rem auto 0;
}

/* About Section */
.about-section {
    background: var(--dark-bg);
}

.about-image-container {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(0, 216, 255, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark-surface);
    border: 1px solid rgba(0, 216, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.floating-card i {
    color: #00D8FF;
    font-size: 1.25rem;
}

.about-content {
    opacity: 1 !important;
    transform: none !important;
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills-section {
    background: #0f172a00;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tags span {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: var(--primary-color);
    color: white;
}

/* Stacked Skills Section */
.skills-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 10vh;
    position: relative;
}

.skill-card-wrapper {
    position: sticky;
    top: 120px; /* Adjust based on navbar height */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 2rem; /* Add some spacing at the bottom of each card area */
}

/* Adjust skill card for stacked view */
.skill-card-wrapper .skill-card {
    width: 100%;
    max-width: 800px;
    background: rgba(30, 41, 59, 0.95); /* Slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari/iOS */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform-origin: center top;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity; /* Performance optimization */
}

.skill-card-wrapper .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 -5px 25px rgba(99, 102, 241, 0.2), 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .skill-card-wrapper {
        top: 100px;
    }
    
    .skill-card-wrapper .skill-card {
        padding: 1.5rem;
    }
    
    .skill-card-wrapper h3 {
        font-size: 1.5rem;
    }
}

/* Portfolio Section */
.portfolio-section {
    position: relative;
}

.portfolio-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.portfolio-main {
    flex-grow: 1;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive Portfolio */
@media (max-width: 991px) {
    .portfolio-layout {
        flex-direction: column;
    }
}

.portfolio-item {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: auto; /* Allow natural height */
}

.portfolio-image img {
    width: 100%;
    height: auto; /* Allow natural height */
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-card {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.contact-form {
    margin-top: 2rem;
}

.form-control {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    background: var(--dark-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer p {
    color: var(--text-muted);
    margin: 0;
}

/* Tech Uptime Badge */
.tech-uptime-container {
    display: flex;
    justify-content: center;
}

.tech-uptime-badge {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tech-uptime-badge:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.tech-uptime-badge i {
    color: var(--primary-color);
}

.uptime-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.uptime-value {
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 0 0 5px var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-bottom: 3rem;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 300px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    /* Career Journey Responsive */
    .career-map-container {
        padding: 1rem;
    }
    
    .germany-map {
        max-height: 300px;
    }
    
    .location-info {
        position: static !important;
        margin: 1rem 0;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .bavaria-info,
    .cologne-info {
        top: auto;
        left: auto;
        right: auto;
    }
    
    .timeline-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-items::before {
        left: 30px;
    }
    
    .timeline-item[data-location="bavaria"],
    .timeline-item[data-location="cologne"] {
        text-align: left;
        padding-left: 70px;
        padding-right: 1rem;
    }
    
    .timeline-item[data-location="bavaria"] .timeline-marker,
    .timeline-item[data-location="cologne"] .timeline-marker {
        left: 22px;
        right: auto;
    }
    
    .cv-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cv-download-btn,
    .cv-view-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Career Journey Section */
.career-journey-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.career-map-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.germany-map {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.germany-outline {
    stroke-dasharray: 5,5;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.location-marker {
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.location-marker:hover {
    r: 12;
    filter: drop-shadow(0 0 10px currentColor);
}

.location-marker:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    filter: drop-shadow(0 0 10px currentColor);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.career-path {
    stroke-dasharray: 10,5;
    animation: dash 15s linear infinite;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.path-arrow {
    animation: moveArrow 3s ease-in-out infinite;
}

@keyframes moveArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.location-info {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 10;
}

.location-info.active {
    opacity: 1;
    transform: translateY(0);
}

.bavaria-info {
    top: 60%;
    left: 5%;
}

.cologne-info {
    top: 25%;
    right: 5%;
}

.info-card {
    background: var(--dark-card);
    border: 1px solid rgba(0, 216, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 250px;
}

.info-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-year {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Career Timeline */
.career-timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-filter {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.timeline-filter:hover,
.timeline-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.timeline-items {
    position: relative;
    padding: 2rem 0;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    opacity: 1;
    transition: var(--transition);
}

.timeline-item.hidden {
    opacity: 0.3;
    transform: scale(0.9);
}

.timeline-item[data-location="bavaria"] {
    text-align: right;
    padding-right: 50%;
    padding-left: 2rem;
}

.timeline-item[data-location="cologne"] {
    text-align: left;
    padding-left: 50%;
    padding-right: 2rem;
}

.timeline-marker {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item[data-location="bavaria"] .timeline-marker {
    right: -8px;
}

.timeline-item[data-location="cologne"] .timeline-marker {
    left: -8px;
    background: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-content {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content .timeline-year {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Enhanced Stats */
.career-stats-container {
    margin-top: 3rem;
}

.stat-card {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-breakdown {
    text-align: left;
    margin-top: 1.5rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.breakdown-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.breakdown-value {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.experience-timeline {
    margin-top: 1.5rem;
}

.timeline-bar {
    display: flex;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.timeline-segment {
    height: 100%;
    transition: width 1s ease;
}

.bavaria-segment {
    background: var(--primary-color);
    border-radius: 6px 0 0 6px;
}

.cologne-segment {
    background: var(--secondary-color);
    border-radius: 0 6px 6px 0;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* CV Download */
.cv-download-container {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.cv-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cv-download-btn,
.cv-view-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.cv-view-btn:hover {
    transform: translateY(-3px);
    background: var(--dark-card);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.tech-timeline-container {
    display: flex;
    position: relative;
    gap: 2rem;
    min-height: 100vh;
}

.tech-line-column {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding: 2rem 0;
}

.tech-line-track {
    flex-grow: 1;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.tech-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Controlled by JS */
    background: var(--gradient-2);
    box-shadow: 0 0 15px var(--primary-color);
    transition: height 0.1s linear;
}

.tech-node {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    z-index: 2;
}

/* Make start/end nodes sticky if desired, but user asked to span sections. 
   If we span sections, the start node is at top, end node at bottom. 
   They will scroll with the page. */

.node-hex {
    width: 20px;
    height: 20px;
    background: var(--dark-bg);
    border: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.tech-node.active .node-hex {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

.tech-node::after {
    content: attr(data-label);
    position: absolute;
    left: 50px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-node.active::after {
    color: var(--secondary-color);
    opacity: 1;
    text-shadow: 0 0 10px var(--secondary-color);
}

.tech-items-column {
    flex: 1;
    padding-bottom: 5vh;
    padding-top: 5vh;
}

.tech-item {
    position: relative;
    margin-bottom: 15vh;
    opacity: 0.3;
    transform: translateX(20px);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
}

.tech-item.active {
    opacity: 1;
    transform: translateX(0);
}

.tech-connector {
    position: absolute;
    left: -2rem;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: var(--text-secondary);
    opacity: 0;
    transition: all 0.5s ease;
}

.tech-item.active .tech-connector {
    opacity: 1;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.tech-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--text-secondary);
    padding: 1.5rem 2rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.tech-item.active .tech-card {
    border-left-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 216, 255, 0.1);
    border-color: rgba(0, 216, 255, 0.3);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.tech-date {
    color: var(--secondary-color);
}

.tech-location {
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.tech-location i {
    margin-right: 4px;
    color: var(--secondary-color);
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.tech-badge.warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.tech-badge.success {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.tech-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.tech-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.tech-comment {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
}

.loader-logo {
    width: 120px;
    max-width: 80vw;
    height: auto;
    display: block;
}

.loader-logo.base {
    opacity: 0.2;
    filter: grayscale(100%);
}

.loader-logo.filled {
    position: absolute;
    top: 0;
    left: 0;
    animation: logoFill 2s ease-out forwards;
}

@keyframes logoFill {
    0% {
        clip-path: circle(0% at 0% 100%);
    }
    100% {
        clip-path: circle(150% at 0% 100%);
    }
}

.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.parallax-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
}

.shape-2 {
    top: 60%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
}

/* Portfolio Mosaic (3-Column Masonry) */
.portfolio-mosaic {
    column-count: 3;
    column-gap: 2rem;
    width: 100%;
}

.portfolio-mosaic .portfolio-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    width: 100%;
    opacity: 0; /* Start hidden for animation */
    transform: translateZ(0); /* Fix for webkit column rendering issues */
}

.portfolio-mosaic .portfolio-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); /* Softer shadow */
    transition: var(--transition);
}

.portfolio-mosaic .portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.portfolio-mosaic .portfolio-item:hover .portfolio-image {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-mosaic .portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

/* Responsive Mosaic */
@media (max-width: 768px) {
    .portfolio-mosaic {
        column-count: 1;
    }
}

/* Animation for vertical slide down */
.slide-down {
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

