/* Grundstil */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #bbbbbb;
  background-color: #121212;
  line-height: 1.6;
}

/* Begrenzter Container */
.container {
  max-width: 1200px; /* Maximale Breite */
  margin: 0 auto; /* Zentriert die Seite horizontal */
  padding: 0 20px; /* Innenabstand für kleine Bildschirme */
  border-radius: 8px;
}

/* Navigationsleiste */
.navbar {
  position: sticky;
  top: 0;
  background: #1a1a1a;
  padding: 10px 20px;
  z-index: 1000;
  display: flex; /* Flexbox aktiviert */
  align-items: center; /* Vertikale Zentrierung innerhalb der Zeile */
  justify-content: space-between; /* Logo links, Navigation rechts */
  height: 50px; /* Einheitliche Höhe */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
/* Standardmäßig ist das Hamburger-Menü versteckt */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger-menu span {
  background: white;
  height: 4px;
  width: 100%;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
}

/* Navigation für mobile Geräte */
@media (max-width: 768px) {
  .hamburger-menu {
      display: flex; /* Zeigt das Hamburger-Menü */
  }

  .nav-links {
      display: none;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background: #1a1a1a;
      flex-direction: column;
      align-items: center;
      padding: 10px 0;
      text-align: center;
  }

  .nav-links ul {
      flex-direction: column;
      width: 100%;
      padding: 0;
  }

  .nav-links li {
      padding: 15px 0;
      width: 100%;
  }

  .nav-links a {
      font-size: 18px;
      display: block;
      width: 100%;
  }

  .nav-links.open {
      display: flex;
  }

  /* Animation für das Hamburger-Icon */
  .hamburger-menu.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger-menu.active span:nth-child(2) {
      opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Logo-Stil */
.logo img {
  margin-left: 20px;
  height: 45px; /* Logo-Größe */
  width: auto;
}

@media (max-width: 768px) {
  .navbar ul {
    display: none; /* Standardmäßig ausblenden */
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    text-align: center;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar li {
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}


.navbar ul {
  list-style: none;
  display: flex;
  justify-content: right;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #f05454;
}

/* Abschnitt-Design */
section {
  background: #1e1e1e;
  margin: 20px 0;
  padding: 30px;
  border-radius: 15px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden; 
}

/* Home-Bereich */
@media (max-width: 768px) {
  .home-section {
    flex-direction: column;
    text-align: center;
  }

  .home-text {
    max-width: 100%;
  }

  .home-image .profile-pic {
    width: 200px; /* Bildgröße verkleinern */
    height: 200px;
  }
}

.home-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 70px;
  padding: 0 20px;
  padding: 50px 20px;
  background: #1e1e1e;
}

.home-text {
  max-width: 50%;
}

.home-text h1 {
  font-size: 2.5em;
  color: #f05454;
}

.home-text p {
  font-size: 1.2em;
}

.home-image .profile-pic {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f05454;
}

/* Über mich */
.about-section {
  padding: 50px 20px;
  background: #1e1e1e;
  text-align: left;
}

.about-section h2 {
  font-size: 2em;
  color: #f05454;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  margin-right: 10px;
  display: inline-block;
}

.social-links img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}

/* projects */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.container2 {
  max-width: 100%; /* Nutzt die gesamte verfügbare Breite */
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Dynamische Spalten */
  width: 100%; /* Volle Breite des Containers */
  gap: 1.5rem; /* Abstand zwischen den Karten */
}

.grid-cols-1 {
  grid-template-columns: 1fr; /* Eine Spalte */
}

.sm\:grid-cols-2 {
  grid-template-columns: repeat(2, 1fr); /* Zwei Spalten */
}

.lg\:grid-cols-3 {
  grid-template-columns: repeat(3, 1fr); /* Drei Spalten */
}

/* Fix für Bildschirme ab einer Breite von 1024px */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* Drei Spalten bei großen Bildschirmen */
  }
}

#projects {
  padding: 50px 20px;
  text-align: center;
  background-color: #1e1e1e;
}

#projects h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

#projects p {
  color: #666;
  margin-bottom: 30px;
}

.project-card {
  background-color: #262729;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgb(168, 69, 69);
  transition: transform 0.3s, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.project-card .details {
  display: none;
  margin-top: 15px;
  text-align: left;
}

.project-card.expanded .details {
  display: block;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: #e53e3e;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.icon-container svg {
  width: 2rem;
  height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  font-weight: 600;
}

.text-gray-400 {
  color: #a0aec0;
}

.project-card .text-gray-400 {
  display: none;
}

.project-card.open .text-gray-400 {
  display: block;
}

.project-card .details {
  display: none;
  margin-top: 15px;
  text-align: left;
}

.project-card.expanded .details {
  display: block;
}

.project-card .projekt-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #e53e3eb9;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.project-card .projekt-button:hover {
  background-color: #96060691;
  color: white;
}


/* certificates */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificate-image {
    max-width: 150px;
  }
}

#certificates {
  padding: 50px 20px;
  text-align: center;
  background-color: #1e1e1e;
}

#certificates h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

#certificates h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

#certificates p {
  color: #666;
  margin-bottom: 30px;
}

.gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	max-width: 1400px;
	padding: 20px 10px;
  }
  
  .gallery img {
	width: 40%;
	max-width: 360px;
	height: 200px;
	object-fit: scale-down;
	border-radius: 10px;
  }
  
  .gallery::after {
	content: "";
	width: 350px;
  }

  .zoom2 {
	transition: transform .2s;
	margin: 0 auto;
  }
  
  .zoom2:hover {
	transform: scale(1.3); 
	z-index: 11110;
  }

  .certificate-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.1);
}

/* Scroll to Top Button */
@media (max-width: 768px) {
  #scrollToTopBtn {
    bottom: 10px;
    right: 10px;
    padding: 8px 10px;
    font-size: 14px;
  }
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s;
}

#scrollToTopBtn:hover {
  background-color: #555;
}