/* CSS Custom PProperties */
:root {
  /** Base colors */
  --dark-a0: #000000;
  --light-a0: #ffffff;

  /** Theme primary colors */
  --primary-a0: #532db5;
  --primary-a10: #6a44be;
  --primary-a20: #7e5ac6;
  --primary-a30: #9270cf;
  --primary-a40: #a587d7;
  --primary-a50: #b89ee0;

  /* Dark theme colors */
  --color-dark-bg: #0a0a0f;
  --color-dark-secondary: #13131a;
  --color-dark-tertiary: #1a1a24;

  /** Theme surface colors (cool grey-blue) */
  --surface-a0: #11141a;   /* fast schwarzblau */
  --surface-a10: #1c2028;  /* tiefes grau-blau */
  --surface-a20: #2a2f3a;  /* leicht kühler mittelton */
  --surface-a30: #3a4050;  /* weiches graublau */
  --surface-a40: #51596b;  /* helleres graublau */
  --surface-a50: #6a7489;  /* hell, modern, neutral */

  /** Theme tonal surface colors (weicher Übergang zu Primary) */
  --surface-tonal-a0: #181524;
  --surface-tonal-a10: #242132;
  --surface-tonal-a20: #302d41;
  --surface-tonal-a30: #3c3950;
  --surface-tonal-a40: #4a4760;
  --surface-tonal-a50: #58556f;

  /** Success colors */
  --success-a0: #22946e;
  --success-a10: #47d5a6;
  --success-a20: #9ae8ce;

  /** Warning colors */
  --warning-a0: #a87a2a;
  --warning-a10: #d7ac61;
  --warning-a20: #ecd7b2;

  /** Danger colors */
  --danger-a0: #9c2121;
  --danger-a10: #d94a4a;
  --danger-a20: #eb9e9e;

  /** Info colors */
  --info-a0: #21498a;
  --info-a10: #4077d1;
  --info-a20: #92b2e5;

  /** Text colors **/
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /** Spacing **/
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /** Typography **/
  --font-primary: -apple-system, BlinkMacSystemFont,'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
}

/* Reset + Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  overflow-x: hidden;
  background-color: var(--surface-a0);
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  height: auto;
}

.nav-menu,
.skill-list {
  list-style: none;
}

/* Utility Stuff */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    position: relative;
}

.section-title::after {
  content: '';
    display: block;
    width: 5rem;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--primary-a0), var(--primary-a30));
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    90deg,
    rgba(10, 10, 15, 0.9),
    rgba(19, 19, 26, 0.9)
  );
  border-bottom: 1px solid var(--surface-a20);
}

.nav-container {
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position:relative;
}

.logo {
  color: var(--primary-a20);
  transition: color 0.3s ease;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: var(--primary-a30);
}

.logo-img {
  height: 2rem;
  width: auto;
  display: block;
  transform: scale(2.5);
  transform-origin: left center;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  transition: color 0.25s ease;
}

/* Unterstrich-Animation */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  background: var(--primary-a30);
}

/* Hover-Effekt */
.nav-link:hover {
  color: var(--primary-a30);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Active-State */
.nav-link.active {
  color: var(--primary-a30);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/*Mobile ansicht*/
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--primary-a20);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}


/* Section Styling */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-secondary) 50%, var(--color-dark-tertiary) 100%);
  position: relative;
  overflow: hidden;
  z-index: 0; 
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    padding: 0 var(--spacing-md);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-title {
  color: var(--text-primary);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-color {
  background: transparent;
  border-color: var(--primary-a20);
  color: var(--primary-a20);
}

.btn-color:hover {
  background-color: var(--primary-a20);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.about {
  background-color: var(--color-dark-bg);
  padding: var(--spacing-xl) 0;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
}

.project {
  background-color: var(--color-dark-secondary);
  padding: var(--spacing-xl) 0;
  min-height: 100vh;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.project-container {
  background-color: var(--color-dark-tertiary);
  border: 1px solid var(--surface-a20);
  border-radius: 12px;
  padding: var(--spacing-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-container:hover {
  transform: translateY(-5px);
  border-color: var(--primary-a10);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.project-header {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tech-tag {
  background-color: var(--color-dark-secondary);
  color: var(--primary-a30);
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  border: 1px solid var(--surface-a40);
}

.skills {
  background-color: var(--color-dark-bg);
  padding: var(--spacing-xl) 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.skill-tabs {
  border: 1px solid var(--surface-a20);
  background-color: var(--color-dark-tertiary);
  border-radius: 12px;
  padding: var(--spacing-md);
  transition: all 0.3s ease;
}

.category-title {
  font-size: 1.25rem;
  color: var(--primary-a10);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.skill-tabs:hover {
  border-color: var(--primary-a10);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.skill-list li {
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-a10);
    font-weight: bold;
}

.contact {
  background-color: var(--color-dark-secondary);
  padding: var(--spacing-xl) 0;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  justify-content: center;
}

.contact-content p {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.contact-content a {
  border: 1px solid var(--surface-a20);
  background-color: var(--color-dark-tertiary);
  border-radius: 12px;
  padding: var(--spacing-sm);
  transition: all 0.3s ease;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.contact-content a:hover {
  border-color: var(--primary-a10);
  transform: translateY(-5px);
}

section {
  background: var(--surface-a0);
  position: relative;
  z-index: 1;
}

.img-links {
  width: 1.875rem;
}


/* footer */
footer {
  bottom: 0;
  display: flex;
  width: 100%;
  border-top: 1px solid var(--surface-a20);
  align-items: center;
  background-color: var(--surface-a0);
  padding: var(--spacing-sm) var(--spacing-md);
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: var(--spacing-md);
    background: var(--color-dark-tertiary);
    border: 1px solid var(--surface-a20);
    border-radius: 12px;
    padding: var(--spacing-sm);
    display: none;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(10, 10, 15, 0.9);
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}
