* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  color: white;
  cursor: pointer;
}

.logo:hover {
  opacity: 0.9;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  cursor: pointer;
  transition: opacity 0.3s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo h1 {
  font-size: 1.1rem;  
  margin: 0;
  font-weight: 600;
}

body {
  font-family: 'Google Sans Code', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Nawigacja */
.navbar {
  background-color: #333;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  position: relative;
  padding: 0.5rem;
  transition: color 0.3s;
  background-image: 
    linear-gradient(#007bff, #007bff),
    linear-gradient(#007bff, #007bff),
    linear-gradient(#007bff, #007bff),
    linear-gradient(#007bff, #007bff);
  background-repeat: no-repeat;
  background-size: 0 2px, 2px 0, 0 2px, 2px 0;
  background-position: 0 100%, 0 0, 100% 0, 100% 100%;
}

.nav-menu a:hover {
  color: #007bff;
  animation: drawBorder 0.5s ease-out forwards;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.lang-flag-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.3s;
}

.lang-flag-btn:hover {
  border-color: #007bff;
  color: #007bff;
}

.lottie-container {
  width: 100px;
  height: 100px;
  margin: auto;
}

@keyframes drawBorder {
  0% {
    background-size: 0 2px, 2px 0, 0 2px, 2px 0;
  }
  33% {
    background-size: 100% 2px, 2px 0, 0 2px, 2px 0;
  }
  66% {
    background-size: 100% 2px, 2px 100%, 0 2px, 2px 100%;
  }
  100% {
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


.main {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
  background: #111;
}

#hero-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}

.main-content {
  text-align: center;
  animation: fadeIn 0.8s ease-in;
  position: relative;
  z-index: 1;
}

.main-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.main-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.button-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background-color: white;
  color: #667eea;
  padding: 1rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: #f0f0f0;
}

.btn:active {
  transform: translateY(-1px);
}

.content-section {
  min-height: 100vh;
  width: 100%;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-section > h2,
.content-section > p,
.content-section > div {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.content-section.light {
  background-color: #ffffff;
}

.content-section.gray {
  background-color: #f9f9f9;
}

.content-section.blue {
  background-color: #f0f8ff;
}

.content-section.purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.content-section.purple h2,
.content-section.purple p {
  color: white;
}

/* Unique section colors - each section has its own look */
.content-section.section-about {
  background-color: rgb(23, 55, 130);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.content-section.section-about h2,
.content-section.section-about p {
  color: white;
}

.content-section.section-weapons {
  background-color: #dfdfdf;
  color: white;
  background-size: cover;
  background-position: center;
}

.content-section.section-weapons h2,
.content-section.section-weapons p {
  color: #333;
}

.content-section.section-gallery {
  background-color: rgb(23, 55, 130);
  background-size: cover;
  background-position: center;
}

.content-section.section-gallery h2,
.content-section.section-gallery p {
  color: white;
}

.content-section.section-team {
  background-color: #dfdfdf;
  background-size: cover;
  background-position: center;
}

.content-section.dark {
  background-color: rgb(23, 55, 130);
  color: white;
  background-size: cover;
  background-position: center;
}

.content-section.dark h2,
.content-section.dark p {
  color: white;
}

.content-section.section-contact {
  background-color: #dfdfdf;
  background-size: cover;
  background-position: center;
}

/* Wspólne style dla nagłówków i tekstu */
.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.content-section p {
  font-size: 1rem;
  color: #666;
}

/* Galeria zdjęć - slider */
.gallery-slider {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-track.dragging {
  transition: none;
}

.gallery-item {
  min-width: calc(50% - 0.75rem);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.slider-btn {
  background-color: rgba(102, 126, 234, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background-color: #667eea;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-btn.prev {
  order: -1;
}

.slider-btn.next {
  order: 1;
}

/* Broń - animowane flex cards */
.weapons-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 2rem 0;
}

.weapons-container {
  height: 500px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
}

.weapon-card-animated {
  width: 80px;
  border-radius: 2rem;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  transition: .6s cubic-bezier(.28, -0.03, 0, .99);
  box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
  position: relative;
}

.weapon-card-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

.weapon-card-animated > .weapon-row {
  color: white;
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
  width: 100%;
}

.weapon-card-animated > .weapon-row > .weapon-icon {
  background: #667eea;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.weapon-card-animated > .weapon-row > .weapon-description {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  overflow: visible;
  height: auto;
  width: 520px;
  opacity: 0;
  transform: translateY(-10px);
  transition-delay: .3s;
  transition: all .3s ease;
  padding: 15px 15px 15px 10px;
}

.weapon-description p {
  color: #e0e0e0;
  padding-top: 5px;
  font-size: 0.9rem;
}

.weapon-description h4 {
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.weapons-container input {
  display: none;
}

.weapons-container input:checked + label {
  width: 750px;
}

.weapons-container input:checked + label .weapon-description {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Backgroundy dla kart broni */
.weapon-card-animated[for="w1"] {
  background-image: url('./assets/MIP.webp');
}
.weapon-card-animated[for="w2"] {
  background-image: url('./assets/Rapier.webp');
}
.weapon-card-animated[for="w3"] {
  background-image: url('./assets/szabla.webp');
}
.weapon-card-animated[for="w4"] {
  background-image: url('./assets/miecz_dlugi.webp');
}

/* Układ rzędów dla galerii card */
.row {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.row-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Karty */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.card:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  text-align: center;
}

/* Hover na PC */
.card:hover .overlay {
  transform: translateY(0);
}

/* Formularz kontaktowy */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Google Sans Code', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.submit-btn {
  margin-top: 1rem;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.info-item p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zarząd - team members grid */
.team-row {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.team-row:first-of-type {
  grid-template-columns: repeat(3, 1fr);
}

.team-row:last-of-type {
  grid-template-columns: repeat(5, 1fr);
}

.team-member {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1;
  cursor: pointer;
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover img {
  transform: scale(1.1);
}

.member-overlay {
  position: absolute;
  inset: 0;
  background: rgba(102, 126, 234, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  text-align: center;
  padding: 1rem;
}

.team-member:hover .member-overlay {
  opacity: 1;
}

.member-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.member-overlay p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Modal fullscreen dla zdjęć */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.photo-modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.photo-modal #caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Nav dropdown for Członkostwo */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  list-style: none;
  border-radius: 8px;
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.2rem;
  color: white;
  text-decoration: none;
  transition: background 0.2s;
  background-image: none !important;
  animation: none !important;
}

.dropdown-menu a:hover {
  background-color: #667eea;
  color: white;
}

/* Accordion - expandable info */
.accordion {
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
}

.accordion-item {
  margin-bottom: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
  font-family: 'Google Sans Code', sans-serif;
  border-radius: 10px;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-header:hover {
  background: rgba(255,255,255,0.15);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(255,255,255,0.05);
  border-radius: 0 0 10px 10px;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  padding: 1rem 1.5rem;
}

.accordion-content p {
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background-color: #222;
  color: #aaa;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: #aaa;
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}

.social-icon:hover {
  color: #667eea;
  transform: scale(1.2);
}

/* Nawigacja mobilna - hamburger na urządzeniach <= 1024px (obejmuje telefony w poziomie) */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #333;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-menu li {
    padding: 1rem;
    border-bottom: 1px solid #444;
  }

  .lang-switch {
    justify-content: center;
    padding: 0.5rem 1rem;
    margin-left: 0;
  }

  /* Dropdown mobile */
  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
    position: static;
    background-color: #3a3a3a;
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown-menu li {
    padding: 0;
    border-bottom: 1px solid #444;
  }

  .dropdown-menu a {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }
}

/* Responsywność - mobile */
@media (max-width: 768px) {
  .main-content h1 {
    font-size: 2rem;
  }

  .main-content p {
    font-size: 1rem;
  }

  .button-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .content-section {
    padding: 2rem 0;
  }

  .content-section > h2,
  .content-section > p,
  .content-section > div {
    padding: 0 1rem;
  }

  .content-section h2 {
    font-size: 1.8rem;
  }

  .gallery-item {
    min-width: 85%;
    aspect-ratio: 16 / 10;
    scroll-snap-align: center;
  }

  .gallery-track-container {
    border-radius: 12px;
  }

  .gallery-track {
    gap: 0.75rem;
  }

  .slider-btn {
    display: none;
  }

  .row-3,
  .row-5 {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 8px;
  }

  .overlay {
    transform: translateY(0);
    position: relative;
  }

  /* Weapons animated cards - mobile: horizontal swipe slider */
  .weapons-wrapper {
    padding: 1rem 0;
    overflow: visible;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .weapons-container {
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 8vw;
  }

  .weapons-container::-webkit-scrollbar {
    display: none;
  }

  .weapon-card-animated {
    width: 84vw !important;
    min-width: 84vw;
    height: 350px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 1.2rem;
    scroll-snap-align: center;
    margin-right: 0;
  }

  .weapon-card-animated:last-of-type {
    margin-right: 0;
  }

  /* Disable expand behavior on mobile — all cards same size */
  .weapons-container input:checked + label {
    width: 84vw !important;
    min-width: 84vw;
    height: 350px;
  }

  /* Gradient overlay at bottom for text readability */
  .weapon-card-animated::before {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 40%, transparent 70%);
  }

  .weapon-card-animated > .weapon-row {
    align-items: flex-end;
    height: 100%;
  }

  .weapon-card-animated > .weapon-row > .weapon-icon {
    display: none;
  }

  .weapon-card-animated > .weapon-row > .weapon-description {
    width: 100%;
    height: auto;
    padding: 16px 20px;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .weapon-description {
    opacity: 1 !important;
  }

  .weapon-description h4 {
    font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  }

  .team-row:first-of-type {
    grid-template-columns: 1fr;
  }

  .team-row:last-of-type {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-overlay h3 {
    font-size: 1.1rem;
  }

  .member-overlay p {
    font-size: 0.85rem;
  }

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

  /* Accordion mobile */
  .accordion-header {
    font-size: 1rem;
    padding: 1rem;
  }
}