.about-ball {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ff267e88 60%, #ff267e22 100%);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: about-ball-float 7s ease-in-out infinite;
}
.about-ball-1 {
    width: 120px; height: 120px;
    top: 38%; left: 18%;
    animation-delay: 0s;
}
.about-ball-2 {
    width: 90px; height: 90px;
    top: 22%; right: 20%;
    left: auto;
    animation-delay: 1.2s;
}
.about-ball-3 {
    width: 70px; height: 70px;
    top: 62%; right: 26%;
    left: auto;
    animation-delay: 2.5s;
}
.about-ball-4 {
    width: 60px; height: 60px;
    top: 17%; left: 35%;
    animation-delay: 3.6s;
}
@keyframes about-ball-float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-34px); }
    100% { transform: translateY(0); }
}

.about-hero {
    position: relative;
    z-index: 1;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.about-hero h1 {
    color: #ff267e;
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.about-hero p {
    color: #fff;
    font-size: 1.14rem;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.87;
}

.about-section-redcloud {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3.5rem;
    margin: 64px auto 0 auto;
    max-width: 1000px;
    padding: 2.2rem 1.2rem 2.7rem 1.2rem;
    position: relative;
    z-index: 2;
    background: #23233a;
    border-radius: 22px;
}

.history-section, .team-section, .footer {
    background: #23233a;
    border-radius: 22px;
    margin-top: 36px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

@media (max-width: 900px) {
    .about-section-redcloud,
    .history-section,
    .team-section,
    .footer {
        border-radius: 14px;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
}
.about-section-content {
    flex: 1 1 0;
    min-width: 0;
}
.about-section-title {
    color: #ff267e;
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 1.1rem;
    letter-spacing: 1px;
    text-align: left;
    position: relative;
    display: inline-block;
}
.about-section-title span {
    color: #ff267e;
}
.about-section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #ff267e 60%, #fff0 100%);
    border-radius: 2px;
    margin-top: 6px;
}
.about-section-lead, .about-section-lead-normal {
    font-size: 1.08rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.1rem;
    line-height: 1.7;
    text-align: left;
    letter-spacing: 0.01em;
}

.history-flex-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}


.history-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    margin-top: 3cm;
    margin-left: 0;
    min-width: 60px;
    position: relative;
    min-height: 360px;
}

.history-badge {
    background: #ff267e;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.36rem 1.25rem;
    border-radius: 100px;
    box-shadow: 0 2px 12px 0 #ff267e33;
    text-align: center;
    min-width: 54px;
    letter-spacing: 0.03em;
    margin-right: 0.3rem;
    margin-left: 0;
    display: block;
    position: relative;
    left: 0;
}
.history-badge-inactive {
    background: #16161f;
    color: #888;
    box-shadow: 0 1px 6px 0 #0008;
    opacity: 0.74;
}
.history-divider {
    width: 4px;
    min-width: 4px;
    height: 48px;
    background: linear-gradient(180deg, #ff267e 60%, #fff0 100%);
    border-radius: 2px;
    box-shadow: 0 0 18px 3px #ff267e44;
    margin: 0.2rem auto;
    display: block;
    margin-left: 45px;
    margin-right: 0;
}
.history-card {
    background: #23233a;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 #0002;
    padding: 1.4rem 2.2rem 1.4rem 2.2rem;
    max-width: 420px;
}
.history-card h3 {
    color: #ff267e;
    font-size: 1.13rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.history-card p {
    color: #fff;
    font-size: 1.01rem;
    opacity: 0.89;
    margin: 0;
}
@media (max-width: 900px) {
    .history-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.1rem;
    }
    .history-divider {
        width: 80px;
        height: 4px;
        min-width: unset;
        margin: 1.2rem auto;
        background: linear-gradient(90deg, #ff267e 60%, #fff0 100%);
    }
    .history-badge {
        min-width: 0;
        width: 100%;
        padding: 0.6rem 0;
        font-size: 1.05rem;
    }
    .history-card {
        max-width: 100%;
        padding: 1.2rem 1rem;
    }
}

.about-section-desc {
    font-size: 0.98rem;
    color: #e5e5e5;
    opacity: 0.86;
    margin-bottom: 0;
    text-align: left;
}
.about-section-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2cm;
}
.about-img {
    max-width: 350px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 6px 32px 0 #ff267e22, 0 1.5px 8px 0 #0004;
    background: #23233a;
    aspect-ratio: 16/10;
    object-fit: cover;
}

@media (max-width: 900px) {
    .about-section-redcloud {
        flex-direction: column;
        gap: 2.3rem;
        padding: 1.2rem 0.6rem 1.7rem 0.6rem;
        align-items: stretch;
    }
    .about-section-title, .about-section-lead, .about-section-desc {
        text-align: center;
        display: block;
    }
    .about-section-image {
        width: 100%;
        justify-content: center;
    }
    .about-img {
        max-width: 100%;
        border-radius: 14px;
    }
}

.history-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;

  margin: 70px auto 0 auto;
  max-width: 900px;
  padding: 0 1.2rem 2.7rem 1.2rem;
  position: relative;
  z-index: 2;
}
.history-title {
  color: #ff267e;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: 1px;
  text-align: left;
  position: relative;
  display: inline-block;
}
/* Kule przy tytule historii */
.history-title .about-ball {
  position: absolute;
  opacity: 0.32;
  z-index: 1;
  pointer-events: none;
}
.history-title .about-ball-1 { width: 38px; height: 38px; left: -46px; top: -18px; background: #ff267e55; }
.history-title .about-ball-2 { width: 28px; height: 28px; left: 50%; top: -30px; background: #ff267e33; }
.history-title .about-ball-3 { width: 32px; height: 32px; right: -36px; top: 10px; background: #ff267e44; }
.history-title .about-ball-4 { width: 22px; height: 22px; left: 80px; top: 36px; background: #ff267e22; }

.history-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #ff267e 60%, #fff0 100%);
  border-radius: 2px;
  margin-top: 6px;
}

.history-card {
  margin: 2.4rem auto 0 auto;
  background: #23233a;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 #ff267e22, 0 1.5px 8px 0 #0004;
  padding: 2.2rem 2.5rem 1.5rem 2.5rem;
  max-width: 900px;
}
.history-year {
  color: #ff267e;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: block;
}
.history-card h3 {
  color: #ff267e;
  font-size: 1.13rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.history-card p {
  color: #fff;
  font-size: 1.01rem;
  opacity: 0.89;
  margin: 0;
}
.history-year {
  display: block;
  font-size: 1.1rem;
  color: #ff267e;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.history-event h3 {
  color: #ff267e;
  font-size: 1.13rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.history-event p {
  color: #fff;
  font-size: 1.01rem;
  opacity: 0.89;
  margin: 0;
}

.team-section {
  margin: 80px auto 0 auto;
  max-width: 1200px;
  padding: 0 1.2rem 2.7rem 1.2rem;
  position: relative;
  z-index: 2;
}
.team-title {
  color: #ff267e;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: 1px;
  text-align: left;
  position: relative;
  display: inline-block;
}
.team-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #ff267e 60%, #fff0 100%);
  border-radius: 2px;
  margin-top: 6px;
}
.team-desc {
  color: #fff;
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2.2rem;
  text-align: center;
}
.team-cards {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.team-card {
  background: #23233a;
  border-radius: 15px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 16px 0 #0002;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  min-height: 350px;
  position: relative;
  transition: transform 0.18s cubic-bezier(.7,.2,.18,.89), box-shadow 0.18s cubic-bezier(.7,.2,.18,.89);
}
.team-card:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 0 32px 6px #ff267ecc, 0 0 12px 2px #fff2;
}
.team-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.1rem;
  background: #181824;
  border: 2.5px solid #ff267e44;
}
.team-name {
  font-size: 1.13rem;
  font-weight: 800;
  color: #ff267e;
  margin-bottom: 0.2rem;
  text-align: center;
}
.team-role {
  font-size: 0.99rem;
  color: #fff;
  opacity: 0.83;
  margin-bottom: 0.6rem;
  text-align: center;
}
.team-bio {
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.77;
  text-align: center;
}
.team-card-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #23233a99;
  color: #ff267e;
  font-weight: 700;
  font-size: 1.1rem;
  min-height: 350px;
  border: 2px dashed #ff267e55;
}

.footer {
  background: #191929;
  color: #fff;
  padding: 2.7rem 0 1.3rem 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 0 2px #ff267e22, 0 -2px 0 0 #ff267e;
  margin-top: 3.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2.5rem;
}
.footer-brand {
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 2.2rem;
}
.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
}
.footer-logo-accent {
  color: #ff267e;
}
.footer-desc {
  margin-top: 0.5rem;
  color: #bdbdbd;
  font-size: 1.03rem;
  font-weight: 400;
}
.footer-columns {
  display: flex;
  flex: 2 1 480px;
  gap: 3.2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.footer-col {
  min-width: 140px;
}
.footer-col-title {
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 0.7rem;
  display: inline-block;
  color: #fff;
  border-bottom: 2px solid #ff267e;
  padding-bottom: 0.15em;
  margin-bottom: 0.7em;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.5em;
}
.footer-col ul li a {
  color: #ff267e;
  text-decoration: none;
  font-size: 1.01rem;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.45em;
}
.footer-link-arrow {
  color: #ff267e;
  font-size: 1.18em;
  font-weight: 700;
  margin-right: 0.15em;
  pointer-events: none;
  user-select: none;
  transition: color 0.16s, filter 0.20s, transform 0.20s cubic-bezier(.4,1.5,.5,1);
  display: inline-block;
  position: relative;
  top: 1px;
}
.footer-col ul li a:hover .footer-link-arrow {
  color: #ff267e;
  filter: drop-shadow(0 0 8px #ff267e) drop-shadow(0 0 16px #ff267e);
  transform: translateX(5px);
}
.footer-social {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-left: auto;
  margin-top: 2.1rem;
}
.social-icon {
  width: 50px;
  height: 50px;
  background: #232234;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ff267e44;
  transition: background 0.22s, box-shadow 0.22s, filter 0.24s;
  margin-right: 0.1rem;
  color: #fff;
  font-size: 1.45rem;
}
.social-icon:hover {
  box-shadow: 0 0 0 3px #ff267d00, 0 0 16px 0 #ff267d00;
  filter: drop-shadow(0 0 8px #ff267d00) drop-shadow(0 0 16px #ff267d00);
  background: #23233a;
}
.footer-social .social-icon[aria-label="Discord"]:hover {
  box-shadow: 0 0 0 3px #5865F288, 0 0 32px 12px #5865F244, 0 0 64px 24px #5865F222;
}
.footer-social .social-icon[aria-label="Discord"]:hover svg {
  filter: drop-shadow(0 0 8px #5865F2) drop-shadow(0 0 16px #5865F2);
  fill: #5865F2;
}
.footer-social .social-icon[aria-label="TikTok"]:hover {
  box-shadow: 0 0 0 3px #ff267e88, 0 0 32px 12px #ff267e44, 0 0 64px 24px #ff267e22;
}
.footer-social .social-icon[aria-label="TikTok"]:hover i {
  filter: drop-shadow(0 0 8px #ff267e) drop-shadow(0 0 16px #ff267e);
  color: #ff267e;
}
.footer-social .social-icon[aria-label="GitHub"]:hover {
  box-shadow: 0 0 0 3px #0cf8, 0 0 32px 12px #0cf4, 0 0 64px 24px #0cf2;
}
.footer-social .social-icon[aria-label="GitHub"]:hover svg {
  filter: drop-shadow(0 0 8px #0cf) drop-shadow(0 0 16px #0cf);
  fill: #0cf;
}
.footer-social .social-icon[aria-label="YouTube"]:hover {
  box-shadow: 0 0 0 3px #ff174488, 0 0 32px 12px #ff174444, 0 0 64px 24px #ff174422;
}
.footer-social .social-icon[aria-label="YouTube"]:hover svg {
  filter: drop-shadow(0 0 8px #ff1744) drop-shadow(0 0 16px #ff1744);
  fill: #ff1744;
}
.social-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.footer-bottom {
  border-top: 1px solid #232234;
  margin-top: 2.3rem;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  color: #bdbdbd;
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.7rem;
  }
  .footer-social {
    margin-left: 0;
    margin-top: 1.3rem;
  }
  .footer-columns {
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .footer-main, .footer-bottom {
    max-width: 98vw;
    flex-direction: column;
    gap: 1.1rem;
  }
  .footer-col {
    min-width: 0;
  }
}
