:root {
  --accentcolor: #CCEF00;
  --whitecolor: #FFFFFF;
  --lightcolor: #F4F5F5;
  --graycolor: #ECEEED;
  --darkcolor: #99A39E;
  --blackcolor: #131313;
  --space-xs: 10px;
  --space-s: 20px;
  --space-m: 40px;
  --space-l: 60px;
  --space-xl: 80px;

  --text-xs: 6px;
  --text-s: 10px;
  --text-m: 18px;
  --text-l: 24px;
  --text-xl: 60px;
}

@media (max-width: 600px) {

  :root {
  --space-xs: 6px;
  --space-s: 12px;
  --space-m: 24px;
  --space-l: 48px;
  --space-xl: 60px;

  --text-xs: 4px;
  --text-s: 10px;
  --text-m: 14px;
  --text-l: 21px;
  --text-xl: 48px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-padding-top: 76px;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  background-color: var(--graycolor);
}


h1, h3 {
  font-size: var(--text-l);
  line-height: 1;
  font-weight: 300;
  color: var(--blackcolor);
  text-align: left;
  text-transform: uppercase;
}

h2 {
  font-family: 'Tomorrow', sans-serif;
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--blackcolor);
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

h4 {
  font-family: 'Tomorrow', sans-serif;
  font-size: var(--text-l);
  line-height: 1;
  font-weight: bold;
  color: var(--whitecolor);
  text-align: left;
  text-decoration: none;
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none;
}

p {
  font-size: var(--text-m);
  line-height: 1.3;
  font-weight: 300;
  color: var(--blackcolor);
}

.white-bg {
  background-color: var(--whitecolor);
}

.black-bg {
  background-color: var(--blackcolor);
}

.accent {
  color: var(--accentcolor);
}

.column {
  flex-direction: column;
  gap: 0px;
}

.section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
}

.two-blocks {
  display: flex;
  max-width: 1280px;
  width: 100%;
  gap: var(--space-s)
}

.title-container {
  width: 50%;
  background-color: var(--whitecolor);
  border-radius: 4px;
  /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);*/
  padding: var(--space-s); /*inner space between the text and the edge*/
  display: flex;
  overflow: hidden;
}

.content-container {
  width: 50%;
  background-color: var(--whitecolor);
  border-radius: 4px;
  /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);*/
  padding: var(--space-s);
  display: flex;
  overflow: hidden;
  gap: var(--space-s);
}

@media (max-width: 1024px) {

  .title-container,
  .content-container {
      width: 100%;
  }

  .title-container {
      height: auto; /* Height to fit content */
  }
}










/* ---- NAV BAR ---- */

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 11;
  background-color: var(--blackcolor);
  padding: var(--space-xs) var(--space-m);
}

nav {
  display: flex;
  width: 100%;
  max-width: 1280px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  cursor: pointer;
  /*background-color: var(--darkcolor);*/
}

.nav-bar {
  display: flex;
}

ul {
  display: flex;
  align-items: center;
  justify-content: space-around ;
  list-style: none;
  gap: var(--space-m);
}

ul a {
  font-size: var(--text-m);
  line-height: 1.3;
  font-weight: 300;
  color: var(--graycolor);
  text-decoration: none;
}

ul li a:hover {
  color: var(--accentcolor);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.close-hamburger {
  display: none;
  color: var(--whitecolor);
  cursor: pointer;
  margin-top: var(--space-m);
}

#overlay {
  display: none;
  background-color: #131313f5;
  position: fixed;
  inset: 0;
  z-index: 9;
  padding-bottom: calc(var(--space-xs) + env(safe-area-inset-bottom, 0px));
}

#overlay:after {
  content: '';
  position: absolute;
  inset: 0px;
  background-image: url('noise.png');
  background-repeat: repeat;
  opacity: 0.02;
  z-index: -1;
}

.backtotop {
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  z-index: 10;
  bottom: var(--space-xl);
  right: var(--space-m);
  padding: var(--space-s);
  background-color: var(--darkcolor);
  border: none;
  border-radius: 50%; /* Optional: round button */
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.backtotop.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 940px) {
  .nav-bar {
    display: grid;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100dvh;
    z-index: 10;
    background-color: var(--blackcolor);
    align-content: end;
    transition: right 100ms ease-out;
    padding-bottom: calc(var(--space-xs) + env(safe-area-inset-bottom, 0px)); 
  }

  .nav-bar.show {
    right: 0;
  }

  .nav-bar.show ~ #overlay {
    display: block;
  }

  ul {
    display: grid;
    justify-items: end;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
  }

  ul li {
    padding: var(--space-xs) var(--space-l);
  }

  .hamburger {
    display: flex;
  }

  .close-hamburger {
    display: flex;
  }

  .backtotop {
    display: flex;
  }
}










/* ---- HERO ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  border: none;
  gap: var(--space-xs);
}

.ctas {
  display: flex;
  width: 100%;
  gap: var(--space-s);
  padding-top: var(--space-s);
}

.cta1 {
  display: inline-block;
  padding: var(--space-xs) var(--space-s);
  background-color: var(--accentcolor);
  border: none;
  border-radius: 4px;
  color: var(--blackcolor);
  font-family: 'Tomorrow', sans-serif;
  font-size: var(--text-m);
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
}

.cta1:hover {
  background-color: var(--blackcolor);
  color: var(--accentcolor);
}

.cta2 {
  /*display: none;*/
  display: inline-block;
  padding: var(--space-xs) var(--space-s);
  background-color: var(--blackcolor);
  border: none;
  border-radius: 4px;
  color: var(--whitecolor);
  font-family: 'Tomorrow', sans-serif;
  font-size: var(--text-m);
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
}

.cta2:hover {
  background-color: var(--whitecolor);
  color: var(--blackcolor);
  box-shadow: inset 0 0 0 2px var(--blackcolor);
}

.kerning {
  letter-spacing: -5px;
}










/* ---- PORTFOLIO ---- */

.grid {
  padding: 0px var(--space-m);
  z-index: 2;
}

.grid:after {
  content: '';
  display: block;
  clear: both;
}

.element-item {
  position: relative;
  float: left;
  width: 200px;
  height: 200px;
  cursor: pointer;
  background-color: var(--darkcolor);
  border-radius: 4px;
  overflow: hidden;
}

.element-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  /* inset | x-offset | y-offset | blur-radius | spread-radius | color */
  box-shadow: inset 0 0 20px 0px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 1;
}

.element-item:hover .cover {
  transform: scale(1);
}

.element-item > * {
  margin: 0;
  padding: 0;
}

.wide {
  width: 420px;
}

.tall {
  height: 420px;
}

.tag {
  background-color: var(--blackcolor);
  position: absolute;
  left: 4px;
  bottom: 4px;
  border-radius: 3px;
  padding: 4px 8px !important;
  opacity: .6;
  z-index: 2;
}

.tag p {
  margin: 0;
  color: var(--accentcolor);
  font-size: var(--text-s);
}

.cover {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transform: scale(1.02);
  transition: transform 0.1s ease-out;
}

.popup {
  display: none;
  overflow: hidden;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color:#131313f5;
  /*backdrop-filter: blur(20px);*/
  align-items: center;
  justify-content: center;
}

.popup:after {
  content: '';
  position: absolute;
  inset: 0px;
  background-image: url('noise.png');
  background-repeat: repeat;
  opacity: 0.02;
  z-index: -1;
}

.show-popup{
  display: flex;
}

.popup-disclaimer {
  position: absolute;
  bottom: var(--space-m);
  left: 50%;
  transform: translateX(-50%);
  color: var(--whitecolor);
  font-family: 'Oswald', sans-serif;
  font-size: var(--text-m);
  font-weight: 300;
  text-align: center;
  opacity: 0.8; /* Slightly muted so it doesn't distract from the banner */
  pointer-events: none; /* Ensures clicking the text still closes the popup */
  margin: 0;
  z-index: 1000;
}

@media (max-width: 1024px) {

  .two-blocks {
    flex-direction: column;
  }

  .element-item {
    width: 100px; 
    height: 100px;
  }

	.wide {
		width: 210px;
	}

	.tall {
		height: 210px;
	}
}










/* ---- filter buttons ---- */

.filter {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: var(--space-m) var(--space-m) var(--space-s) var(--space-m);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1280px;
  align-items: left;
  justify-content: left; /*this changes the alignment of the button group*/
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

.button-group .button {
  float: left;
  margin-left: 0;
  border-radius: 4px;
}

/*
.button-group .button:first-child { border-radius: 4px 0 0 4px; }
.button-group .button:last-child { border-radius: 0 4px 4px 0; }
*/

.button {
  display: flex;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  padding: 0px 8px 4px 8px;
  border: none;
  background: none;
  color: var(--blackcolor);
  font-size: var(--text-m);
  cursor: pointer;
  margin: 0px 8px;
}

.button:hover {
  background-color: var(--accentcolor);
}

.button:active,
.button.is-checked {
  background-color: var(--whitecolor);
}

@media (max-width: 600px) {
  .button {
    padding: 0px 10px 3px 10px;
  }
}










/* ---- My clients say ---- */

.testimonial-tabs {
  display: flex;
  /*margin-bottom: 20px;*/
  background-color: var(--blackcolor);
  width: fit-content;
  border-radius: 100px;
  padding: 4px;
  gap: 8px;
}

.tab-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  padding: 0px 16px 4px 16px;
  background-color: var(--blackcolor);
  color: var(--whitecolor);
  cursor: pointer;
  border-radius: 100px;
  font-size: var(--text-m);
  transition: background-color 0.3s, color 0.3s;
  border: none;
}

.tab-button:hover {
  background-color: var(--accentcolor);
  color: var(--blackcolor);
}

.tab-button.active {
  background-color: var(--whitecolor);
  color: var(--blackcolor);
}



/* Slider Containers */

.slider-content {
  display: none; /* Hidden by default */
  width: 100%;
}

.slider-content.active {
  display: block;
}

/* Swiper Styles */
.swiper-container {
  width: 100%;
  overflow: hidden; /* Important for rounded corners on slides */
  padding-bottom: var(--space-m); /* Space for pagination */
  position: relative;
}

.swiper-slide {
  background-color: transparent; /* Slides themselves are transparent */
}



/* Official Testimonials Styling */

.official-testimonial {
  background-color: var(--lightcolor);
  padding: var(--space-s);
  border-radius: 4px;
  margin-bottom: var(--space-s); /* Space between stacked testimonials */
  display: flex;
  flex-direction: column;
}
.official-testimonial:last-child {
  margin-bottom: 0;
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-s);
  font-size: var(--text-m);
  font-weight: 300;
  color: var(--blackcolor);
}

.testimonial-location {
  margin-right: var(--space-xs);
}

.testimonial-rating {
  border-radius: 40px;
  padding: 0px var(--space-s) 4px var(--space-s);
  color: var(--blackcolor);
  background-color: var(--accentcolor);
}

.testimonial-text {
  font-size: var(--text-l);
  line-height: 1.3;
  color: var(--blackcolor);
}



/* Private Messages Styling */

.private-messages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs); /* Gap between messages */
}

.private-message {
  display: grid;
  align-content: space-between;
  padding: 15px 15px 10px 15px;
  border-radius: 4px;
  font-size: var(--text-m);
  line-height: 1.3;
  font-weight: 300;
  color: var(--blackcolor);
  background-color: var(--lightcolor);
}

.private-message-text {
  margin-bottom: 0px; /* space before the timestamp*/
}

.private-message-time {
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-s);
  color: var(--darkcolor);
  text-align: right;
}



/* Custom Pagination */

.swiper-custom-pagination {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
}

.swiper-custom-pagination-bullet {
  height: var(--space-xs); /* Thin rectangle */
  background-color: var(--graycolor);
  border-radius: 4px;
  cursor: pointer;
  flex-grow: 1; /* Make bullets fill the width */
  transition: background-color 0.3s;
  opacity: 0.7;
}

.swiper-custom-pagination-bullet-active {
  background-color: var(--darkcolor); /* Active bullet color */
  opacity: 1;
}



@media (max-width: 600px) {

  .private-messages-grid {
    grid-template-columns: 1fr; /* Stack messages in a single column */
  }

  .official-testimonial {
    margin-bottom: 15px; /* Consistent spacing on mobile */
  }

  .tab-button {
    padding: 0px 10px 3px 10px;
  }
}










/* ---- WHY ME ---- */

.why-me {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  padding: var(--space-l) 0px;
  gap: var(--space-s);
}

.why-me-card {
  padding: var(--space-s) 0px;
  overflow: hidden;
  /*background-color: var(--whitecolor);*/
  /*border-radius: 4px;*/
  /*width: 305px;*/
}

.why-me-card-headline {
  display: flex;
  gap: 4px;
  align-items: baseline;
}










/* ---- ABOUT ME ---- */

.about-me {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--space-s);
}

.about-pfp {
  position: relative;
  width: 160px;
  flex-shrink: 0;
}

.about-pfp img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.about-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--space-xs);
}

.about-loc-group {
  display: flex;
  width: 100%;
  align-content: center;
  gap: var(--space-m);
  padding: var(--space-xs) 0px;
}

.about-loc {
  display: flex;
  width: 100%;
  align-content: center;
  gap: var(--space-xs);
}

.about-loc-icon {
  display: grid;
  align-content: center;
}

.about-loc-text {
  display: grid;
  width: 100%;
  align-content: center;
}

.about-fact {
  display: flex;
  width: 100%;
  border-radius: 4px;
}

.about-fact-icon {
  display: grid;
  background-color: var(--blackcolor);
  align-content: center;
  padding: 8px 16px;
  border-radius: 4px 0px 0px 4px;
}

.about-fact-text {
  display: grid;
  width: 100%;
  background-color: var(--lightcolor);
  align-content: center;
  padding: 6px 16px 8px 16px;
  border-radius: 0px 4px 4px 0px;
}

@media (max-width: 600px) {
  .about-pfp {
    display: none;
  }
}










/* ---- PERSONAL RECORDS ---- */

.pr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  justify-content: center;
  width: 100%;
  gap: var(--space-xs);
}

.pr-card {
  display: grid;
  gap: 4px;
  overflow: hidden;
  background-color: var(--lightcolor);
  border-radius: 4px;
  padding: var(--space-s);
}










/* ---- FOOTER ---- */

.footer {
  display: grid;
  max-width: 1280px;
  width: 100%;
  background-color: var(--blackcolor);
  padding: var(--space-l) 0px 0px 0px;
}

.footer p {
  color: var(--whitecolor);
}

.footer-contacts {
  /*display: none;*/
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-m);
  align-items: start;
}

.footer-slow {
  display: grid;
  gap: var(--space-s);
  align-content: center;
}

.footer-fast-group {
  display: grid;
  gap: var(--space-s);
}

.footer-fast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: space-between;
  gap: var(--space-s);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--darkcolor);
  margin: var(--space-xl) 0px var(--space-s) 0px;
}

.footer-credentials {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: end;
}