/* Critical CSS - Błękitna Żyrafa */
/* Podstawowe style ładowane natychmiast */

:where([class^="ri-"])::before { content: "\f3c2"; }

html, body {
  font-family: 'Lato', sans-serif;
  background-color: #F8FDFF;
  overflow-x: hidden;
  max-width: 100%;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* Nawigacja - widoczna od razu */
nav {
  background: linear-gradient(to right, #eff6ff, #dbeafe, #bfdbfe);
}

/* Hero section */
.hero-section {
  background-size: cover;
  background-position: center;
}

/* Animowana żyrafa */
.animated-giraffe {
  position: absolute;
  right: calc(10% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 500px;
  background-size: contain;
  background-repeat: no-repeat;
  animation: float 3s ease-in-out infinite;
}

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

/* Speech bubble */
.speech-bubble {
  position: absolute;
  top: -80px;
  right: 50%;
  transform: translateX(50%);
  background: white;
  border-radius: 20px;
  padding: 15px 25px;
  font-size: 20px;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  min-width: 200px;
  text-align: center;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.speech-bubble.active {
  opacity: 1;
}

/* Service cards */
.service-card {
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card img {
  transition: transform 0.5s ease;
}

/* Team cards */
.team-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(63, 169, 245, 0.15);
  border-top: 4px solid transparent;
  backdrop-filter: blur(8px);
  max-width: 100%;
  width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8fdff 100%);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 40px -15px rgba(63, 169, 245, 0.25),
    0 10px 20px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(63, 169, 245, 0.3);
  border-top: 4px solid #3FA9F5;
  background: linear-gradient(180deg, rgba(63, 169, 245, 0.08) 0%, #ffffff 15%, #f8fdff 100%);
}

/* Team card photo */
.team-card .w-32.h-32 {
  transition: all 0.4s ease;
  border: 4px solid #AEE2FF !important;
  box-shadow: 0 8px 25px -8px rgba(63, 169, 245, 0.4);
}

.team-card:hover .w-32.h-32 {
  transform: scale(1.08);
  border-color: #3FA9F5 !important;
  box-shadow: 0 12px 35px -10px rgba(63, 169, 245, 0.5);
}

.team-card .w-32.h-32 img {
  transition: transform 0.5s ease;
}

.team-card:hover .w-32.h-32 img {
  transform: scale(1.1);
}

/* Team card name */
.team-card h3 {
  transition: color 0.3s ease;
  position: relative;
}

.team-card:hover h3 {
  color: #3FA9F5;
}

/* Team card specialty tags */
.team-card p span[class*="bg-"] {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.team-card:hover p span[class*="bg-"] {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.2);
}

/* Team card description – pełny tekst zawsze widoczny, bez zmian wysokości */
.team-card p.text-gray-700 {
  position: relative;
}

/* Form elements */
input:focus, textarea:focus {
  outline: none;
  border-color: #98E8D5;
  box-shadow: 0 0 0 3px rgba(152, 232, 213, 0.25);
}

/* Gradient background */
.gradient-background {
  background: linear-gradient(-45deg, rgba(174, 226, 255, 0.5), rgba(253, 253, 189, 0.4), rgba(152, 232, 213, 0.5), rgba(199, 206, 234, 0.4));
  background-size: 400% 400%;
  animation: gradient 20s ease infinite;
}

@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Custom checkbox */
.custom-checkbox {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid #AEE2FF;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

.custom-checkbox:checked {
  background-color: #98E8D5;
  border-color: #98E8D5;
}

/* Announcement banner */
.announcement-banner {
  height: 50px;
  background: linear-gradient(135deg, #3FA9F5, #5BB3F7, #AEE2FF, #98E8D5);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
  box-shadow: 0 2px 8px rgba(63, 169, 245, 0.3);
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.announcement-banner.hidden {
  transform: translateY(-100%);
}

.announcement-content {
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scrollLeft 20s linear infinite;
}

.announcement-text {
  display: inline-block;
  padding-left: 100%;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

@keyframes scrollLeft {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glow warning */
.glow-warning {
  animation: subtleGlow 3s ease-in-out infinite;
  background: linear-gradient(45deg, #fee2e2 0%, #fff1f1 50%, #fee2e2 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
}

@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 0 2px rgba(239, 68, 68, 0.1); transform: scale(1); }
  50% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.2); transform: scale(1.005); }
}

/* Zyrafka pulse animation */
@keyframes zyrafkaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-zyrafka {
  animation: zyrafkaPulse 3s ease-in-out infinite;
  transform-origin: center;
}

.animate-zyrafka:hover {
  animation: zyrafkaPulse 1s ease-in-out infinite;
}

/* Text gradient animation */
@keyframes textGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Team slider navigation */
#prev-team, #next-team {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid rgba(63, 169, 245, 0.2);
  transition: all 0.3s ease;
}

#prev-team:hover, #next-team:hover {
  background: linear-gradient(145deg, #3FA9F5 0%, #5BB3F7 100%);
  border-color: #3FA9F5;
  transform: translateY(-50%) scale(1.1);
}

#prev-team:hover i, #next-team:hover i {
  color: white;
}

#prev-team i, #next-team i {
  color: #3FA9F5;
  transition: color 0.3s ease;
}

/* Team slider indicators */
.team-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.team-indicator:hover {
  transform: scale(1.3);
}

.team-indicator.bg-primary {
  width: 32px;
  border-radius: 6px;
  background: linear-gradient(90deg, #3FA9F5, #5BB3F7) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .announcement-banner {
    height: 45px;
    top: 80px;
  }
  
  .announcement-text {
    font-size: 14px;
  }
  
  .announcement-content {
    animation: scrollLeft 18s linear infinite;
  }
  
  #home.hero-section {
    margin-top: 125px !important;
  }
  
  #team-slider {
    cursor: grab;
  }
  
  #team-slider:active {
    cursor: grabbing;
  }
  
  .overflow-x-auto {
    overflow-x: visible;
  }
  
  .price-content table {
    width: 100%;
    min-width: auto;
    font-size: 12px;
    table-layout: fixed;
  }
  
  .price-content th,
  .price-content td {
    padding: 6px 2px;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .announcement-banner {
    height: 40px;
    top: 80px;
  }
  
  .announcement-text {
    font-size: 13px;
  }
  
  .announcement-content {
    animation: scrollLeft 15s linear infinite;
  }
  
  #home.hero-section {
    margin-top: 120px !important;
  }
}

