html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

@font-face {
  font-family: "Arial Nova Light";
  src: url("fonts/ArialNova-Light.ttf") format("truetype");
}

/* Full-screen section */
.full-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  animation: fadeIn 0.5s forwards;
}

.full-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-style: italic;
  font-family: Arial, sans-serif;
  line-height: 0.5;
}

.overlay-text h1 {
  font-size: 16px;
  margin-bottom: 10px;
}

.overlay-text p {
  font-size: 12px;
  font-family: "Arial Nova Light", Arial, Helvetica;
}

/* Content section */
.content-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 180px;
  padding-left: 30px;
  padding-top: 5vh;
  padding-bottom: 5vh;
  height: 90vh;
  gap: 60px;
}

.image-left img {
  max-width: 100%;
  height: 100%;
}

.text-right {
  max-width: 50%;
  text-align: justify;
}

.text-right h2 {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgb(0, 0, 0);
  font-style: italic;
  font-family: Arial, sans-serif;
}

.text-right p {
  font-size: 12pt;
  line-height: 1.2;
  text-align: justify;
  font-family: "Arial Nova Light", Arial, Helvetica;
}

/* Slideshow section */
.content-section {
  position: relative;
  padding-bottom: 30px;
}

.slideshow-container {
  display: flex;
  height: 100%;
  position: relative;
}

.slide {
  min-width: 100%;
  transition: transform 0.3s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text-floorplan {
  max-width: 30%;
  text-align: justify;
  align-self: flex-end;
}

.text-floorplan h2 {
  font-size: 16px;
  color: rgb(0, 0, 0);
  font-style: italic;
  font-family: Arial, sans-serif;
}

.text-floorplan p {
  font-size: 12pt;
  line-height: 1.2;
  text-align: justify;
  font-family: "Arial Nova Light", Arial, Helvetica;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 30%;
  transform: translateX(-50%);
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #000000;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.active {
  background-color: rgb(255, 95, 69);
  border-radius: 50%;
}

.dot:hover {
  opacity: 0.1;
}

/* Fullscreen image with padding */
.full-screen-padded {
  position: relative;
  width: 100%;
  height: 100%;
}

.full-screen-padded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Last Information page */
.last-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5vh 180px 5vh 30px;
  height: 60vh;
  gap: 60px;
  box-sizing: border-box;
}

.image-last {
  flex: 0 0 40%;
  height: 100%;
  overflow: hidden;
}

.image-last img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.text-last {
  display: flex;
  text-align: justify;
}

.text-last-header {
  display: flex;
  flex-direction: column;
}

.text-last-header h1 {
  font-size: 9pt;
  font-family: "Arial Nova Light", Arial, Helvetica;
  color: rgb(100, 100, 100);
}

.text-last-header h2 {
  font-size: 10pt;
  font-style: italic;
  font-family: Arial, sans-serif;
  margin-bottom: -10px;
}

.text-last-paragraph {
  font-size: 9pt;
  color: rgb(0, 0, 0);
  font-style: italic;
  font-family: "Arial Nova Light", Arial, Helvetica;
  margin-bottom: 10px;
  width: 80vh;
  margin-left: 20vh;
}

.text-last-paragraph a {
  color: rgb(0, 0, 0);
  line-height: 1.4;
  text-decoration: none;
}

.text-last-paragraph h1 {
  font-style: italic;
  font-family: Arial, sans-serif;
  color: rgb(0, 0, 0);
  font-size: 10pt;
}

/* Next project section */
.next-project {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 40vh;
  background: #f5f5f5;
  padding-right: 30px;
  position: relative;
  transition: transform 0.3s ease;
}

.next-project-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  max-height: 100%;
}

.text-next {
  text-align: left;
  text-decoration: none;
}

.text-next h1 {
  font-size: 14pt;
  font-style: italic;
  font-family: Arial, sans-serif;
  margin: 0;
}

.text-next h2 {
  font-size: 12pt;
  font-style: italic;
  font-family: Arial, sans-serif;
  margin: 0;
  color: rgb(295, 95, 69);
}

.text-next p {
  font-size: 10pt;
  font-style: italic;
  font-family: Arial, sans-serif;
  margin: 0;
  color: rgb(100, 100, 100);
}

.next-btn-content img {
  height: auto;
  max-height: 50vh;
  width: auto;
  object-fit: contain;
  display: block;
}

.next-project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.next-project:hover {
  transform: scale(1.05);
}

/* Side Panel */
.side-panel {
  position: fixed;
  top: 0;
  right: -600px;
  width: 30%;
  height: 100vh;
  background: rgb(255, 255, 255);
  padding: 30px;
  transition: right 0.5s ease-in-out;
  overflow-y: auto;
  z-index: 9;
  box-shadow: -8px 0 12px rgba(0, 0, 0, 0.05);
}

.side-panel.visible {
  right: -25%;
}

.side-panel.open {
  right: 0;
}

/* Panel content */
.panel-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  font-family: "Arial Nova Light", Arial, sans-serif;
  font-size: 12px;
  margin-top: 20vh;
  margin-bottom: 20vh;
  margin-right: 30px;
}

.panel-title {
  position: absolute;
  top: 30vh;
  left: 30px;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-style: italic;
  color: rgb(0, 0, 0);
}

.image-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 30px;
}

.image-item:nth-child(odd) {
  flex-direction: row;
}

.image-item:nth-child(even) {
  flex-direction: row-reverse;
}

.image-title {
  transform: rotate(-90deg);
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-style: italic;
  color: #000000;
  white-space: nowrap;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sidepanel-img {
  width: 40vh;
  height: 30vh;
  object-fit: contain;
}

.content p {
  font-size: 12px;
  line-height: 1.5;
  text-align: justify;
  font-family: "Arial Nova Light", Arial, Helvetica;
  margin: 0;
}

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 5;
}

.blur-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

img[data-parallax="true"] {
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  /* Content section */
  .content-section {
    flex-direction: column;
    padding-left: 30px;
    padding-right: 30px;
  }

  .text-right {
    max-width: 100%;
  }

  .text-right h2 {
    font-size: 14px;
    line-height: 1.4;
  }

  .text-right p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Full-screen section */
  .overlay-text {
    width: 100%;
  }

  .overlay-text p {
    font-size: 10px;
    width: 100%;
  }

  /* Slideshow section */
  .slideshow-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .slide {
    order: 1;
    height: 50vh;
    object-fit: cover;
  }

  .slideshow-dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: -30px;
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .text-floorplan {
    max-width: 100%;
    box-sizing: border-box;
    order: 3;
    margin-top: -40px;
  }

  .text-floorplan h2,
  .text-floorplan p {
    font-size: 14px;
    line-height: 1.4;
  }
  .side-panel {
    display: none;
  }

  .full-screen-padded {
    margin-top: 30px;
  }

  /* Last Information section */
  .last-section {
    flex-direction: column;
    padding: 30px;
    height: auto;
    gap: 20px;
  }

  .text-last-header,
  .image-last {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .text-last-header {
    flex-direction: column;
  }

  .text-last-header h1,
  .text-last-header h2 {
    font-size: 11px;
  }

  .text-last-paragraph {
    font-size: 12x;
    line-height: 1.6;
    width: 100%;
    margin-right: 20vh;
  }

  /* Next Project Section */
  .next-project {
    flex-direction: column;
    justify-content: center;
    height: auto;
    max-height: 30vh;
    padding: 30px;
  }

  .next-btn-content img {
    max-height: 20vh;
  }
  
  .text-next h1 {
    font-size: 12pt;
  }
  
  .text-next h2 {
    font-size: 10pt;
  }
  
  .text-next p {
    font-size: 8pt;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
  }
}
