/* ============================================
   LXHI.DEV – Startseite Premium-Styles
   ============================================ */

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, black 40%, transparent 100%);
  opacity: 0.5;
  transition: transform 0.1s ease-out; /* Parallax shift */
}

.hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 100px 80px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

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

/* Live Status Badge */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.live-status:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.live-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981; /* Beautiful Emerald green */
  box-shadow: 0 0 10px #10b981;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 6.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero__name em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-muted);
  opacity: 0.35;
  background: linear-gradient(135deg, var(--text-muted) 30%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .hero__name em {
  -webkit-text-stroke: 1.5px var(--text-muted);
  opacity: 0.55;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.45;
}

.hero__title strong {
  color: var(--accent);
  font-weight: 600;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
  pointer-events: none;
}

.hero__scroll svg {
  opacity: 0.5;
  color: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Stats Strip ---------- */
.stats {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-1);
  position: relative;
  z-index: 3;
}

.stats__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 44px 24px;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color 0.3s ease;
}

.stat:hover {
  background-color: hsla(var(--bg-h), 20%, 10%, 0.2);
}

.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--purple) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stat__num span {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--purple) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- Projects Preview ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
}

#card-webeinsatz:hover {
  border-color: hsla(217, 91%, 60%, 0.45);
  box-shadow: 0 20px 48px -12px hsla(217, 91%, 60%, 0.3);
}

#card-dutycontrol:hover {
  border-color: hsla(24, 95%, 50%, 0.45);
  box-shadow: 0 20px 48px -12px hsla(24, 95%, 50%, 0.32);
}

#card-tickbuzz:hover {
  border-color: hsla(342, 92%, 58%, 0.45);
  box-shadow: 0 20px 48px -12px hsla(342, 92%, 58%, 0.35);
}

.project-card__thumb {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.project-card__icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__icon {
  transform: scale(1.08) rotate(2deg);
}

.project-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__glow {
  opacity: 0.28;
}

.project-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.project-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-card__footer {
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.25s ease;
}

.project-card__link:hover { gap: 10px; }

/* ---------- About Teaser ---------- */
.about-teaser {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.about-teaser:hover {
  border-color: var(--glass-border-hover);
}

.about-teaser__text .label { margin-bottom: 16px; }

.about-teaser__text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 24px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-teaser__text p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-teaser__skills {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-row__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.skill-row__name { color: var(--text-secondary); font-family: var(--font-heading); font-weight: 500; }
.skill-row__pct { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; }

.skill-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.4);
}

.skill-bar__fill--teal { 
  background: var(--teal); 
  box-shadow: 0 0 8px hsla(171, 77%, 50%, 0.4);
}

/* ---------- 3D Browser Mockup for Homepage Cards ---------- */
.card-browser-mockup {
  position: relative;
  width: 86%;
  height: 86%;
  background: var(--bg-1);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  transform: translateY(12px) rotateX(8deg) rotateY(-4deg);
  perspective: 1000px;
}

.project-card:hover .card-browser-mockup {
  transform: translateY(2px) rotateX(0deg) rotateY(0deg) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-color: var(--glass-border-hover);
}

.card-browser-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-browser-mockup img {
  transform: translateY(-10%);
}

/* ---------- 3D Phone Mockup for Homepage Cards ---------- */
.card-phone-mockup {
  position: relative;
  width: 110px;
  height: 210px;
  background: #111827;
  border-radius: 16px;
  border: 3.5px solid #1f2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
  transform: translateY(16px) rotateX(8deg) rotateY(4deg);
  perspective: 1000px;
}

.project-card:hover .card-phone-mockup {
  transform: translateY(6px) rotateX(0deg) rotateY(0deg) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border-color: var(--glass-border-hover);
}

.card-phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 2s ease;
}

.project-card:hover .card-phone-mockup img {
  transform: scale(1.04);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; padding: 36px 20px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border-soft); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border-soft); }
  
  .about-teaser { grid-template-columns: 1fr; padding: 44px; gap: 44px; }
}

@media (max-width: 600px) {
  .hero__name { font-size: clamp(2.4rem, 12vw, 6.2rem); }
  .stat { padding: 28px 16px; }
  .stat__num { font-size: 2rem; }
}

