:root {
  --primary: #1a1a2e;
  --secondary: #0f3460;
  --accent: #4361ee;
  --accent-light: #4895ef;
  --dark: #121212;
  --dark-light: #1e1e1e;
  --text: #e6e6e6;
  --text-muted: #b3b3b3;
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--dark);
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-links-switcher-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-light);
}

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 0;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--accent-light);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.skills {
  background-color: var(--dark-light);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 2rem;
}

.skills-slider {
  display: flex;
  overflow-x: hidden;
  position: relative;
  margin: 2rem 0;
}

.skills-track {
  display: flex;
  animation: scroll 15s linear infinite;
}

.skill-item {
  min-width: 120px;
  height: 120px;
  margin: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.skill-item:hover {
  transform: scale(1.1);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.js-icon {
  color: #f7df1e;
}
.html-icon {
  color: #e34c26;
}
.css-icon {
  color: #264de4;
}
.react-icon {
  color: #61dafb;
}
.node-icon {
  color: #3c873a;
}
.db-icon {
  color: #336791;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-120px * 14 - 4rem * 6));
  }
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--dark-light);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}


.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}


.project-card {
  display: flex;
  flex-direction: column; /* Ensure the card content is spread vertically */
  justify-content: space-between; /* Push the button to the bottom */
  height: 100%; /* Make all cards the same height */
  background-color: var(--dark-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.project-img {
  width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: cover;
  padding: 1rem;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1; /* Allow the content to grow and take available space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure the button stays at the bottom */
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.project-content .btn {
  align-self: center; /* Center the button horizontally */
  margin-top: 1.5rem; /* Add margin to ensure space from the content */
  margin-bottom: 1rem; /* Small bottom margin for visual padding */
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-tag {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--accent-light);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.contact {
  background-color: var(--primary);
  color: white;
  padding: 5rem 0;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--dark);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 10px;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-5px);
}

.footer-nav {
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 15px;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: white;
}

.impressum-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.impressum-content {
  background-color: var(--dark-light);
  color: var(--text);
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  border-radius: 10px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.impressum-content h2 {
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

.close-modal {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
}

.animated-border {
  display: inline-block;
  position: relative;
}

.animated-border::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
}

.animated-border:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Glow effects */
.glow {
  box-shadow: 0 0 15px rgba(67, 97, 238, 0.5);
}

/* Media Queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-img {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
.language-switcher {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.flag-icon {
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.content {
  margin-top: 20px;
}

.lang-button {
  padding: 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Basic fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(150px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Other effects like zoom-in */
.zoom-in {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

.fade-in-without-motion {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-without-motion.visible {
  opacity: 1;
}
