/* Reset & base */
@font-face {
  font-family: "Anton";
  src: url("font/Anton-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("font/Montserrat-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* keep horizontal hidden */
  overflow-y: auto; /* allow vertical scroll */
  font-family: "Montserrat";
}

input,
textarea {
  width: 100%; /* fill the form’s width only */
  max-width: 100%; /* prevent overflowing form */
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box; /* ensures padding doesn’t push past max-width */
}

.scroll-up-btn {
  cursor: pointer;
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.scroll-up-btn.show {
  opacity: 1;
  pointer-events: auto;
}

#canvasId1 {
  width: 1024px !important;
  height: 1024px !important;
  position: absolute;
  top: 0;
  left: 0;
}

/* Thin scrollbar - Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 6px; /* scrollbar width */
}
::-webkit-scrollbar-track {
  background: transparent; /* or #f1f1f1 if you want a track */
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.35); /* dark grey handle */
  border-radius: 3px; /* rounded */
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.55); /* darker on hover */
}

/* Thin scrollbar - Firefox */
* {
  scrollbar-width: thin; /* makes it thin */
  scrollbar-color: rgba(0, 0, 0, 0.35) transparent;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff; /* or your background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#loading-screen.hidden {
  opacity: 0;
}

.loader {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Fullscreen Slider Overlay */
.fs-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(255, 255, 255, 0.8); /* must be semi-transparent */
  backdrop-filter: blur(10px); /* 🔥 blur background */
  -webkit-backdrop-filter: blur(10px); /* Safari support */

  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

/* Show */
.fs-slider.active {
  display: flex;
}

.fs-slider-content {
  position: relative;
  width: 100%;
  height: 100vh; /* full viewport height */
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Main fullscreen image */
.fs-main-image {
  max-height: 70vh; /* keeps room for thumbnails */
  width: auto;
  height: auto;
  max-width: 90%;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Close button */
.fs-close {
  font-size: 5rem;
  position: absolute;
  top: 20px; /* move inside the modal */
  right: 20px; /* visible area */

  color: rgb(0, 0, 0);
  cursor: pointer;
  z-index: 100000; /* on top of everything */
}

/* Arrows */
.fs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgb(0, 0, 0);
  cursor: pointer;
  padding: 10px;
  user-select: none;
  z-index: 100000; /* ensure on top */
}

/* Put arrows 20px inside the screen */
.fs-left {
  left: 20px;
}

.fs-right {
  right: 20px;
}

/* Thumbnail strip */
.fs-thumbs {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 10px;
  width: 100%;
  overflow-x: auto;
  position: absolute;
  bottom: 10px; /* always visible */
  left: 0;
}

.fs-thumbs img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.fs-thumbs img.active {
  opacity: 1;
  border: 2px solid #fff;
}

.vbtn-wrap {
  margin-top: 20px;
}
.view-btn {
  background: #fff; /* white */
  color: #111; /* dark text */
  border: 2px solid #111; /* thin dark border */
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.view-btn:hover {
  background: #111; /* invert on hover */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.view-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* MODAL WRAPPER */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* SHOW MODAL */
.contact-modal.active {
  display: flex;
}

/* MODAL CONTENT */
.contact-modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.contact-modal-content h2 {
  font-family: "Anton", sans-serif;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.qr-img {
  width: 220px;
  height: auto;
  margin-bottom: 1rem;
}

.or-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.email {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.copy-feedback {
  opacity: 0;
  font-size: 0.85rem;
  color: #28a745; /* green, success color */
  margin-top: -5px;
  transition: opacity 0.3s ease;
}
.copy-feedback.show {
  opacity: 1;
}
#copy-email {
  cursor: pointer;
}

.ig-link .ig-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: 0.3s;
}

.ig-link .ig-icon:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.git-btn {
  background: #111; /* dark background */
  color: #fff; /* white text */
  border: none;
  border-radius: 20px;
  padding: 0.8rem 1.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* if using <a> */
  display: inline-block;
  pointer-events: auto;
}

.git-btn:hover {
  background: #333; /* lighter on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.git-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Fixed 3D canvas background */
#renderer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.main-wrap {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* Overlay info box */
.overlay {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: #111;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Scroll sections */
section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.hero-text {
  position: absolute;
  top: 3%;
  width: 100%;
  text-align: center;
  color: #111;
  font-family: "Anton", sans-serif;
  letter-spacing: 2px;
  font-weight: bold;
  opacity: 1; /* visible on load */
  transform: none; /* no offset */
}

.hero-text .line1 {
  font-size: 6rem;
  line-height: 1.1;
  margin: 0;
}
.hero-text .line2 {
  font-size: 6rem;
  line-height: 1.1;
  margin: 0;
}
.about-section {
  height: 100vh;
  display: flex;
  align-items: left;
  justify-content: left;
  padding: 0 10%;
  color: #111;
  background: transparent; /* jersey still visible */
}

.about-text {
  max-width: 800px;
  text-align: center;
  font-family: "Anton", sans-serif;
}

.about-text .line {
  opacity: 0;
  transform: translateY(30px);
  margin: 1rem 0;
}

.about-text .hi {
  font-size: 4rem;
  font-weight: bold;
}

.about-text .hi span {
  color: #e63946; /* highlight Elmar in red or your brand color */
}

.about-text .role {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.about-text .desc {
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: "Montserrat";

  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.skills-section {
  height: 100vh;
  display: flex;
  align-items: right;
  justify-content: right;
  padding: 0 15%;
  color: #111;
  background: transparent; /* jersey still visible */
}

.skills-text {
  text-align: center;
  max-width: 600px;
  color: #111;
  font-family: "Montserrat";
  line-height: 1.4;
}

.skills-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-family: "Anton", sans-serif;
}

.skills-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.clients-section {
  height: 100vh;
  display: flex;
  align-items: right;
  justify-content: right;
  padding: 0 20%;
  color: #111;
  background: transparent; /* jersey still visible */
}

.clients-text {
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: "Montserrat";
  text-align: center; /* keep everything aligned right */
  max-width: 600px;
}

.clients-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-family: "Anton", sans-serif;
}

.clients-slider {
  margin-top: 1.5rem; /* spacing below <p> */
  overflow: hidden;
  width: 100%; /* takes full width of text block */
  position: relative;
}
.slider-track {
  display: flex;
  width: calc(200%); /* twice for looping */
  animation: scroll 25s linear infinite;
}

.client-logo {
  flex: 0 0 auto;
  padding: 0 40px;
}

.client-logo img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.client-logo img:hover {
  filter: none;
  opacity: 1;
}

/* sliding keyframes */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.contact-section {
  min-height: 100vh; /* still full screen for flow */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5% 10%;
  background-color: white; /* keep jersey visible */
  text-align: center;
}

.contact-text h2 {
  font-family: "Anton", sans-serif;
  margin-bottom: 0.5rem;
}

.contact-text p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 0.95rem;
  font-family: "Montserrat";
  max-width: 500px;
}

.contact-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto; /* center form */
  text-align: left;
  box-sizing: border-box;
}

.checkbox-group {
  display: flex;
  justify-content: center;
  align-items: center; /* makes all labels align properly */
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.checkbox-group label {
  display: flex;
  align-items: center; /* 👈 aligns checkbox + text to the same baseline */
  gap: 0.4rem; /* small space between box and text */
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-group input[type="checkbox"] {
  margin: 0; /* remove weird default spacing */
  transform: translateY(1px); /* fine-tune vertical centering if needed */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 0.7rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #333;
}

.nav-top {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 10000;
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  width: auto;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "Anton", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #111;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 25px;
  height: 18px;
  gap: 4px;
  z-index: 10001;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation when active */
.burger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-top nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-top nav ul li a {
  text-decoration: none;
  color: #111;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-top nav ul li a:hover,
.nav-top nav ul li a.active {
  color: #383838;
}

/* Avoid content hiding behind nav */
section {
  scroll-margin-top: 100px;
}
#c-right {
  position: fixed;
  z-index: 10;
  display: none;
}
