/*flex containers*/
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

.topFlexContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.buttonFlexContainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 1rem;
  padding: 0 1rem;
}
.textFlexContainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  padding-left: 6%;
  padding-right: 6%;
  padding-bottom: 5%;
  padding-top: 5%;
}
.projectFlexContainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  padding: 5% 6%;
  justify-content: space-evenly;
  gap: 1.5rem;
}

.projectFlexContainer[data-mode="all"] {
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
}
.contactFlexContainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  padding-left: 6%;
  padding-right: 6%;
  padding-bottom: 5%;
  padding-top: 5%;
  gap: 1rem;
}

.languageFlexContainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contactItemFlexContainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  padding-left: 6%;
  padding-right: 6%;
  padding-bottom: 5%;
  padding-top: 5%;
  gap: 1rem;
}
.darkButton {
  background-color: #1f1f1f;
  color: #ffffff;
  border: 2px solid gold;
  padding: 0.75em 1.5em;
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.6rem);
  font-family: "Bebas Neue", cursive;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  text-decoration: none;
  text-align: center;
}

.darkButton:hover {
  background-color: #2c2c2c;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.darkButton:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.langButton {
  background-color: #1f1f1f;
  color: #ffffff;
  border: 2px solid gold;
  padding: 0.5em 1em;
  font-size: clamp(0.75rem, 0.6vw + 0.6rem, 1rem);
  font-family: "Bebas Neue", cursive;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}
.langButton:hover {
  background-color: #2c2c2c;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.title {
  position: relative;
  text-align: center;
  font-family: "Bebas Neue", cursive;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
  padding: 0 3.5rem;
}
.main {
  background-color: #2c2c2c;
  align-items: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  z-index: 1;
}
.profile {
  font-size: clamp(3rem, 10vw, 6rem);
  color: #ffe100;
}
.text {
  background-color: #363333;
  color: #ffffff;
  border: 0.15rem solid gold;
  border-radius: 0.8rem;
  font-size: clamp(0.9rem, 1vw + 0.6rem, 1.4rem);
  font-family: Verdana, sans-serif;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  white-space: pre-line;
}
/*project*/
.project {
  background-color: #1a1a1a;
  padding-bottom: 1.5rem;
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  box-sizing: border-box;
  border: 2px solid gold;
  border-radius: 0.5rem;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.project:hover {
  background-color: rgb(39, 39, 39);
  border-color: gold;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.project img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 0.5rem 0.5rem 0 0;
}

.paragraphTitle {
  position: relative;
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw + 0.5rem, 3rem);
  font-family: "Bebas Neue", cursive;
  background-image: linear-gradient(gold, gold);
  background-size: 100% 10px;
  background-repeat: no-repeat;
  transition:
    background-size 0.7s,
    background-position 0.5s ease-in-out;
}

.paragraphTitle.inView {
  background-size: 100% 100%;
  background-position: 0% 100%;
  transition:
    background-position 0.7s,
    background-size 0.5s ease-in-out;
}

.projectTitle {
  position: relative;
  text-align: center;
  font-size: clamp(1.1rem, 1.5vw + 0.6rem, 1.8rem);
  font-family: "Bebas Neue", cursive;
  color: gold;
  padding: 0 0.5rem;
}
/*Contact*/

.contactButton {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f1f1f;
  color: #ffffff;
  border: 2px solid gold;
  padding: 0.75rem 1.25rem;
  min-width: 10rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 0.5rem;
  text-decoration: none;
  gap: 0.5rem;
}
.contactButton:hover {
  background-color: #2c2c2c;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.contactButtonText {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.5rem);
  font-family: "Bebas Neue", cursive;
  text-decoration: none;
  white-space: nowrap;
}
.contactText {
  font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1.2rem);
  font-family: "Bebas Neue", cursive;
  text-decoration: none;
}

.icon {
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
}
/*background effect*/
.backgroundEffect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.backgroundEffect::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 25% 25%, #95964b 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, #0b0b07 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, #000000 0%, transparent 70%);
  animation: moveBackground 40s linear infinite;
  filter: blur(100px);
  opacity: 0.4;
}
@keyframes moveBackground {
  0% {
    transform: scale(1) translate(0%, 0%);
  }
  50% {
    transform: scale(1.2) translate(10%, 10%);
  }
  100% {
    transform: scale(1) translate(0%, 0%);
  }
}
/*project image gallery*/

/*project image gallery*/

.masonryGallery {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem 5%;
  background-color: #1a1a1a;
  max-width: 90vw;
  margin: 0 auto;
  border-radius: 1.5rem;
  border: 0.2rem solid gold;
}

.masonryGallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.masonryGallery img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/*lightbox*/
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: 60vw;
  height: 60dvh;
  object-fit: contain;
  pointer-events: none;
}
/*project specific css*/

.goBackButton {
  background-color: #1f1f1f;
  color: #ffffff;
  border: 2px solid gold;
  padding: 0.5em 0.9em;
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
  font-family: "Bebas Neue", cursive;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.goBackButton:hover {
  background-color: #2c2c2c;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.languageImage {
  background-color: #1f1f1f;
  border: 2px solid gold;
  border-radius: 0.5rem;
  margin: 1rem;
  padding: 0.75rem;
  height: clamp(4rem, 7vw, 7rem);
  width: clamp(4rem, 7vw, 7rem);
  object-fit: contain;
}

/*download menu*/

.downloadMenuContainer {
  position: relative;
  display: inline-block;
}

.downloadToggle {
  background-color: #1f1f1f;
  color: white;
  border: 2px solid gold;
  padding: 0.75em 1.5em;
  border-radius: 0.5em;
  cursor: pointer;
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.6rem);
  font-family: "Bebas Neue", cursive;
  transition: all 0.3s ease;
}
.downloadToggle:hover {
  background-color: #2c2c2c;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.downloadOptions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2c2c2c;
  border: 1px solid gold;
  border-radius: 0.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  margin-top: 0.5em;
  min-width: 100%;
}

.downloadOptions a {
  display: block;
  color: white;
  padding: 0.75em 1.5em;
  text-decoration: none;
  border-radius: 0.5em;
  border-bottom: 1px solid #444;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.3rem);
  white-space: nowrap;
}

.downloadOptions a:last-child {
  border-bottom: none;
}

.downloadOptions a:hover {
  background-color: #3a3a3a;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------
   Tablet: 2 project columns instead of 3.
   Phone: single column everywhere, buttons stack, back button no
   longer needs absolute positioning, contact block stacks vertically.
=================================================================== */

@media (max-width: 900px) {
  .project {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .textFlexContainer,
  .projectFlexContainer,
  .contactFlexContainer,
  .contactItemFlexContainer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .project {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .buttonFlexContainer {
    flex-direction: column;
    align-items: stretch;
  }

  .buttonFlexContainer .darkButton {
    width: 100%;
  }

  .langButton {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4em 0.8em;
  }

  .topFlexContainer {
    padding: 0.5rem;
  }

  .contactButton {
    width: 100%;
    min-width: 0;
  }

  .title {
    padding: 3rem 1rem 0;
  }
}

.searchContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.searchBar {
  width: 100%;
  max-width: 500px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-family: Verdana, sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  border: 2px solid gold;
  border-radius: 2rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.searchBar:focus {
  box-shadow: 0 6px 16px rgba(255, 225, 0, 0.2);
  border-color: #ffe100;
}
