:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --accent-color: #FF5722;
    --background-color: #121212;
    --secondary-background: #1b1b1b;
    --text-color: #FFFFFF;
    --muted-text-color: #B0B0B0;
    --hover-color: #FF7849;
}

* {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 1.1em;
}

header:not(#impressum-header) {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

canvas#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure canvas is behind other content */
}

#intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

#intro h1 {
    font-size: 3em;
    margin: 0;
}

#intro p {
    font-size: 1.5em;
    margin: 0.5em 0;
    color: var(--muted-text-color);
}

#cta {
    display: inline-block;
    margin-top: 1em;
    padding: 0.75em 1.5em;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
}

#cta:hover {
    background-color: var(--hover-color);
}

#featured-project {
    background-color: var(--secondary-background);
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

#featured-project h2 {
    color: var(--muted-text-color);
}

.three-d-container {
    perspective: 1000px;
}

.services {
    display: flex;
    flex-direction: row;
    padding: 0 22px;
}

.single-service i {
    font-size: 2em;
    
}

.single-service {
    box-shadow: 0 0 4px #FFFFFF;
    border-radius: 9px;
    width: 60%;
    padding: 12px;
    display: block;
    margin: auto;
    margin-top: 30px;
}

.phone-img img {
    width: 25vw;
}

.service-right, .service-left {
    margin-top: 120px;
}

#featured-project, #about, #projects, #blog, #testimonials, #contact {
    padding: 50px;
    text-align: center;
}

#3d-project, #timeline, #tech-stack, #portfolio-gallery, #blog-list, #video-tutorials, #testimonials-carousel, #contact-form, #chatbot {
    margin: 20px auto;
    width: 80%;
    max-width: 1200px;
    height: 400px;
    background-color: var(--background-color);
}

#bio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#profile-picture {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-color);
    transition: transform 0.3s;
}

#details ul {
    list-style: none;
}

#profile-picture:hover {
    transform: scale(1.1);
}

#profile-picture img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

#profile-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none; /* Ensure the canvas doesn't interfere with image interactions */
    opacity: .1; /* Adjust the opacity to ensure the image is visible */
}

#details {
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#timeline {
    background-color: var(--secondary-background);
    color: var(--muted-text-color);
    padding: 20px;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#timeline ul {
    list-style: none;
}

#skills-visualization {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px;
}

#skills-charts, #tech-stack {
    background-color: var(--secondary-background);
    color: var(--muted-text-color);
    padding: 20px;
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

#tech-stack ul {
    list-style: none;
}

.tech-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.tech-logo {
    width: 15%;
    height: auto;
    margin-right: 10px;
}

#testimonials {
    padding: 2em 0;
    background: var(--secondary-background);
    text-align: center;
    margin: 20px;
}

.carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-item {
    display: none;
    padding: 1em;
}

.carousel-item.active {
    display: block;
}

.carousel p {
    font-size: 1.1em;
    color: var(--muted-text-color);
}

#blog {
    padding: 1em 0;
}

#blog button, #single-blog-post button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#blog h2 {
    text-align: center;
    margin-bottom: 1em;
    font-size: 2.1em;
}

#blog-list, #video-tutorials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-post, .video-tutorial {
    width: 300px;
    margin: 1em;
    padding: 1em;
    border-radius: 8px;
    background: var(--secondary-background);
    box-shadow: 0 0 4px #ffffff;
}

.blog-post h3, .video-tutorial h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.blog-post p, .video-tutorial p {
    font-size: 1em;
    color: var(--muted-text-color);
}

.video-tutorial iframe {
    width: 100%;
    height: 180px;
    border: none;
    border-radius: 8px;
}

#single-blog-post {
    padding: 50px;
    text-align: left;
    box-shadow: 0 0 2px #ffffff;
    width: 70%;
    margin: auto;
}

#contact {
    padding: 50px;
    text-align: center;
}

#contact-form {
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form .form-group {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    text-align: left;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--muted-text-color);
    background-color: var(--background-color);
    color: var(--text-color);
}

#contact-form button {
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: var(--hover-color);
}

#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#chatbot-header {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
}

#chatbot-rest {
    display: none;
}

#chatbot-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

#chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#chatbot-input input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#chatbot-input button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.chat-message {
    margin-bottom: 10px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message .message {
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
}

.chat-message.user .message {
    background-color: #007bff;
    color: #fff;
}

.chat-message.bot .message {
    background-color: #f1f1f1;
    color: #333;
}

footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 5px;
}

.footer-content a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 1600px) {
    #skillsChart {
        width: 85% !important;
        height: 85% !important;
    }
}

/* Impressum */

#impressum-header {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
}

#impressum-content {
    margin: 40px;
    min-height:67vh;
}

#sucess {
    text-align: center;
}