@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,500;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: auto;
  font-family: 'Montserrat';
}

header {
  width: 100%;
  height: auto;
}

html {
  font-family: 'Montserrat';
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

hr {
  height:4px;
  background-color:#365E99;
  width: 50%;
  margin-left: 25%;
}

/* Intro */

.intro {
  position: relative;
  text-align: center;
  width: 100%;
  padding-bottom: 2%;
  padding-left: 20%;
  padding-right: 20%;
}

#p1 {
  text-align: center;
  padding-top: 5%;
  padding-bottom: 5%;
  font-size: 1.6rem;
}

#p2 {
  text-align: center;
  padding-top: 5%;
  padding-bottom: 5%;
  font-size: 1.4rem;
}

/* Shortcuts */

.shortcuts {
  display: flex;
  margin-bottom: 5%;
}

/* Residential Tile */
.residential {
  background-image: url("/img/background.JPG");
  background-size:cover;
  position: relative;
  background-color: black;
  width: 50vw;
  margin-left: 10vw;
  margin-right: 3vw;
}

.commercial {
  background-image: url("/img/background.JPG");
  background-size:cover;
  position: relative;
  background-color: black;
  width: 50vw;
  height: 50vh;
  margin-right: 10vw;
  margin-left: 3vw;
}

.short-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.short-title {
  font-weight: bold;
  color: white;
  size: 1.4rem;
}

.short-desc {
  margin-top: 3%;
  margin-bottom: 3%;
  font-size: 1rem;
  color: white;
  margin-left: 6%;
  margin-right: 6%;
}

.more-buttons {
  margin-top: 5%;
  background-color: rgba(255, 255, 255, 0.65);
  border: none;
  color: #333;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.more-buttons:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Projects */

.project-container {
  margin-left: 10%;
  margin-right: 10%;
}

.title-div {
  text-align: center;
}

.current-proj-container {
  display: flex;
  justify-content: center;
}

.current-title {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  font-size: 1.6rem;
}

.current-1 {
  position: relative;
  width: 30rem;
  height: auto; /* ✅ Removed fixed height */
  min-width: 15rem;
  overflow: hidden;
  margin: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* ✅ Ensures images fully fill the div and scale correctly */
.curr-1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

/* Make sure text moves with image */
.residential-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Text scales properly */
.residential-title {
  font-size: clamp(1rem, 2vw, 1.5rem); /* Dynamically scales */
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 0.5rem;
}

/** Button **/

.btn-container {
  text-align: center;
}

.btn-common {
  margin-top: 1%;
  background-color: #365E99;
  border: none;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4%;
}

.btn-common:hover {
  background-color: #c1c2c6;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/** Footer **/

.footer {
  background-color: #c1c2c6;
  width: 100vw;
  height: auto;
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.footer-logo-div {
  align-content: center;
  text-align: center;
}

.footer-logo {
  margin-top: 5%;
  margin-bottom: 5%;
  min-width: 290px;
  min-height: 166px;
  height: auto;
  width: 290px;
  z-index: 2;
}

/** Footer Socials Links **/

.footer-socials {
  text-align: center;
  align-content: center;
}

.footer-socials-img {
  width: 28px;
  margin-top: 5%;
  margin-bottom: 2%;
}

.insta {
  margin-right: 5%;
}

.fb {
  padding-left: 5%;
}

/** Footer Contact Info **/

.footer-contact {
  padding-left: 5%;
  padding-right: 5%;
  text-size-adjust: none;
  padding-top: 3%;
  padding-bottom: 3%;
}

.headline-container {
  align-content: center;
  text-align: center;
}

.headline {
  font-size: 17pt;
  padding-left: 2%;
}

.info-container {
  padding-top: 3%;
  padding-bottom: 3%;
}

.footer-img {
  text-align: center;
  width: 45px;
  padding-left: 20px;
}

.footer-link {
  text-decoration: none;
  color: inherit;
}

.cont-info {
  padding-left: 20px;
  font-size: 12pt;
  text-size-adjust: none;
  width: auto;
  height: auto;
  display: table-cell;
  vertical-align: middle;
}

/** Footer Memberships **/

.footer-memberships {
  align-content: center;
  text-align: center;
}

.bbb-container {
  align-content: center;
  text-align: center;
}

.bbb{
  min-width: 246px;
  width: 246px;
  min-height: 129px;
  margin-top: 5%;
  margin-bottom: 5%;
}

.five-container {
  align-content: center;
  text-align: center;
}

.footer-five {
  min-width: 328px;
  width: 328px;
  height: 137.17px;
  object-fit: cover;
  margin-bottom: 10%;
}

.boss-container {
  padding-bottom: 3%;
  text-align: right;
  padding-right: 3%
}

/* Background */

.background-section {
  position: relative;
  width: 100vw;
  height: 80vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 Aspect Ratio */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 Aspect Ratio */
  transform: translate(-50%, -50%);
  object-fit: cover; /* Ensures it fills the screen without black bars */
  z-index: -1; /* Ensures it stays in the background */
  filter: brightness(50%);
}

.full-logo {
  position: absolute;
  top: 70%;
  left: 50%;
  width: 40%;
  max-width: 600px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.arrow {
  z-index: 2;
  position: absolute;
  top: 88%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 30px;
  height: 30px;
  margin-top: 1%;
}

/* Nav Bar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  transition: background-color 0.3s ease-out;
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100vw;
  height: auto;
  background-color: transparent;
  transition: background-color 0.2s ease-in;
}

.hamburger {
  display: none;
  z-index: 10;
  color: #365E99;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #365E99;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10%;
}

.nav-item {
  margin-left: 5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 400;
  color: white;
}

.nav-link:hover {
  color: #365E99;
}

.nav-logo {
  font-size: 2.1rem;
  font-weight: 500;
  color: #365E99;
  z-index: 900;
  padding-left: 10%;
}

.nav-logo-wb {
  z-index: 99;
  width: 50px;
  height: auto;
}

.navbar-solid {
  background-color: #c1c2c6; /* Eggshell color */
}

@media only screen and (max-width: 768px) {

  body {
    width: 100%;
    height: auto;
  }
  
  header {
    width: 100%;
    height: auto;
  }  

  .navbar {
    z-index: 1000;
    position: fixed;
    width: 100%;
    height: auto;
    top: 0;
    overflow: hidden;
    color: red;
    background-color: transparent;
    transition: background-color 0.2s ease-in;
  }

  .background-section {
    background-image: url('/img/background.JPG');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
  }

  .background-video {
    display: none; /* Hide the video on smaller screens */
  }
  
  .full-logo {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 80%;
    max-width: 600px;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .arrow {
    position: absolute;
    top: 88%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 30px;
    height: 30px;
  }

  .overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* semi-transparent black overlay */
    opacity: 0; /* start with opacity at 0 */
    z-index: 1; /* set a higher z-index than the background */
    transition: opacity 0.3s ease-out; /* transition the opacity */
  }


  /* Intro paragraphs and summary */

  .intro {
    position: relative;
    text-align: center;
    width: 100vw;
    padding-left: 10%;
    padding-right: 10%;
  }

  #p1 {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 1.4rem;
  }

  #p2 {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 1.2rem;
  }

  hr {
    height:4px;
    background-color:#365E99;
    width: 50%;
    margin-left: 25%;
  }

  /* for class: shortcuts */

  .shortcuts {
    display:block;
    margin-bottom: 5%;
  }

  /* Residential Tile */
  .residential {
    position: relative;
    width: 22rem;
    height: 22rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .short-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .short-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
  }
  
  .short-desc {
    margin-top: 3%;
    margin-bottom: 3%;
    font-size: 1.2rem;
    color: white;
    margin-left: 6%;
    margin-right: 6%;
  }
  
  .more-buttons {
    margin-top: 3%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #365E99;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* TESTING */

  

  /* Commercial Tile */

  .commercial {
    position: relative;
    width: 22rem;
    height: 22rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .more-buttons:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Current Projects */

  .project-container {
    display: block;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
  }

  .title-div {
    text-align: center;
  }

  .current-proj-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .current-1 {
      position: relative;
      width: 22rem;
      height: 18rem;
      min-width: 15rem;
      min-height: 15rem;
      overflow: hidden;
      margin: 1rem;
      display: flex;
      justify-content: center;
      align-items: flex-end; /* Ensure text stays at bottom */
  }

  /* Fix the scaling issue of images */
  .curr-1 {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(70%);
      opacity: 90%;
  }

  /* Ensures text stays at bottom and scales correctly */
  .residential-content {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: auto;
      padding: 0.5rem;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  /* Title text scales dynamically */
  .residential-title {
      font-size: clamp(1rem, 2vw, 1.5rem); /* Prevents text from being too big/small */
      font-weight: bold;
      color: #ffffff;
      text-align: center;
  }


  /** Footer **/

  .footer {
    background-color: #c1c2c6;
    width: 100vw;
    height: auto;
    display: block;
  }

  .footer-logo-div {
    align-content: center;
    text-align: center;
  }

  .footer-logo {
    margin-top: 5%;
    margin-bottom: 5%;
    min-width: 290px;
    min-height: 166px;
    height: auto;
    width: 290px;
    z-index: 2;
  }

  /** Footer Socials Links **/

  .footer-socials {
    text-align: center;
    align-content: center;
  }

  .footer-socials-img {
    width: 28px;
    margin-top: 5%;
    margin-bottom: 2%;
  }

  .insta {
    margin-right: 5%;
  }

  .fb {
    padding-left: 5%;
  }

  /** Footer Contact Info **/

  .footer-contact {
    padding-left: 5%;
    padding-right: 5%;
    text-size-adjust: none;
    padding-top: 3%;
    padding-bottom: 3%;
  }

  .headline-container {
    align-content: center;
    text-align: center;
  }

  .headline {
    font-size: 17pt;
    padding-left: 2%;
  }

  .info-container {
    padding-top: 3%;
    padding-bottom: 3%;
  }

  .footer-img {
    text-align: center;
    width: 45px;
    padding-left: 20px;
  }

  .footer-link {
    text-decoration: none;
    color: inherit;
  }

  .cont-info {
    padding-left: 20px;
    font-size: 12pt;
    text-size-adjust: none;
    width: auto;
    height: auto;
    display: table-cell;
    vertical-align: middle;
  }

  /** Footer Memberships **/

  .footer-memberships {
    align-content: center;
    text-align: center;
  }

  .bbb-container {
    align-content: center;
    text-align: center;
  }

  .bbb{
    min-width: 246px;
    width: 246px;
    min-height: 129px;
    margin-top: 5%;
    margin-bottom: 5%;
  }

  .five-container {
    align-content: center;
    text-align: center;
  }

  .footer-five {
    min-width: 328px;
    width: 328px;
    height: 137.17px;
    object-fit: cover;
    margin-bottom: 10%;
  }

  .boss-container {
    padding-bottom: 3%;
    text-align: right;
    padding-right: 3%
  }

  /** Nav **/
  .nav-menu.active + .overlay {
    opacity: 1; /* increase opacity to 1 when nav-menu is active */
  }
  
  /* rest of CSS code */
  .nav-menu.active + .overlay {
    display: block; /* show the overlay when the nav-menu is active */
  }

  .navbar-solid {
    background-color: #c1c2c6; /* Eggshell color */
  }

  .nav-link {
    color: #365E99;
  }

  .nav-menu {
    position: fixed;
    right: -70%; /* slide the menu off-screen to the right */
    top: 0;
    height: 100vh; /* set the height to the full viewport height */
    width: 70%; /* set the width to 70% of the viewport width */
    max-width: 400px; /* set a max-width to limit the width on larger screens */
    background-color: white;
    opacity: 87%;
    border-radius: 0; /* remove the border-radius */
    transition: right 0.3s ease-out; /* transition the right property */
    z-index: 10000; /* set a higher z-index to make it appear above everything else */
    display: flex; /* make the list items appear vertically */
    flex-direction: column; /* make the list items appear vertically */
    justify-content: flex-start; /* align the items to the top */
    align-items: center; /* center the list items horizontally */
    padding-top: 15%; /* add a 15% padding to the top */
  }
  
  .nav-menu.active {
    right: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align the items to the top */
    align-items: center; /* center the items horizontally */
  }

  .nav-logo {
    font-size: 2.1rem;
    font-weight: 500;
    color: #365E99;
    z-index: 900;
    padding-left: 0%;
  }
  
  .nav-item {
    margin: 2.5rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    position: relative;
    top: 0;
    z-index: 1000000;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
    
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}
