/* --- ACCORDION SERVICES --- */
.accordion-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

/* Usunięto ::before i wave-effect, ponieważ efekt glow będzie na nagłówkach */

.accordion-item {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(2, 5, 2, 0.7)); /* Ciemne, subtelne tło */
  border-radius: 12px;
  border: none; /* Brak tradycyjnej ramki */
  box-shadow: 0 0 0 rgba(0,0,0,0); /* Reset cieni */
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); /* Lekki cień na hover */
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.4rem; /* Dostosowany padding */
  background: transparent; /* Tło będzie na accordion-item */
  border: none;
  border-bottom: 1px solid rgba(123, 255, 59, 0.2); /* Subtelna neonowa ramka dolna */
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: #e5e7eb; /* Domyślny kolor tekstu nagłówka */
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* Efekt "glow" na hover i aktywny stan */
.accordion-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 224, 255, 0.05), rgba(255, 47, 168, 0.05)); /* Delikatny gradient glow */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.accordion-header:hover::before {
  opacity: 1; /* Pokaż glow na hover */
}

.accordion-item.active .accordion-header::before {
  opacity: 1; /* Stały glow dla aktywnego elementu */
  background: linear-gradient(90deg, rgba(0, 224, 255, 0.1), rgba(255, 47, 168, 0.1)); /* Mocniejszy glow dla aktywnego */
}

.accordion-header:hover {
  color: var(--terminal-green); /* Zmiana koloru tekstu na neon zielony na hover */
}

.accordion-item.active .accordion-header {
  color: var(--terminal-green); /* Zmiana koloru tekstu na neon zielony dla aktywnego */
}

.accordion-header .icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--accent-cyan); /* Domyślny kolor ikony */
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-header:hover .icon {
  transform: scale(1.1);
  color: var(--terminal-green); /* Neon zielony na hover */
}

.accordion-item.active .accordion-header .icon {
  color: var(--terminal-green); /* Neon zielony dla aktywnej ikony */
  transform: rotate(180deg); /* Obróć ikonę w aktywnym stanie */
}

/* Nowa klasa dla ikony w nagłówku, aby kontrolować obrót */
.accordion-title-content-wrapper h3 .header-icon {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.1em;
  transition: transform 0.3s ease;
  vertical-align: middle;
  line-height: 1;
  color: #e5e7eb; /* Domyślny kolor strzałki */
}

.accordion-item.active .accordion-title-content-wrapper h3 .header-icon {
  transform: rotate(180deg);
  color: var(--terminal-green); /* Neon zielony dla aktywnej strzałki */
}

.accordion-title-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; /* Dla z-index */
  z-index: 1; /* Aby tekst był nad glow */
}

.accordion-title-content-wrapper h3 {
  margin-bottom: 0.2rem;
  color: #f9fafb; /* Domyślny kolor tytułu */
  transition: color 0.3s ease;
}

.accordion-header:hover .accordion-title-content-wrapper h3,
.accordion-item.active .accordion-title-content-wrapper h3 {
    color: var(--terminal-green); /* Neon zielony na hover i w aktywnym */
}

.accordion-title-content-wrapper .header-short-desc { /* Zmieniono selektor */
  font-size: 0.85rem;
  color: #cbd5e1; /* Jaśniejszy szary dla krótkiego opisu */
  max-width: none;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.accordion-header:hover .accordion-title-content-wrapper .header-short-desc,
.accordion-item.active .accordion-title-content-wrapper .header-short-desc {
    color: #f9fafb; /* Jaśniejszy na hover i aktywny */
}

.accordion-content {
  background: rgba(2, 5, 2, 0.9); /* Ciemne, prawie czarne tło treści */
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out, opacity 0.5s ease-out; /* Płynniejsza animacja */
  opacity: 0; /* Domyślnie niewidoczne */
  color: #e5e7eb; /* Domyślny kolor tekstu w treści */
}

.accordion-item.active .accordion-content {
  max-height: 9999px;
  padding: 1.4rem;
  opacity: 1; /* Widoczne w aktywnym stanie */
}

.accordion-content p, .accordion-content h4, .accordion-content ul, .accordion-content strong, .accordion-content li {
  color: #e5e7eb; /* Zapewnij jasny tekst w treści akordeonu */
}

.accordion-content ul {
  list-style: none;
  padding-left: 0;
}

.accordion-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.accordion-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--terminal-green); /* Neonowy zielony punktor */
  border-radius: 2px;
  transform: translateY(-50%);
}

/* Usunięto @keyframes pulse-glow */

#services {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(245,245,247,0.8) 15%, rgba(245,245,247,1) 50%, rgba(245,245,247,0.8) 85%, rgba(255,255,255,0) 100%);
    padding-top: 2rem;
    padding-bottom: 2rem;
}
