body {
  background-image: url('Bilder/hintergrund.svg');
  background-size: cover;
  background-position: center;
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 100vh;
  position: relative;
  /* Enhanced perspective for Firefox 3D cubes */
  perspective: 2000px;
  -webkit-perspective: 2000px;
  -moz-perspective: 2000px;
  perspective-origin: 50% 50%;
  -webkit-perspective-origin: 50% 50%;
  -moz-perspective-origin: 50% 50%;
}

a {
	color: #000;
	text-decoration: none;
}

a.hover {
	color: #000;
	text-decoration: none;
}
.silkscreen-regular {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.silkscreen-bold {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-shadow: 0px 0px 4px #ccc;
  padding: 10px;
}

.orange-section {
  color: #ffffff;
  text-align: center;
  padding: 100px 0;
}

.subtitle {
  color: #475554;
}

.background-image {
  background-image: url('Bilder/eat-pixel-head.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 600px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer {
  font-size: 9px;
  text-align: center;
  color: #475554;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
}

.btn-bottom-right {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #fb930f;
  border: none;
  border-radius: 0%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-bottom-right:hover {
  background-color: #475554;
}

/* Floating Action Menu */
.floating-menu {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.menu-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FA9B13, #fb930f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(250, 155, 19, 0.4);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid #FFEBA0;
}

.menu-toggle:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 25px rgba(250, 155, 19, 0.6);
}

.menu-toggle i {
  font-size: 24px;
  color: #FFEBA0;
  transition: transform 0.3s ease;
}

.floating-menu.active .menu-toggle {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #475554, #3a4443);
}

.floating-menu.active .menu-toggle i {
  transform: rotate(45deg);
}

.menu-items {
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
}

.menu-item {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FA9B13, #fb930f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 3px 15px rgba(250, 155, 19, 0.3);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  transform: scale(0) rotate(180deg);
  border: 2px solid #FFEBA0;
  pointer-events: none;
}

.menu-item i {
  font-size: 20px;
  color: #FFEBA0;
}

.menu-item:hover {
  transform: scale(1.2);
  box-shadow: 0 5px 20px rgba(250, 155, 19, 0.5);
  background: linear-gradient(135deg, #fb930f, #FA9B13);
}

/* Menu item positions when active - Perfect Arc */
.floating-menu.active .menu-item {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

/* Portfolio - 45 degrees */
.floating-menu.active .menu-item:nth-child(1) {
  bottom: 85px;
  right: 85px;
  transition-delay: 0.1s;
}

/* Skills - 90 degrees */
.floating-menu.active .menu-item:nth-child(2) {
  bottom: 120px;
  right: 30px;
  transition-delay: 0.2s;
}

/* Services - 135 degrees */
.floating-menu.active .menu-item:nth-child(3) {
  bottom: 85px;
  right: -25px;
  transition-delay: 0.3s;
}

/* Contact - 180 degrees */
.floating-menu.active .menu-item:nth-child(4) {
  bottom: 30px;
  right: -25px;
  transition-delay: 0.4s;
}

/* Tooltips */
.menu-item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(71, 85, 84, 0.9);
  color: #FFEBA0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: "Silkscreen", sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;
}

.menu-item:hover::before {
  opacity: 1;
}

/* Section Management & Floating Cards */
.section-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-container.active {
  opacity: 1;
  pointer-events: auto;
}

.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-content {
  position: relative;
  z-index: 2;
  padding: 100px 20px 20px;
  height: 100%;
  overflow-y: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #FFEBA0;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: #475554;
  margin: 0;
}

/* Floating Cards Container */
.floating-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Individual Floating Cards */
.floating-card {
  background: rgba(255, 235, 160, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(250, 155, 19, 0.3);
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(250, 155, 19, 0.6);
}

.floating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FA9B13, #fb930f);
  border-radius: 20px 20px 0 0;
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #475554;
  margin-bottom: 15px;
}

.card-lead {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: linear-gradient(135deg, #FA9B13, #fb930f);
  color: #FFEBA0;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Silkscreen", sans-serif;
}

.card-link {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #475554, #3a4443);
  color: #FFEBA0;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: "Silkscreen", sans-serif;
  font-size: 0.9rem;
}

.card-link:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(71, 85, 84, 0.4);
  color: #FFEBA0;
  text-decoration: none;
}

/* Card Details (expandable) */
.card-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(71, 85, 84, 0.2);
}

.card-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.card-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.card-images img:hover {
  transform: scale(1.05);
}

.card-info {
  background: rgba(71, 85, 84, 0.1);
  padding: 15px;
  border-radius: 10px;
}

.info-item {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}

.info-item strong {
  color: #475554;
  text-transform: capitalize;
}

/* Background Element Animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes drift-left {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-200px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes fade-in-out {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes gentle-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .floating-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }
  
  .floating-card {
    padding: 20px;
  }
  
  .section-content {
    padding: 80px 10px 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .card-lead {
    font-size: 1rem;
  }
}

.cube-container {
  position: absolute;
  width: 20px;
  height: 20px;
  animation: move 10s infinite linear;
  /* Firefox 3D support */
  perspective: 1000px;
  -webkit-perspective: 1000px;
  -moz-perspective: 1000px;
}

.cube {
  width: 20px;
  height: 20px;
  position: relative;
  /* Enhanced 3D support for Firefox */
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  animation: rotate 5s infinite linear, changeColor 5s infinite alternate;
  -webkit-animation: rotate 5s infinite linear, changeColor 5s infinite alternate;
  -moz-animation: rotate 5s infinite linear, changeColor 5s infinite alternate;
  /* Force hardware acceleration */
  will-change: transform;
  /* Firefox specific: Don't hide backfaces for 3D cubes */
  -webkit-backface-visibility: visible;
  -moz-backface-visibility: visible;
  backface-visibility: visible;
}

.cube div {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #FA9B13;
  border: 1px solid #FFEBA0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  color: #FFEBA0;
  /* Firefox 3D rendering fixes */
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
  opacity: 0.95;
}

/* Enhanced cube faces with Firefox support */
.cube .front  { 
  transform: rotateY(0deg) translateZ(10px); 
  -webkit-transform: rotateY(0deg) translateZ(10px);
  -moz-transform: rotateY(0deg) translateZ(10px);
}
.cube .back   { 
  transform: rotateY(180deg) translateZ(10px); 
  -webkit-transform: rotateY(180deg) translateZ(10px);
  -moz-transform: rotateY(180deg) translateZ(10px);
}
.cube .left   { 
  transform: rotateY(-90deg) translateZ(10px); 
  -webkit-transform: rotateY(-90deg) translateZ(10px);
  -moz-transform: rotateY(-90deg) translateZ(10px);
}
.cube .right  { 
  transform: rotateY(90deg) translateZ(10px); 
  -webkit-transform: rotateY(90deg) translateZ(10px);
  -moz-transform: rotateY(90deg) translateZ(10px);
}
.cube .top    { 
  transform: rotateX(89.9deg) translateZ(10px); 
  -webkit-transform: rotateX(90deg) translateZ(10px);
  -moz-transform: rotateX(89.9deg) translateZ(10px);
  /* Firefox fix for top face */
  -moz-backface-visibility: visible;
  backface-visibility: visible;
  z-index: 1;
}
.cube .bottom { 
  transform: rotateX(-89.9deg) translateZ(10px); 
  -webkit-transform: rotateX(-90deg) translateZ(10px);
  -moz-transform: rotateX(-89.9deg) translateZ(10px);
  /* Firefox fix for bottom face */
  -moz-backface-visibility: visible;
  backface-visibility: visible;
  z-index: 1;
}

/* Enhanced keyframes with browser prefixes */
@keyframes rotate {
  from {
    transform: rotateX(0deg) rotateY(0deg);
    -webkit-transform: rotateX(0deg) rotateY(0deg);
    -moz-transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
    -webkit-transform: rotateX(360deg) rotateY(360deg);
    -moz-transform: rotateX(360deg) rotateY(360deg);
  }
}

@-webkit-keyframes rotate {
  from { -webkit-transform: rotateX(0deg) rotateY(0deg); }
  to { -webkit-transform: rotateX(360deg) rotateY(360deg); }
}

@-moz-keyframes rotate {
  from { -moz-transform: rotateX(0deg) rotateY(0deg); }
  to { -moz-transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes move {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(100px, -150px, 50px);
  }
  50% {
    transform: translate3d(-100px, -200px, -50px);
  }
  75% {
    transform: translate3d(200px, -100px, 100px);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes changeColor {
  0% {
    background-color: #FA9B13;
  }
  100% {
    background-color: red;
  }
}