* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #fff;
  line-height: 1.6;
}

main {
  background-image: url("/Components/Gallery/newbg.jpg");
  background-size: cover;
  background-attachment: fixed;
  padding: 2rem 0;
}

.navbar {
  background-color: #111;
  opacity: 0.95;
  padding: 0 1rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  width: 100%;
  left: 0;
  top: 0;
  right: 0;
  box-sizing: border-box;
  /* overflow-x: hidden;   */
  z-index: 10000;
  position: fixed;
  transition: top 0.3s ease-in-out;

}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  font-weight: 1000;
  font-size: 2.2rem;
  font-weight: bold;
  background: #ff6a00;
  /* background: linear-gradient(to left, #ff0000, #ff8c00, #ffd700, #ffffff); */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logoImg {
  width: 150px;       
  height: auto;        
  margin-right: 10px;
  margin-left: 5px;
  object-fit: contain; 
  
  /* Styling effects */
  filter: drop-shadow(0 0 8px rgba(255, 162, 99, 0.6)); /* glowing shadow */
  transition: transform 0.3s ease, filter 0.3s ease;     /* smooth hover */
}

.logoImg:hover {
  transform: scale(1.01);  /* zoom effect */
  filter: drop-shadow(0 0 12px rgba(255, 162, 99, 0.8));
}

@keyframes fire-flicker {
  0% {
    filter: brightness(0.5);
  }

  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(2);
  }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link-join {
  color: white;
  border-radius: 6px;
  background: #ff6a00;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease-in-out;
}

.nav-link-join:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
  background: #ffd700;
  color: #111827;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem;
}

.nav-link.active,
.nav-link:hover {
  color: cyan;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.menu-icon {
  height: 24px;
  width: 24px;
  stroke: white;
}

.nav-links.mobile {
  display: none;
  flex-direction: column;
  background-color: #111;
  padding: 1rem;
  gap: 1rem;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 999;
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .close-icon {
    display: none;
  }

  .logo {
    font-size: 1.8rem;
  }
}

.join-btn {
  background-color: rgb(255, 111, 0);
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}



/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-card);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* --- Header --- */
.gallery-header {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--bg-dark);
}

.gallery-header h1 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgb(255, 111, 0);
  text-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.gallery-header h1 span {
  color: white;
}

.gallery-header p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Main Content Area --- */
.gallery-container {
  padding: 4rem 2rem;
}

/* --- Masonry Gallery Grid (Fully Responsive) --- */
.gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  margin-bottom: 1.5rem;
  break-inside: avoid;
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px var(--shadow-color);
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* New class to hide gallery items for the "View More" feature */
.gallery-item.is-hidden {
  display: none;
}

.gallery-item.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item .image-container {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  /* Allows for natural image height */
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Hover Overlay & Caption --- */
.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
  padding: 2rem;
  text-align: center;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.overlay .caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--text-light);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0.1s;
}

.gallery-item:hover .overlay .caption {
  transform: translateY(0);
  opacity: 1;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .gallery-header {
    padding: 4rem 1.5rem;
  }

  .gallery-header h1 {
    font-size: 3rem;
  }

  .gallery-header p {
    font-size: 1.1rem;
  }

  .gallery-container {
    padding: 3rem 1.5rem;
  }

  .gallery-grid {
    column-count: 1;
  }
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.5s ease;
  padding: 1rem;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
  animation: zoomInModal 0.5s ease;
}

@keyframes zoomInModal {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.secondary-btn {

  background-color: #ff6a00;
  color: black;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
}

.secondary-btn:hover {
  transform: translateY(-4px) scale(1.02);
  background-color: rgb(203, 203, 0);
  color: black;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}


.lightbox-caption {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-light);
  font-size: 1.25rem;
  margin-top: 1rem;
  text-align: center;
  max-width: 80vw;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
  user-select: none;
  background: rgba(30, 30, 30, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.lightbox-close {
  top: 30px;
  right: 25px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--primary-gold);
}

#prev-btn {
  left: 15px;
}

#next-btn {
  right: 15px;
}


/* --- Footer Styles --- */
footer {
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

footer p {
  margin: 0.6rem 0;
}

.footer-link {
  color: cyan;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-link:hover {
  text-decoration: underline;
}

footer .connections {
  display: flex;
  gap: 20px;
  justify-content: center;
}

footer .connections a {
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
}

footer .connections a:hover {
  color: yellow;
}

.footer-people {
  margin-top: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-people .developers {
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 5px 5px;
  margin-bottom: 0.5rem;
  justify-content: center;
  margin-top: 5px;
  font-size: 0.95rem;
}

.developedby {
  font-size: 1rem;
}

.footer-people a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.developers :hover {
  color: rgb(255, 255, 0, 1);
}

.rights {
  font-size: smaller;
  margin-bottom: 0.75rem;
}

.footer-people .developers a::after {
  content: "·";
  margin: 0 8px;
  opacity: 0.6;
  display: inline-block;
  vertical-align: middle;
  /* ensures alignment */
  font-size: 1.1em;
  /* adjust size if needed */
  line-height: 1;
}

.footer-people .developers a:last-child::after {
  content: "";
  /* No separator after last name */
}

@media (max-width: 600px) {
  .footer-people .developers a::after {
    content: " ·";
    margin: 0 6px;
    opacity: 0.6;
  }

  .footer-people .developers a:nth-child(2)::after {
    content: "";
    /* removes separator after 2nd child */
  }

  .footer-people .developers a:last-child::after {
    content: "";
    /* No separator after last name */
  }

  .footer-people .developers {
    display: grid;
    grid-template-columns: repeat(2, auto);
    /* stack vertically */
    gap: 6px;
  }
}

.shiny-text {
  color: #b5b5b5a4;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 243, 175, 0.8) 50%,
      rgba(255, 255, 255, 0) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 2.5s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 100%;
  }

  100% {
    background-position: -100%;
  }
}

.shiny-text.disabled {
  animation: none;
}

/* scrollbar styling  */

/* ===== Chrome, Edge, Safari ===== */
::-webkit-scrollbar {
  width: 14px;
  /* Wider for more realistic look */
}

/* Track */
::-webkit-scrollbar-track {
  background: #0d1117;
  /* Dark background */
  border-left: 1px solid #1a1f27;
  /* ght inner border */
}

/* Thumb */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6a00, #cc5500);
  /* Gradient orange */
  border-radius: 6px;
  border: 2px solid #0d1117;
  /* Creates gap between track & thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff7f26, #e65c00);
  /* Brighter on hover */
}

/* ===== Scrollbar Buttons (Arrows) ===== */

/* Common button base */
::-webkit-scrollbar-button {
  background-color: #0d1117;
  /* Matches track */
  border: none;
  height: 16px;
  /* Controls button height */
}

/* Up arrow */
::-webkit-scrollbar-button:single-button:vertical:decrement {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ff6a00;
  /* Arrow color */
}

/* Down arrow */
::-webkit-scrollbar-button:single-button:vertical:increment {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ff6a00;
  /* Arrow color */
}

/* Hover effect on arrows */
::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
::-webkit-scrollbar-button:single-button:vertical:increment:hover {
  border-bottom-color: #ff7f26;
  /* Up arrow hover */
  border-top-color: #ff7f26;
  /* Down arrow hover */
}

/* ===== Firefox ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: #ff6a00 #0d1117;
  /* thumb track */

}