/* Global Styling and Variables */
:root {
  --main-font: "Geologica", sans-serif;
  --main-font-weight: 400;
  --main-font-size: calc(1rem + 0.1vw);
  --small-title-size: calc(0.75rem + 1.5vw);
  --sec-font-size: 1.1rem;
  --secc-font-size: 1rem;
}
* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: scroll;
}

header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(40px);
  transition: transform 0.3s ease-in-out;
}

body {
  margin: 0 auto;
  font-family: var(--main-font);
  font-size: var(--main-font-size);
  font-weight: var(--main-font-weight);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2,
h3,
h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
main {
  flex: 1;
  margin-bottom: 12rem;
}
img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}
hr {
  width: 40%;
  margin: 0 auto;
  border: none;
  height: 2px;
}
/* Style for the slider when the checkbox is checked (active) */
input:checked + .slider {
  background-color: #ffffea;
}

/* Style for the slider button when the checkbox is checked (active) */
input:checked + .slider::before {
  -webkit-transform: translateX(20px);
  transform: translateX(19px);
  background-color: #003018;
}
footer {
  margin: 0 auto;
  margin-top: 5rem;
  width: 100%;
  font-size: var(--secc-font-size);
  bottom: 0;
}
.rbat {
  max-width: 1920px;
  padding: 0 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gradient {
  background-size: cover;
  background-repeat: no-repeat;
}

/* Sections and main wrapper */

/* Navigation bar and Logo */
.nav-menu-holder {
  display: flex;
  flex-direction: row;
}

.nav-bar {
  height: inherit;
  margin: auto;
  max-width: 1920px;
  padding: 1rem 2rem 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hh-svg-logo {
  height: 3rem;
}
.hh-svg-logo:hover {
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

ul.nav-menu-item {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
}

.nav-menu-item:not(:last-child) {
  margin-right: 1rem;
}

/* Typography: Titles and Texts */
.main-heading {
  font-size: calc(min(2rem + 3vw, 7rem));
  text-align: center;
  letter-spacing: -1.6pt;
}
.opening {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.grid-container {
  margin-top: 2rem;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 3rem;
  grid-row-gap: 2rem;
}
.portfolio_filter {
  margin-top: 2rem;
  margin-bottom: 5rem;
}
.grid-container-portfolio {
  margin-top: 15em;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 3rem;
  grid-row-gap: 8rem;
}

.text-grid > p {
  margin: 0;
}

/* Footer */

.footer-container {
  padding: 5rem 2rem 5rem 2rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.middle-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 2rem;
  align-items: center;
  justify-items: center;
}

.middle-icons > a > svg {
  width: 22px;
}
.middle-icons > a + a > svg {
  width: 56px;
}
.middle-icons > a + a + a > svg {
  width: 28px;
}

.middle-icons,
.left-text {
  margin-bottom: 2rem;
}

ul.nav-menu-item-footer {
  list-style-type: none;
}
.nav-menu-item-footer:not(:last-child) {
  margin-right: 1rem;
}

ul.nav-menu-item-footer li:last-child {
  margin-right: 0;
}

/* Define a single keyframe animation for fading in elements */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Apply the animation to elements with different delays */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

/* Delay the animation for specific elements */
.fade-in-delay-1 {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 0.3s;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 0.8s;
}

/* Radar Chart */

.chart-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
  scrollbar-width: auto;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 16px;
}

/* ===== Homepage Portfolio ===== */
.masonry-grid {
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  -moz-column-gap: 1.5rem;
  -webkit-column-gap: 1.5rem;
  column-gap: 1.5rem;
}

.masonry-item {
  display: inline-block;
  margin: 0 0 1rem;
  width: 100%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

.masonry-item > img:hover {
  transform: scale(1.025) !important;
}

/* ===== DarkMode-Switch ===== */
.darkmode-switch-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  min-width: 77.33px;
}
.sun-icon,
.moon-icon svg {
  height: 20px;
}
.sun-icon,
.moon-icon {
  display: flex;
  align-items: center;
}
/* Style for the checkbox container */
.sliderbox {
  display: flex;
}
.switch {
  position: relative;
  width: 40px;
  height: 20px;
  margin-left: 4px;
  margin-right: 5px;
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Style for the slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #003018;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 25px;
}

/* Style for the slider button (dot) */
.slider::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 3px;
  bottom: 2.5px;
  background-color: #ffffea;
  border-radius: 50%;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.filter-button {
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-size: inherit;
  border-radius: 15px;
  border: none;
  padding: 0.7rem;
}
.filter-button {
  margin-right: 0.5rem;
}

/* Responsive Overlay Menu */
.overlay {
  display: flex;
  position: fixed;
  align-items: center;
  top: -300%;
  left: 0;
  width: 100%;
  transition: top 0.3s ease-in-out;
  padding: 1.5rem;
  box-sizing: border-box;
  z-index: 99;
}
#closeButton {
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  margin-right: 2rem;
  border: none;
  padding: 5px 10px;
  color: #ffffea;
  cursor: pointer;
}

.lang_switch {
  margin-bottom: 1rem;
}
