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

:root {
  /* Backgrounds */
  --bg-main: #111827;
  --bg-secondary: #1f2937;
  --bg-card: #1f2937;
  --bg-hover: #374151;
  --bg-input: #1f2937;

  /* Gradients */
  --gradient-start: #111827;
  --gradient-end: #1f2937;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-brand: #38bdf8;
  --text-inverse: #ffffff;
  /* Text on brand backgrounds */

  /* Borders */
  --border-color: #374151;
  --border-hover: #38bdf8;

  /* Brand Colors */
  --color-primary: #f97316;
  --color-primary-hover: #ea580c;
  --color-sidebar-gradient-start: #0ea5e9;
  --color-sidebar-gradient-end: #38bdf8;

  /* Status Colors */
  --status-blue: #38bdf8;
  --status-orange: #f97316;
  --status-gray: #374151;
  --status-gray-text: #ffffff;

  /* Project Colors */
  --project-blue: #3b82f6;
  --project-green: #10b981;
  --project-purple: #a855f7;
  --project-orange: #f97316;
  --project-yellow: #eab308;
  --project-pink: #ec4899;

  /* Typography Tokens (Fluid Layout) */
  --fs-h1: clamp(2.5rem, 8vw + 1rem, 4.5rem);
  --fs-h2: clamp(2rem, 5vw + 1rem, 3rem);
  --fs-h3: clamp(1.25rem, 2vw + 1rem, 1.5rem);
  --fs-role: clamp(1.25rem, 3vw + 1rem, 1.875rem);
  --fs-body: clamp(1rem, 0.5vw + 1rem, 1.25rem);
  --fs-small: clamp(0.75rem, 0.2vw + 0.8rem, 0.875rem);
}

.app.light-theme {
  /* Backgrounds */
  --bg-main: #f9fafb;
  --bg-secondary: #e5e7eb;
  /* Sidebar */
  --bg-card: #ffffff;
  --bg-hover: #d1d5db;
  /* Nav hover, Service hover */
  --bg-input: #ffffff;

  /* Gradients */
  --gradient-start: #ffffff;
  --gradient-end: #f3f4f6;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #374151;
  /* Paragraphs about content */
  --text-muted: #4b5563;
  /* Descriptions */
  --text-brand: #0ea5e9;
  /* Roles, Categories */

  /* Borders */
  --border-color: #e5e7eb;
  /* Card borders */
  --border-hover: #0ea5e9;

  /* Status Colors */
  --status-gray: #e5e7eb;
  --status-gray-text: #111827;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
    'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

/* App Container */
.app {
  display: grid;
  grid-template-columns: 80px 288px 1fr;
  grid-template-areas: 'nav profile main';
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-main);
  transition: background-color 0.3s ease;
}

.sidebar-nav {
  grid-area: nav;
}

.profile-card {
  grid-area: profile;
}

.app__main {
  grid-area: main;
}

/* Navigation Sidebar */
.sidebar-nav {
  width: 80px;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  transition: background-color 0.3s ease;
}

.sidebar-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.sidebar-nav__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sidebar-nav__btn {
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sidebar-nav__btn:hover {
  background-color: var(--bg-hover);
  color: var(--color-primary);
}

.sidebar-nav__btn--active {
  background-color: var(--bg-hover);
  color: var(--color-primary);
}

.sidebar-nav__btn svg {
  width: 24px;
  height: 24px;
}

.moon-icon.hidden,
.sun-icon.hidden {
  display: none;
}

/* Profile Sidebar */
.profile-card {
  width: 288px;
  background: linear-gradient(to right,
      var(--color-sidebar-gradient-start),
      var(--color-sidebar-gradient-end));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1.5rem;
}

.profile-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-card__image-wrapper {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
}

.profile-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.profile-card__info {
  text-align: center;
}

.profile-card__info h3 {
  font-size: var(--fs-body);
  font-weight: bold;
  color: var(--text-inverse);
}

.profile-card__info p {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

.profile-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-card__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.profile-card__social-link {
  color: var(--text-inverse);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card__social-link:hover {
  color: var(--text-primary);
}

.checklist__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
}

.profile-card__social-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

.profile-card__social-link[href*="xing.com"] svg {
  transform: translateY(2px);
}

.profile-card__contact-btn {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.profile-card__contact-btn:hover {
  background-color: var(--color-primary-hover);
}

/* Main Content */
.app__main {
  flex: 1;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: rotateX(90deg);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  background: linear-gradient(135deg,
      var(--gradient-start) 0%,
      var(--gradient-end) 100%);
}

.section--active {
  opacity: 1;
  transform: rotateX(0deg);
}

.impressum {
  display: block;
  overflow-y: auto;
  padding: 4rem 0;
  height: 100%;
}

.impressum__content {
  line-height: 1.6;
}

.impressum__content h2 {
  margin: 2rem 0 1rem;
  color: var(--color-primary);
}

.impressum__content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-brand);
  text-decoration: none;
  font-weight: 600;
}

.link-back:hover {
  text-decoration: underline;
}

@media (max-width: 340px) {
  .link-back {
    font-size: 0.875rem;
  }
}

.section--exit-down {
  transform: rotateX(-90deg);
  opacity: 0;
}

.section--exit-up {
  transform: rotateX(90deg);
  opacity: 0;
}

.section__container {
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  margin: 0 auto;
}

.scroll-container {
  max-width: 1152px;
  width: 100%;
  padding: 4rem;
  overflow-y: auto;
  max-height: 100%;
}

/* Home Section */
.home__header {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 0.8s ease forwards 0.2s;
}

.section--active .home__header {
  animation: slideInLeft 0.8s ease forwards 0.2s;
}

.home__title {
  font-size: var(--fs-h1);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section__divider {
  height: 4px;
  width: 128px;
  background-color: var(--color-primary);
}

.home__roles {
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 0.8s ease forwards 0.4s;
}

.section--active .home__roles {
  animation: slideInRight 0.8s ease forwards 0.4s;
}

.home__role {
  font-size: var(--fs-role);
  color: var(--text-brand);
  margin-bottom: 1rem;
}

.home__description {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-top: 3rem;
  max-width: 672px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

.section--active .home__description {
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

/* Services Section */
.section__title {
  font-size: var(--fs-h2);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section__title+.section__divider {
  margin: 0 auto 2.5rem auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.section--active .service-card:nth-child(1) {
  animation: fadeInUp 0.5s ease forwards 0s;
}

.section--active .service-card:nth-child(2) {
  animation: fadeInUp 0.5s ease forwards 0.2s;
}

.section--active .service-card:nth-child(3) {
  animation: fadeInUp 0.5s ease forwards 0.4s;
}

.service-card:hover {
  background-color: var(--bg-hover);
}

.service-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: var(--fs-h3);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
  white-space: pre-line;
}

.service-card__description {
  color: var(--text-muted);
}

/* About Section Redesign */
.about__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about__left {
  position: relative;
  padding-bottom: 2.5rem;
  /* Space for the overlapping badge */
}

.belief-card {
  background: linear-gradient(135deg,
      var(--color-sidebar-gradient-start),
      var(--color-sidebar-gradient-end));
  color: white;
  padding: 3.5rem;
  border-radius: 2rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.belief-card__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
}

.belief-card__text {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 0;
}

.about__stat-badge {
  position: absolute;
  bottom: 0;
  right: -1.5rem;
  background-color: white;
  padding: 1.5rem 2rem;
  border-radius: 1.25rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-width: 190px;
  z-index: 10;
}

.about__stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  /* Golden/Orange from screenshot */
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about__stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

.about__right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about__intro {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.checklist {
  list-style: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 !important;
}

.checklist__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checklist__icon {
  color: var(--text-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.about__cta-container {
  margin-top: 1rem;
}

.about__cta-container .btn--primary {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-block;
  text-decoration: none;
}

.about__cta-container .btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.app:not(.light-theme) .about__stat-badge {
  background-color: var(--bg-secondary);
}

.app:not(.light-theme) .about__stat-label {
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .about__wrapper {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .about__left {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Projects Section */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
}

.section--active .project-card:nth-child(1) {
  animation: scaleIn 0.4s ease forwards 0s;
}

.section--active .project-card:nth-child(2) {
  animation: scaleIn 0.4s ease forwards 0.1s;
}

.section--active .project-card:nth-child(3) {
  animation: scaleIn 0.4s ease forwards 0.2s;
}

.section--active .project-card:nth-child(4) {
  animation: scaleIn 0.4s ease forwards 0.3s;
}

.section--active .project-card:nth-child(5) {
  animation: scaleIn 0.4s ease forwards 0.4s;
}

.section--active .project-card:nth-child(6) {
  animation: scaleIn 0.4s ease forwards 0.5s;
}

.project-card:hover {
  border-color: var(--border-hover);
}

.project-card__header {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  overflow: hidden;
}

.project-card__header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover .project-card__header::after {
  opacity: 0.5;
}

.project-card__stat {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.project-card__stat small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-top: 0.125rem;
}

.project-card__number {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.1);
  line-height: 1;
  z-index: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-card__number {
  color: rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.project-card__header--blue {
  background-color: var(--project-blue);
}

.project-card__header--green {
  background-color: var(--project-green);
}

.project-card__header--purple {
  background-color: var(--project-purple);
}

.project-card__header--orange {
  background-color: var(--project-orange);
}

.project-card__header--yellow {
  background-color: var(--project-yellow);
}

.project-card__header--pink {
  background-color: var(--project-pink);
}

.project-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 140px);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card__tags .tag-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 500;
}

.tag-pill--bordered {
  background: transparent;
  border: 1px solid;
}

.tag-pill--yellow {
  color: var(--project-yellow) !important;
  border-color: rgba(234, 179, 8, 0.3) !important;
}

.tag-pill--green {
  color: var(--project-green) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.tag-pill--pink {
  color: var(--project-pink) !important;
  border-color: rgba(236, 72, 153, 0.3) !important;
}

.tag-pill--blue {
  color: var(--project-blue) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.tag-pill--secondary {
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.project-card__title {
  font-size: var(--fs-h3);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.project-card__bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-card__bullets li::before {
  content: '→';
  font-size: 1.1em;
  font-weight: bold;
}

/* Service matching colors for arrows and links */
.project-card:has(.project-card__header--yellow) .project-card__bullet::before,
.project-card:has(.project-card__header--yellow) .project-card__link {
  color: var(--project-yellow);
}

.project-card:has(.project-card__header--green) .project-card__bullet::before,
.project-card:has(.project-card__header--green) .project-card__link {
  color: var(--project-green);
}

.project-card:has(.project-card__header--blue) .project-card__bullet::before,
.project-card:has(.project-card__header--blue) .project-card__link {
  color: var(--project-blue);
}

.project-card:has(.project-card__header--orange) .project-card__bullet::before,
.project-card:has(.project-card__header--orange) .project-card__link {
  color: var(--project-orange);
}

.project-card:has(.project-card__header--pink) .project-card__bullet::before,
.project-card:has(.project-card__header--pink) .project-card__link {
  color: var(--project-pink);
}

.project-card:has(.project-card__header--purple) .project-card__bullet::before,
.project-card:has(.project-card__header--purple) .project-card__link {
  color: var(--project-purple);
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-card__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.project-card__link:hover {
  opacity: 0.8;
}

.project-card__year {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Contact Section */
.contact__form {
  margin-bottom: 3rem;
}

.contact__form-group {
  margin-bottom: 1.5rem;
}

.contact__form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact__form-group input,
.contact__form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact__form-group input:focus,
.contact__form-group textarea:focus {
  outline: none;
  border-color: var(--border-hover);
}

.contact__form-group textarea {
  resize: none;
}

.contact__form-submit {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--text-inverse);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact__form-submit:hover {
  background-color: var(--color-primary-hover);
}

.contact-info {
  text-align: center;
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-link {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-link a {
  color: var(--text-brand);
  text-decoration: none;
}

.contact-link a:hover {
  text-decoration: underline;
}

/* Footer Section */
.footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p,
.footer__link {
  color: var(--text-muted);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Mobile adjustments for footer */
@media (max-width: 640px) {
  .footer__content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Services Section Redesign */
#services-section .section__container {
  max-width: 1400px;
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#servicesHeaderDesc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.125rem;
  max-width: 600px;
}

.service-card {
  background-color: #f7f6f2;
  /* Light cream background from image */
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.app:not(.light-theme) .service-card {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card:hover:has(.service-card__icon-wrapper--green) {
  box-shadow: 0 20px 40px rgba(20, 184, 166, 0.2);
}

.service-card:hover:has(.service-card__icon-wrapper--yellow) {
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.service-card:hover:has(.service-card__icon-wrapper--pink) {
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15);
}

.service-card:hover:has(.service-card__icon-wrapper--blue) {
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.app:not(.light-theme) .service-card:hover:has(.service-card__icon-wrapper--green) {
  box-shadow: 0 20px 40px rgba(20, 184, 166, 0.4);
}

.app:not(.light-theme) .service-card:hover:has(.service-card__icon-wrapper--yellow) {
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.app:not(.light-theme) .service-card:hover:has(.service-card__icon-wrapper--pink) {
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
}

.app:not(.light-theme) .service-card:hover:has(.service-card__icon-wrapper--blue) {
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

.service-card__icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.service-card__icon {
  display: block;
  margin: 0;
}

.service-card__icon-wrapper--green {
  background-color: #e6f2ef;
  color: #14b8a6;
}

.service-card__icon-wrapper--yellow {
  background-color: #fef7e6;
  color: #f59e0b;
}

.service-card__icon-wrapper--pink {
  background-color: #fcecef;
  color: #ec4899;
}

.service-card__icon-wrapper--blue {
  background-color: #e0f2fe;
  color: #38bdf8;
}

.app:not(.light-theme) .service-card__icon-wrapper--green {
  background-color: rgba(20, 184, 166, 0.1);
}

.app:not(.light-theme) .service-card__icon-wrapper--yellow {
  background-color: rgba(245, 158, 11, 0.1);
}

.app:not(.light-theme) .service-card__icon-wrapper--pink {
  background-color: rgba(236, 72, 153, 0.1);
}

.app:not(.light-theme) .service-card__icon-wrapper--blue {
  background-color: rgba(56, 189, 248, 0.1);
}

.service-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: 0;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-secondary);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.tag-pill {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Service specific tag borders */
.tag-pill--green {
  border-color: rgba(20, 184, 166, 0.45) !important;
}

.tag-pill--yellow {
  border-color: rgba(245, 158, 11, 0.45) !important;
}

.tag-pill--pink {
  border-color: rgba(236, 72, 153, 0.45) !important;
}

.app:not(.light-theme) .tag-pill {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

/* Dark mode specific tag borders - higher contrast */
.app:not(.light-theme) .tag-pill--green {
  border-color: rgba(20, 184, 166, 0.6) !important;
}

.app:not(.light-theme) .tag-pill--yellow {
  border-color: rgba(245, 158, 11, 0.6) !important;
}

.app:not(.light-theme) .tag-pill--pink {
  border-color: rgba(236, 72, 153, 0.6) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .app {
    display: block;
    height: auto;
    overflow-y: auto;
  }

  body {
    overflow-y: auto;
  }

  /* Hide Profile Sidebar */
  .profile-card {
    display: none;
  }

  /* Main Content */
  .app__main {
    height: auto;
    overflow: visible;
    perspective: none;
    /* Space for hamburger */
    margin: 0;
    width: 100%;
    display: block;
    min-width: 0;
  }

  /* Hamburger Button */
  .menu-toggle {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  /* Mobile Navigation (Slide-in) */
  .sidebar-nav {
    position: fixed;
    top: 0;
    left: -100%;
    /* Hidden by default */
    width: 100%;
    /* Full width */
    height: 100vh;
    z-index: 1000;
    background-color: var(--bg-main);
    flex-direction: column;
    justify-content: flex-start;
    /* Stack from top to allow scrolling */
    align-items: center;
    padding: 6rem 0 3rem;
    /* Space for top and safe area */
    gap: 3rem;
    /* Gap between main and bottom sections */
    overflow-y: auto;
    /* Enable scrolling */
    transition: left 0.3s ease-in-out;
  }

  .sidebar-nav.open {
    left: 0;
  }

  .sidebar-nav__list {
    gap: 2rem;
  }

  .sidebar-nav__footer {
    gap: 2rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    width: 60px;
    justify-content: center;
  }

  .sidebar-nav__btn svg {
    width: 28px;
    height: 28px;
  }

  /* Sections - Stacked & Visible */
  .section {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 4rem 0;
    /* Horizontal padding in container */
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .impressum {
    display: block;
    /* Override flex for long legal content */
    overflow-y: visible;
    height: auto;
  }

  .section__title {
    font-size: 2.25rem;
    word-wrap: break-word;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  /* Animation performance hints */
  .service-card,
  .project-card,
  .home__header,
  .home__roles,
  .home__description {
    will-change: opacity, transform;
  }

  .section__container {
    padding: 0 1.5rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .scroll-container {
    padding: 1rem;
    overflow: visible;
  }

  .home__header h1 {
    font-size: 2.5rem;
    word-wrap: break-word;
  }

  @media (max-width: 340px) {
    .section {
      padding: 3rem 0.75rem;
    }

    .section__title {
      font-size: 2rem;
    }

    .home__header h1 {
      font-size: 2rem;
    }

    .section__container {
      padding: 0 0.5rem;
    }
  }

  .services__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
  }
}

/* Desktop Only: Hamburger Hidden */
@media (min-width: 1025px) {
  .menu-toggle {
    display: none;
  }
}