@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&display=swap');

* {
    font-family: "Nata Sans", sans-serif;
}

:root {
    --mainColor: #6544d9;
    --secColor: #8e66ff;
    --lightgrey: #999;
}

body {
  background: linear-gradient(120deg, #100f14, #0c0a14, #111) !important;
  background-size: 200% 200%;
  background-attachment: fixed;
  background-position: 0% 0%;
  color: #eee;
  font-family: system-ui, sans-serif;
  margin: 0;
  transition: background-position 0.2s ease-out;
}


.hero {
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* mobile optimiert */
  font-weight: 900;
  background: linear-gradient(270deg, var(--mainColor), #b366ff, var(--secColor), var(--mainColor));
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite, pulseFade 6s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(101, 68, 217, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  animation: fadeIn 2s ease-in;
  z-index: 10;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--lightgrey);
  border-radius: 16px;
  margin: 0.3rem auto 0;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--lightgrey);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelMove 1.4s infinite ease-in-out;
}

@keyframes wheelMove {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes bubblePop {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes gradientLoop {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes bubblePopFinal {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes gradientLoop {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.welcome-bubble {
  background: linear-gradient(to top, #2a2a2a, #453c66);
  animation: bubblePopFinal 0.45s ease-out forwards;
  color: #eee;
  padding: 1rem 1.25rem 2.25rem 1.25rem;
  border-radius: 1rem;
  font-size: 1rem;
  display: inline-block;
  position: relative;
  max-width: 90%;
  margin-top: 1.5rem;
  line-height: 1.4;
  text-align: left;
}
.welcome-bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 1.5rem;
  width: 18px;
  height: 18px;
  background: #2a2a2a;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.welcome-bubble .small-text {
  font-size: 0.875rem;
  color: #ddd;
}
.msg-meta {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  font-size: 0.75rem;
  color: var(--lightgrey);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(5px);
  animation: fadeInMeta 0.5s ease forwards;
  animation-delay: 0.8s;
}
@keyframes fadeInMeta {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-checks {
  color: var(--mainColor);
  font-size: 0.85rem;
  margin-left: 2px;
}

.msg-status {
  text-transform: lowercase;
}

.button-group {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-purple {
  background-color: var(--mainColor);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}

.btn-purple:hover {
  background-color: #5033b5;
}

.btn-disabled {
  background-color: #777;
  color: #ddd;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.icon-btn {
  background: var(--mainColor);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-right: 0.5rem;
}

.icon-btn:hover {
  background: #7b5de4;
}

.icon-btn i {
  pointer-events: none;
}

.text-gradient-purple {
  background: linear-gradient(90deg, var(--mainColor), var(--secColor));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-box {
  background-color: rgba(255, 255, 255, 0.03);
}

.project-box-alt {
  background-color: rgba(255, 255, 255, 0.03);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secColor);
}

.project-gallery a {
  flex: 0 0 auto;
}

.project-thumb {
  max-height: 180px;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.project-thumb:hover {
  transform: scale(1.05);
}

.badge-status {
  font-weight: 500;
  border-radius: 1rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #fff;
  background: linear-gradient(90deg, var(--mainColor), var(--secColor));
  min-width: 110px;
  height: 28px;
  line-height: 1;
}

.badge-status.progress {
  background: var(--lightgrey);
  color: #1b1b1b;
}
.badge i {
  font-size: 1rem;
}
.skill-card.small-tech {
  width: 72px;
  padding: 0.5rem 0.25rem;
  background-color: #1e1e2e;
  border-radius: 0.5rem;
  text-align: center;
  position: relative;
  font-size: 0.7rem;
}
.skill-card.small-tech .skill-icon-img {
  max-height: 30px;
  margin-bottom: 0.3rem;
}

.about-box {
  background-color: rgba(255, 255, 255, 0.03);
}

.subhead {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--lightgrey);
}

.timeline-item {
  margin-bottom: 0.5rem;
  color: #ddd;
  font-size: 0.95rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(270deg, var(--mainColor), var(--secColor));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  margin-bottom: 2rem;
  text-align: left;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.fade-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseFade {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.profile-pic {
  border: 4px solid var(--mainColor);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 10px rgba(101, 68, 217, 0.4);
}

.skill-card {
  background-color: #1e1e1e;
  border-radius: 1rem;
  padding: 0.75rem 0.5rem;
  margin: 0.25rem 0.25rem;
  text-align: center;
  height: 140px;
  width: 100%;
  max-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.05);
}

.skill-icon-img {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
}

.skill-label {
  font-size: 0.85rem;
  color: #eee;
}

.skill-check {
  color: var(--mainColor);
  font-size: 1rem;
  margin-top: 0.25rem;
}

.timeline {
  border-left: 2px solid var(--mainColor);
  margin-top: 3rem;
  padding-left: 1rem;
  text-align: left;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item strong {
  color: #b69aff;
}

.footer {
  background: #111;
  color: #ccc;
  border-top: 1px solid #333;
}

.social-btn {
  background: linear-gradient(90deg, var(--mainColor), var(--secColor));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  transition: background 0.3s;
}

.social-btn:hover {
  opacity: 0.9;
}

.btn-live-demo {
  background: var(--lightgrey);
  color: #1b1b1b;
  opacity: 0.6;
  cursor: not-allowed;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}