* {
  box-sizing: border-box;
  font-family: "Font", sans-serif;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Font";
  src: url("fonts/bpg-nino-mtavruli-bold-webfont.ttf");
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  background-color: white;
}

/* LINKS */
a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.main-header {
  background-color: white;
  border-bottom: 1px solid lightgray;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .logo img {
  height: 55px;
  transition: transform 0.3s;
}

.main-header .logo img:hover {
  transform: scale(1.05);
}

.main-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-header nav a {
  margin-left: 12px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

.main-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: #007bff;
  transition: width 0.25s ease;
}

.main-header nav a:hover {
  color: #007bff;
}

.main-header nav a:hover::after {
  width: 100%;
}

/* ==============================
   GALLERY SECTION (შუა ნაწილი)
   ============================== */

.gallery-section {
  min-height: 80vh;
  padding: 64px 30px 80px;
  background: #c7e3ed;
}

.gallery-section h2 {
  text-align: center;
  font-size: 36px;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-bottom: 10px;
  animation: fadeUp 0.6s ease forwards;
}

.section-line {
  width: 48px;
  height: 3px;
  background: #007bff;
  border-radius: 2px;
  margin: 0 auto 38px;
}

/* flag icon */
.fi {
  font-size: 18px;
}

/* FILTER BUTTONS */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 38px;
}

.filters button {
  padding: 9px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  background: white;
  color: #555;
  font-family: "Font", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeUp 0.6s ease forwards;
}

.filters button:hover {
  border-color: #007bff;
  color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.14);
}

.filters button.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.28);
  transform: translateY(-1px);
}

/* GALLERY GRID — masonry */
.gallery-grid {
  columns: 4 200px;
  column-gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 14px;
  border-radius: 14px;
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.32s ease,
    filter 0.28s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.15);
  filter: brightness(0.87);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  animation: lbFadeIn 0.22s ease;
}

/* ===== ZOOM FEATURE ONLY ===== */

.lightbox img {
  max-width: none;
  max-height: none;
  cursor: zoom-in;
  transition: transform 0.1s ease;
  transform-origin: center;
}

.lightbox.zoomed img {
  transform: scale(1.8);
  cursor: zoom-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lightbox img {
  max-width: 90%;
  max-height: 88%;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  animation: lbZoom 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes lbZoom {
  from {
    transform: scale(0.88);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 32px;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  line-height: 1;
  transition:
    color 0.2s,
    transform 0.25s;
}

.close-btn:hover {
  color: white;
  transform: rotate(90deg);
}

/* FOOTER */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: center;
  }

  .main-header nav {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    width: 100%;
    overflow-x: auto;
    padding: 0;
    box-sizing: border-box;
    align-items: center; /* 🔥 სტაბილურობისთვის */
  }

  .main-header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 14px;
  }

  .main-header nav::-webkit-scrollbar {
    display: none;
  }
}
