* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  background-color: #0a0f14;
  color: #eaeaea;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #eaeaea;
  margin: 4px 0;
  transition: all 0.4s ease;
  border-radius: 10px;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.nav-bubbles {
  position: absolute;
  top: 60px;
  right: 2rem;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-bubbles.active {
  opacity: 1;
  pointer-events: auto;
}
.nav-bubbles a {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: #eaeaea;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.nav-bubbles a:hover {
  background: rgba(0, 255, 106, 0.2);
  color: #76bb5d;
}

nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
}
nav .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #76bb5d;
  text-decoration: none;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
nav ul li a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #76bb5d;
}
header.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 2rem;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 span { color: #76bb5d; }
.hero p {
  font-size: 1.25rem;
  color: #aaa;
  max-width: 600px;
}
.btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: #eaeaea;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background-color: rgba(0, 255, 106, 0.2);
  color: #76bb5d;
}

.about-wrapper {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.about-text {
  flex: 1;
  max-width: 450px;
  text-align: left;
}
.highlights {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.highlights li {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #76bb5d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.highlights i {
  font-size: 1.2rem;
}
.about-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}
.about-animation {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #76bb5d, transparent 70%);
  animation: pulse 4s infinite ease-in-out;
  filter: blur(20px);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.skills-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2rem;
  transform-style: preserve-3d;
  transform: translateZ(0);
  perspective: 1000px;
  justify-items: center;
  margin-top: 30px;
}
.skill-logo {
  position: relative;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.skill-logo img {
  max-width: 60%;
  max-height: 60%;
}
.skill-logo::after {
  content: attr(data-skill-level);
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #76bb5d;
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-logo:hover::after {
  opacity: 1;
}
.timeline {
  height: 100vh;
  overflow: hidden;
  padding: 0;
  max-width: none;
}
.timeline-wrapper {
  display: flex;
  height: 100%;
  width: 200vw;
  position: relative;
}
.timeline-item {
  flex: 0 0 65vw;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.timeline-content {
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 2rem;
  gap: 2rem;
  width: 80%;
  max-width: 1000px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}
.timeline-content img {
  width: 400px;
  height: 260px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.timeline-text {
  text-align: left;
  color: #eaeaea;
}
.timeline-text .year {
  font-size: 1.2rem;
  color: #76bb5d;
  margin-bottom: 0.3rem;
  font-weight: bold;
}
.timeline-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}
.timeline-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
}

#scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: #76bb5d;
  z-index: 9999;
}
.glass {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(3px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-icon {
  width: 50px;
  height: 50px;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.social-icon i {
  font-size: 1.6rem;
}
.social-icon:hover,
#backToTop:hover {
  background-color: rgba(0, 255, 106, 0.2);
  transform: scale(1.05);
}
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  backdrop-filter: blur(10px);
  color: #76bb5d;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  z-index: 999;
}
footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  perspective: 800px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card:hover {
  transform: rotateY(3deg) rotateX(2deg) scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 255, 106, 0.1);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-buttons a {
  background: #76bb5d;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s;
}

.project-buttons a:hover {
  background: #5ca447;
}

#hobbies {
  padding: 6rem 2rem;
  text-align: center;
  color: white;
}
.gta-grid {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 4;
  margin: 3rem auto;
}
.gta-grid .tile {
  position: absolute;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  border: 6px solid black;
}
.gta-grid .a {
  top: 0%;
  left: 0%;
  width: 30%;
  height: 20%;
  background-image: url("../img/hobbies/walking.jpeg");
  clip-path: polygon(0 0, 80% 0, 90% 90%, 0% 80%);
}
.gta-grid .b {
  top: 0%;
  left: 30%;
  width: 40%;
  height: 20%;
  background-image: url("../img/hobbies/stadion.jpeg");
  clip-path: polygon(2% 0, 97% 0, 90% 89%, 12% 100%);
}
.gta-grid .c {
  top: 0%;
  left: 70%;
  width: 30%;
  height: 20%;
  background-image: url("../img/hobbies/gaming.jpg");
  clip-path: polygon(12% 0, 100% 0, 100% 83%, 3% 90%);
}
.gta-grid .d {
  top: 20%;
  left: 0%;
  width: 30%;
  height: 27%;
  background-image: url("../img/hobbies/cat.jpeg");
  clip-path: polygon(0 3%, 97% 13%, 84% 89%, 0 97%);
}
.gta-grid .e {
  top: 20%;
  left: 30%;
  width: 70%;
  height: 40%;
  background-image: url("../img/hobbies/vienna.jpeg");
  clip-path: polygon(5% 10%, 100% 3%, 100% 92%, 70% 95%, 67% 60%, 2% 50%);
}
.gta-grid .f {
  top: 43%;
  left: 28%;
  width: 50%;
  height: 20%;
  background-image: url("../img/hobbies/travel2.jpeg");
  clip-path: polygon(6% 4%, 90% 22%, 95% 79%, 4% 96%, 1% 40%);
}
.gta-grid .g {
  top: 48%;
  left: 0%;
  width: 30%;
  height: 34%;
  background-image: url("../img/hobbies/nature.jpeg");
  clip-path: polygon(0 12%, 87% 2%, 90% 100%, 0 100%);
}
.gta-grid .h {
  top: 62%;
  left: 30%;
  width: 27%;
  height: 20%;
  background-image: url("../img/hobbies/drawing.jpeg");
  clip-path: polygon(0 25%, 100% 11%, 100% 100%, 0 100%);
}
.gta-grid .i {
  top: 59%;
  left: 57%;
  width: 43%;
  height: 23%;
  background-image: url("../img/hobbies/gym2.jpeg");
  clip-path: polygon(0 22%, 100% 3%, 100% 100%, 0 100%);
}
.gta-logo {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 8vw, 80px);
  text-align: center;
  z-index: 10;
  text-shadow: 2px 2px 0 black, -2px -2px 0 black;
  pointer-events: none;
  line-height: 0.9;
}
.gta-logo span {
  display: block;
}
@media (max-width: 600px) {
  .gta-grid {
    max-width: 95%;
    aspect-ratio: 3 / 4;
  }
}

.gta-grid .tile:hover {
  z-index: 20;
  transform: scale(1.08) translate(0, 0);
  transition: transform 0.3s ease;
}

/* Richtungsabhängige Bewegungen */
.gta-grid .a:hover {
  transform: scale(1.08) translate(-10px, -10px);
}
.gta-grid .b:hover {
  transform: scale(1.08) translate(0, -10px);
}
.gta-grid .c:hover {
  transform: scale(1.08) translate(10px, -10px);
}
.gta-grid .d:hover {
  transform: scale(1.08) translate(-10px, 0);
}
.gta-grid .e:hover {
  transform: scale(1.08) translate(0, 0);
}
.gta-grid .f:hover {
  transform: scale(1.08) translate(5px, 5px);
}
.gta-grid .g:hover {
  transform: scale(1.08) translate(-10px, 10px);
}
.gta-grid .h:hover {
  transform: scale(1.08) translate(0, 10px);
}
.gta-grid .i:hover {
  transform: scale(1.08) translate(10px, 10px);
}

.gta-grid .tile {
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-bubbles {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 20, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  .nav-bubbles a {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }
}



#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  filter: blur(2px) brightness(0.8);
}