* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
.contact-link,
.maps-link,
.social-icon-link,
.info-toggle,
.project-header-inline:active,
.contact-close:active,
.next-icon:active {
  transition: transform 0.1s ease;
}

a:active,
button:active,
.contact-link:active,
.maps-link:active,
.social-icon-link:active,
.info-toggle:active,
.project-header-inline:active,
.contact-close:active,
.next-icon:active {
  transform: scale(0.95);
}


html,
body {
  height: 100%;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  color: white;
  background-color: rgb(36, 36, 36);
}

#overlay {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(360deg, #0000008f, transparent 50%);
  position: fixed;
  z-index: 3;
}

a {
  user-select: none;
}

.section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
  transform: scale(1) translateX(0);
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}

.section.active {
  opacity: 1;
  visibility: visible;
}

.section-contain {
  background-repeat: no-repeat;
  background-size: contain;
}

.sidebar {
  position: fixed;
  top: 0;
  width: 50px;
  height: 100%;
  background: #73bf43;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.sidebar.visible {
  opacity: 1;
}

.sidebar .label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease;
  letter-spacing: 3px;
}

.sidebar.visible .label {
  opacity: 1;
}

.left {
  left: 0;
}

.right {
  right: 0;
}

.section-title {
  position: fixed;
  bottom: 50px;
  left: 100px;
  right: 200px;
  font-size: 48px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 11;
  display: flex;
  gap: 5px;
  flex-direction: column;
}

.section-title .number {
  color: #73bf43;
  margin-right: 10px;
}

.section-title .text {
  color: white;
  margin-right: 20px;
}

.next-icon {
  background: #73bf43;
  padding: 10px 20px;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-shadow: none;
  display: inline-block;
}

.next-icon:hover {
  background-color: #5cae39;
}

.next-icon span {
  margin-right: 10px;
}


.social-icons {
  position: fixed;
  bottom: 50px;
  right: 100px;
  display: flex;
  gap: 15px;
  font-size: 24px;
  z-index: 11;
}

.social-icons a {
  color: white;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #73bf43;
}

.header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 11;
}

.logo {
  margin-left: 100px;
  height: 50px;
  /* Adjust as you need */
  filter: drop-shadow(2px 2px 10px rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.header-links {
  display: flex;
  gap: 20px;
  font-size: 15pt;
  text-shadow: 0 0 4px black;
  margin-right: 100px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  background: #73bf43;
  color: white;
}

.title-line {
  vertical-align: middle;
  align-items: center;
}

.title-flex-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 26px;
  font-weight: 300;
  /* opacity: 0.8; */
  /* text-shadow: 3px 2px 5px rgb(0 0 0 / 57%); */
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.9));
}

.subtitle .green {
  color: #d9ffc0;
  font-weight: 700;
  text-align: center;
}

.subtitle .white {
  color: white;
}

.big-number {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 120px;
  font-weight: 700;
  color: #73bf43;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-header-inline {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #ffffff29;
    padding: 5px 10px 5px 10px;
    width: fit-content;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.project-header-inline:hover{
  background: #ffffff52;
}

.project-header-inline .back-icon {
  font-size: 12px;
}

#blurred-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  opacity: 0;
  z-index: 1;
  /* Below sections (which should be z-index > 1) */
  pointer-events: none;
  transition: opacity 1s ease;
}

.info-panel {
  position: fixed;
  right: 0px;
  top: 20px;
  bottom: 20px;
  width: 400px;
  background: linear-gradient(96deg, #000000c9, #0000008c);
  color: white;
  padding: 20px;
  overflow-y: auto;
  z-index: -1;
  opacity: 0;
  border-radius: 20px 0 0 20px;
  transition: all 1s ease;
}

.info-panel h2 {
  font-size: 25px;
  margin-bottom: 20px;
}

.info-list {
  list-style: none;
  padding: 0;
  font-size: 14px;
  margin-bottom: 30px;
}

.info-list li {
  margin-bottom: 8px;
}

.info-panel .description ul {
  margin-left: 20px;
}

.info-panel p {
  padding-bottom: 8px;
}

.info-toggle {
  position: fixed;
  right: 100px;
  bottom: 48px;
  background-color: #73bf43;
  color: white;
  font-weight: bold;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  z-index: 20;
  cursor: pointer;
  transition: all 1s ease;
  display: none;
}

.info-toggle:hover {
  background-color: #5cae39;
}

.info-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 35px;
  cursor: pointer;
  color: white;
  z-index: 2;
}


.contact-page {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  display: block;
  /* always in DOM, hidden by transform/opacity */
  transition: transform 0.6s ease, opacity 0.6s ease;
  display: flex;
  flex-direction: row;
  pointer-events: none;
  /* disable interaction when hidden */
}

.contact-page.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  /* enable interaction when visible */
}


.contact-left {
  flex: 0 0 40%;
  background: url('../img/office.jpg') center center / cover no-repeat;
}

.contact-right {
  flex: 0 0 60%;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  background: #73bf43;
  color: white;
  padding: 2rem;
  align-items: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  /* ensures content can stretch full height */
  max-width: 400px;
  margin: auto 0;
  /* vertical center if possible */
}

.contact-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-content a {
  color: white;
  margin-top: 8px;
}

.contact-logo {
  margin-bottom: 20px;
}

.contact-close {
  position: absolute;
  top: 0px;
  right: 20px;
  font-size: 60px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.contact-close:hover {
  color: #d9ffc0;
  /* lighter green or any accent */
}

.maps-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid white;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.maps-link i,
.contact-link i {
  color: #d9ffc0;
  /* light green marker */
}

.maps-link:hover,
.contact-link:hover {
  background: white;
  color: #73bf43;
}

.maps-link:hover i,
.contact-link:hover i {
  color: #73bf43;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid white;
  border-radius: 50%;
  color: white;
  margin: 0 5px 5px 0;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.social-icon-link i {
  color: #d9ffc0;
  /* light green icon */
}

.social-icon-link:hover {
  background: white;
  color: #73bf43;
}

.social-icon-link:hover i {
  color: #73bf43;
}


/* RESPONSIVENESS */
@media (max-width: 1024px) {
  .section-title {
    left: 80px;
    font-size: 36px;
  }

  .logo {
    margin-left: 80px;
    height: 40px;
  }

  .header-links {
    font-size: 13pt;
    margin-right: 60px;
  }

  .social-icons {
    right: 80px;
    font-size: 20px;
  }

  .subtitle {
    font-size: 22px;
    margin-bottom: 5px;
  }

  .next-icon {
    font-size: 18px;
  }

  .info-toggle {
    right: 80px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 35px;
  }

  .sidebar .label {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .section-title {
    font-size: 28px;
    bottom: 40px;
    left: 50px;
    right: 50px;
  }

  .next-icon {
    font-size: 16px;
  }

  .logo {
    margin-left: 50px;
    height: 35px;
  }

  .header-links {
    gap: 10px;
    font-size: 11pt;
    margin-right: 30px;
  }

  .social-icons {
    display: none;
  }

  .subtitle {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 5px;
  }

  .contact-page {
    flex-direction: column;
  }

  .contact-left {
    flex: 0 0 40%;
    min-height: 200px;
  }

  .contact-right {
    padding: 40px;
    display: block;
  }

  .contact-content h1 {
    font-size: 24px;
  }

  .contact-content p {
    font-size: 16px;
  }

  .contact-close {
    font-size: 40px;
    top: 10px;
    right: 10px;
    color: white;
    background: #8fbd4f;
    border-radius: 100px;
    height: 34px;
    padding: 5px;
    line-height: 23px;
  }

  .info-toggle {
    right: 50px;
  }
}


@media (max-width: 600px) {

  .sidebar:active {
    transition: transform 0.1s ease;
  }

  .sidebar:active {
    transform: scale(0.95);
  }

  #overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(360deg, #0000009e, transparent);
    position: fixed;
    z-index: 3;
  }

  .left .num::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f060";
    /* fa-arrow-left unicode */
    margin-right: 4px;
  }

  .right .num::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f061";
    /* fa-arrow-right unicode */
    margin-left: 4px;
  }


  .section-title {
    font-size: 36px;
    position: fixed;
    bottom: 65px;
    width: calc(100% - 40px);
    left: 20px;
    right: auto;
  }

  .section-title .text {
    line-height: 37px;
    margin-right: 0;
  }

  .info-toggle {
    left: 20px;
    bottom: 20px;
    right: auto;
  }

  .info-panel {
    top: 60%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    bottom: 0;
  }

  .nav-link {
    padding: 5px 1px;
  }

  .nav-link:hover{
    background: transparent;
  }

  .next-icon {
    display: inline-block;
    bottom: 0;
    height: auto;
    border-radius: 20px;
    line-height: 30px;
    padding: 6px 25px;
    text-shadow: none;
    letter-spacing: 1px;
  }

  .next-icon:hover {
    background-color: #5cae39;
  }

  .next-icon span {
    display: inline-block;
  }

  .header {
    top: 30px;
    right: 30px;
  }

  .header-links {
    margin-right: 0px;
  }

  .logo {
    margin-left: 30px;
    height: 30px;
  }

  .social-icons {
    display: none;
  }

  .subtitle {
    font-size: 17px;
    line-height: 24px;
    margin: 0;
  }

  .social-icons {
    gap: 10px;
  }

  .contact-right {
    display: block;
    overflow-y: auto;
  }

  .contact-content {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
  }

  .contact-link,
  .maps-link {
    padding: 2px 6px;
    font-size: 14px;
  }

  .social-icon-link {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .contact-content h1 {
    font-size: 20px;
  }

  .contact-content p {
    font-size: 14px;
  }

  .sidebar {
    position: fixed;
    width: auto;
    height: 40px;
    bottom: 10px;
    top: auto;
    background: transparent;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
  }

  .sidebar .label:empty,
  .sidebar .label .num:empty {
    display: none;
  }


  .left {
    left: 10px;
    right: auto;
  }

  .right {
    right: 10px;
    left: auto;
  }

  .sidebar .label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 18px;
    color: white;
    background: #73bf43;
    padding: 4px 10px;
    border-radius: 20px;
  }

  .sidebar .label .name {
    display: none;
  }
}