body {
  background-color: #f8f9fa;
  overflow-x: hidden;
}
h1, h2 {
  color: #333;
}


/* --- PROJECT OVERVIEW PAGE --- */

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out, box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.project-card img {
  object-fit: cover;
  height: 200px;
  width: 100%;
}

.project-card .card-body {
  background-color: #fff;
  padding: 1.25rem;
}

.project-card h5 {
  color: #222;
}

.project-card p {
  color: #555;
}

body {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* --- alerts and toasts --- */

/* Abstand der Toasts zur Navbar */
.toast-area {
  z-index: 1200;
  margin-top: 70px; /* Verhindert Überlagerung mit Navbar */
}

/* Etwas weichere Schatten für Toasts */
.toast {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  border-radius: 0.5rem;
}

/* Kontaktformular-Alert etwas schmaler und mittiger */
.alert-form {
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Toast Styling Upgrade ---- */

.toast {
  border-radius: 0.75rem !important;
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: none !important;
  overflow: hidden;
}

/* Erfolgreiche Aktionen */
.toast.text-bg-success {
  background: linear-gradient(135deg, #28a745, #218838);
}

/* Fehler */
.toast.text-bg-danger {
  background: linear-gradient(135deg, #dc3545, #b02a37);
}

/* Info */
.toast.text-bg-info {
  background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Warnungen */
.toast.text-bg-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529; /* Dunkler Text für Lesbarkeit */
}

/* Close Button für helle & dunkle Varianten */
.toast .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}
.toast .btn-close:hover {
  opacity: 1;
}

/* Animation beim Erscheinen */
.toast.show {
  animation: toast-slide-in 0.3s ease;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-hero {
    background: transparent !important;
    box-shadow: none !important;
}

.navbar.navbar-hero .navbar-brand,
.navbar.navbar-hero .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.navbar-hero .nav-link:hover {
    color: #fff !important;
}

.navbar.navbar-hero .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar.navbar-hero .navbar-toggler-icon {
    filter: invert(1);
}

/* Hero Section */
.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -66px; /* cancel main padding-top = navbar height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.hero .btn {
    margin: 0 0.5rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: #000;
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

.hero .cursor {
  background-color: #fff;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Skill Cards */
.skill-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.skill-icon {
    color: #0d6efd; /* Bootstrap Primary */
}

#skills h2 {
    color: #212529;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Abstand zwischen Sections */
.section-gap {
    margin-top: 100px; /* Abstand nach oben */
    margin-bottom: 100px; /* Abstand nach unten, falls nötig */
}

/* Skill Cards */
.skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

/* Skill Icons */
.skill-icon {
    color: #0d6efd; /* bootstrap primary color */
}

/* Card */
.card {
  transition: all 0.25s ease;
}

/* Cleaner Hover */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* KEIN Zoom mehr */
.card-img-top {
  transition: none;
  height: 200px;
  object-fit: cover;
}

/* Abstand unter Text */
.card-text {
  margin-bottom: 1.5rem;
}

/* Badge Styling */
.badge {
  background: #f1f3f5;
  border-radius: 0.4rem;
  padding: 0.4em 0.6em;
  font-weight: 500;
  margin: 2px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: #f1f3f5;
  color: #212529;

  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;

  margin: 2px;
}

.tech-badge i {
  font-size: 0.9rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin: 4px;
  border-radius: 999px;
  background: #f1f3f5;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.2s;
}

.tech-badge i {
  font-size: 1rem;
}

.tech-badge:hover {
  transform: translateY(-2px);
  background: #e9ecef;
}

a.tech-badge {
  cursor: pointer;
  color: inherit;
}
a.tech-badge:hover {
  background: #e9ecef;
  text-decoration: none;
}

/* ─── Project Description (Markdown) ───────────────────────────────────────── */
.project-description ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.project-description li {
  margin-bottom: 0.35rem;
}

.project-description p {
  margin-bottom: 0.75rem;
}

/* ─── About Page ───────────────────────────────────────────────────────────── */

.about-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(29, 78, 216, 0.3);
}
 
/* Timeline */
.about-timeline {
  border-left: 2px solid #e5e7eb;
  padding-left: 2rem;
  margin-left: 0.25rem;
}
 
.about-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
 
.about-timeline-item:last-child {
  margin-bottom: 0;
}
 
.about-timeline-dot {
  position: absolute;
  left: calc(-2rem - 5px);   /* half of 10px dot, aligned to the border-left */
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
}
 
.about-timeline-item.current .about-timeline-dot {
  background: #10b981;
  border-color: #10b981;
}

/* Certificate Cards (Variante A) */
.cert-card-a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
}

.cert-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cert-body {
  flex: 1;
  min-width: 0;
}

.cert-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cert-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  white-space: nowrap;
}

.status-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse 2s infinite;
}

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

/* ─── Navbar GitHub Button ──────────────────────────────────────────────── */
.github-navbar-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: box-shadow 0.3s ease-out, background 0.3s ease-out;
}

.github-navbar-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.github-navbar-btn:hover {
  background: #1a1a1a;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #e5e5e5;
}

/* sweep beam */
.github-navbar-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3rem;
  height: 8rem;
  width: 2rem;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3rem) rotate(12deg);
  transition: transform 0.9s ease-out;
}

.github-navbar-btn:hover::after {
  transform: translateX(-10rem) rotate(12deg);
}

/* glass style when navbar is over hero */
.navbar.navbar-hero .github-navbar-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.navbar.navbar-hero .github-navbar-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ─── Hero Social Icon Buttons ──────────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-icon-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon-btn:hover {
  color: #fff;
  transform: translateY(-5px);
  text-decoration: none;
}

.social-icon-btn.github:hover {
  background: #24292e;
  border-color: #24292e;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

.social-icon-btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 10px 20px rgba(10, 102, 194, 0.5);
}

.social-icon-btn .social-tooltip {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon-btn:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}