/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Mono", monospace;
    background-color: rgb(23, 25, 63);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    counter-reset: sections; /* Reset the counter for sections */
    flex: 1;
    display: flex;
    flex-direction: column;
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: rgb(221, 192, 29);
}

img {
    max-width: 100%;
    height: auto;
}

/* Reusable Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(150px); /* Start slightly below */
    transition: opacity 0.8s ease, transform 0.8s ease;
    
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-weight: 600;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    text-align: left;
    text-decoration: underline; /* Add an underline */
    text-decoration-color: rgb(221, 192, 29); /* Set the underline color to yellow */
    text-decoration-thickness: 2px; /* Set the thickness of the underline */
    text-underline-offset: 10px; /* Add spacing between the text and the underline */
}

.section-title::before {
    counter-increment: sections;
    content: "0" counter(sections) ". ";
    color: rgb(221, 192, 29);
}

.section-title-2 {
    font-weight: 600;
    font-size: 2rem;
    color: white;
    margin-bottom: 4rem;
    text-align: center;
    text-decoration: underline; /* Add an underline */
    text-decoration-color: rgb(221, 192, 29); /* Set the underline color to yellow */
    text-decoration-thickness: 2px; /* Set the thickness of the underline */
    text-underline-offset: 10px; /* Add spacing between the text and the underline */
}

.section-title-2::before {
    content: "0" counter(sections) ". ";
    color: rgb(221, 192, 29);
}

.section-text {
    color:rgb(221, 192, 29);
    line-height: 1.7;
    font-size: 1.1rem;
}

.section-text-2 {
    color: white;
    font-family: Lato;
    line-height: 1.5rem;
    padding-top: 1rem;
}

.section-text-3 {
    color: white;
    font-family: Lato;
    margin-bottom: 1rem; /* Add spacing between paragraphs */
    line-height: 1.3rem;
}

.section-title-3 {
    font-weight: 600;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    text-decoration: underline; /* Add an underline */
    text-decoration-color: rgb(221, 192, 29); /* Set the underline color to yellow */
    text-decoration-thickness: 2px; /* Set the thickness of the underline */
    text-underline-offset: 10px; /* Add spacing between the text and the underline */
}

.section-title-3::before {
    content: "0" counter(sections) ". ";
    color: rgb(221, 192, 29);
}

.section-title-4 {
    font-weight: 600;
    font-size: 2rem;
    color: white;
    margin-bottom: 4rem;
    text-align: center;
    text-decoration: underline; /* Add an underline */
    text-decoration-color: rgb(221, 192, 29); /* Set the underline color to yellow */
    text-decoration-thickness: 2px; /* Set the thickness of the underline */
    text-underline-offset: 10px; /* Add spacing between the text and the underline */
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(23, 25, 63);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
}

header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    counter-reset: navigation;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8); /* Start smaller */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* End at normal size */
    }
}

/* Logo */

.logo img {
    width: 100px;
    height: auto;
    animation: fadeIn 1.5s ease forwards; /* Fade in on load */
    transition: filter 0.3s ease; /* Smooth transition for the glow effect */
}

.logo img:hover {
    filter: drop-shadow(0 0 2px rgb(221, 192, 29)) drop-shadow(0 0 2px rgb(221, 192, 29)); /* Add glow around the shape */
}


.desktop-nav {
    display: none;
}

/* Navlinks Animation */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-80px); /* Start slightly above */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at the original position */
    }
}

.nav-links a {
    opacity: 0; /* Start hidden */
    transform: translateY(-80px); /* Start slightly above */
    animation: slideDown 0.8s ease forwards; /* Apply the animation */
    font-size: 1.1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}


.nav-links a::before {
    counter-increment: navigation;
    content: "0" counter(navigation) ".";
    color: rgb(221, 192, 29);
    margin-right: 0.5rem;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: rgb(221, 192, 29);
    transform: translateY(-0.1rem);
}

/* --- Hamburger Menu --- */
.hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.menu-links {
    position: fixed;
    top: 80px;
    right: 0;
    background-color: rgb(23, 25, 63);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.menu-links ul {
    counter-reset: menu-counter; /* Reset the counter */
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}


.menu-links.open {
    max-height: 500px;
}

.menu-links li {
    counter-increment: menu-counter; /* Increment the counter for each list item */
    margin-bottom: 1rem; /* Add spacing between menu items */
}

.menu-links a {
    display: block;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.menu-links li a::before {
    content: "0" counter(menu-counter) "."; /* Display the counter */
    position: relative;
    left: 0; /* Position the counter to the left */
    color: rgb(221, 192, 29); /* Yellow color for the counter */
    font-weight: bold;
    margin-right: 0.5rem;
}

/* --- Profile Section --- */
#profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
}

.profile-content {
    max-width: 600px;
}

.profile-title-1 {
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.profile-title-2 {
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#socials-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.icon {
    font-size: 2rem;
    color: #fff;
    transition: color 0.3s ease;
}

.icon:hover {
    color: rgb(221, 192, 29);
}


/* --- About Section --- */
#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    gap: 2rem;
    margin-top: 5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.about-text {
    max-width: 600px;
}

.about-tech-list li::before {
    content: "▹";
    color: rgb(221, 192, 29);
    position: absolute;
    left: -1rem;
}

.about-tech-list {
    list-style-type: none;
    display: grid; /* Make the list a grid container */
    grid-template-columns: repeat(3, 1fr); /* Create 3 columns */
    gap: 0.5rem; /* Add some spacing between items */
    padding-left: 0.5rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.about-tech-list li {
    padding-left: 0.5rem;
    position: relative;
    display: flex;
    align-items: baseline;
    color: white;
}

.about-image-container {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
}

.about-image-container img {
    transition: filter 0.3s ease;
    filter: sepia(100%) hue-rotate(40deg) saturate(200%);
}

.about-image-container:hover img {
    filter: none;
}

/* --- Projects Section --- */
#projects {
    counter-increment: sections; /* Increment the counter for this section */
}

#projects .project-card img {
    border: 2px solid rgb(221, 192, 29);
    border-radius: 0.5rem;
}

#projects .section-title-2::before {
    content: "0" counter(sections) ". ";
    color: rgb(221, 192, 29);
}

.projects-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab-button {
    background: none;
    border: 1px solid rgb(221, 192, 29);
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-button.active {
    background-color: rgb(221, 192, 29);
    color: black;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
}

.project-card {
    background-color: rgb(34, 36, 78);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-0.5rem);
    color: rgb(221, 192, 29);
}

.project-image-folder{
    position: relative;
    overflow: hidden;
}

.project-image-folder i {
    align-items: center;
    margin-left: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.project-details {
    padding: 1rem;
}

.project-title-card {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-description {
    font-family: Lato;
    font-size: 1rem;
    line-height: 1.4;
    color: white;
    margin-bottom: 1rem;
}

.project-tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech-list li {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(221, 192, 29);
    padding: 0.5rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
}

.project-links {
    font-family: Lato;
    display: flex;
    gap: 1rem;
}

.project-github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.1rem;
    transition: color 0.3s ease, transform 0.3s ease; /* Add consistent transition */
}

.project-github-link .github-text {
    font-size: 0.9rem; /* Make the text smaller */
    transition: color 0.3s ease; /* Ensure the text color transitions smoothly */
}

.project-github-link:hover .github-text {
    color: rgb(221, 192, 29); /* Optional: Change text color on hover */
}


/* Lightbox */

.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it appears above all other content */
}

.lightbox img {
    max-width: 90%; /* Ensure the image fits within the viewport */
    max-height: 90%; /* Ensure the image fits within the viewport */
    border-radius: 0.5rem; /* Optional: Add rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Add a shadow for emphasis */
    cursor: pointer; /* Indicate the image is clickable */
    border: 2px solid rgb(221, 192, 29); /* Add a yellow outline */
}

.lightbox.active {
    display: flex; /* Show the lightbox when active */
}

/* Close button styling */
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it appears above the lightbox content */
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: rgb(221, 192, 29); /* Change color on hover */
}


/* --- Contact Section --- */
#contact {
    counter-increment: sections; /* Increment the counter for the contact section */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    text-align: center;
}

.contact-content {
    max-width: 600px;
}

.contact-text {
    font-family: Lato;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.email-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: rgb(221, 192, 29);
    font-size: 1.2rem;
    border: 2px solid rgb(221, 192, 29);
    border-radius: 0.5rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.email-link:hover {
    background-color: rgb(221, 192, 29);
    color: rgb(23, 25, 63);
}


/* --- Footer --- */
.section-text-foot {
    color:rgb(221, 192, 29);
    line-height: 1.7;
}

footer {
    font-size: 80%;
    text-align: center;
    padding: 2rem;
    background-color: rgb(23, 25, 63);
    color: #fff;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #fff;
}

.footer-links a:hover {
    color: rgb(221, 192, 29);
}

 /* Impressum & Datenschutz */

 .impressdat {
    padding-top: 5vh;
    margin: 0 10rem;
    box-sizing: border-box;
    flex: 1; /* Allow this section to grow and take up available space */
    min-height: auto; /* Ensure it doesn't force unnecessary height */
    height: auto; /* Remove any fixed height */
}

.datenschutz-content {
    color: white;
    line-height: 1.5;
    max-width: 80%;
    margin: 0 auto;
    text-align: left;
    padding-bottom: 100px;  /* Add padding at the bottom */
}

.impressdat-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    position: relative;
    align-items: center;
    display: flex;
    justify-content: left;
    margin-bottom: 2rem;
    text-decoration: underline; /* Add an underline */
    text-decoration-color: rgb(221, 192, 29); /* Set the underline color to yellow */
    text-decoration-thickness: 2px; /* Set the thickness of the underline */
    text-underline-offset: 10px; /* Add spacing between the text and the underline */
    }

.impressdat-title-2 {
    font-weight: 600;
    font-family: Lato;
    font-size: 1.2rem;
    color: white;
    position: relative;
    align-items: center;
    display: flex;
    margin-top: 2rem;
}

.section-text-5 {
    color: white;
    font-family: Lato;
    font-size: 80%;
    line-height: 1.5;
    max-width: 100%;
    padding-top: 1rem;
}