/* ==========================================================================
   JONAS WEBER - PERSONAL PORTFOLIO DESIGN SYSTEM
   Domain: www.w383r.com | Senior Frontend Developer & IT Key Expert @ Siemens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Dark Slate & Siemens Teal/Cyan Accent */
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 210, 255, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-teal: #00e6a8;
  --accent-cyan: #00d2ff;
  --accent-blue: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #00e6a8 0%, #00d2ff 50%, #3b82f6 100%);
  --accent-glow: rgba(0, 230, 168, 0.18);

  --siemens-teal: #009999;
  --siemens-teal-light: #00e6a8;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(0, 230, 168, 0.15);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1200px;
  --header-height: 80px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 153, 153, 0.3);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-teal: #009999;
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-gradient: linear-gradient(135deg, #009999 0%, #0284c7 50%, #2563eb 100%);
  --accent-glow: rgba(0, 153, 153, 0.12);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 35px rgba(0, 153, 153, 0.1);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

main {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Ambient Background Lights */
.bg-glow-1, .bg-glow-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-teal);
  top: -100px;
  left: -100px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  bottom: 10%;
  right: -150px;
}

/* Utility Containers */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-teal);
  background: var(--accent-glow);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Text Formatting & Gradients */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  background: rgba(8, 12, 20, 0.75);
  transition: all var(--transition-fast);
}

[data-theme="light"] .header {
  background: rgba(248, 250, 252, 0.85);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  background: var(--accent-gradient);
  color: #080c14;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switcher Button */
.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #080c14;
  box-shadow: 0 4px 15px rgba(0, 230, 168, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 230, 168, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 153, 153, 0.15);
  border: 1px solid rgba(0, 230, 168, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.email-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.email-pill:hover {
  border-color: var(--accent-teal);
  color: var(--text-primary);
}

.copy-icon {
  color: var(--accent-teal);
}

/* Hero Avatar / Card Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  width: 360px;
  height: 480px;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}

.floating-card.card-1 {
  top: -20px;
  left: -40px;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 20px;
  right: -30px;
  animation-delay: 2s;
}

.floating-card.card-3 {
  bottom: -20px;
  left: 20px;
  animation-delay: 1s;
}

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

/* Metrics Counter Bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 5rem;
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Expertise / Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Timeline & Filters */
.timeline-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gradient);
  color: #080c14;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 230, 168, 0.25);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-teal), rgba(0, 210, 255, 0.1));
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2.5rem;
  transition: all var(--transition-normal);
}

.timeline-item.hidden {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 19px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-teal);
  transform: scale(1.2);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-teal);
  background: var(--accent-glow);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  font-weight: 600;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Awards Grid */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-teal);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.award-year {
  font-family: var(--font-mono);
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.award-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.award-org {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Skills Matrix */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.skill-category {
  display: flex;
  flex-direction: column;
}

.skill-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 3.2rem;
}

.skill-category-title svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-name {
  flex: 1;
  line-height: 1.35;
}

.skill-level {
  font-family: var(--font-mono);
  color: var(--accent-teal);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
}

.bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Volunteering Section */
.volunteering-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.volunteering-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Contact Section */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.contact-email {
  font-size: 2.2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  margin: 1.5rem 0 2.5rem 0;
  color: var(--text-primary);
  word-break: break-all;
}

/* Toast Alert */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--accent-teal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 1rem 1.8rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-teal);
}

.btn-text-short {
  display: none;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-bio {
    max-width: 100%;
  }

  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-nav {
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.15rem;
    white-space: nowrap;
  }

  .nav-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .theme-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .header .nav-contact-btn {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }

  .header .nav-contact-btn .btn-text {
    display: none;
  }

  .header .nav-contact-btn svg {
    margin: 0;
  }

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-dot {
    left: 9px;
  }

  .avatar-wrapper {
    width: 280px;
    height: 380px;
    max-width: 85vw;
  }

  .floating-card {
    font-size: 0.75rem;
    padding: 0.45rem 0.8rem;
  }

  .floating-card.card-1 {
    top: -15px;
    left: 0;
  }

  .floating-card.card-2 {
    bottom: 15px;
    right: 0;
  }

  .floating-card.card-3 {
    bottom: -15px;
    left: 10px;
  }

  .contact-email {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .avatar-wrapper {
    width: 250px;
    height: 340px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .floating-card.card-1 {
    left: 0;
    top: -10px;
  }

  .floating-card.card-2 {
    right: 0;
    bottom: 10px;
  }

  .email-pill span {
    font-size: 0.8rem;
  }
}
