* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #ff0000; /* Rot */
  --blue: #ff7f7f; /* Helleres Rot */
  --background-dark: #111827;
  --background-light: #dbdbdb;
  --card-dark: #1f2937;
  --card-light: #ffffff;
  --text-dark: #ffffff;
  --text-light: #111827;
  --border-dark: #374151;
  --border-light: #e5e7eb;
  --footer-bg: #1f2937;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}



body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--background-light);
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: var(--background-dark);
  color: var(--text-dark);
}


/* Basis-Design für den Audio-Tag */
audio {
  width: 100%;
  height: 50px;
  background-color: #c0392b; /* Rotes Hintergrund */
  border-radius: 10px;
  border: none;
  outline: none;
  padding: 0;
  margin: 15px 0;
  position: relative;
}

/* Stil für die Steuerelemente (Play/Pause, Lautstärke, etc.) */
audio::-webkit-media-controls-panel {
  background-color: #e74c3c; /* Helleres Rot für das Steuerelementpanel */
  border-radius: 10px;
  padding: 10px;
  font-family: 'Arial', sans-serif;
}

/* Stil für die Steuerelemente - Button-Hintergrund */
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  background-color: #fff; /* Weiß für die Steuerelemente */
  border-radius: 5px;
}

/* Stil für das Vorwärts- und Rückwärts-Spulen */
audio::-webkit-media-controls-rewind-button,
audio::-webkit-media-controls-fast-forward-button {
  background-color: #e74c3c; /* Gleiche Farbe wie das Panel */
  border-radius: 5px;
}

/* Hover-Effekte */
audio::-webkit-media-controls-play-button:hover,
audio::-webkit-media-controls-volume-slider:hover,
audio::-webkit-media-controls-mute-button:hover,
audio::-webkit-media-controls-rewind-button:hover,
audio::-webkit-media-controls-fast-forward-button:hover {
  background-color: #16a085; /* Sanftes Türkis beim Hover */
}

/* Styling für die Highlight-Box, die das Audio enthält */
.highlight {
  margin: 20px 0;
  padding: 15px;
  background-color: #e74c3c; /* Rotes Highlight */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styling für den Header des Highlights */
.highlight .player-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.highlight .logo-player {
  width: 40px;
  height: auto;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #fff; /* Weißer Rand für das Logo */
}

.highlight .title-container {
  color: #fff; /* Weißer Text für bessere Lesbarkeit */
}

.highlight .title-container h2 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.highlight .title-container h4 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  opacity: 0.8;
}

/* Styling für den Audio-Player innerhalb der Highlight-Box */
.highlight audio {
  width: 100%;
  border-radius: 5px;
  margin-top: 10px;
}


/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid transparent;
  border-top-color: var(--purple);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  padding: 1rem;
}

body:not(.dark) nav {
  background-color: rgba(255, 255, 255, 0.9);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple);
}

.theme-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
}

body.dark .sun-icon,
body:not(.dark) .moon-icon {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: var(--card-dark);
  position: absolute;
  top: 50px; /* Adjust based on your navbar height */
  right: 10px;
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s;
}

body:not(.dark) .mobile-menu {
  background-color: var(--card-light);
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Staggered animations */
.mobile-menu.show .mobile-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.show .mobile-link:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.show .mobile-link:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-menu.show .mobile-link:nth-child(3) {
  transition-delay: 0.3s;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
#home {
  padding-top: 6rem;
}

body:not(.dark) #home {
  background-color: rgb(229 229 226) !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.profile-image-container {
  position: relative;
  perspective: 1000px;
}

.image-backdrop {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 70%);
  z-index: -1;
  border-radius: 2rem;
  transform: translateZ(-50px);
}

.profile-image {
  width: 65%;
  height: 400px;
  object-fit: cover;
  border-radius: 2rem;
  transition: transform 0.3s;
}

.profile-image:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-content {
  padding: 2rem;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(to right, var(--purple), var(--blue));
  border-radius: 50%;
  color: white;
  transition: opacity 0.3s;
}

.social-link:hover {
  opacity: 0.9;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(to right, var(--purple), var(--blue));
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.cta-button:hover {
  opacity: 0.9;
}

/* Projects Section */
#projects {
  padding: 4rem 0;
  background-color: rgba(31, 41, 55, 0.5);
}

body:not(.dark) #projects {
  background-color: rgba(243, 244, 246, 0.5);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card-dark);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

body:not(.dark) .project-card {
  background-color: var(--card-light);
}

.project-card:hover {
  transform: translateY(-0.5rem);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 1.5rem;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(to right, var(--purple), var(--blue));
  border-radius: 0.75rem;
  color: white;
}

.project-header h3 {
  font-size: 1.25rem;
}

.project-content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(to right, var(--purple), var(--blue));
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: opacity 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.project-button:hover {
  opacity: 0.9;
}




/* Services Section */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

body:not(.dark) .services-card {
  background: var(--background-light);
}

.service-container {
  padding: 70px 0;
}

.service-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: auto;
  display: inline-block;
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out, box-shadow 0.3s;
}

.slide-left {
  transform: translateX(-100%);
}

.slide-right {
  transform: translateX(100%);
}

.service-card.visible {
  transform: translateX(0);
  opacity: 1;
}

.service-card.visible:hover {
  transform: translateX(0) translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 131, 174, 0.615);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.glow-purple {
  box-shadow: 0 0 10px rgba(0, 115, 128, 0.877);
}

/* Review Section*/

.reviews {
  background: linear-gradient(to bottom, var(--background), var(--surface));
  padding: 100px 0;
}

body:not(.dark) .reviews {
  background: var(--background-light);
}

.reviews-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.reviews-intro {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Review Form */
.review-form {
  background: var(--background-dark);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body:not(.dark) .review-form {
  background: var(--background-light);
}

.review-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  outline: none;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.rating-input {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-input input {
  width: 100px;
}

.rating-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.rating-input input {
  -moz-appearance: textfield; /* Firefox */
  appearance: textfield; /* Standard */
}

.rating-input input::-webkit-outer-spin-button,
.rating-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Review Cards */
.review-card {
  background: linear-gradient(145deg, var(--surface), var(--background));
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
}

.review-card .stars {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.25rem;
}

.review-card .review-text {
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.review-card .review-author {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.review-card .review-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

/* Glow Effect */
.glow-purple {
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
}

.glow-purple:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

/* Contact Section */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-top: 2rem;
}

.contact-link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  transition: all 0.3s;
}

.contact-link span {
  color: var(--text-dark);
}

body:not(.dark) .contact-link span {
  color: var(--text-light);
}

.contact-link:hover {
  color: var(--blue);
  transform: translateY(-4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

body:not(.dark) ::-webkit-scrollbar-track {
  background-color: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--purple), var(--blue));
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #7c3aed, #2563eb);
}

.footer {
  background-color: var(--footer-bg);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  border: 2px solid rgb(111, 111, 111);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  position: relative;
  bottom: -1px;
}

body:not(.dark) .footer {
  background-color: rgb(220, 220, 220);
}

/* Skills & Certificates Section */
.skills-section {
  padding: 4rem 0;
  background-color: var(--background-dark);
}

body:not(.dark) .skills-section {
  background-color: var(--background-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-card {
  background-color: var(--card-dark);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-left: 5px solid var(--purple);
}

body:not(.dark) .skill-card {
  background-color: var(--card-light);
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card h3 {
  font-size: 1.25rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.skill-card ul {
  list-style: none;
  padding-left: 1rem;
}

.skill-card li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.skill-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.skill-card.in-progress {
  border-left: 5px solid orange;
}

.skill-card.achieved {
  border-left: 5px solid limegreen;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.show {
    display: flex;
  }

  .profile-image {
    display: none;
  }

  .image-backdrop {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-image {
    height: 400px;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }





/* Media queries for larger screens */
@media (min-width: 768px) {
  footer .container > div {
    flex: 1 1 25%; /* Four columns on desktop */
    margin-bottom: 20px;

    text-align: left; /* Left align on larger screens */
  }

  .col-1 {
    text-align: left;
  }

  .col-1 img {
    width: 50px;
    height: 50px;
    object-fit: cover; /* Alternativen: contain, fill, scale-down */
  }
}


