.desktop-header {
  display: none;
  background-color: #FF6600;
  background-image: url(../images/car.png);
  background-size: 40%;
  background-position: bottom right;
  background-repeat: no-repeat;
  min-height: 40vh;
}
.mobile-header {
  background-color: #FF6600;
  background-image: url(../images/car2.png);
  background-size: 60%;
  background-position: calc(100% - 20px) calc(100% - 30px);
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 25px 40px 25px;
  position: relative;
  z-index: 1;
}

/* Hide mobile header when menu is open and ensure it stays behind navigation */
@media screen and (max-width: 799px) {
  body.menu-open .mobile-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -999 !important;
  }
  
  /* Ensure mobile header stays behind navigation when scrolling */
  .mobile-header {
    z-index: 1;
    position: relative;
    display: flex;
    visibility: visible;
    opacity: 1;
  }
  
  .mobile-header h1,
  .mobile-header p,
  .mobile-header .btn-blue {
    z-index: 1;
    position: relative;
    visibility: visible;
    opacity: 1;
  }
}

.header-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

.btn-red {
  width: 70%;
  background: #EA1C24;

  text-align: center;
  padding: 20px;

  box-shadow: 0px 3px 5px rgba(0,0,0,0.5);
}
.btn-red a {
  background: #EA1C24;
  color: white;
  font-weight: bold;

  font-size: 24px;

  text-decoration: none;

  width: 100%;
}
.btn-blue {
  width: 70%;
  background: #296AB1;

  text-align: center;
  padding: 20px;

  box-shadow: 0px 3px 5px rgba(0,0,0,0.5);
}
.btn-blue a {
  background: #296AB1;
  color: white;
  font-weight: bold;

  font-size: 24px;

  text-decoration: none;

  width: 100%;
}

.mobile-header h1 {
  font-size: 26px;
  color: black;
  margin: 0;
  font-weight: 700;
  text-align: left;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mobile-header p {
  max-width: 70%;
  margin: 25px 0 0 0;
  color: black;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.mobile-header .btn-blue {
  display: inline-block;
  margin-top: 35px;
  width: auto;
  min-width: 120px;
  background: black;
  text-align: center;
  padding: 14px 24px;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s, color 0.3s;
}

.mobile-header .btn-blue a {
  background: black;
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.mobile-header .btn-blue a:hover {
  background-color: transparent;
  color: black;
  cursor: pointer;
}


@media screen and (min-width: 800px) {
  .mobile-header {
    display: none;
  }
  /*  end of display nones*/

  .desktop-header {
    background-color: #FF6600;
    background-image: url(../images/car2.png);
    background-size: 650px;
    background-position: calc(100% - 100px) calc(100% - 20px);
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 80vh;
    padding: 0px 50px 0 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: -1;
    margin-top: calc(4vh + 8vh);
  }
  
  /* Align header content with skills section */
  .desktop-header-content {
    max-width: 50%;
    width: 100%;
    margin: 0;
    padding-right: 5%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
  }
  
  /* Constrain header content on very wide screens to match skills section */
  @media screen and (min-width: 1500px) {
    .desktop-header {
      padding-left: calc((100% - 1400px) / 2);
      padding-right: calc((100% - 1400px) / 2);
  }
    .desktop-header-content {
      max-width: 50%;
      padding-right: 5%;
    }
  }
  
  .desktop-header h1 {
    font-size: 45px;
    color: black;
    margin: 0;
    font-weight: 700;
    text-align: left;
    line-height: 1.1;
    z-index: 10;
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    
  }
  
  .desktop-header h2 {
    font-size: 24px;
    color: black;
    text-align: left;
    margin: 12px 0 0 0;
    line-height: 1.5;
    z-index: 10;
    position: relative;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
  
    
  }
  

  .desktop-header p {
    max-width: 100%;
    margin: 25px 0 0 0;
    color: black;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.3px;
  }

  .desktop-header .btn-blue {
    display: inline-block;
    margin-top: 35px;
    width: auto;
    min-width: 250px;
    padding: 14px 24px;
    background: black;
    transition: background-color 0.3s, color 0.3s;
  }
  .btn-blue a {
    background: black;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
  }
  .btn-blue a:hover {
    background-color: transparent;
    color: white;
    cursor: pointer;
  }
}

