html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
    overflow: hidden;
  margin: 0;
  font-family: "EB Garamond", "Fraunces", serif;
  /*background: hsl(40, 60%, 95%);*/
  background: rgb(0, 28, 58);f
  color: hsl(25, 20%, 20%);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.video_demo {
    width: 90%;
    height: 80%;
    border-radius: 20px;
    align-self: center;
    margin-bottom: 24px;
}

#load_wireframe_model_button {
    /*background: rgb(224, 186, 133);*/
    margin-top: -40px;
    width: 200px;
    height: 60px;
    border-radius: 12px;
    border: none;
    background: rgba(237, 224, 204, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-family: "EB Garamond";
    font-size: 12px;
    transition: .2s;
}

#load_wireframe_model_button:hover {
    transform: scale(1.1);
}

#modelDemo {
    display: flex;
    justify-content: center;
    margin-bottom: 64px;
}

.model_viewer_instructions {
    display: none;
    
    position: absolute;
    width: 10px;
    height: 26px;
    overflow: hidden;
    margin: 20px 20px 0 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: .3s;
    cursor: pointer;
}

.model_viewer_instructions .mobile {
    display: none;
}

@media only screen and (max-width: 1024px) and (pointer: coarse) {
    .model_viewer_instructions .mobile {
        display: flex;
    }
    
    .model_viewer_instructions .desktop {
        display: none;
    }
}

.model_viewer_instructions .instruction {
    margin-top: 40px;
    transition: .1s ease-in;
}

.model_viewer_instructions:hover .instruction {
    margin-top: 0;
    transition: .6s;
}

.model_viewer_instructions:hover {
    width: 293px;
    height: 75px;
}

.flying_ghost {
    pointer-events: none;
    position: absolute;
    width: 300px;
    z-index: 1;
    margin: -20% 0 0 -30%;
    transition: .4s;
    opacity: 70%;
}

header {
    position: fixed;
    align-self: center;
    top: 16px;
    z-index: 10;
    display: flex;
    gap: 30px;
    padding: 0 36px;
    border-radius: 24px;
    /*background: rgb(32 34 55 / .075);*/
    /*backdrop-filter: blur(24px) contrast(150%);*/
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 1px 2px 10px rgba(255, 255, 255, 0.3);*/
    /*border: 1px solid hsla(25, 20%, 20%, 0.5);*/
    
    border: 2px solid white;
    mix-blend-mode: difference;
}

header a {
    text-decoration: none;
    font-style: normal;
    font-size: 14px;
    /*color: hsl(25, 20%, 20%);*/
    
    color: white;
    padding: 10px 0;
}

header a:hover {
    text-shadow: 0 10px 16px white;
}

.hero {
  background: url("https://images.pexels.com/photos/235985/pexels-photo-235985.jpeg")
    center/cover no-repeat;
  height: 100vh;
  position: relative;
}

.overlay {
  background: rgba(186, 136, 53, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.vilanova_buildings {
    background: repeat-x 0% 0% / 20% 20% url('/images/vilanova.png');
  width: 100%;
  height: 100%;
  z-index: 5;
  position: relative;
  top: -20%;
  filter: saturate(200%) contrast(220%);
}

h1 {
  font-size: 80px;
  margin: 0;
  z-index: 2;
  line-height: 1;
}

h2 {
    color: #ba8835;
}

p {
  font-size: 18px;
  z-index: 2;
}

span {
  --gradient-start: #366058;
  --gradient-end: #599384;
  background-image: linear-gradient(90deg,var(--gradient-start),var(--gradient-end));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(250%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 16px 36px;
  border: 2px solid hsl(25, 20%, 20%);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  background: hsl(35, 60%, 70%);
  color: hsl(25, 20%, 20%);
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.btn:hover {
  background: hsl(25, 20%, 20%);
  color: hsl(40, 60%, 95%);
  transform: scale(1.05);
}
.bn45 {
  height: 40px;
}
.rounded {
  border-radius: 8px;
}
.text-shadow {
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.content-section,
footer {
  padding: 64px 32px;
  max-width: 1200px;
  margin: auto;
}
footer {
  padding: 0 32px;
}

footer p {
    color: #ba8835;
}

.slide_in {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
}
.card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease-out;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.card p {
    text-align: center;
    margin-top: 0;
}
.screenshots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
}
.screenshots img {
  width: 300px;
  border-radius: 10px;
}
.fade-in {
  opacity: 0;
  line-height: 1;
  animation: fadeIn 1s forwards;
}
.delay-1 {
  animation-delay: 0.5s;
}
.delay-2 {
  animation-delay: 1s;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1s forwards;
}
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-container {
  background: url("images/about.png")
    center/cover no-repeat;
  border-radius: 20px;
  min-height: 696px;
}
.about-text {
    min-height: 696px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 32px 128px;
  color: hsl(40, 60%, 95%);
  /*background: hsla(40, 60%, 15%, 60%);*/
  background: rgba(0, 28, 58, 60%);
  border-radius: 20px;
  box-shadow: 0 0 12px 8px rgba(0, 0, 0, 0.4) inset;
  backdrop-filter: blur(4px);
}
.try_out_button {
  display: inline-flex;
  padding: 24px 96px;
  margin-top: 24px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid hsla(40, 60%, 95%, 55%);
  color: hsl(40, 60%, 95%);
  background: hsla(25, 20%, 20%, 10%);
  backdrop-filter: blur(12px);
  transition: 0.3s;
}
.try_out_button:hover {
  color: hsl(40, 60%, 95%);
  border-color: hsla(40, 60%, 95%, 100%);
  transform: scale(1.05);
  backdrop-filter: blur(12px) contrast(200%) saturate(200%);
}
@media (max-width: 768px) {
    .about-text {
        padding: 32px;
    }
    .about-text h1 {
        font-size: 64px;
    }
    .try_out_button {
        padding: 20px 64px;
    }
    .model_viewer_instructions {
        margin: 12px 12px 0 0;
        right: 0;
    }
    .model_viewer_instructions .mobile {
        font-size: 14px;
    }
    .model_viewer_instructions:hover {
      width: auto;
      height: auto;
      padding: 12px 40px 12px 20px;
    }
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-image {
    width: 100%;
  }
  
  .flying_ghost {
      width: 200px;
  }
  
  .phone-image.top-right {
    top: -140px;
    right: -120px;
    width: 400px;
  }
  .phone-image.bottom-left {
    bottom: -80px;
    left: -60px;
    width: 320px;
  }
  footer p {
      font-size: 12px;
  }
}
.phone-image {
  position: absolute;
  transition: transform 0.3s ease-in-out;
}

.top-right {
  top: -240px;
  right: -220px;
  width: 600px;
  transform: rotate(-20deg);
}

.bottom-left {
  bottom: -90px;
  left: -80px;
  width: 480px;
  transform: rotate(40deg);
}

.device-section {
  padding: 80px 32px;
  color: hsl(25, 20%, 20%);
  font-family: "Fraunces", serif;
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 48px;
  font-style: italic;
}

.device-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.feature-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 260px;
  flex: 1;
}

.info-item {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid #6b4c3b;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateY(-4px);
}

.info-item h3 {
  font-size: 16px;
  margin-top: 12px;
  font-style: italic;
}

.info-item p {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .device-layout {
    flex-direction: column;
    align-items: center;
  }
}

.full-phone-image {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  filter: brightness(200%);
}

.trailer-section {
  text-align: center;
  padding: 80px 32px;
  font-family: "Fraunces", serif;
  color: hsl(25, 20%, 20%);
}

.trailer-section .section-title {
  font-size: 32px;
  margin-bottom: 40px;
  font-style: italic;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  width:100%;
  min-width:50vw;
  margin: 0 auto;
  border: 2px solid #4e3b2f;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.team-section {
  /*background: #f9f5eb;*/
  background: rgb(0, 28, 58);
  padding: 96px 24px;
  text-align: center;
}

.team-section .section-title {
  font-size: 36px;
  margin-bottom: 48px;
  font-style: italic;
  /*color: #3c2e2a;*/
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: #fffefb;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid #cbb89d;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid #d6c3a3;
}

.team-card h3 {
  font-size: 18px;
  margin: 0;
  color: #3c2e2a;
  font-style: italic;
}

@media (max-width: 768px) {
  .team-section {
    padding: 64px 16px;
  }

  .team-section .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-card {
    padding: 20px;
    max-width: 155px;
    margin: 0 auto;
  }

  .team-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }

  .team-card h3 {
    font-size: 16px;
  }

  .team-card p {
    font-size: 13px;
  }
}


@media (max-width: 768px) {
  .team-section {
    padding: 64px 16px;
  }

  .team-section .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-card {
    padding: 20px;
    max-width: 155px;
    margin: 0 auto;
  }

  .team-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }

  .team-card h3 {
    font-size: 16px;
  }

  .team-card p {
    font-size: 13px;
  }
}

.team-card p {
  font-size: 14px;
  color: #5b4a3b;
  margin-top: 4px;
}

.journey-section {
  text-align: center;
}

.journey-section .section-title {
  font-size: 32px;
  margin-bottom: 48px;
  font-style: italic;
}

.journey-container {
  position: relative;
  margin: 0 auto;
  overflow-x: visible;
}

.journey-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  position: relative;
}

.stop-box {
  background: #fffdf9;
  border: 1px solid #d6c3a3;
  padding: 20px;
  border-radius: 16px;
  width: 260px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stop-box h3 {
  font-size: 18px;
  margin-top: 12px;
  font-style: italic;
}

.stop-box p {
  font-size: 14px;
  color: #4e3b2f;
}

.circle {
  width: 36px;
  height: 36px;
  background: hsl(25, 20%, 20%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: bold;
}

/* Arrows as elements */
.arrow-img {
  position: absolute;
  z-index: 1;
  width: 80px;
  pointer-events: none;
}

.arrow-img img {
  width: 100%;
  height: auto;
}

/* Specific arrow positions */
.arrow-1 {
  top: -10px;
  left: 235px;
}

.arrow-2 {
  top: 200px;
  left: 555px;
  transform: rotate(-6deg);
}

.arrow-3 {
  top: 100px;
  left: 875px;
  transform: rotate(-6deg);
}

@media (max-width: 900px) {
  .journey-flow {
    flex-direction: column;
    align-items: center;
  }

  .arrow-img {
    display: none;
  }
}


/*.pulsate {*/
/*    animation: pulsate 1.5s infinite alternate;     */
/*}*/

/*@keyframes pulsate {*/
/*  100% {*/
/*      text-shadow:*/
/*      0 0 4px #fff,*/
/*      0 0 11px #fff,*/
/*      0 0 19px #fff,*/
/*      0 0 40px #da5f06,*/
/*      0 0 80px #da5f06,*/
/*      0 0 90px #da5f06,*/
/*      0 0 100px #da5f06,*/
/*      0 0 150px #da5f06;*/
/*  }*/
  
/*  0% {*/
/*    text-shadow:*/
/*    0 0 2px #fff,*/
/*    0 0 4px #fff,*/
/*    0 0 6px #fff,*/
/*    0 0 10px #da5f06,*/
/*    0 0 45px #da5f06,*/
/*    0 0 55px #da5f06,*/
/*    0 0 70px #da5f06,*/
/*    0 0 80px #da5f06;*/
/*}*/