*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

*:not(i) {
  font-family: "Poppins", sans-serif;
}

:root {
  --baseShade1: #f58b54;
  --baseShade2: hsl(20, 91%, 78%);
  --whiteShade1: #ffffff;
  --whiteShade2: #f8fafb;
  --blackShade1: #231c3d;
  --blackShade2: #575a7b;

  --baseFontSize: 1.6rem;

  --headingFontSize1: 3.6rem;
  --headingFontSize2: 3rem;
  --headingFontSize3: 2rem;
  --headingFontSize4: 1.8rem;

  --borderRadius1: 1rem;
  --borderRadius2: 0.5rem;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1 {
  font-size: var(--headingFontSize1);
  margin: 2rem 0 4rem 0;
  line-height: 1.8;
  text-align: center;
  font-weight: 600;
}

h2 {
  font-size: var(--headingFontSize2);
  color: var(--blackShade1);
  font-weight: 600;
  margin: 2rem 0 5rem 0;
  text-align: center;
}

h3 {
  font-size: var(--headingFontSize3);
  color: var(--blackShade2);
  font-weight: 600;
}

h4 {
  font-size: var(--headingFontSize4);
  color: var(--blackShade2);
  margin: 1.5rem 0;
}

p {
  font-size: var(--baseFontSize);
  color: var(--blackShade2);
  line-height: 1.8;
  font-weight: 400;
}

/* ------------ Scroll-Indicator -------------- */
.progress-container {
  width: 100%;
  height: 1.1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(0.8rem);
}

#progress {
  width: 0;
  height: 100%;
  background-color: var(--baseShade1);
}

/* ---------------- Navigation ---------------- */
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 1.1rem;
  left: 0;
  padding: 2rem;
  background-color: var(--whiteShade1);
  backdrop-filter: blur(0.8rem);
  z-index: 1000;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.menu-text {
  display: none;
  font-size: var(--headingFontSize4);
  color: var(--blackShade1);
  font-weight: 500;
  font-size: 2rem;
}

nav .fas,
#logo {
  font-size: var(--headingFontSize4);
}

#logo {
  font-weight: 600;
  font-size: 2rem;
  text-decoration: none;
  color: var(--blackShade1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

nav a {
  color: var(--blackShade1);
  text-decoration: none;
  display: block;
  position: relative;
  font-size: var(--headingFontSize4);
}

nav i.fas {
  display: none;
}

/* ------------------ Navigation Link Hover ------------------- */
nav li a:before {
  content: "";
  position: absolute;
  background-color: transparent;
  width: 0%;
  height: 10%;
  bottom: 0;
  z-index: -1;
  margin-left: -5%;
  transition: all 0.5s;
}

nav li a:hover:before {
  background-color: var(--baseShade1);
  width: 110%;
}

/*------------------- Active SideNav Menu ------------------------*/
nav ul.active {
  left: 0;
}

nav ul.active li a {
  font-size: var(--headingFontSize3);
}

/* Sticky Menu */
.sticky {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}

/* -------------------------- Header ---------------------------- */
header {
  margin-top: 8rem;
  display: block;
  text-align: center;
}

header img {
  width: 100%;
  height: auto;
  max-width: 1400px;
  margin: 0 auto;
  display: block;
}

/* -------------------- Section About ---------------------- */
.about {
  padding: 6rem 1rem;
  margin: 0 auto;
  display: block;
  max-width: 1400px;
}


.about-image {
  float: left;
  max-width: 70rem;
  margin-right: 3rem;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--borderRadius1);
}

/*------------------------- Footer --------------------------*/
footer {
  background-color: var(--baseShade1);
  text-align: center;
  padding: 0 30%;
}

footer .column {
  width: 100%;
  padding: 1rem 0 2rem 0;
}

.kontakt-mail a {
  color: var(--whiteShade1);
  font-weight: 500;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.kontakt-mail a p:hover {
  text-decoration: underline;

}

footer .social-media {
  display: flex;
  justify-content: center;
  gap: 9rem;
  padding: 3rem 0;
}

footer h3 {
  margin: 1rem 0;
}

footer .column:nth-child(1) {
  border-bottom: 0.2rem solid var(--whiteShade1);
}

footer h3 {
  color: var(--blackShade1);
}

footer p {
  color: var(--whiteShade2);
}

footer i {
  color: var(--blackShade1);
  font-size: 3rem;
}

/*---------------------------- Copyright ------------------------------*/
.copyright {
  padding: 2rem 0;
  background-color: var(--whiteShade2);
  text-align: center;
}

.copyright p {
  color: var(--blackShade1);
}

/*----------------------- Scroll To Top Buttons -----------------------*/
#scroll-top-btn {
  display: none;
  place-items: center;
  height: 4rem;
  width: 4rem;
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  background-color: var(--baseShade1);
  outline: none;
  border: 0.4rem solid var(--whiteShade1);
  border-radius: var(--borderRadius2);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.12);
}

#scroll-top-btn .fas {
  color: var(--whiteShade1);
  font-size: 2rem;
  line-height: 0;
}

/* ---------------------- gallery-entrance --------------------------- */
.gallery-entrance {
  padding-top: 1rem;
  text-align: center;
  max-width: 1400px;
  margin: 7rem auto;
  min-height: 86vh;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto;
  max-width: 1400px;
}

.gallery-card {
  flex: 0 1 380px;
  display: block;
  text-decoration: none;
  background-color: var(--whiteShade1);
  border-radius: var(--borderRadius1);
  overflow: hidden;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: scale(1.03);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card h2 {
  font-size: 2.4rem;
  color: var(--blackShade1);
  margin: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.gallery-card p {
  font-size: var(--baseFontSize);
  color: var(--blackShade2);
  margin: 0 1.5rem 2rem 1.5rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ---------------------- masonry gallery --------------------------- */
.masonry-gallery {
  margin: 7rem 0;
  padding-top: 1rem;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 90vw), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin: clamp(1rem, 3vw, 2rem);
  justify-content: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: #fff;
  padding: 1.2rem;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.masonry-item:hover {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 4px;
  height: auto;
  padding-bottom: 1rem;
}

.masonry-item p {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  text-align: center;
  color: #333;
}

.masonry-item h3 {
  text-align: center;
  padding-top: 1rem;
}

/* ------------ light box ---------- */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  margin-top: 15px;
  font-size: 18px;
}

.lightbox-counter {
  color: white;
  margin-top: 10px;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}