:root {
            --bg-primary: #0a0a0b;
            --bg-secondary: #111113;
            --bg-card: #18181b;
            --text-primary: #fafafa;
            --text-secondary: #a1a1aa;
            --text-muted: #71717a;
            --accent: #22d3ee;
            --accent-glow: rgba(34, 211, 238, 0.15);
            --gradient-1: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
            --border: #27272a;
            /* control nav size so sticky nav takes layout space and avoids overlap */
            --nav-height: 96px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Noise texture overlay */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
            opacity: 0.03;
            pointer-events: none;
            z-index: 1000;
        }

        /* Navigation */
        nav {
            /* use sticky so nav occupies layout space and prevents content overlap without JS */
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            height: var(--nav-height);
            padding: 0 3rem; /* horizontal padding only; vertical centering handled by align-items */
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(10, 10, 11, 0.8);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-img {
            width: 80px;
            height: 80px;
            display: block;
            transition: width 160ms ease, height 160ms ease;
            max-width: 100%;
            height: auto;
        }

        /* Accessible visually-hidden helper */
        .sr-only {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-1);
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--text-primary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .lang-switch {
            padding: 0.4rem 0.75rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .lang-switch:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* Hero Section */
        .hero-bg {
            /* make the glow span the viewport edge to avoid cutoff at the hero margin */
            position: fixed;
            top: 0;
            right: 0;
            width: 60vw;
            height: 100vh;
            background: radial-gradient(ellipse at 70% 30%, var(--accent-glow) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }


        .hero-content {
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-text {
            animation: fadeInUp 0.8s ease forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-label {
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 1rem;
        }

        .hero-title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1.5rem;
        }

        .hero-title span {
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-description {
            font-size: 1.15rem;
            color: var(--text-secondary);
            max-width: 500px;
            margin-bottom: 2rem;
        }

        .hero-stats {
            display: flex;
            gap: 3rem;
            margin-top: 3rem;
        }

        .stat {
            text-align: left;
        }

        .stat-value {
            font-family: 'Space Mono', monospace;
            font-size: 2rem;
            font-weight: 700;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .hero-image {
            display: flex;
            justify-content: center;
            animation: fadeInUp 0.8s ease 0.2s forwards;
            opacity: 0;
        }

        .profile-image-container {
            position: relative;
            width: 380px;
            height: 600px;
            margin-top: 5%;

        }

        .profile-image-container::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: var(--gradient-1);
            border-radius: 20px;
            z-index: -1;
            opacity: 0.6;
        }

        .profile-image-container::after {
            content: '';
            position: absolute;
            top: 20px;
            left: 20px;
            right: -15px;
            bottom: -15px;
            border: 2px solid var(--border);
            border-radius: 20px;
            z-index: -2;
        }

        .profile-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 16px;
        }

        /* Section Styles */
        section {
            padding: 3rem 3rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            margin-bottom: 4rem;
        }

        .section-label {
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 0.75rem;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 2.75rem);
            font-weight: 700;
        }

        /* About Section */
        .about-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 4rem;
        }

        .about-text p {
            color: var(--text-secondary);
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }

        .about-details {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 2rem;
            border: 1px solid var(--border);
        }

        .detail-item {
            margin-bottom: 1.5rem;
        }

        .detail-item:last-child {
            margin-bottom: 0;
        }

        .detail-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.25rem;
        }

        .detail-value {
            font-size: 1rem;
            color: var(--text-primary);
        }

        /* Skills Section */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .skill-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-1);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .skill-card:hover {
            border-color: var(--accent);
            transform: translateY(-4px);
        }

        .skill-card:hover::before {
            opacity: 1;
        }

        .skill-icon {
            width: 48px;
            height: 48px;
            background: var(--accent-glow);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.25rem;
            color: var(--accent);
            font-size: 1.5rem;
        }

        .skill-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .skill-items {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .skill-tag {
            font-family: 'Space Mono', monospace;
            font-size: 0.75rem;
            padding: 0.35rem 0.75rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text-secondary);
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s ease;
        }

        .project-card:hover {
            border-color: var(--accent);
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .project-header {
            padding: 2rem 2rem 1.5rem;
            position: relative;
        }

        .project-type {
            font-family: 'Space Mono', monospace;
            font-size: 0.75rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.75rem;
        }

        .project-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .project-description {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.7;
        }

        .project-tech {
            padding: 0 2rem 2rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            margin: 0 2rem 2rem;
        }

        .project-link:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--bg-primary);
        }

        /* Disabled project link (under construction) */
        .project-link.disabled {
            opacity: 0.6;
            border-color: var(--border);
            color: var(--text-muted);
            background: transparent;
            pointer-events: none;
            cursor: default;
        }

        .project-link.disabled svg {
            opacity: 0.6;
        }

        /* Experience Section */
        .timeline {
            position: relative;
            padding-left: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--accent), var(--border));
        }

        .timeline-item {
            position: relative;
            padding-bottom: 3rem;
        }

        .timeline-item:last-child {
            padding-bottom: 0;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2rem;
            top: 8px;
            width: 12px;
            height: 12px;
            background: var(--accent);
            border-radius: 50%;
            transform: translateX(-5px);
            box-shadow: 0 0 20px var(--accent);
        }

        .timeline-date {
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }

        .timeline-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .timeline-company {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .timeline-description {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        .timeline-description li {
            margin-bottom: 0.5rem;
            list-style: none;
            position: relative;
            padding-left: 1.25rem;
        }

        .timeline-description li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent);
        }

        .timeline-badge {
            display: inline-block;
            font-family: 'Space Mono', monospace;
            font-size: 0.65rem;
            padding: 0.3rem 0.6rem;
            background: var(--accent-glow);
            color: var(--accent);
            border-radius: 4px;
            margin-left: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Education*/
        .edu-period {
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }

        .edu-degree {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .edu-school {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .edu-details {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .edu-badge {
            display: inline-block;
            font-family: 'Space Mono', monospace;
            font-size: 0.65rem;
            padding: 0.3rem 0.6rem;
            background: #818cf8;
            color: white;
            border-radius: 4px;
            margin-left: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Education Timeline - Purple Überschreibung */
        .timeline-edu::before {
            background: linear-gradient(to bottom, #818cf8, var(--border));
        }

        .timeline-edu .timeline-item::before {
            background: #818cf8;
            box-shadow: 0 0 20px #818cf8;
        }

        .timeline-edu .edu-period {
            color: #818cf8;
}
        /* Contact Section */
        .contact-wrapper {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 4rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .contact-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 200%;
            height: 200%;
            background: radial-gradient(ellipse at center top, var(--accent-glow) 0%, transparent 50%);
            pointer-events: none;
        }

        .contact-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            position: relative;
        }

        .contact-subtitle {
            color: var(--text-secondary);
            font-size: 1.1rem;
            margin-bottom: 3rem;
            position: relative;
        }

        .contact-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            position: relative;
        }

        .contact-link {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2rem;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .contact-link:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--bg-primary);
            transform: translateY(-4px);
        }

        .contact-link svg {
            width: 20px;
            height: 20px;
        }

        .qrcode img {
            filter: invert(1);
            width: 180px;

        }

        /* Footer */
        footer {
            padding: 2rem 3rem;
            text-align: center;
            border-top: 1px solid var(--border);
        }

        .footer-text {
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Responsive */
        @media (max-width: 1024px) {
            :root { --nav-height: 80px; }

            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-text {
                order: 2;
            }

            .hero-image {
                order: 1;
            }

            .hero-description {
                margin: 0 auto 2rem;
            }

            .hero-stats {
                justify-content: center;
            }

            .about-content {
                grid-template-columns: 1fr;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .edu-card.featured {
                grid-column: span 1;
            }

            .profile-image-container {
                width: 280px;
                height: 360px;
            }

            /* Logo size for medium screens */
            .logo-img {
                width: 64px;
                height: auto;
            }
        }

        @media (max-width: 768px) {
            
            :root { --nav-height: 64px; }
            nav {
                padding: 0 0.5rem;
            }

            .nav-links {
                display: none;
            }
            .profile-image-container {
                height: 55vh;
            }


            section, .hero {
                padding: 2rem 1.5rem;
            }
            .hero-stats {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                width: fit-content;
                margin: 0 auto;    
            }


            .stat {
                text-align: left;             
            }

            
            
            .stat-value {
                font-size: 1.5rem;
            }
            
            .stat-label {
                font-size: 0.75rem;
            }
            .hero-content {
                margin-top: 2%;
            }
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-label {
                font-size: 0.75rem;
                letter-spacing: 2px;
            }

            .contact-wrapper {
                padding: 2.5rem 1.5rem;
            }

            .contact-links {
                flex-direction: column;
            }

            /* Logo size for small screens */
            .logo-img {
                width: 44px;
                height: auto;
            }
        }