/* Podstawowe style */
html { 
  scroll-behavior: smooth; 
}

.container { 
  max-width: 1200px; 
}

.focus-ring:focus { 
  outline: 2px solid #0ea5e9; 
  outline-offset: 2px; 
}

/* Header font style */
header .company-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

/* Animacje scroll - WYŁĄCZONE dla lepszej wydajności */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Logo styles */
header img[alt*="Logo"] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

header img[alt*="Logo"]:hover {
  transform: scale(1.05);
}

/* Mobile menu - ukryj na dużych ekranach */
@media (min-width: 768px) {
  #mobileMenu {
    display: none !important;
  }
}

/* Logo styles for dark backgrounds */
.bg-gradient-to-br img[alt*="Logo"],
footer img[alt*="Logo"] {
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: white;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  color: #64748b;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.close:hover,
.close:focus {
  color: #0f172a;
  background-color: #f1f5f9;
  transform: rotate(90deg);
}

/* Animacje */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Animacja dzwoniącej słuchawki */
@keyframes ring {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  50% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.phone-icon {
  display: inline-block;
  animation: ring 2s ease-in-out infinite;
}

.phone-icon:hover {
  animation: ring 0.5s ease-in-out infinite;
}

/* Animacja cyfr numeru telefonu - loop z 5s przerwą */
@keyframes digitPress {
  0%, 6%, 100% { 
    transform: scale(1);
    color: inherit;
  }
  3% { 
    transform: scale(1.3);
    color: #22c55e; /* zielony */
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  }
}

.phone-number span {
  display: inline-block;
  animation: digitPress 6s ease-in-out infinite;
  transform-origin: center center;
  transition: all 0.2s ease;
}

/* Każda cyfra animuje się po kolei - jedna po drugiej */
/* Animacja trwa 0.9s (9 cyfr × 0.1s), potem 5s przerwy = 6s całość */
.phone-number span:nth-child(1) { animation-delay: 0s; }
.phone-number span:nth-child(2) { animation-delay: 0.1s; }
.phone-number span:nth-child(3) { animation-delay: 0.2s; }
.phone-number span:nth-child(4) { animation-delay: 0.3s; }
.phone-number span:nth-child(5) { animation-delay: 0.4s; }
.phone-number span:nth-child(6) { animation-delay: 0.5s; }
.phone-number span:nth-child(7) { animation-delay: 0.6s; }
.phone-number span:nth-child(8) { animation-delay: 0.7s; }
.phone-number span:nth-child(9) { animation-delay: 0.8s; }

/* Po najechaniu animacja pomarańczowa (szybsza) */
.phone-number:hover span {
  animation: digitPressHover 3s ease-in-out infinite;
}

@keyframes digitPressHover {
  0%, 10%, 100% { 
    transform: scale(1);
    color: inherit;
  }
  5% { 
    transform: scale(1.4);
    color: #f97316; /* pomarańczowy */
    text-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
  }
}
