/* @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&display=swap'); */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: "Outfit", sans-serif;
}
h1 {
  font-size: 50px;
  margin-bottom: 2rem;
}

:root {
  --bg-color: #0e1116; /* #10101c */
  --second-bg-color: #1f2937;
  --text-color: #f1f5f9;
  --main-color: #14cade;
}

/* Base styles for all screen sizes */
html {
  font-size: 100%; /* This is equivalent to 10px if the user's browser default is 16px */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: #0e1119;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.5rem;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}

.logo.light-mode {
  color: black;
}

.logo img {
  height: 60px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.navbar a {
  font-size: 2rem;
  color: var(--text-color);
  font-weight: 600;
  margin-left: 3.5rem;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

section {
  padding: 15rem 9% 2rem;
}

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 9%;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center content when wrapped */
  margin-top: 80px; /* Add space for the fixed header */
}

.home-content {
  flex: 1;
  min-width: 00px; /* Minimum width before scaling down */
  max-width: 60rem;
  padding: 1rem; /* Add some padding */
}

.home-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.3;
}

.text-animate {
  font-size: 3rem;
  font-weight: 700;
  color: var(--main-color);
  height: 3.5rem;
  overflow: hidden;
}

.rotating-words {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}
.rotating-words.fade-out {
  opacity: 0;
}
.home-content p {
  font-size: 1.6rem;
  margin: 2rem 0 4rem;
}

.home-img {
  flex: 1;
  min-width: 300px; /* Minimum width before scaling down */
  max-width: 800px; /* Maximum width to prevent oversizing */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Center the image */
}

.home-img img {
  width: 100%; /* Use percentage instead of fixed width */
  height: auto;
  max-width: 800px; /* Maximum width to maintain quality */
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 87%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 87%);
}

.btn-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 34.5rem;
  height: 5rem;
}

.btn-box .btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 15rem;
  height: 100%;
  background: var(--main-color);
  border: .2rem solid var(--main-color);
  border-radius: .8rem;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .1rem;
  color: var(--bg-color);
  z-index: 1;
  overflow: hidden;
  transition: .5s;
}
.btn-box .btn:hover {
  color: var(--text-color);
}
.btn-box .btn:nth-child(2) {
  background: transparent;
  color: var(--main-color);
}
.btn-box .btn:nth-child(2):hover {
  color: var(--text-color);
}
.btn-box .btn:nth-child(2)::before {
  background: var(--main-color);
}
.btn-box .btn:hover::before {
  width: 100%;
}
/* .home-sci {
  position: absolute;
  padding: auto;
  bottom: 40px;
  left: 40px;
  z-index: 10;
} */

#linkedin-icon {
  font-size: 5rem; /* Increased size */
  color: var(--main-color);
  transition: all 0.3s ease;
}

#linkedin-icon:hover {
  transform: scale(1.1);
  color: #0077b5; /* LinkedIn blue color on hover */
}

.skills-wrapper {
  display: flex;
  justify-content: space-between; /* Distributes the categories with space between */
  flex-wrap: wrap; /* If there's not enough space, sections will wrap */
  gap: 2rem; /* Space between sections */
}

.skills-category {
  flex: 1; /* All sections take equal space */
  min-width: 300px; /* Minimum width before wrapping */
  background-color: #00000052; /* Optional: adds a subtle background */
  padding: 1.5rem;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skills-category h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--main-color);
  text-align: left;
}
.skills-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-container {
  margin-bottom: 1.5rem;
}

/* Add these styles for the segmented skill bars */
.skill-bar {
  display: flex;
  gap: 5px;
  width: 100%;
  height: 8px;
}

.skill-segment {
  flex: 1;
  background-color: #00000052;
  border-radius: 5px;
  height: 100%;
  transition: background-color 0.5s ease;
}

.skill-segment.filled {
  background-color: var(--main-color);
}

/* Remove the old skill-level styles since we're not using them anymore */
.skill-bar .skill-level {
  display: none;
}

/* Keep the rest of your skill-level CSS the same */

.skill-container p {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-container p i {
  color: var(--main-color);
}

/* Verschiedene Skills, je nach Prozentwert */
.java-bar .skill-level {
  width: 70%;
}
.csharp-bar .skill-level {
  width: 70%;
}
.python-bar .skill-level {
  width: 50%;
}
.kotlin-bar .skill-level {
  width: 50%;
}
.html-bar .skill-level {
  width: 50%;
}
.css-bar .skill-level {
  width: 50%;
}
.js-bar .skill-level {
  width: 70%;
}
.sql-bar .skill-level {
  width: 40%;
}
.german-bar .skill-level {
  width: 100%;
}
.english-bar .skill-level {
  width: 80%;
}
.russian-bar .skill-level {
  width: 60%;
}
.blender-bar .skill-level {
  width: 80%;
}
.sp-bar .skill-level {
  width: 1%;
}
.ps-bar .skill-level {
  width: 50%;
}
.illustrator-bar .skill-level {
  width: 60%;
}
.ae-bar .skill-level {
  width: 60%;
}
/* Projects Section Improvements */
.projects {
  text-align: center;
}

.projects h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--main-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

/* Fix for project images overlapping issue */
.projects-item {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-item.wide {
  grid-column: span 2;
  margin-top: 3rem;
  height: auto;
}

.projects-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.projects-item img {
  max-width: 100%;
  border-radius: 5px;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.projects-item p {
  font-size: 1.6rem;
  margin: 1rem 0 2rem;
}

.view-details {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--main-color);
  color: var(--bg-color);
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s;
}

.view-details:hover {
  background-color: transparent;
  color: var(--main-color);
  outline: 2px solid var(--main-color);
}
.projects-item {
  perspective: 1000px;
  height: auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.project-switch {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-switch p {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.switch-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.switch-preview img {
  max-width: 100%;
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.switch-preview .btn {
  padding: 1rem 2.5rem;
  font-size: 1.6rem;
  background-color: var(--main-color);
  color: var(--bg-color);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.switch-preview .btn:hover {
  background-color: transparent;
  color: var(--main-color);
  outline: 2px solid var(--main-color);
}

.contact h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.project-detail {
  padding: 3rem 9%;
  background-color: #00000052;
  border-radius: 5px;
  margin-bottom: 3rem;
}

.project-detail h1 {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.project-description,
.project-story,
.project-gameplay,
.project-technical,
.project-conclusion {
  margin-bottom: 2rem;
}

.project-gameplay ul {
  list-style-type: none;
  padding-left: 0;
}

.project-gameplay ul li {
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-detail p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-color);
}

.project-detail strong {
  font-weight: bold;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--main-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.6rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(75, 215, 199, 0.3);
  border-radius: 5px;
  color: var(--text-color);
  transition: border-color 0.3s;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--main-color);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background-color: var(--main-color);
  color: var(--bg-color);
  font-size: 1.8rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: transparent;
  color: var(--main-color);
  outline: 2px solid var(--main-color);
}

/* Footer */
footer {
  text-align: center;
  width: 100%;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
}

footer p {
  font-size: 1.4rem;
  color: var(--text-color);
}
.header-toggle {
  position: static;
  width: auto;
  height: auto;
  background: none;
  margin-left: 2rem;
}
.header-toggle i {
  font-size: 2.4rem;
  color: var(--main-color);
  cursor: pointer;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 101;
  transition: all 0.3s;
}
.theme-toggle i {
  font-size: 2rem;
  color: var(--main-color);
  transition: all 0.3s;
}
.theme-toggle:hover {
  transform: rotate(30deg);
  background-color: var(--main-color);
}
.theme-toggle:hover i {
  color: var(--bg-color);
}

.particles-container {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--main-color);
  color: var(--bg-color);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background-color: var(--bg-color);
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}

/* ===== Additional Animations ===== */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ===== Light Mode Support ===== */
body.light-mode {
  --bg-color: #f5f5f5;
  --second-bg-color: #313131;
  --text-color: #333333;
}

body.light-mode .header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
body.light-mode .navbar a {
  color: #333333;
}
body.light-mode .navbar a:hover,
body.light-mode .navbar a.active {
  color: var(--main-color);
}
body.light-mode .skills-category,
body.light-mode .projects-item,
body.light-mode .contact-form {
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
body.light-mode .skill-bar {
  background-color: #e0e0e0;
}
body.light-mode footer {
  background-color: #ffffff;
}

body.light-mode .level-card {
  background-color: #ffffff; /* reines Weiß */
  color: #333333; /* dunkler Text für Kontrast */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* leichter Schatten wie bei Projekten */
  border-radius: 0.75rem; /* gleiche Rundung wie bei anderen Boxen */
}

/* Nur im Light‑Mode: About‑Me‑Boxen auf Weiß umstellen */
body.light-mode .about .timeline-content {
  background-color: #ffffff; /* weißer Hintergrund */
  color: #333333; /* dunkler Text */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* leichter Schatten wie bei Projekten */
}

/* Nur im Light‑Mode: Badges ebenfalls auf Weiß */
body.light-mode .about .badge {
  background-color: #ffffff;
  border: 1px solid rgba(75, 215, 199, 0.3);
}

body.light-mode .game-container,
body.light-mode .project-switch {
  background-color: #fff;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: .75rem;
}

/* falls Du noch einzelne Elemente extra hervorheben willst */
body.light-mode .story-text,
body.light-mode .video-overlay {
  background: transparent;
}
body.light-mode .subtitle {
  color: #ffffff; /* dunkler Text für Kontrast */
}

body.light-mode .project-info-bar {
  background-color: #14cade;
  color: #000000;
}

/* === Game Details (from former styleGames.css) === */
.mygames {
  min-height: 80vh;
  padding: 10rem 9% 2rem;
}

.mygames-content h1 {
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4.2rem); /* responsive Größe */
}

.game-container {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 4rem;
}

/* Video Hero Section */
.video-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 700px; /* macht es schön schmal */
  margin: 0 auto; /* zentriert das Element horizontal */
  border-radius: 0.8rem;
}

/* Video Hero Section */
.video-hero img {
  position: relative;
  overflow: hidden;
  height: auto;
  object-fit: cover; /* wichtig: schneidet das Bild ggf. zu */
  width: 100%;
  max-height: 700px; /* macht es schön schmal */
  margin: 0 auto; /* zentriert das Element horizontal */
  border-radius: 0.8rem;
  display: block;
}
/* Style for the static banner image */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0; /* ersetzt top/left/right/bottom: 0 */
  display: flex;
  align-items: flex-end; /* oder center, wenn du mittig willst */
  justify-content: flex-start;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.video-text {
  color: white;
}

.video-text h2 {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.video-text .subtitle {
  font-size: 1.5rem;
  color: #ffffff;
}

/* Project Info Bar */
.project-info-bar {
  font-size: 1.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  border-bottom: 10px solid #14cade;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.info-icon {
  color: var(--main-color);
}
.project-image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* zwei Spalten */
  gap: 1.5rem; /* etwas kleinerer Gap */
  padding: 2rem 0;
  /* justify-items: center; <- entfernt, um Lücken zu vermeiden */
}

.project-image {
  width: 100%;
  max-width: none; /* keine Begrenzung mehr */
  height: auto;
  min-height: 300px; /* Mindesthöhe für konsistente Darstellung */
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-imagephone {
  width: 100%;
  margin: 0 auto;
  max-width: 450px; /* keine Begrenzung mehr */
  height: auto;
  min-height: 300px; /* Mindesthöhe für konsistente Darstellung */
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-image:hover {
  transform: scale(1.03);
}

.project-imagephone:hover {
  transform: scale(1.03);
}


/* Für mobile Geräte: Einspaltig */
@media (max-width: 768px) {
  .project-image-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-image {
    min-height: 250px;
  }
}

/* Game Description */
.game-section,
.story-section,
.gameplay-section,
.gallery-section,
.conclusion-section {
  padding: 2rem;
}

.mygames h2 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 1rem;
}
.game-section h3,
.story-section h3,
.gameplay-section h3,
.gallery-section h3,
.conclusion-section h3 {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.game-section ul {
  list-style-type: disc; /* Standard-Listenpunkte */
  padding-left: 2.5rem; /* Einrückung für die Listenpunkte */
  margin-bottom: 2rem; /* Abstand nach der Liste */
}

.game-section ul li {
  font-size: 1.6rem; /* Schriftgröße der Listenelemente */
  line-height: 1.8; /* Zeilenhöhe für bessere Lesbarkeit */
  margin-bottom: 0.8rem; /* Abstand zwischen den Listenelementen */
  color: var(--text-color); /* Textfarbe */
}

.game-section ul li strong {
  color: var(--main-color); /* Hervorhebung für starke Texte */
}

.game-section p,
.story-section p,
.gameplay-section p,
.conclusion-section p {
  font-size: 1.8rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Story Section */
.story-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.story-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gameplay Section */
.gameplay-section {
  margin-bottom: 3rem;
}

.gameplay-intro {
  margin-bottom: 1.5rem;
}

.levels-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

/* Make the card bigger and more spaced out */
.level-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Increase image height */
.level-image {
  height: 200px; /* or 250px for more height */
  overflow: hidden;
}

.level-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enlarge text and add spacing */
.level-content {
  padding: 2rem;
}

.level-content h4 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.level-content p {
  font-size: 1.6rem;
  line-height: 1.8;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: 0.75rem;
  overflow: hidden;
  height: auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About section */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  font-size: 1.6rem;
  line-height: 1.7;
}

.about-gif {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-gif img {
  max-width: 100%;
  width: 800px;
  height: auto;
  border-radius: 5px;
  animation: float 6s ease-in-out infinite;
}

body:not(.light-mode) .header,
body:not(.light-mode) .skills-category,
body:not(.light-mode) .projects-item,
body:not(.light-mode) .contact-form,
body:not(.light-mode) .project-switch,
body:not(.light-mode) .project-detail,
body:not(.light-mode) .level-card,
body:not(.light-mode) .timeline-content {
  background-color: #12171d;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Timeline styles */
.timeline {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: var(--main-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--main-color);
  box-shadow: 0 0 10px rgba(75, 215, 199, 0.5);
}

.timeline-content {
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  border-left: 3px solid var(--main-color);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: translateX(10px);
}

.timeline-content h3 {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 1.6rem;
  line-height: 1.7;
}

/* About badges */
.about-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(75, 215, 199, 0.3);
  font-size: 1.4rem;
  transition: all 0.3s;
}

.badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: rgba(75, 215, 199, 0.1);
}

.badge i {
  font-size: 1.8rem;
  color: var(--main-color);
}

.about .btn {
  display: inline-block;
  margin-top: 2rem;
  background-color: var(--main-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.6rem;
  transition: 0.3s;
}

.about .btn:hover {
  background-color: transparent;
  color: var(--main-color);
  outline: 2px solid var(--main-color);
}
.video-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 2rem;

  display: flex; /* Wichtig: damit zentriert wird */
  justify-content: center; /* Zentriert horizontal */
}

.video-container video {
  width: 90%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.campus-project {
  padding: 10rem 9% 2rem;
}

.campus-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.campus-text {
  flex: 1;
  min-width: 300px;
}

.campus-text h2 {
  font-size: 4rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.project-subtitle {
  font-size: 1.6rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.campus-text p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* Large screens (above 1920px) */
@media (min-width: 1921px) {
  html {
    font-size: 90%;
  }
  .home {
    height: 100vh;
  }

  .home-img {
    max-width: 1000px;
  }

  .home-img img {
    width: 100%;
    max-width: 1000px;
  }

  .home-content {
    padding: 0 2rem;
  }

  .home-content h1 {
    font-size: 6.4rem;
  }

  .home-content p {
    font-size: 2rem;
  }

  .home-img img {
    width: 900px;
  }

  section {
    padding: 12rem 10% 4rem;
  }

  .projects-item img {
    height: 280px;
  }

  .skills-category h3 {
    font-size: 3rem;
  }

  .btn-box .btn {
    width: 17rem;
    font-size: 2rem;
  }

  .navbar a {
    font-size: 2.2rem;
  }

  .logo {
    font-size: 3rem;
  }

  .logo img {
    height: 70px;
  }
}

/* Mid-size screens (1080p and similar) */
@media (min-width: 1201px) and (max-width: 1920px) {
  html {
    font-size: 90%; /* Standard size for mid-range screens */
  }

  h1 {
    font-size: 45px;
  }

  .logo {
    font-size: 2rem;
  }

  .logo img {
    width: 50px;
    height: auto;
  }

  .navbar a {
    font-size: 1.6rem;
  }

  .home-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
  }

  .text-animate {
    font-size: 2.5rem;
    height: 3rem;
  }

  .home-content p {
    font-size: 1.8rem;
  }

  .btn-box .btn {
    font-size: 1.6rem;
    width: 13rem;
  }

  .skills-category h3 {
    font-size: 2rem;
  }

  .skill-container p {
    font-size: 1.4rem;
  }

  .projects-item h3 {
    font-size: 1.8rem;
  }

  .projects-item p {
    font-size: 1.4rem;
  }

  .view-details {
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
  }

  .timeline-content h3 {
    font-size: 1.8rem;
  }

  .timeline-content p {
    font-size: 1.4rem;
  }

  .badge {
    font-size: 1.2rem;
    padding: 6px 12px;
  }

  .badge i {
    font-size: 1.6rem;
  }
}

/* Tablets and smaller desktops */
@media (min-width: 992px) and (max-width: 1200px) {
  html {
    font-size: 55%; /* Slightly smaller base font */
  }

  .header {
    padding: 1.5rem 4%;
  }

  section {
    padding: 10rem 4% 2rem;
  }

  .home {
    padding: 0 4%;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .header {
    padding: 0.8rem 5%;
  }

  .logo {
    font-size: 0; /* optional – wenn du nur Bild willst */
  }

  .logo img {
    height: 40px;
    width: auto;
  }
}

/* Media Queries for Game Sections */
@media (min-width: 768px) {
  .project-info-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .story-section {
    grid-template-columns: 1fr 1fr;
  }

  .levels-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-text h2 {
    font-size: 2rem;
  }
}

/* Mobile phones */
@media (max-width: 768px) {
  html {
    font-size: 50%; /* Smallest base font for mobile */
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-item.wide {
    grid-column: span 1;
  }

  .projects-item img {
    height: auto;
    max-height: 300px;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .about-gif {
    order: -1;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
  }

  .about-gif img {
    width: 100%;
    height: auto;
  }

  .home {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4%;
  }

  .home-img {
    order: -1;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1.5rem;
  }

  .home-img img {
    width: 100%;
    height: auto;
  }

  .home-content {
    width: 100%;
    text-align: center;
    padding: 0 1rem;
  }

  .logo {
    font-size: 0; /* Text ausblenden */
  }

  .logo img {
    width: 40px;
    height: auto;
  }

  .video-hero {
    width: 100%;
  }
}

/* Very small mobile phones */
@media (max-width: 520px) {
  html {
    font-size: 40%; /* Even smaller for very small screens */
  }

  .home-content h1 {
    font-size: 4rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .navbar a {
    margin-left: 2rem;
  }

  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-img img {
    width: 80%;
    margin-top: 3rem;
  }

  /* Hide logo text on very small devices */
  .logo {
    font-size: 0;
  }

  /* Make logo image smaller */
  .logo img {
    height: 30px;
    width: auto;
  }
  .project-imagephone {
    width: 100%;
    max-height: 200px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  html {
    font-size: 50%; /* Smallest base font for extra small devices */
  }
  .home-img img {
    width: 100%;
  }

  .mygames {
    padding: 8rem 5% 2rem;
  }

  .navbar {
    margin-right: 60px;
  }
  .project-imagephone {
    width: 100%;
    max-height: 200px; /* Gleiche feste Höhe wie die anderen Bilder */
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover; /* Wichtig: gleiche Behandlung wie andere Bilder */
    transition: transform 0.3s ease;
    margin: 0 auto; /* Zentriert das Bild horizontal */
    display: block; /* Macht das Bild zu einem Block-Element für margin: auto */
  }

  .project-imagephone:hover {
    transform: scale(1.03);
  }
}
