/* =========================
   RESET & BASIS
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0f172a; /* horder.dev background color */
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* =========================
   LINKS
   ========================= */
a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 32px;
}

nav a {
    color: #e5e7eb;
    font-weight: 500;
    opacity: 0.85;
}

nav a:hover {
    opacity: 1;
}

/* =========================
   HERO
   ========================= */
.hero {
    padding: 120px 20px 140px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
        #0f172a;
}

.hero-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.claim {
    font-size: 1.35rem;
    color: #9ca3af;
    line-height: 1.7;
    max-width: 520px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

/* =========================
   PROFILBILD
   ========================= */
.profile-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    background-color: #111827;
}

/* =========================
   SECTIONS
   ========================= */
section {
    padding: 100px 20px;
}

section .container {
    max-width: 900px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.1rem;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

section p {
    color: #cbd5f5;
    max-width: 750px;
}

/* =========================
   SKILLS
   ========================= */
.skills {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.skills li {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.55;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.skills li strong {
    color: #e5e7eb;
    font-weight: 700;
}

.skills li:hover {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

/* =========================
   CAREER / TEXTBLOCK
   ========================= */
.text-block {
    margin-top: 20px;
    color: #cbd5f5;
    line-height: 1.7;
}

/* =========================
   CAREER
   ========================= */
.career-list {
    margin-top: 30px;
    display: grid;
    gap: 16px;
}

.career-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 16px;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.career-item:hover {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.career-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 10px;
}

.career-dates {
    font-weight: 700;
    color: #e5e7eb;
}

.career-company {
    font-weight: 500;
    color: #9ca3af;
}

.career-role {
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 12px;
}

.career-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #cbd5f5;
}

.career-bullets li {
    position: relative;
    padding-left: 18px;
}

.career-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: rgba(96, 165, 250, 0.6);
}

/* =========================
   CONTACT
   ========================= */
.contact p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.contact a {
    display: inline-block;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.18);
    transition: opacity 200ms ease, transform 200ms ease;
}

.contact a:hover {
    opacity: 0.92;
    text-decoration: none;
    transform: translateY(-1px);
}

.contact a:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .skills li,
    .career-item,
    .contact a {
        transition: none;
        transform: none;
    }
}

/* =========================
   FOOTER
   ========================= */
footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

footer a {
    color: #9ca3af;
}

footer a:hover {
    color: #e5e7eb;
}

/* =========================
   RESPONSIVE + MOBILE NAV
   ========================= */
@media (max-width: 900px) {

    /* HERO */
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .claim {
        margin: 0 auto;
    }

    /* NAV */
    nav {
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 68px; /* unterhalb vom sticky Header */
        right: 20px;
        width: min(280px, calc(100vw - 40px));

        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;

        padding: 14px 12px;
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: stretch;

        z-index: 150;

        /* Hidden by default (for smooth transition) */
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
        pointer-events: none;
        transition: opacity 200ms ease, transform 200ms ease;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.15rem;
        font-weight: 600;
        opacity: 1;
        padding: 12px 12px;
        border-radius: 12px;
        display: block;
    }

    .nav-links a:hover {
        background: rgba(96, 165, 250, 0.15);
        text-decoration: none;
    }

    .hamburger {
        display: block;
        z-index: 200;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 90px 20px 110px;
    }

    section {
        padding: 70px 20px;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }
}

/* =========================
   HAMBURGER BUTTON
   ========================= */
.hamburger {
    width: 36px;
    height: 28px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: transform 0.35s ease,
                top 0.35s ease,
                opacity 0.35s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 24px; }

/* ACTIVE STATE (X) */
.hamburger.active span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
}

/* =========================
   DESKTOP NAV
   ========================= */
@media (min-width: 901px) {
    .nav-links {
        display: flex;
        gap: 32px;
    }
}
