*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Important do not change color gradients */

/* CSS Variables - Design System */
:root {
  /* Modern portfolio color palette */
  --background: hsl(220, 15%, 8%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(220, 15%, 12%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(200, 100%, 60%);
  --primary-foreground: hsl(220, 15%, 8%);
  --secondary: hsl(220, 15%, 18%);
  --secondary-foreground: hsl(210, 40%, 98%);
  --muted: hsl(220, 15%, 15%);
  --muted-foreground: hsl(215, 25%, 60%);
  --accent: hsl(280, 100%, 70%);
  --accent-foreground: hsl(220, 15%, 8%);
  --border: hsl(220, 15%, 20%);
  --input: hsl(220, 15%, 15%);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    hsl(200, 100%, 60%),
    hsl(280, 100%, 70%)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    hsl(220, 15%, 12%),
    hsl(220, 15%, 18%)
  );
  --gradient-hero: linear-gradient(
    135deg,
    hsl(220, 15%, 8%) 0%,
    hsl(220, 15%, 12%) 100%
  );
  --text-gradient: linear-gradient(
    135deg,
    hsl(200, 100%, 60%),
    hsl(280, 100%, 70%)
  );

  /* Shadows */
  --shadow-glow: 0 0 40px hsl(200, 100%, 60%, 0.3);
  --shadow-card: 0 10px 30px -5px hsl(220, 15%, 5%, 0.5);
  --shadow-elegant: 0 20px 40px -10px hsl(220, 15%, 5%, 0.7);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Skill Colors */
--skill-html: hsl(25, 85%, 55%);        /* warm orange */
--skill-css: hsl(207, 90%, 54%);        /* classic blue */
--skill-javascript: hsl(48, 95%, 50%);  /* bright yellow */
--skill-php: hsl(280, 60%, 50%);        /* purple */
--skill-mysql: hsl(175, 75%, 45%);      /* teal/green */
--skill-python: hsl(200, 80%, 55%);     /* light blue */
--skill-bootstrap: hsl(220, 85%, 50%);  /* Bootstrap blue */
--skill-responsive: hsl(150, 70%, 45%); /* green-teal */

  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 5rem 0;
  --border-radius: 0.75rem;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px hsl(200, 100%, 60%, 0.3);
  }
  50% {
    box-shadow: 0 0 40px hsl(200, 100%, 60%, 0.6);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(35, 39, 46, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  position: relative;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: var(--transition-smooth);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  background: rgba(35, 39, 46, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  border-radius: 0.5rem;
  margin: 0.25rem 1rem;
}

.mobile-nav-link:hover {
  color: var(--primary);
  background: var(--secondary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    hsl(200, 100%, 60%, 0.1),
    hsl(280, 100%, 70%, 0.1)
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 64rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--muted-foreground);
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(35, 39, 46, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.badge-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: 1px solid transparent;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.profile-image {
  width: 100%;
  max-width: 24rem;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
  margin: 0 auto;
  display: block;
}

.profile-image:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.about-text > * + * {
  margin-top: 1.5rem;
}

.about-heading {
  font-size: 2rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.about-paragraph {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

/* Skills Section */
.skills {
  padding: var(--section-padding);
  background: var(--gradient-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.skill-bar {
  margin-bottom: 2rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  color: var(--foreground);
  font-weight: 500;
}

.skill-percentage {
  color: white;
  font-size: 0.875rem;
}

.skill-progress {
  width: 100%;
  height: 0.5rem;
  background: var(--muted);
  border-radius: 0.25rem;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 0.25rem;
  width: 0;
  transition: width 1s ease-out;
}

.skill-fill[data-skill="html"] {
  background: var(--skill-html);
}
.skill-fill[data-skill="css"] {
  background: var(--skill-css);
}
.skill-fill[data-skill="javascript"] {
  background: var(--skill-javascript);
}
.skill-fill[data-skill="php"] {
  background: var(--skill-php);
}
.skill-fill[data-skill="mysql"] {
  background: var(--skill-mysql);
}
.skill-fill[data-skill="python"] {
  background: var(--skill-python);
}

.skill-fill[data-skill="bootstrap"] {
  background: var(--skill-bootstrap);
}

.skill-fill[data-skill="responsive"] {
  background: var(--skill-responsive);
}

/* Projects Section */
.projects {
  padding: var(--section-padding);
  background: var(--background);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.project-card:hover {
  box-shadow: var(--shadow-elegant);
  transform: translateY(-8px);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;

  white-space: normal; /* normale Zeilenumbrüche erlauben */
  overflow: visible; /* Text nicht abschneiden */
  text-overflow: clip; /* keine Ellipsen */
}

.project-buttons {
  display: flex;
  gap: 0.75rem;
}

/* CV Section */
.cv {
  padding: var(--section-padding);
  background: var(--gradient-secondary);
}

.cv-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.cv-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: var(--background);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

.contact-info > * + * {
  margin-top: 2rem;
}

.contact-heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-description {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details > * + * {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--muted-foreground);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Contact Form */
.contact-form-container {
  background: rgba(35, 39, 46, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.contact-form > * + * {
  margin-top: 1.5rem;
}

.form-group > * + * {
  margin-top: 0.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--gradient-secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-text {
  color: var(--muted-foreground);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-elegant);
  transform: translateX(100%);
  opacity: 0;
  transition: var(--transition-smooth);
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

.toast-text {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.toast-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero-buttons {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-buttons {
    flex-direction: column;
  }

  .social-links {
    justify-content: center;
  }
}

/* Smooth scroll offset for fixed navigation */
section {
  scroll-margin-top: 4rem;
}

/* Loading states and accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

