*::selection {
  background-color: #ff253b;
  color: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  background-color: #0a1318;
  font-family: 'Barlow Condensed', sans-serif;
  color: white;
  line-height: 1.5;
  margin: 0;
  position: relative;
}

h1, h2, h3, .portfolio-demo-box {
  font-family: 'Figtree', sans-serif; /* Tylko dla nagłówków i sekcji demo */
}


/* Pasek logo + menu */
.header-bar {
  position: absolute;
  top: 0; /* Zaczyna się od samego szczytu */
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 1.5rem 0; /* Używamy rem dla bardziej stabilnych odstępów */
}

/* Header z naturalną wysokością */
.site-header {
  background: url('img/header.webp') no-repeat center/cover;
  width: 100%;
  height: auto; /* Naturalna wysokość w zależności od obrazu */
  min-height: 72vh; /* Można ustawić minimalną wysokość, jeśli obrazek nie ma wystarczającej wysokości */
}

.container {
  max-width: 90rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.logo {
  max-width: 24%;
  height: auto;
  transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
  transform-origin: center;
  will-change: transform, filter;
}

/* Główna animacja hover */
.logo:hover {
  transform: scale(1.08) rotate(-1deg) translateY(-4px);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.25));
}

/* Animacja błysku dla SVG */
.logo svg {
  overflow: visible;
}

.logo:hover svg path {
  animation: flash 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flash {
  0% {
    opacity: 1;
    fill: currentColor;
  }
  20% {
    opacity: 0.8;
    fill: #ffffff;
  }
  40% {
    opacity: 1;
    fill: currentColor;
  }
  60% {
    opacity: 0.9;
    fill: #ffffff;
  }
  100% {
    opacity: 1;
    fill: currentColor;
  }
}


/* Główny kontener */
.audio-player {
  width: 100%;
  background: #0a191f;
  padding: 1rem;
  border-radius: 2rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Przyciski kontrolne */
.play-btn {
  background: #1af6dd;
  color: #071014;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 0.2rem rgba(26, 246, 221, 0.3);
}

.play-btn.playing {
  background: #00b4db;
  animation: pulse 2s infinite;
}

/* Animacje */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 246, 221, 0.7); }
  70% { box-shadow: 0 0 0 0.5rem rgba(26, 246, 221, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 246, 221, 0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-spinner {
  animation: spin 1s linear infinite;
  color: #000;
}

/* Pasek postępu */
.progress-container {
  flex: 1;
  height: 0.5rem;
  background: #122d38;
  border-radius: 0.25rem;
  cursor: pointer;
  min-width: 5rem;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #1af6dd, #00b4db);
  border-radius: 0.25rem;
  transition: width 0.1s linear;
}

/* Wyświetlacz czasu */
.time {
  color: #304a54;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.92rem;
  min-width: 6rem;
  text-align: center;
  flex-shrink: 0;
}

/* Kontrolka głośności */
.volume-control {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  color: #1af6dd;
  transition: transform 0.2s;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-btn:hover {
  transform: scale(1.1);
}

.volume-slider {
  width: 5rem;
  height: 0.5rem;
  -webkit-appearance: none;
  background: transparent; /* Tło podstawowe - przezroczyste */
  outline: none;
  cursor: pointer;
}

/* Tło paska (track) */
.volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  background: #122d38;
  border-radius: 0.5rem;
  overflow: hidden; /* Działa tylko w niektórych przeglądarkach */
}

/* Wypełnienie paska (dla WebKit) */
.volume-slider::-webkit-slider-runnable-track::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--fill-percent, 100%);
  background: linear-gradient(to right, #1af6dd, #00b4db);
  border-radius: 0.5rem;
}

/* Dla Firefox */
.volume-slider::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  background: #122d38;
  border-radius: 0.5rem;
}

.volume-slider::-moz-range-progress {
  background: linear-gradient(to right, #1af6dd, #00b4db);
  height: 100%;
  border-radius: 0.5rem;
}

/* Kciuk (thumb) */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #1af6dd;
  border: 2px solid #1af6dd;
  margin-top: -0.25rem; /* Wyśrodkowanie */
}

.volume-slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #1af6dd;
  border: 2px solid #1af6dd;
}

/* Przycisk pobierania */
.download-btn {
  color: #1af6dd;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.download-btn:hover {
  transform: scale(1.1);
}

/* Ikona Font Awesome */
.download-btn .fas {
  font-size: 1.2rem;
}

