:root {
  --primary-color: #2207ec;
  --secondary-color: #00cecb;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.9s ease;
  font-weight: 700;
}

.navbar.scrolled {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  padding: 5px 0;
  border-radius: 30px;
  margin-top: 8px;
}

.gallery-header {
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/working/gallery.webp');
background-size: cover;
background-position: center;
color: white;
padding: 200px 0 200px;
}
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 5px 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 30px;
}

.btn-primary:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 50px 30px rgb(255, 254, 254);
}

.filter-btn {
background: none;
border: none;
padding: 8px 20px;
margin: 0 5px 10px;
font-weight: 600;
color: var(--dark-color);
position: relative;
transition: all 0.3s ease;
border-radius: 30px;
}

.filter-btn:after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 3px;
background: var(--secondary-color);
transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
color: var(--secondary-color);
}

.filter-btn:hover:after, .filter-btn.active:after {
width: 100%;
left: 0;
}

.gallery-item {
position: relative;
overflow: hidden;
border-radius: 10px;
margin-bottom: 20px;
transition: all 0.5s ease;
}

.gallery-img {
transition: all 0.5s ease;
width: 100%;
height: 550px;
object-fit: cover;
}

.gallery-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(56, 56, 56, 0.589);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
opacity: 0;
transition: all 0.3s ease;
padding: 20px;
text-align: center;
color: white;
}

.gallery-item:hover .gallery-overlay {
opacity: 1;
}

.gallery-item:hover .gallery-img {
transform: scale(1.1);
}

.gallery-category {
position: absolute;
top: 15px;
right: 15px;
background-color: var(--primary-color);
color: white;
padding: 5px 15px;
border-radius: 30px;
font-size: 0.8rem;
z-index: 2;
}

.back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: var(--secondary-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 999;
}

.back-to-top.active {
opacity: 1;
visibility: visible;
}

.back-to-top:hover {
background-color: var(--accent-color);
transform: translateY(-5px);
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .gallery-img {
    height: 300px !important; /* Smaller height on mobile */
  }
  
  .gallery-overlay {
    opacity: 1 !important; /* Always show overlay on mobile */
    background: rgba(0, 0, 0, 0.5) !important;
  }
  
  .gallery-item:hover .gallery-img {
    transform: none !important; /* Disable scale effect on mobile */
  }
}

/* Modal styles */
#imageModal .modal-content {
  background: transparent;
}

#imageModal .btn-close {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  opacity: 1;
  padding: 10px;
}

#modalImage {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}