/*
====================================================
AC PERSONAL WEBSITE
Ing. Adrian Felix Chirita

Main Style Sheet (Fully Consolidated)
====================================================
*/

/* ==================================================
   ROOT VARIABLES
================================================== */

:root {
    --bg: #070707;
    --surface: #111111;
    --surface-light: #171717;
    --text: #f5f5f5;
    --text-muted: #8e8e8e;
    --line: rgba(255,255,255,0.12);
    --accent: #a03f3f;
    --glass: rgba(255,255,255,0.04);

    --font-main: "Inter", sans-serif;
    --font-display: "Space Grotesk", sans-serif;

    --transition: 0.45s cubic-bezier(.22,1,.36,1);
    
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);

    --container: 1400px;
}

/* ==================================================
   RESET
================================================== */

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            rgba(125,167,255,0.08),
            transparent 35%
        ),
        var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==================================================
   BACKGROUND ELEMENTS
================================================== */

.background-grid {
    position: fixed;
    inset: 0;
    z-index: -3;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    -webkit-mask-image: radial-gradient(circle, black, transparent 75%);
    mask-image: radial-gradient(circle, black, transparent 75%);
}

.background-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: .035;
    pointer-events: none;
}

/* ==================================================
   CURSOR
================================================== */

.cursor {
    width: 22px;
    height: 22px;
    position: fixed;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.7);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width .3s ease, height .3s ease, background .3s ease;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(125,167,255,.15);
}

/* ==================================================
   LOADER
================================================== */

.loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem,7vw,7rem);
    letter-spacing: -0.04em;
}

.loader-content span {
    color: var(--accent);
}

.loader-line {
    width: 120px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 40px;
}

/* ==================================================
   HEADER & LOGO
================================================== */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 5000; width: 100%; background: rgba(7, 9, 13, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background 0.4s ease, box-shadow 0.4s ease; }
.site-header.is-scrolled { background: rgba(7, 9, 13, 0.96); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); }

.header-inner { position: relative; z-index: 5002; width: 100%; max-width: 1400px; height: 76px; margin: 0 auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; }

/* Custom Image Logo */
.site-logo {
    position: relative;
    z-index: 5005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    text-decoration: none;
    border: none !important;
    background: transparent !important;
}

.site-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.4s var(--ease-spring), filter 0.4s ease;
}

.site-logo:hover .site-logo-img {
    transform: scale(1.08);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(125, 167, 255, 0.85));
}

.desktop-nav { display: block; }
.desktop-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: 28px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a { position: relative; display: block; padding: 8px 0; color: rgba(255,255,255,.62); font-family: var(--font-main); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: color .3s ease; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right center; transition: transform .35s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); transform-origin: left center; }

.menu-toggle { position: relative; z-index: 5005; display: none; width: 46px; height: 46px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.03); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-toggle span { position: absolute; left: 50%; width: 18px; height: 1px; background: #fff; transform: translateX(-50%); transition: top .35s ease, transform .35s ease, opacity .2s ease, background .3s ease; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.is-active { background: #fff; border-color: #fff; }
.menu-toggle.is-active span { background: #000; }
.menu-toggle.is-active span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; z-index: 5001; display: block; background: rgba(7, 9, 13, 0.98); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); overflow-y: auto; overflow-x: hidden; visibility: hidden; opacity: 0; transform: translateY(-20px); pointer-events: none; transition: opacity .35s ease, transform .45s ease, visibility .35s ease; }
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }

.mobile-menu-inner { min-height: 100dvh; box-sizing: border-box; padding: 110px 25px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mobile-menu li a { display: flex; align-items: baseline; gap: 18px; padding: 11px 0; color: #fff; font-family: var(--font-display); font-size: clamp(2.3rem, 9vw, 4.2rem); font-weight: 400; line-height: .95; letter-spacing: -.045em; text-decoration: none; transform: translateY(30px); opacity: 0; transition: color .25s ease, opacity .5s ease, transform .55s var(--transition); }
.mobile-menu.is-open li a { opacity: 1; transform: translateY(0); }

.mobile-menu-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-menu-footer a { color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: .06em; text-decoration: none; }

@media (max-width: 900px) {
    .header-inner { height: 68px; padding: 0 20px; }
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .site-logo-img { height: 32px; }
}

html.menu-open, body.menu-open { overflow: hidden !important; }

/* ==================================================
   HERO SECTION
================================================== */

.hero {
    max-width: var(--container);
    min-height: 100vh;
    margin: auto;
    padding: 160px 60px 80px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 80px;
}

.hero-pretitle {
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 8rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.hero h1 span {
    color: var(--accent);
}

.hero h2 {
    margin-top: 25px;
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    color: #ddd;
}

.hero-text {
    max-width: 600px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.btn-primary,
.btn-secondary {
    padding: 18px 35px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary { background: white; color: black; }
.btn-primary:hover { transform: translateY(-5px); }
.btn-secondary { border: 1px solid var(--line); }
.btn-secondary:hover { background: white; color: black; }

.hero-image-wrapper { position: relative; }
.hero-image-wrapper::before { content: ""; position: absolute; inset: -15px; border: 1px solid var(--line); border-radius: 40px; z-index: -1; }
.hero-image-wrapper img { border-radius: 35px; filter: grayscale(100%); transition: 1s ease; }
.hero-image-wrapper:hover img { filter: grayscale(0); transform: scale(1.03); }

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.scroll-indicator span { width: 60px; height: 1px; background: white; }
.scroll-indicator p { font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: var(--text-muted); }

/* HERO RESPONSIVE FIX */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 120px 24px 60px;
    }
    .hero-buttons { flex-wrap: wrap; }
    .scroll-indicator { display: none !important; }
}

@media (max-width: 600px) {
    .hero { padding: 100px 18px 40px; gap: 35px; }
    .hero h1 { font-size: clamp(2.1rem, 9vw, 3.5rem); }
    .hero h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; padding: 16px 20px; }
}

/* ==================================================
   SECTION SYSTEM
================================================== */

.section { position: relative;}
.section-container { width: min(var(--container), calc(100% - 60px)); margin: 0 auto; }
.section-header { max-width: 1000px; margin-bottom: 100px; }
.section-kicker { margin-bottom: 25px; color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .35em; text-transform: uppercase; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 7rem); line-height: .92; letter-spacing: -.06em; }
.section-header h2 span { color: var(--accent); }

/* ABOUT INTRODUCTION & PHILOSOPHY & GRID */
.about-introduction { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; margin-bottom: 140px; }
.about-lead p { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.about-lead strong { color: var(--accent); font-weight: 500; }
.about-description p { margin-bottom: 25px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }

.about-philosophy { display: grid; grid-template-columns: 100px 1fr; gap: 50px; padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 100px; }
.philosophy-number { font-family: var(--font-display); color: var(--accent); font-size: .8rem; letter-spacing: .2em; }
.philosophy-kicker { margin-bottom: 20px; color: var(--text-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .3em; }
.philosophy-content h3 { max-width: 1000px; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 5.5rem); line-height: .98; letter-spacing: -.05em; font-weight: 400; }
.philosophy-content h3 span { color: var(--accent); }

.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.about-card { min-height: 320px; padding: 35px; border-right: 1px solid var(--line); position: relative; transition: background .5s ease, transform .5s var(--ease-out); }
.about-card:first-child { border-left: 1px solid var(--line); }
.about-card:hover { background: rgba(255,255,255,.035); transform: translateY(-5px); }
.about-card-number { display: block; margin-bottom: 80px; color: var(--accent); font-size: .7rem; letter-spacing: .2em; }
.about-card h3 { margin-bottom: 18px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.about-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

.experience-snapshot { padding: 100px 0; background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.snapshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.snapshot-item { padding: 30px 50px; border-right: 1px solid var(--line); }
.snapshot-item:first-child { padding-left: 0; }
.snapshot-item:last-child { border-right: 0; }
.snapshot-label { display: block; margin-bottom: 30px; color: var(--text-muted); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; }
.snapshot-item strong { display: block; margin-bottom: 20px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.05em; }
.snapshot-item strong small { color: var(--accent); font-size: .5em; }
.snapshot-item p { max-width: 300px; color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

.services { padding-bottom: 200px; }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 100px 1fr 80px; gap: 40px; align-items: center; padding: 45px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease-out), background .5s ease; }
.service-item:hover { padding-left: 30px; padding-right: 30px; background: rgba(255,255,255,.025); }
.service-number { color: var(--accent); font-size: .7rem; letter-spacing: .2em; }
.service-content { display: grid; grid-template-columns: minmax(200px, .8fr) 1fr; gap: 40px; align-items: center; }
.service-content h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.04em; }
.service-content p { max-width: 550px; color: var(--text-muted); font-size: .95rem; line-height: 1.7; }
.service-arrow { width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform .5s var(--ease-spring), background .4s ease, color .4s ease; }
.service-item:hover .service-arrow { transform: rotate(45deg); background: white; color: black; }

@media (max-width:900px) {
    .section { padding: 120px 0; }
    .section-container { width: calc(100% - 40px); }
    .about-introduction { grid-template-columns: 1fr; gap: 50px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .about-card { border-bottom: 1px solid var(--line); }
    .about-card:nth-child(2) { border-right: 0; }
    .snapshot-grid { grid-template-columns: 1fr; }
    .snapshot-item { padding: 35px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .service-item { grid-template-columns: 60px 1fr 40px; gap: 20px; }
    .service-content { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width:600px) {
    .section { padding: 90px 0; }
    .section-header { margin-bottom: 60px; }
    .section-header h2 { font-size: clamp(1.8rem, 10vw, 3.5rem); }
    .about-introduction { margin-bottom: 90px; }
    .about-lead p { font-size: 1.6rem; }
    .about-philosophy { grid-template-columns: 1fr; gap: 25px; padding: 45px 0; margin-bottom: 60px; }
    .philosophy-content h3 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-card { min-height: auto; padding: 30px 0; border-left: 0 !important; border-right: 0 !important; }
    .experience-snapshot { padding: 70px 0; }
    .snapshot-item strong { font-size: 2.5rem; }
    .services { padding-bottom: 120px; }
    .service-item { grid-template-columns: 35px 1fr 35px; gap: 15px; padding: 30px 0; }
    .service-content h3 { font-size: 1.35rem; }
}

/* ==================================================
   CAREER TIMELINE (PERFEKT PERIGERICHTET)
================================================== */

.timeline { position: relative; overflow: hidden; }
.timeline-intro { max-width: 700px; margin-bottom: 100px; margin-left: auto; }
.timeline-intro p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.8; }
.career-timeline { position: relative; }

.career-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(125, 167, 255, 0.35) 8%,
        rgba(125, 167, 255, 0.35) 92%,
        transparent
    );
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 40px;
    min-height: 360px;
    align-items: start;
}

.timeline-entry:last-child { min-height: 250px; }

.timeline-marker {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    grid-column: 2;
    grid-row: 1;
}

.timeline-marker span {
    width: 15px;
    height: 15px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 6px rgba(125, 167, 255, 0.12);
    transition: transform 0.5s var(--ease-spring), background 0.4s ease, box-shadow 0.4s ease;
}

.timeline-entry:hover .timeline-marker span {
    transform: scale(1.4);
    background: var(--accent);
    box-shadow: 0 0 0 12px rgba(125, 167, 255, 0.18);
}

.timeline-entry-current .timeline-marker span {
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(125, 167, 255, 0.2);
    animation: currentPulse 2.5s ease-in-out infinite;
}

@keyframes currentPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(125, 167, 255, 0.15); }
    50% { box-shadow: 0 0 0 14px rgba(125, 167, 255, 0.3); }
}

.timeline-year { display: flex; flex-direction: column; padding-top: 0; }
.timeline-year span { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; color: #ffffff; }
.timeline-year small { display: inline-flex; align-items: center; margin-top: 6px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--accent); letter-spacing: 0.05em; opacity: 0.9; }
.timeline-year small::before { content: "– "; margin-right: 4px; opacity: 0.6; }

.timeline-content { padding-bottom: 80px; }
.timeline-company { margin-bottom: 12px; color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.timeline-content h3 { margin-bottom: 12px; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
.timeline-location { margin-bottom: 24px; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.timeline-description { max-width: 580px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.timeline-tags span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 50px; color: #bbb; font-size: 0.68rem; letter-spacing: 0.04em; transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease; }
.timeline-entry:hover .timeline-tags span { border-color: rgba(125, 167, 255, 0.4); color: #fff; }

.timeline-entry:nth-child(odd) .timeline-year { grid-column: 1; grid-row: 1; text-align: right; align-items: flex-end; }
.timeline-entry:nth-child(odd) .timeline-content { grid-column: 3; grid-row: 1; text-align: left; }
.timeline-entry:nth-child(odd) .timeline-tags { justify-content: flex-start; }

.timeline-entry:nth-child(even) .timeline-content { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-entry:nth-child(even) .timeline-year { grid-column: 3; grid-row: 1; text-align: left; align-items: flex-start; }
.timeline-entry:nth-child(even) .timeline-description { margin-left: auto; }
.timeline-entry:nth-child(even) .timeline-tags { justify-content: flex-end; }

@media (max-width: 900px) {
    .timeline-intro { margin-left: 0; margin-bottom: 60px; }
    .career-timeline::before { left: 20px; transform: none; }
    .timeline-entry { grid-template-columns: 40px 1fr; gap: 20px; min-height: auto; margin-bottom: 50px; }
    .timeline-marker { grid-column: 1 !important; grid-row: 1 !important; justify-content: center; padding-top: 4px; }
    .timeline-year { grid-column: 2 !important; grid-row: 1 !important; text-align: left !important; align-items: flex-start !important; margin-bottom: 8px; }
    .timeline-year span { font-size: 1.8rem; }
    .timeline-year small { font-size: 1rem; margin-top: 2px; }
    .timeline-content { grid-column: 2 !important; grid-row: 2 !important; text-align: left !important; padding-bottom: 20px; }
    .timeline-description { margin-left: 0 !important; }
    .timeline-tags { justify-content: flex-start !important; }
}

@media (max-width: 600px) {
    .career-timeline::before { left: 15px; }
    .timeline-entry { grid-template-columns: 30px 1fr; gap: 15px; }
    .timeline-year span { font-size: 1.5rem; }
    .timeline-content h3 { font-size: 1.45rem; }
}

/* ==================================================
   SKILLS & COMPETENCIES
================================================== */

.skills { position: relative; }
.skills-introduction { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; max-width: 1100px; margin-left: auto; margin-bottom: 120px; }
.skills-introduction p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }
.skills-introduction p:first-child { font-family: var(--font-display); color: var(--text); font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }

.competency-matrix { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.competency-group { min-height: 380px; padding: 45px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background .6s ease; }
.competency-header { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 100px; }
.competency-number { color: var(--accent); font-size: .65rem; letter-spacing: .2em; }
.competency-header h3 { max-width: 300px; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: .95; letter-spacing: -.05em; font-weight: 400; }
.competency-items { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.competency-items span { padding: 10px 15px; border: 1px solid var(--line); border-radius: 50px; color: #aaa; font-size: .7rem; transition: color .4s ease, border-color .4s ease, background .4s ease, transform .4s var(--ease-spring); }
.competency-items span:hover { color: white; border-color: var(--accent); background: rgba(125,167,255,.07); transform: translateY(-3px); }

.skills-divider { height: 1px; margin: 140px 0; background: var(--line); }

.software-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.software-title h3 { max-width: 450px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4.5rem); line-height: .95; letter-spacing: -.05em; font-weight: 400; }
.software-list { border-top: 1px solid var(--line); }
.software-item { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease-out), background .4s ease; }
.software-item:hover { padding-left: 20px; padding-right: 20px; background: rgba(255,255,255,.025); }
.software-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.02em; }
.software-level { color: var(--text-muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width:900px) {
    .skills-introduction { grid-template-columns: 1fr; gap: 30px; margin-left: 0; margin-bottom: 80px; }
    .competency-matrix { grid-template-columns: 1fr; }
    .competency-group { min-height: 300px; }
    .software-section { grid-template-columns: 1fr; gap: 60px; }
    .skills-divider { margin: 100px 0; }
}

@media (max-width:600px) {
    .competency-group { min-height: auto; padding: 30px; }
    .competency-header { margin-bottom: 60px; }
    .competency-header h3 { font-size: 1.8rem; }
    .software-title h3 { font-size: 2.2rem; }
}


/* ==================================================
   PROJECTS
================================================== */

.projects { position: relative; overflow: hidden; }
.projects-introduction { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; max-width: 1000px; margin-left: auto; margin-bottom: 100px; }
.projects-introduction p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.projects-introduction p:first-child { font-family: var(--font-display); color: var(--text); font-size: 1.6rem; line-height: 1.2; letter-spacing: -.03em; }

.project-list { border-top: 1px solid var(--line); }
.project-card { position: relative; display: grid; grid-template-columns: 100px 1fr 100px; gap: 50px; align-items: center; padding: 65px 0; border-bottom: 1px solid var(--line); transition: padding .7s var(--ease-out), background .5s ease; }
.project-card:hover { padding-left: 35px; padding-right: 35px; background: rgba(255,255,255,.025); }

.project-index { align-self: flex-start; padding-top: 8px; color: var(--accent); font-size: .65rem; letter-spacing: .2em; }
.project-meta { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 22px; }
.project-meta span { color: var(--text-muted); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.project-meta span:first-child { color: var(--accent); }

.project-main h3 { max-width: 850px; margin-bottom: 25px; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 6rem); line-height: .9; letter-spacing: -.06em; font-weight: 400; }
.project-main h3 span { color: var(--accent); }
.project-main > p { max-width: 650px; margin-bottom: 30px; color: var(--text-muted); font-size: .95rem; line-height: 1.8; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 50px; color: #999; font-size: .62rem; transition: color .4s ease, border-color .4s ease; }
.project-card:hover .project-tags span { border-color: rgba(125,167,255,.3); }

.project-symbol { display: flex; align-items: center; justify-content: center; }
.project-symbol span { display: flex; align-items: center; justify-content: center; width: 65px; height: 65px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; transition: transform .7s var(--ease-spring), background .5s ease, color .5s ease, border-color .5s ease; }
.project-card:hover .project-symbol span { transform: rotate(45deg); background: white; border-color: white; color: black; }

.project-card-featured { padding-top: 80px; padding-bottom: 80px; }
.project-card-featured .project-main h3 { font-size: clamp(2.5rem, 8vw, 8rem); }

.projects-statement {text-align: center; }
.statement-line { width: 1px; height: 100px; margin: 0 auto 50px; background: linear-gradient(to bottom, transparent, var(--accent)); }
.projects-statement p { margin-bottom: 25px; color: var(--text-muted); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }
.projects-statement h3 { max-width: 900px; margin: 0 auto; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 6rem); line-height: .95; letter-spacing: -.06em; font-weight: 400; }
.projects-statement h3 span { color: var(--accent); }

.js-enabled .project-card { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo), padding .7s var(--ease-out), background .5s ease; }
.js-enabled .project-card.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width:900px) {
    .projects-introduction { grid-template-columns: 1fr; gap: 30px; margin-left: 0; }
    .project-card { grid-template-columns: 60px 1fr 70px; gap: 25px; }
    .project-card:hover { padding-left: 15px; padding-right: 15px; }
    .project-symbol span { width: 50px; height: 50px; }
}

@media (max-width:600px) {
    .projects-introduction { margin-bottom: 70px; }
    .project-card, .project-card-featured { grid-template-columns: 35px 1fr; gap: 15px; padding: 45px 0; }
    .project-main h3, .project-card-featured .project-main h3 { font-size: clamp(1.8rem, 10vw, 3.5rem); }
    .project-symbol { position: absolute; top: 45px; right: 0; }
    .project-symbol span { width: 40px; height: 40px; font-size: .9rem; }
}


/* ==================================================
   CONTACT & FOOTER
================================================== */

.contact { position: relative; min-height: 85vh; display: flex; align-items: center; justify-content: center; padding: 180px 30px; overflow: hidden; background: #090b0f; }
.contact-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; text-align: center; }
.contact-kicker { margin-bottom: 35px; color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.contact-title { max-width: 1100px; margin: 0 auto; font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 8rem); line-height: .9; letter-spacing: -.065em; font-weight: 400; }
.contact-title span { color: var(--accent); }
.contact-text { max-width: 600px; margin: 45px auto 60px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

.contact-actions { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.contact-email, .contact-linkedin { display: flex; align-items: center; gap: 20px; min-height: 65px; padding: 0 25px; border: 1px solid var(--line); border-radius: 50px; color: white; text-decoration: none; transition: background .5s ease, border-color .5s ease, transform .6s var(--ease-spring); }
.contact-email { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.02em; }
.contact-email:hover, .contact-linkedin:hover { transform: translateY(-4px); background: white; border-color: white; color: black; }

.site-footer { background: #06070a; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 60px 30px 30px; }
.footer-identity { display: flex; align-items: center; gap: 18px; }
.footer-identity strong { font-family: var(--font-display); font-size: 1rem; font-weight: 400; }
.footer-identity span { color: #666; font-size: .65rem; }

.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin: 70px 0; }
.footer-nav a, .footer-legal a { color: #777; font-size: .65rem; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: color .3s ease; }
.footer-nav a:hover, .footer-legal a:hover { color: white; }
.footer-legal { display: flex; justify-content: center; gap: 25px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05); color: #444; font-size: .6rem; letter-spacing: .05em; }

@media (max-width:600px) {
    .contact { padding: 130px 20px; }
    .contact-title { font-size: clamp(2rem, 10vw, 3.5rem); }
    .contact-actions { flex-direction: column; width: 100%; }
    .contact-email, .contact-linkedin { width: 100%; justify-content: center; }
    .footer-inner { padding: 45px 20px 25px; }
    .footer-nav { align-items: flex-start; flex-direction: column; gap: 18px; margin: 50px 0; }
    .footer-legal { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}

/* =========================================================
   SMART K.I.T.T. SCROLL ARROW (GLOW & SHIMMER EDIT)
   ========================================================= */

.smart-scroll-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 990;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(9, 11, 15, 0.85);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.4s ease, transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.smart-scroll-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(125, 167, 255, 0.35);
}

.smart-arrow-icon {
    transition: transform 0.5s var(--ease-spring), stroke 0.3s ease, filter 0.4s ease;
    transform: rotate(0deg);
    stroke: #ffffff;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}

.smart-scroll-btn.is-scrolling .smart-arrow-icon {
    stroke: var(--accent);
    animation: arrowKittGlow 0.8s ease-in-out infinite alternate;
}

@keyframes arrowKittGlow {
    0% {
        stroke: #ffffff;
        filter: drop-shadow(0 0 2px rgba(125, 167, 255, 0.5));
    }
    100% {
        stroke: var(--accent);
        filter: drop-shadow(0 0 8px rgba(125, 167, 255, 1)) 
                drop-shadow(0 0 16px rgba(125, 167, 255, 0.8));
    }
}

.smart-scroll-btn.is-up .smart-arrow-icon {
    transform: rotate(180deg);
    stroke: var(--accent);
    filter: drop-shadow(0 0 6px rgba(125, 167, 255, 0.8));
}

.smart-scroll-btn.is-up:hover .smart-arrow-icon {
    filter: drop-shadow(0 0 12px rgba(125, 167, 255, 1)) 
            drop-shadow(0 0 22px rgba(125, 167, 255, 0.9));
}

@media (max-width: 600px) {
    .smart-scroll-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}



/* ==================================================
   APPROACH / HOW I WORK
================================================== */

.approach { position: relative; overflow: hidden; }
.approach-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; max-width: 1000px; margin-left: auto; margin-bottom: 110px; }
.approach-intro p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.approach-intro p:first-child { font-family: var(--font-display); color: var(--text); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; letter-spacing: -.04em; }

.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.approach-card { position: relative; min-height: 430px; padding: 45px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .6s ease; }
.approach-card::before { content: ""; position: absolute; width: 300px; height: 300px; right: -150px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(125,167,255,.10), transparent 65%); opacity: 0; transform: scale(.6); transition: opacity .7s ease, transform .9s var(--ease-spring); }
.approach-card:hover::before { opacity: 1; transform: scale(1); }

.approach-number { position: relative; z-index: 2; color: var(--accent); font-size: .65rem; letter-spacing: .2em; }
.approach-icon { position: absolute; top: 35px; right: 40px; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-muted); font-size: 1.3rem; transition: transform .7s var(--ease-spring), background .5s ease, color .5s ease, border-color .5s ease; }
.approach-card:hover .approach-icon { transform: rotate(90deg); background: white; color: black; border-color: white; }

.approach-card h3 { position: relative; z-index: 2; max-width: 450px; margin-top: 120px; margin-bottom: 25px; font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 3.7rem); line-height: .95; letter-spacing: -.05em; font-weight: 400; }
.approach-card h3 span { color: var(--accent); }
.approach-card p { position: relative; z-index: 2; max-width: 520px; color: var(--text-muted); font-size: .9rem; line-height: 1.8; }

.approach-statement { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 25px; padding: 20px 0 40px; }
.approach-statement span { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; color: rgba(255,255,255,.25); }
.approach-statement span:not(:last-child)::after { content: "·"; margin-left: 25px; color: rgba(255,255,255,.15); }
.approach-statement .accent { color: var(--accent); }

.js-enabled .approach-card { opacity: 0; transform: translateY(45px); transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo); }
.js-enabled .approach-card.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .approach-intro { grid-template-columns: 1fr; gap: 30px; margin-left: 0; margin-bottom: 80px; }
    .approach-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; /* optional, falls du den Abstand anpassen wolltest */
    }
}




/* =========================================================
   1. MODAL BACKDROP (Dunkler Hintergrund-Overlay)
   ========================================================= */
/* Verhindert Hintergrund-Scrollen, wenn Modal offen ist */
body.modal-open {
    overflow: hidden;
}

/* Modal Backdrop */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 7, 7, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.modal-backdrop.is-open {
    display: flex;
    opacity: 1;
}

/* Modal Fenster: Flexbox + Höhenbegrenzung */
.modal-window {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh; /* Maximal 85% der Bildschirmhöhe */
    display: flex;
    flex-direction: column; /* Stapelt Header und Body */
    padding: 28px;
    color: var(--text);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.3s var(--ease-spring);
}

.modal-backdrop.is-open .modal-window {
    transform: translateY(0) scale(1);
}

/* Fixed Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    flex-shrink: 0; /* Header schrumpft nicht zusammen */
}

/* Scrollbarer Inhaltsbereich */
.modal-body {
    font-family: var(--font-main);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    overflow-y: auto; /* Aktiviert das Scrollen NUR im Text */
    padding-right: 10px; /* Platz für die Scrollbar */
    overscroll-behavior: contain; /* Isolierte Scroll-Bewegung */
}

.modal-body p, .modal-body ul {
    margin-bottom: 16px;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body strong {
    color: var(--text);
}

/* --- Dezente Dark-Mode Scrollbar --- */
.modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent); /* Färbt sich bei Hover in deinem Blau */
}


.modal-close {
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}


/* Button-Reset & Anpassen an deine Footer-Links */
.footer-legal-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    cursor: pointer;
    
    /* Deine exakten Link-Styles */
    color: #777;
    font-size: .65rem;
    text-decoration: none;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .3s ease, transform .3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Hover & Focus Zustände */
.footer-legal-btn:hover,
.footer-legal a:hover {
    color: var(--accent); /* Nutzt dein #7da7ff */
}

.footer-legal-btn:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}