:root {
  /* Kolory KNB – wersja Lovable */
  --green: #4ade80;
  --green-dark: #1c7f3a;

  /* Tło globalne (Opcja A – jedno tło) */
  --bg-1: #0c110d;
  --bg-2: #080b09;

  /* Teksty */
  --text-main: #eaf3ec;
  --text-soft: #cfe8d3;

  /* Karty / obramowania */
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
  --shadow-soft: rgba(0,0,0,0.25);
  --shadow-strong: rgba(28,127,58,0.25);

  --glow: rgba(0,255,120,0.15);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden; }

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  line-height: 1.6;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Kontenery */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 120px 0;
  width: 100%;
}

.section-title {
  text-align: center;
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--text-main);
  font-size: clamp(28px, 4vw, 40px);
}
.nav-blur {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(18px);
  background: rgba(10, 14, 12, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 8px 25px rgba(0,255,120,0.05);
}

.nav-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 42px;
  filter: drop-shadow(0 0 6px rgba(0,255,140,0.25));
}

.nav-logo span {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center; 
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: color .25s ease;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  filter: brightness(1.1);
}
.hero-modern {
  padding: 140px 0 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  background: radial-gradient(circle at 30% 20%, rgba(40,140,70,0.20), transparent 60%),
              linear-gradient(180deg, #0f1411, #0a0e0a);
  position: relative;
}

.hero-content {
  max-width: 600px;
  margin-left: 6%;
}

.hero-modern h1 {
  font-size: clamp(40px, 6vw, 70px);
  color: var(--text-main);
  margin: 0 0 20px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0,255,100,0.05);
}

.accent-green { color: var(--green); }

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-soft);
  margin-top: 10px;
}

.hero-btn {
  margin-top: 30px;
  display: inline-block;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  padding: 14px 32px;
  color: white;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  transition: all .3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.hero-image img {
  width: clamp(260px, 30vw, 380px);
  filter: drop-shadow(0 0 25px rgba(0,255,120,0.35));
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 60% 70%, rgba(0,255,140,0.15), transparent 70%);
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.about-modern {
  padding: 140px 0;
  background: none; /* tło globalne */
}

.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.badge-green {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(60, 200, 90, 0.15);
  border: 1px solid rgba(60, 200, 90, 0.3);
  color: var(--green);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.about-title-modern {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 22px;
}

.about-par {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 16px;
  line-height: 1.65;
}

/* ===== SLIDESHOW ===== */

.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.fancy-slideshow {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(20, 26, 20, 0.6);
  border: 1px solid rgba(80,255,120,0.18);
  box-shadow:
    0 0 35px rgba(0,255,120,0.12),
    inset 0 0 25px rgba(0,255,120,0.04);
}

/* domyślnie wszystkie zdjęcia schowane */
.fancy-slideshow .slide {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* aktywne zdjęcie – pokazane */
.fancy-slideshow .slide.active {
  display: block;
}

.fancy-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,255,120,0.15), transparent 70%);
  z-index: -1; /* glow POD zdjęciami */
}



@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .fancy-slideshow {
    max-height: 300px;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 28px;
}

.tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  color: var(--text-main);
  transition: transform .25s ease, box-shadow .3s ease;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px var(--shadow-strong);
}

.tile__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(28,127,58,0.15);
  border: 1px solid rgba(28,127,58,0.35);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.tile p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tile__image img {
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.95);
  transition: .3s transform, .3s filter;
}

.tile:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 32px;
  margin-top: 40px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 0 35px var(--shadow-soft);
  transition: transform .25s ease, box-shadow .3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 50px var(--shadow-strong);
}

.project-card h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 1.4rem;
  line-height: 1.3;
}

.project-card p {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card .tags span {
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  background: rgba(28,127,58,0.18);
  border: 1px solid rgba(28,127,58,0.35);
  color: #a8e3b6;
}
/* ===== TEAM SLIDER FIX ===== */

.team-slider {
  position: relative;
  width: 100%;
  overflow: hidden;        /* to zostaje */
  padding: 0 60px;         /* miejsce na strzałki */
}

.team-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;        /* KLUCZ: musi być auto, nie hidden */
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;

  /* KLUCZOWE NA MOBILE – żeby karty były widoczne od lewej */
  scroll-padding-left: 0;
  scroll-snap-align: start;
}

.team-track::-webkit-scrollbar {
  display: none;
}


.person {
  flex: 0 0 260px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 30px 20px 26px;
  text-align: center;
  scroll-snap-align: center;
  transition: transform .25s ease, box-shadow .3s ease;
  box-shadow: 0 0 35px var(--shadow-soft);
}

.person:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 50px var(--shadow-strong);
}

.person h4 {
  color: var(--text-main);
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.person .muted {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.person img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 2px solid rgba(28,127,58,0.35);
}

/* ===== ARROWS ===== */

.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff !important;      /* biały znaczek ‹ › */
  font-size: 1.6rem;
  z-index: 100;
}

.team-arrow.left {
  left: 30px;
}

.team-arrow.right {
  right: 30px;
}

.team-arrow:hover {
  background: rgba(0, 0, 0, 0.95);
}


.contact {
  padding: 120px 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

/* ===== CONTACT FIX ===== */
.ci {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;   /* zero domyślnego underline */
  color: var(--text-main);
  transition: border-color .25s ease, box-shadow .3s ease, transform .2s ease;
}

.ci__icon {
  width: 48px;
  height: 48px;
  background: rgba(0,255,120,0.12);
  border-radius: 12px;
  border: 1px solid rgba(0,255,120,0.25);
  display: grid;
  place-items: center;
}

.ci__icon svg {
  width: 26px;
  height: 26px;
  fill: var(--green);
}

.ci a,
.ci a:visited {
  text-decoration: none;
  color: var(--text-main) !important;
  font-weight: 600;
}

.ci:hover {
  border-color: rgba(0, 255, 120, 0.4);
  box-shadow: 0 0 32px rgba(0, 255, 120, 0.25);
  transform: translateY(-1px);
}

.ci__text {
  font-weight: 600;
  color: var(--text-main);
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 0 35px var(--shadow-soft);
}

.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #101619;
  color: var(--text-main);
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28,127,58,0.35);
}

.btn--primary {
  background: var(--green-dark);
  padding: 12px 20px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
/* ===== 3D PORTFOLIO WRAPPER ===== */
.carousel-wrapper3d {
  position: relative;
  max-width: 780px; /* było ok. 980 → zmniejszamy */
  margin: 0 auto;
  perspective: 1200px;
  padding-top: 40px;
}

/* odstęp od tytułu sekcji */
#portfolio3d {
  margin-top: 40px;
}

/* ===== STAGE ===== */
.carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 520px; /* mniejsze o ~15–20% */
  margin: 0 auto;
  transform-style: preserve-3d;
}

.carousel-item {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transition: transform .6s ease, opacity .6s ease, filter .4s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* centrum = większa jasność */
.carousel-item.is-center {
  filter: brightness(1.05);
}

/* overlay */
.carousel-item .card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  opacity: .9;
}

.carousel-item.is-center .card__overlay {
  opacity: 1;
}

/* strzałki */
.carousel-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(28,127,58,0.18);
  border: 1px solid rgba(28,127,58,0.35);
  color: white;
  cursor: pointer;
  font-size: 1.8rem;
  z-index: 5;
  transition: background .3s;
}

.carousel-arrow.left { left: -20px; }
.carousel-arrow.right { right: -20px; }

.carousel-arrow:hover {
  background: rgba(28,127,58,0.35);
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  .carousel-stage {
    max-width: 360px;
    aspect-ratio: 1/1;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
.footer {
  background: #101619;
  padding: 30px 0;
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  transition: background .3s, transform .25s ease, border-color .3s;
}

.footer-icon:hover {
  background: rgba(28,127,58,0.25);
  border-color: rgba(28,127,58,0.4);
  transform: translateY(-2px);
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: #a8e3b6;
}

.copy {
  margin-top: 20px;
  text-align: center;
  color: #8fa2b1;
  font-size: 0.9rem;
}
.section { padding: 140px 0; }

@media (max-width: 900px) {
  .section { padding: 110px 0; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
.container, .section, header, footer {
  overflow-x: clip;
}

/* Karuzele – NIE dotykamy już team-track */
.carousel,
.carousel-stage,
.team-slider {
  max-width: 100%;
  overflow: hidden;
}


/* Zapobiega przesuwaniu layoutu przez 3D */
.carousel-item { contain: layout paint size; }

.section-title {
  text-align: center;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 60px;
  text-shadow: 0 0 18px rgba(0,255,120,0.12);
  letter-spacing: 0.5px;
}


/* --- ABOUT: pomniejszamy zdjęcia --- */

.fancy-slideshow {
  max-width: 420px;         /* kontrola szerokości całego boxa */
  margin: 0 auto;           /* centrowanie */
}

.fancy-slideshow .slide {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

/* --- TEAM: centrowanie zdjęć --- */

.person img {
  display: block;
  margin: 0 auto;          /* wycentrowanie poziome */
  width: 120px;            /* ewentualnie zmniejszamy */
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--green);  /* zostaje estetyczna obwódka */
}

/* --- ABOUT: pomniejszamy zdjęcia --- */

.fancy-slideshow {
  max-width: 600px;         /* kontrola szerokości całego boxa */
  margin: 0 auto;           /* centrowanie */
}

.fancy-slideshow .slide {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}



body {
  background: #050908; /* ciemne tło po bokach */
}

/* pionowy pas na środku o szerokości zbliżonej do contentu */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 100vw - 40px);  /* szerokość paska – możesz zmieniać */
  height: 100vh;
  pointer-events: none;
  z-index: -1;

  background:
    /* lekki zielony glow u góry i dołu */
    radial-gradient(circle at 50% 0%, rgba(0, 255, 140, 0.027), transparent 80%),
    radial-gradient(circle at 50% 100%, rgba(0, 255, 140, 0.027), transparent 80%),
    /* główne tło paska – trochę jaśniejsze niż boki */
    linear-gradient(180deg, #07130c 0%, #060f0a 50%, #050a07 100%);

  box-shadow:
    0 0 80px rgba(0, 0, 0, 0.9),
    0 0 120px rgba(0, 255, 120, 0.18);  /* subtelna poświata na krawędziach paska */
}

/* ========= NAVBAR PRZYKLEJONY DO GÓRY ========= */

header.nav-blur {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  backdrop-filter: blur(18px);
  background: rgba(3, 10, 8, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* żeby treść nie wchodziła pod pasek nawigacji */
main {
  padding-top: 80px;  /* jak navbar jest wyższy/niższy, to tu poprawiasz */
}

/* ===== MOBILE NAVBAR – UKRYWAMY 'O nas' ===== */
@media (max-width: 768px) {
  nav.nav-links a[href="#onas"] {
    display: none !important;
  }
}

/* ===== MOBILE NAVBAR – UKRYWAMY NAPIS "Koło Naukowe Biomechaników" ===== */
@media (max-width: 768px) {
  .nav-logo span {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .team-slider {
    padding: 0 32px;
  }

  .team-track {
    justify-content: flex-start;   /* start, nie center */
  }

  .person {
    flex: 0 0 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .team-arrow.left {
    left: 8px;
  }

  .team-arrow.right {
    right: 8px;
  }
}

