:root {
    --bg-color: #0a192f;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --accent-tint: rgba(100, 255, 218, 0.1);
    --card-bg: #112240;
    --nav-bg: rgba(10, 25, 47, 0.85);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 50%, rgba(25, 55, 109, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(100, 255, 218, 0.05), transparent 25%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 5vw, 32px);
    color: var(--text-primary);
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: #233554;
    margin-left: 20px;
}

.btn {
    display: inline-block;
    padding: 1rem 1.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-primary:hover {
    background: var(--accent-tint);
}

.btn-outline {
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent);
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 20px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text {
    max-width: 540px;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--accent);
}

.code-block {
    background: #112240;
    padding: 20px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    overflow-x: auto;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
    max-width: 100%;
}

.code-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

/* Experience */
.timeline {
    border-left: 2px solid #233554;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--accent);
    font-size: 16px;
    font-weight: 400;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    text-align: center;
}

.skill-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.skill-item:hover {
    transform: translateY(-5px);
    color: var(--accent);
}

.skill-item i {
    font-size: 40px;
    margin-bottom: 5px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-item:hover i {
    color: var(--accent);
}

.skill-item span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

/* Custom REST Icon */
.rest-icon-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.rest-text-overlay {
    position: absolute;
    font-size: 8px;
    font-weight: 700;
    color: var(--card-bg);
    top: 40%;
    /* Slightly higher to center visually in cloud body */
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}


/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.project-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.project-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-links a {
    font-size: 20px;
    color: var(--text-primary);
}

.project-links a:hover {
    color: var(--accent);
}

.project-title {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 17px;
}

/* Contact */
.contact {
    text-align: center;
    max-width: 600px;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.address {
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 14px;
    font-style: normal;
}

/* Footer */
.footer {
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
}

.impressum-link {
    display: inline-block;
    margin: 10px 10px 0 10px;
    text-decoration: underline;
}

.impressum-link:hover {
    color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: #112240;
        z-index: 999;
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
        padding: 80px 2rem;
    }

    .nav-links.active {
        display: flex;
    }

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

    .about-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-title::after {
        width: 100px;
        /* Shorter line on mobile */
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -27px;
    }
}