/* Reset and Custom Properties */
@font-face {
  font-family: 'Conthrax';
  src: url('conthrax-sb.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #0048ff;
  --hover-text-color: #f4fd00e8;
  --secondary-color: #ff0066;
  --text-color: #ffffff;
  --overlay-bg: rgba(0, 0, 0, 0.122);
  --transition-speed: 0.3s;
  --glow-shadow: 0 0 1px var(--primary-color),
                 0 0 3px var(--primary-color),
                 0 0 50px var(--primary-color);
  --glow-text-shadow: 0 0 1px var(--hover-text-color),
                      0 0 3px var(--hover-text-color),
                      0 0 50px var(--hover-text-color);
  --card-gradient: linear-gradient(to bottom, 
                    rgba(0,0,0,0) 0%,
                    rgba(0,0,0,0.4) 50%,
                    rgba(0,0,0,0.8) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Conthrax', 'Poppins', sans-serif;
  background-color: black;
  scroll-behavior: smooth;
}

/* Navbar */
nav ul li .link {
  text-decoration: none;
  color: var(--text-color);
}
.navbar {
  display: flex;
  justify-content: right;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.2rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  text-decoration: none;
}

.navbar li {
  color: var(--text-color);
  cursor: pointer;
  transition: all var(--transition-speed);
  font-weight: 300;
  letter-spacing: 1px;
  position: relative;
  font-family: 'Conthrax', 'Poppins', sans-serif;
}

.navbar li::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--hover-text-color);
  transition: width var(--transition-speed);
}

.navbar li:hover {
  color: var(--hover-text-color);
  text-shadow: var(--glow-text-shadow);
}

.navbar li:hover::after {
  width: 100%;
  box-shadow: var(--glow-text-shadow);
}

.navbar a.active-link {
  color: var(--hover-text-color);
  text-shadow: var(--glow-text-shadow);
}

.navbar a.active-link::after {
  width: 100%;
  box-shadow: var(--glow-text-shadow);
}

/* Members Section */
.members-section {
  margin-top: 80px;
  text-align: center;
  padding: 2rem 1rem;
  z-index: 2;
  position: relative;
  min-height: 100vh;
}

.overlay {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(0,0,0,0.45);
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.center-content {
  margin-top: 0;
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(0,0,0,0.18);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 247, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 3;
  backdrop-filter: blur(8px);
  animation: fadeIn 1s ease-out;
}

.text {
  font-size: 2.5rem;
  font-family: 'Conthrax', 'Poppins', sans-serif;
  color: var(--text-color);
  margin: 0 auto;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.95;
  padding: 0.5rem 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  text-shadow: var(--glow-shadow);
}

.members-grid {
  display: grid;
  gap: 2.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 3rem auto 0;
  width: 100%;
  padding: 2rem 0.5rem;
  animation: fadeIn 1s ease-out 0.3s both;
}

.member-card, .member-card.prez {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 260px;
  height: 340px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25), 0 0 20px var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  margin: 0 auto;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.member-card::before, .member-card.prez::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-gradient);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.member-card.prez {
  width: 300px;
  height: 380px;
  box-shadow: 0 0 30px var(--primary-color), 0 0 20px rgba(0,0,0,0.25);
  border: 2px solid var(--hover-text-color);
}

.member-card:hover, .member-card:focus {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 0 40px var(--secondary-color), 0 0 20px rgba(0,0,0,0.25);
  outline: none;
}

.member-card:hover::before, .member-card:focus::before {
  opacity: 0.5;
}

.member-info {
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: var(--text-color);
  font-family: 'Conthrax', 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  padding: 1rem 0.5rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  letter-spacing: 0.5px;
  min-height: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}

.member-info .role {
  font-size: 0.95rem;
  color: var(--hover-text-color);
  font-weight: 300;
  margin-top: 0.2rem;
  text-shadow: var(--glow-text-shadow);
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: var(--glow-shadow);
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--secondary-color);
}

/* Responsive Design */
@media (min-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .members-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .member-card, .member-card.prez {
    width: 95vw;
    max-width: 340px;
    height: 60vw;
    min-height: 260px;
  }
  
  .member-info {
    font-size: 1rem;
    padding: 0.8rem 0.3rem;
    min-height: 2.5rem;
  }
  
  .text {
    font-size: 2rem;
  }
  
  .navbar ul {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 400px) {
  .member-card, .member-card.prez {
    width: 98vw;
    max-width: 98vw;
    height: 65vw;
    min-height: 180px;
  }
  
  .member-info {
    font-size: 0.9rem;
    min-height: 2rem;
  }
  
  .text {
    font-size: 1.8rem;
  }
  
  .navbar ul {
    gap: 1rem;
    padding-right: 1rem;
  }
  
  .navbar li {
    font-size: 0.9rem;
  }
}

/* Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.linki {
  text-decoration: none;

}
/* Add to your existing CSS files */

/* Hamburger menu for mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
  margin-left: auto;
  margin-right: 1rem;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile navigation styling */
@media screen and (max-width: 768px) {
  .navbar ul {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: all 0.4s ease;
    z-index: 150;
    gap: 2rem;
  }
  
  .navbar ul.active {
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .navbar {
    justify-content: space-between;
    padding: 1rem;
  }
}
