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

/* ==========================================================================
   CSS VARIABLES & GLOBAL DESIGN TOKENS
   ========================================================================== */
:root {
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary-teal: #0d9488;
  --primary-cyan: #0891b2;
  --primary-dark: #0f172a;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* ==========================================================================
   CUSTOM MODERN SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
}

.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.35);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.7);
}

/* ==========================================================================
   GLASSMORPHISM & GLOW EFFECTS
   ========================================================================== */
.card-glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-glow {
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.15) 0%, rgba(13, 148, 136, 0.08) 40%, transparent 70%);
}

.dark .hero-glow {
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.22) 0%, rgba(13, 148, 136, 0.15) 45%, transparent 75%);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.03);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s infinite ease-in-out;
}

/* ==========================================================================
   PWA INSTALL BANNER & TOAST
   ========================================================================== */
#pwaInstallBanner {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#pwaInstallBanner.hidden-banner {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   PRINT STYLES FOR CV / RESUME EXPORT (PDF)
   ========================================================================== */
@media print {
  @page {
    margin: 1.2cm;
    size: A4 portrait;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .no-print,
  #pwaInstallBanner,
  #themeToggle,
  #langToggle,
  header,
  footer,
  #kontakt form {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .shadow-xl, .shadow-lg, .shadow-md, .shadow-sm, .shadow {
    box-shadow: none !important;
  }

  .border, [class*="border-"] {
    border-color: #cbd5e1 !important;
  }

  .card-glass, .bg-slate-50, .bg-slate-900, .bg-slate-800 {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .page-break {
    page-break-before: always;
  }

  a {
    text-decoration: none !important;
    color: #0f172a !important;
  }

  /* Ensure text colors are sharp on printer output */
  .text-teal-600, .text-cyan-600, .text-emerald-600 {
    color: #0d9488 !important;
    font-weight: 700;
  }
}
