/* ==========================================================================
   ELEKTRO-BUD Wiktor Lazar – Elektryk Rybnik
   Główny arkusz stylów (style.css)
   Gotowy do bezpośredniego wdrożenia na dowolnym hostingu WWW
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Efekt szkła (Glassmorphism) */
.glass {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Gradient tekstu */
.text-gradient {
  background: linear-gradient(to right, #a3e635, #bef264);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Płynna animacja zmiany zdjęć w tle sekcji Hero (co 5 sekund) */
.hero-bg-slide {
  transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1), transform 1200ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Animacja płynnego pojawiania się okien modalnych */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Zaznaczenie tekstu */
::selection {
  background-color: #a3e635;
  color: #0f172a;
}

/* Dostosowanie paska przewijania */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a3e635;
}
