/* Base */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    transition: background .3s, color .3s;
}

body.dark {
    background: #0d1117;
    color: #e3e6eb;
}

body.light {
    background: #f5f6fa;
    color: #1d1f23;
}

/* Hero */
.hero {
    padding: 70px 20px 30px;
    text-align: center;
}

.profile {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

/* Sections */
section {
    max-width: 900px;
    margin: 45px auto;
    padding: 0 20px;
    text-align: center;
}

section h2 {
    font-size: 30px;
    margin-bottom: 22px;
}

/* Cards */
.about, .skills, .contact, .project {
    background: rgba(255,255,255,0.05);
    padding: 32px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    transition: transform .35s ease, box-shadow .35s ease;
}

body.light .about,
body.light .skills,
body.light .contact,
body.light .project {
    background: rgba(255,255,255,0.85);
}

.about:hover, .skills:hover, .contact:hover, .project:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.project {
    margin-bottom: 70px !important;
}

.project h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

/* Project link button */
.project-link {
    margin: 18px 0 25px;
}

.project-link a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid currentColor;
    background: transparent;
    color: inherit;
    font-weight: 600;
    opacity: 0.85;
    text-decoration: none;
    transition: .25s ease;
}

.project-link a:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Image Row */
.image-row {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-row img {
    flex: 1;
    max-width: calc(33% - 10px);
    min-width: 240px;
    height: 200px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.image-row img:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}

@media (max-width: 700px) {
    .image-row img {
        max-width: 100%;
        height: 180px;
    }
}

/* Skill Bars */
.skill {
    margin: 20px 0;
    text-align: left;
}

.skill span {
    font-weight: 600;
}

.bar {
    background: rgba(0,0,0,0.12);
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

.bar div {
    height: 12px;
    width: 0;
    background: linear-gradient(90deg, #4a7aff, #79b6ff);
    transition: width .7s;
}

/* Chat Panel */
/* CHATBOT — Panel */
#chat-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    padding: 18px;
    border-radius: 18px;

    backdrop-filter: blur(14px) saturate(160%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);

    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 99999;

    transition: opacity .25s ease, transform .25s ease;
}

body.dark #chat-container {
    background: rgba(20,22,32,0.55);
}

#chat-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Close Button */
#chat-close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

body.dark #chat-close { color: white; }
body.light #chat-close { color: black; }

/* Chat Window */
#chat-window {
    height: 170px;
    padding: 10px;
    overflow-y: auto;

    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: left;
}

/* Bubbles Style */
.chat-bubble {
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 14px;
    max-width: 85%;
    display: inline-block;
    animation: fadeIn .2s ease;
    line-height: 1.4;
}

.chat-user {
    background: #4a7aff;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-bot {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

/* Input Field */
#chat-input {
    width: 93%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    outline: none;

    font-size: 16px; /* verhindert iOS-Zoom */
}

/* Send Button */
#chat-send {
    width: 100%;
    padding: 10px;
    margin-top: 8px;

    border-radius: 10px;
    border: none;

    background: #4a7aff;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Floating Toggle Button */
#chat-toggle-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;

    background: rgba(74,122,255,0.9);
    color: white;
    font-size: 26px;

    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);

    z-index: 99990;
}

/* ---------------------------------- */
/*         MOBILE OPTIMIERUNG         */
/* ---------------------------------- */
@media (max-width: 600px) {

    /* Chatpanel zentriert und kleiner */
    #chat-container {
        left: 50%;
        right: auto;
        bottom: 15px;
        width: 92%;
        transform: translateX(-50%);
        padding: 14px;
        border-radius: 14px;
    }

    #chat-window {
        height: 140px;
    }

    #chat-input,
    #chat-send {
        font-size: 16px;
        padding: 8px;

    }

    /* Toggle Button zentriert */
    #chat-toggle-btn {
        left: 50%;
        right: auto;
        bottom: 15px;
        transform: translateX(-50%);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Theme Toggle */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: #4a7aff;
    color: white;
    font-weight: 600;
    cursor: pointer;
    z-index: 100000;
}

/* Contact Links */
.contact a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .25s, transform .2s;
}

.contact a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

body.light .contact a:hover {
    background: rgba(0,0,0,0.12);
}

/* Lightbox */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    z-index: 100000;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

/* Footer */
footer {
    text-align: center;
    padding: 22px;
    opacity: .65;
    font-size: 14px;
}



/* Social Media Buttons unter dem Header */
.social-links {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Icon Container */
.social-btn {
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: transparent;       /* kein Hintergrund */
    border-radius: 12px;
    cursor: pointer;

    transition: transform .25s ease,
    filter .3s ease,
    box-shadow .3s ease;
}

/* Icon selbst */
.social-btn img {
    width: 60%;
    height: 60%;
    transition: transform .25s ease, filter .25s ease;
    filter: brightness(0.92);
}

/* Hover Effekt – moderner Glow */
.social-btn:hover {
    transform: scale(1.18);
    box-shadow: 0 0 18px rgba(255,255,255,0.7);   /* White glow */
}

.social-btn:hover img {
    transform: scale(1.12);
    filter: brightness(1.2);
}

/* Light Mode Anpassungen */
body.light .social-btn:hover {
    box-shadow: 0 0 18px rgba(0,0,0,0.25);        /* schwarzer Glow im hellen Theme */
}

body.light .social-btn img {
    filter: brightness(0.2);
}

body.light .social-btn:hover img {
    filter: brightness(0.4);
}


