@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700;900&display=swap');
:root {
    --background-color: #f7f8fa;
    --primary-color: #d1d5db;
    --secondary-color: #9ca3af;
    --accent-color: #4b5563;
    --text-color: #374151;
    --navbar-color: rgba(200, 200, 200, 0.9);
    --links-color: #007bff;
    --links-hover-color: #0056b3;     
}

* {
    box-sizing: border-box
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif !important;
  background: linear-gradient(135deg, #f3f7fc, #eaeff4);
  color: #2c2c2c;
}

/* Navbar items + BtT Button */
.container-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand, .navbar-collapse {
    flex: 1;
}

.logo-small {
    width: 70px; /* Állítsd be a megfelelő méretet */
    height: 70px;
    margin-right: 10px; /* Tarts megfelelő távolságot a szövegtől */
    border-radius: 50%; /* Kerek logó */
}


.navbar {
    background-color: var(--navbar-color);
    box-shadow: 5px 5px 5px 5px #4b5563;
}

.navbar .navbar-nav .nav-item {
    position: relative;
    text-align: center;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 500;
    text-shadow: 5px 5px 5px gray;
    letter-spacing: 1px;
    
}

.navbar .container-navbar .navbar-brand {
    letter-spacing: 1px;
    font-size: 30px;
    margin: 0 20px;
    color: var(--text-color);
}

.navbar .navbar-nav .nav-item::after {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    margin: 0 auto;
    content: "";
    background-color: black;
    width: 0%;
    height: 2px;
    transition: all 0.5s;
}

.navbar .navbar-nav .nav-item:hover::after {
    width: 100%;
}

.navbar .navbar-nav .nav-item .nav-link.active::after {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  margin: 0 auto;
  content: "";
  background-color: black;
  width: 100%;
  height: 2px;
  transition: all 0.5s;
}

.navbar .navbar-toggler {
    box-shadow: 5px 5px 5px gray;
    transition: box-shadow 0.5s ease;
}

.navbar .navbar-toggler:hover {
    box-shadow: 5px 5px 5px black;
}

.dropdown-menu {
    color: black;
    font-weight: 800 !important;
    letter-spacing: 1.5px;
}

.dropdown-menu .dropdown-item {
    background-color: var(--navbar-color);
}

.dropdown-menu .dropdown-item:hover {
    background-color:var(--background-color);
    color: var(--text-color);
}

/*Hamburger Menu*/
@media screen and (min-width: 992px) {
    .navbar {
      padding: 0;
    }
    .navbar .navbar-nav .nav-link {
      padding: 1em 0;
      margin: auto;
    }
    .navbar .navbar-nav .nav-item {
      margin: 0 1em;
    }
    .dropdown-menu {
        background-color: rgba(255, 255, 255, .7) !important;
    }
    .navbar .navbar-toggler {
        box-shadow: 5px 5px 5px gray;
        transition: box-shadow 0.5s ease;
    }
  }

/*Back to Top Button*/
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Nyíl középre igazítása és sima méretezés */
#scrollToTopBtn svg {
  width: 28px;
  height: 28px;
  stroke: white;
  display: block;
}

#scrollToTopBtn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

/* Extra: kisebb méret mobilon */
@media (max-width: 576px) {
  #scrollToTopBtn {
    width: 46px;
    height: 46px;
  }

  #scrollToTopBtn svg {
    width: 22px;
    height: 22px;
  }
  .navbar .container-navbar .navbar-brand {
    font-size: 18px;
}
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.overlay.hidden {
  display: none;
  pointer-events: none;
  opacity: 0;
}

.overlay img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.overlay-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  text-align: center;
}

.sidebar {
  margin-top: 0;  
  position: sticky;
  left: 0;
  top: 120px;
  height: fit-content;
  bottom: 0;
  width: 350px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  white-space: normal;
  font-size: 1.1rem;
  align-self: start;
  -ms-overflow-style: none;
  scrollbar-width: none;  
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.filter-text {
  cursor: pointer;
  margin: 0 15px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  color: #555;
  padding: 10px 0;
}

.filter-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.6s ease-in-out, left 0.6s ease-in-out;
}

.filter-text:hover,
.filter-text.active {
  color: black;
  font-weight: bolder;
}

.filter-text:hover::after,
.filter-text.active::after {
  width: 100%;
  left: 0;
}

.gallery-layout {
  display: flex;  
  margin: 0;
}

.gallery {
  position: relative;
  column-count: 4;
  column-gap: 1.5rem;
  margin-left: 220px;
  padding: 2rem;
  margin-top: 40px;
}

#galleryOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
}

#galleryModal {
  touch-action: pan-y;
  z-index: 1050;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.gallery-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.3s ease-out, opacity 0.4s ease-out;
  opacity: 1;
  visibility: visible;  
}

.gallery-image:hover {
  transform: translateY(0) scale(1.02);
}
/****Modal Window****/

.custom-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;  
}

.custom-modal.visible {
  opacity: 1;
  transform: scale(1);
}

.custom-modal.hidden {
  display: none;
}

.custom-modal img {
  pointer-events: none;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  opacity: 0;
  transform: rotateY(20deg) scale(0.95);
  transition: transform 0.6s ease, opacity 0.6s ease;}

.custom-modal img.show {
  opacity: 1;
  transform: rotateY(0deg) scale(1);}

.modal-caption {
  position: fixed;
  top: 90%;
  background-color: rgba(0,0,0,0.6);
  padding: 1rem;
  color: white;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
  .gallery-layout {
    display: block;
  }
  .sidebar {
    position: relative;
    top: unset;
    left: unset;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem;
    background-color: transparent;
    backdrop-filter: none;
  }

  .filter-text {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 1rem;
    margin: 0 5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.3);
  }

  .filter-text.active {
    background: rgba(255, 255, 255, 0.6);
    font-weight: bold;
  }
  #header-picture {
    height: 500px !important;
  }
  #header-picture img {
    height: 500px !important;
  }  
}

@media (max-width: 480px) {
  .gallery {
    column-count: 2;
    column-gap: 1rem;
    margin-left: 0;
    padding: 1rem;
  }

  .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    width: 100%;
  }

  .gallery-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
  }

  .custom-modal .nav {
    display: none;
  }

  .modal-caption {
    top: 85%;
  }
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);  
  font-size: 2rem;
  color: white;
  padding: 1rem;
  cursor: pointer;
  user-select: none; 
  transition: opacity 0.3s ease;
  opacity: 1;  
}

.nav:hover {
  opacity: 0.6;
}

.prev { left: 20px; }
.next { right: 20px; }

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 1;  
}

.close:hover {
  opacity: 0.6;
}

footer {
    font-size: 14px;
    color: #6c757d;
}

footer a {
    text-decoration: none;
    color: var(--links-color);
}

footer a:hover {
    color: var(--links-hover-color);
    font-weight: bold;
}

footer a i {
    color: var(--text-color);
}

footer a i:hover {
    color: var(--secondary-color);
}
