html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: white;
}

a { color: rgb(128, 0, 255); text-decoration: none; }

.currentlyActive { background: rgb(255,0,0) !important; }

#note {
  color: black;
  position: fixed;
  bottom: 5px;
  right: 10px;
  font-family: "Google Sans Code", monospace;
  font-size: 8px;
  z-index: 9999;
}

#zoomControls {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 9999;
  display: flex;
  gap: 10px;
}

#projectSliderInner img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

#zoomControls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  background: #000;
  border-radius: 64px;
  padding: 8px;
}

.zoomButton {
  font-size: 22px;
  font-weight: 600;
  width: 42px;
  height: 42px;
  border-radius: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
  background: white;
  color: black;
  mix-blend-mode: difference;
  cursor: pointer;
}

.zoomButton:hover,
.zoomButton:active {
  background: black;
  color: white;
  transition: .25s ease;
}

#zoomIn.maxedOut,
#zoomOut.maxedOut {
  opacity: .35;
  pointer-events: none;
  filter: grayscale(1);
}

#zoomControls button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: white;
  font-size: 22px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  opacity: .9;
  transition: .25s ease;
}

#zoomControls button:hover {
  background: black;
  color: white;
  transform: scale(1.1);
}

#buttonBar, #projectPager {
  position: fixed !important;
  z-index: 2000;
}

#buttonBar {
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 2px;
  gap: 14px;
  background: black;
  border-radius: 24px;
  z-index: 100;
}

#leftGroup, #rightGroup, #midGroup { display: flex; gap: 14px; }
#midGroup { background: #58dc66; border-radius: 24px; }

.imgButton,
.pagerButton {
  position: relative;
  height: 24px;
  width: 16px;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  padding: 2px 6px;
  align-items: center;
  transition: width .7s cubic-bezier(.25,.8,.25,1), background .35s ease;
}

.imgButton:hover, .pagerButton:hover {
  width: var(--dynamic-width);
}

.imgButton.active, .pagerButton.active {
  width: var(--dynamic-width);
  background: blue;
}

.imgLabel, .pagerLabel {
  margin-left: 20px;
  white-space: nowrap;
  opacity: 0;
  font-family: "Google Sans Code", sans-serif;
  font-size: 16px;
  padding: 4px 0;
  color: black;
  transition: opacity .4s ease, color .3s ease;
  pointer-events: none;
}

.imgButton:hover .imgLabel,
.imgButton.active .imgLabel,
.pagerButton:hover .pagerLabel,
.pagerButton.active .pagerLabel {
  opacity: 1;
}

.imgButton.active .imgLabel,
.pagerButton.active .pagerLabel {
  color: white !important;
}

.desc {
  position: fixed;
  color: black;
  font-family: "Google Sans Code", sans-serif;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 20;
}

.desc.show { opacity: 1; pointer-events: auto; }

.desc h1 { font-size: clamp(48px,4vw,100px); margin-bottom:10px; }
.desc p  { font-size: clamp(14px,1.4vw,20px); }

.connect-btn {
  background: black;
  color: white;
  border: none;
  font-size: 16px;
  height: 64px;
  padding: 0 24px;
  border-radius: 32px;
  cursor: pointer;
  font-family: "Google Sans Code", sans-serif;
  transition: .3s ease;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 12px;
}

.connect-btn:hover { background: rgb(0,0,255); }

#desc0 { left: 120px; bottom: 120px; max-width: 35%; }
#desc1 { left: 120px; top: 120px; max-width: 40%; }

#desc2, #desc4, #desc5 {
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#desc2 { bottom:auto; max-width:50%; }
#desc4 { max-width:40%; }
#desc5 { max-width:35%; }

#desc3 { left: 120px; top:50%; transform:translateY(-50%); max-width:40%; }

#projectOverlay {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: .6s ease;
  z-index: 50;
}

#projectOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

#overlayContent {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: white;
  font-family: "Google Sans Code", sans-serif;
  text-align: center;
  max-width: 100vw;
}

#projectSlider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
}

#projectSliderInner {
  display: flex;
  transition: transform .6s cubic-bezier(.25,.8,.25,1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#projectSlider::-webkit-scrollbar { display: none; }

.slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slide img {
  max-width: 100vw;
  border-radius: 12px;
}

.slide iframe {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  border-radius: 12px;
  border: none;
}

#projectPager {
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 14px;
}

.pagerBack {
  flex-shrink: 0 !important;
  width: var(--dynamic-width) !important;
  background: transparent !important;
  border: 1px solid white !important;
}

.pagerBack .pagerLabel { opacity:1!important; color:white!important; }
.pagerBack:hover { background:white!important; }
.pagerBack:hover .pagerLabel { color:black!important; }

.endPage {
  left:50%;
  height:70%;
  width:30%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  color:white;
}

.endInner {
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:16px;
  justify-content:center;
  align-items:center;
  font-family:"Google Sans Code",sans-serif;
}

.imgButton.currentlyActive { width: var(--dynamic-width); }

.buttonRow { display:flex; gap:16px; }
.connect-btn img { width:18px; height:18px; object-fit:contain; }

#connect-left {
  display:none;
  align-items:center;
  max-width:48px;
  overflow:hidden;
  white-space:nowrap;
  transition:.4s ease;
  border-radius:32px;
  background:black;
  color:white;
  cursor:pointer;
  font-family:"Google Sans Code",sans-serif;
}

#connect-left .show {
  display:flex;
  max-width:420px;
  padding:8px 12px;
}

.connect-info p { margin:0 10px 0 0; font-size:13px; display:inline-block; }

.send-mail-btn {
  margin-left:auto;
  padding:6px 12px;
  border-radius:6px;
  cursor:pointer;
  font-size:13px;
  white-space:nowrap;
}
