/* 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);
}

.linki {
  text-decoration: none;
}

/* Gallery Section */
.gallery-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: 4rem;
}

.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);
}

/* Filter Buttons */
.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1000px;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Conthrax', 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s;
  outline: none;
  backdrop-filter: blur(5px);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 72, 255, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 0.5;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: var(--text-color);
  z-index: 1;
  text-align: left;
  font-size: 1rem;
  transform: translateY(0);
  transition: all 0.3s;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(-5px);
}

.gallery-date {
  font-size: 0.8rem;
  color: var(--hover-text-color);
  margin-top: 0.3rem;
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  object-fit: contain;
}

.lightbox-caption {
  color: var(--text-color);
  padding: 1rem;
  text-align: center;
  width: 100%;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s;
}

.close-lightbox:hover {
  color: var(--hover-text-color);
  transform: scale(1.1);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-color);
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.prev-btn {
  left: -60px;
}

.next-btn {
  right: -60px;
}

.nav-btn:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

/* 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);
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .nav-btn {
    width: 35px;
    height: 35px;
  }
  
  .prev-btn {
    left: -45px;
  }
  
  .next-btn {
    right: -45px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .filter-container {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .text {
    font-size: 2rem;
  }
  
  .nav-btn {
    top: auto;
    bottom: -50px;
    transform: none;
  }
  
  .prev-btn {
    left: calc(50% - 50px);
  }
  
  .next-btn {
    right: calc(50% - 50px);
  }
  
  .lightbox-content {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 220px;
  }
  
  .navbar ul {
    gap: 1rem;
    padding-right: 1rem;
  }
  
  .navbar li {
    font-size: 0.8rem;
  }
  
  .filter-container {
    flex-direction: column;
    gap: 0.5rem;
    width: 80%;
  }
  
  .text {
    font-size: 1.8rem;
  }
}
/* Video thumbnail styling */
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 20px solid white;
  margin-left: 5px;
}

.platform-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-size: cover;
  z-index: 2;
}

.youtube-icon {
  background-image: url('https://www.youtube.com/favicon.ico');
  background-color: white;
}

.vimeo-icon {
  background-image: url('https://vimeo.com/favicon.ico');
  background-color: white;
}

/* Lightbox video container */
.lightbox-video {
  display: none;
  width: 100%;
  height: 80vh;
  max-width: 90vw;
  max-height: 70vh;
}

.lightbox-video iframe {
  width: 100%;
  height: 100%;
  border: none;

}

/* 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;
  }
}
