.zespol-page {
  padding-top: 0;
  background: linear-gradient(135deg, rgba(74, 138, 77, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
  min-height: 100vh;
}

.zespol-hero {
  position: relative;
  background: linear-gradient(-45deg, #0f172a, #1e3a5f, #134e4a, #1e3a5f);
  background-size: 400% 400%;
  animation: heroGradientFlow 15s ease infinite;
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
}

.zespol-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(74, 138, 77, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.zespol-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 70%);
  animation: heroRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes heroGradientFlow {

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

  50% {
    background-position: 100% 50%;
  }
}

@keyframes heroRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.zespol-hero h1 {
    font-family: 'Rajdhani', sans-serif;
  position: relative;
  z-index: 1;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 80px rgba(74, 138, 77, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTextShine 3s ease-in-out infinite;
}

@keyframes heroTextShine {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 200% center;
  }
}

.zespol-hero p {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Inner Layout */
.zespol-hero .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.zespol-hero .hero-content {
  flex: 1;
  text-align: left;
}

.zespol-hero .hero-content p {
  margin: 0;
}

/* Hero Logo Styles */
.zespol-hero .hero-logo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.zespol-hero .hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(74, 138, 77, 0.6) 0%, rgba(99, 102, 241, 0.3) 40%, transparent 70%);
  filter: blur(40px);
  animation: logoGlowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.zespol-hero .hero-logo {
  position: relative;
  width: 200px;
  height: 200px;
  object-fit: contain;
  animation: logoFloat 6s ease-in-out infinite, logoMorph 8s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(74, 138, 77, 0.5)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.2));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zespol-hero .hero-logo:hover {
  transform: scale(1.1) rotateY(15deg);
  filter: drop-shadow(0 0 50px rgba(74, 138, 77, 0.8)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.4));
}

@keyframes logoGlowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) rotateY(0deg);
  }

  25% {
    transform: translateY(-15px) rotateY(5deg);
  }

  50% {
    transform: translateY(0) rotateY(0deg);
  }

  75% {
    transform: translateY(-10px) rotateY(-5deg);
  }
}

@keyframes logoMorph {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

@media (max-width: 768px) {
  .zespol-hero .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .zespol-hero .hero-content {
    text-align: center;
  }

  .zespol-hero .hero-logo {
    width: 150px;
    height: 150px;
  }

  .zespol-hero .hero-logo-glow {
    width: 200px;
    height: 200px;
  }
}

.team-members {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.members-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
  gap: 3rem;
  justify-content: center;
}

.member-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .member-card {
  background: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.member-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

[data-theme="dark"] .member-image {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 2rem;
}

.member-info h3 {
    font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

[data-theme="dark"] .member-info h3 {
  color: #fff;
}

.member-info .role {
  color: var(--light-green);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.member-info .description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .member-info .description {
  color: #999;
}

.member-socials {
  display: flex;
  gap: 1rem;
}

.member-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-green);
  color: white;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.member-socials a:hover {
  background: var(--accent-orange);
  transform: scale(1.1);
}

.team-values {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.team-values h2 {
    font-family: 'Rajdhani', sans-serif;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

[data-theme="dark"] .team-values h2 {
  color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

[data-theme="dark"] .value-item {
  background: #2a2a2a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-item i {
  font-size: 3rem;
  color: var(--light-green);
  margin-bottom: 1rem;
}

.value-item h4 {
    font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

[data-theme="dark"] .value-item h4 {
  color: #fff;
}

.value-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

[data-theme="dark"] .value-item p {
  color: #999;
}

@media (max-width: 768px) {
  .zespol-hero h1 {
    font-size: 2rem;
  }

  .members-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-values h2 {
    font-size: 1.8rem;
  }
}