/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica;
  background-color: #0e0e0e;
  color: #fff;
  overflow-x: hidden;
}



/* General Styles */
/* General Styles */
/* Default styles for larger devices */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  background-color: none; /* Dark background for the header */
  color: #fff;
  position: relative;
}

.logo img{
  margin-left: 20px;
  width: 50%;
}

nav a {
  color: #fff;
  font-size: 14px;
  margin: 0 15px;
  text-decoration: none;
}

nav a:hover {
  color: #FF6B4D;
}

.quote-button1 {
  background-color: #d74426;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 0.8em;
  cursor: pointer;
  font-weight: bold;
}

.burger-menu {
  font-size: 3em;
  cursor: pointer;
  display: none;
  color: #f15638;
}

.burger-menu .bar {
  width: 35px;
  height: 5px;
  background-color: #f15638;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Disable scrolling when nav-links is active */
.nav-links.active ~ body {
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Transform into "X" */
.burger-menu.active .top {
  transform: rotate(45deg) translate(10px, 10px);
}

.burger-menu.active .middle {
  opacity: 0;
}

.burger-menu.active .bottom {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Navigation */
/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica;
  background-color: #171717;
  color: #fff;
  overflow-x: hidden;
}

/* General Styles */
/* General Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  background-color: none; /* Dark background for the header */
  color: #fff;
  position: relative;
}

.logo img{
  margin-left: 20px;
  width: 50%;
}

nav a {
  color: #fff;
  font-size: 14px;
  margin: 0 15px;
  text-decoration: none;
}

nav a:hover {
  color: #FF6B4D;
}

.quote-button1 {
  background-color: #d74426;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 0.8em;
  cursor: pointer;
  font-weight: bold;
}

.burger-menu {
  font-size: 3em;
  cursor: pointer;
  display: none;
  color: #f15638;
}

.burger-menu .bar {
  width: 35px;
  height: 5px;
  background-color: #f15638;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Disable scrolling when nav-links is active */
.nav-links.active ~ body {
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Transform into "X" */
.burger-menu.active .top {
  transform: rotate(45deg) translate(10px, 10px);
}

.burger-menu.active .middle {
  opacity: 0;
}

.burger-menu.active .bottom {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Navigation */
@media (max-width: 600px) {
  .nav-links.active ~ body {
    overflow-x: hidden;
    overflow-y: hidden;
  }
  
  header {
    background-color: #141414;
  }

  .burger-menu {
    display: block;
  }

  .nav-links {
    visibility: hidden; /* Hidden initially */
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 80px;
    left: 0;
    background: linear-gradient(180deg, rgba(38, 38, 38) 50%, rgba(233, 68, 35, 0.9) 100%);
    width: 100%;
    height: 900px;
    padding: 40px 0;
    z-index: 10;
    opacity: 0; /* Hidden initially */
    transform: translateY(-100%); /* Start off-screen */
    transition: transform 600ms cubic-bezier(0.17, 0.04, 0.03, 0.94), opacity 0.5s ease, visibility 0s 600ms; /* Transition for sliding effect and fading */
    display: flex; /* Ensure it's flexbox */
    flex-direction: column; /* Make the links stack vertically */
    align-items: center; /* Center the links horizontally */
  }

  .nav-links.active {
    visibility: visible; /* Make it visible */
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Slide in from top */
    transition: transform 600ms cubic-bezier(0.17, 0.04, 0.03, 0.94), opacity 0.5s ease, visibility 0s 0s; /* Ensure visibility happens immediately */
  }

  .nav-links a {
    color: #fff;
    font-size: 1.2em; /* Adjust the size if needed */
    padding: 10px 20px;
    text-align: center;
    width: 100%;
    margin: 10px 0; /* Space between links */
    text-decoration: none;
  }

  .nav-links a:hover {
    color: #FF6B4D; /* Hover effect */
  }
}


/* Base styles */
/* Services Section */
.services {
padding: 50px;
  background-color: #0E0e00;
  color: #fff;
  padding: 40px 0 70px;
  text-align: center;

}

.services-header h2 {
  font-size: 3em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.services-header h3 {
  font-size: 2em;
  font-weight: normal;
  color: #e74c3c;
  margin-bottom: 30px;

}

.services-header p {
  font-size: 0.8em;
  color: #aaa;
  max-width: 1000px;
  margin: 0 auto 40px;
  line-height: 1.6;

}

@media (max-width: 600px) {
  .services {
    margin-top: 0px;
  }

  .services-header h2 {
    margin: 0 30px;
  }
  .services-header {
    margin: 20px 30px;
  }
}

.professionals {
  background-color: #131313;
  color: #fff;
  padding: 40px 0 70px;
  text-align: center;
}

.professionals-header h2 {
  font-size: 3em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0;
}

.professionals-header h3 {
  font-size: 2.8em;
  font-weight: normal;
  color: #e74c3c;
  margin-bottom: 30px;
}

.professionals-header p {
  font-size: 0.8em;
  color: #aaa;
  max-width: 1000px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.professionals-cards {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column !important; /* Forces vertical stacking */
  align-items: center;
  justify-content: center;
  height: auto;
}

.card {
  margin: 30px;
  cursor: pointer;
  position: relative;
  width: 70%;
  height: auto;
  padding-left: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 10px;
  background-color: #262B3B;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 20px black;
  transition: transform 0.3s;
  text-decoration: none;
}

.card h2 {
  width: auto;
  align-items: left;
  text-align: center;
  font-weight: lighter;
  padding: 10px 20px;
  border-radius: 10px;
  border: #e65a3b solid 1px;
  background: rgba(0, 0, 0, 0.7);
  margin: 10px;
  color: #fff;
  font-size: 0.8rem;
}

.card h3 {
  font-size: 2.8em;
  font-weight: normal;
  color: #e74c3c;
  margin-bottom: 30px;
}

.card p {
  margin-top: 20px;
  margin-left: 15px;
  text-align: left;
  color: #aaa;
  font-size: 0.8rem;
}

.card:hover {
  transform: scale(1.04);
  border: #e65a3b solid 1px;
  background: rgba(42, 42, 42, 0.9);
}

.card img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0; /* Ensures the overlay is always at the bottom */
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Aligns content to the bottom */
  padding: 20px;
  transition: bottom 0.3s;
}

.overlay h2 {
  font-weight: lighter;
  padding: 10px 20px;
  border-radius: 10px;
  border: #e65a3b solid 1px;
  background: rgba(0, 0, 0, 0.7);
  margin: 10px;
  color: #fff;
  font-size: 1.2rem;
}

.overlay p {
  margin: 10px 5px 70px;
  font-size: 0.8rem;
}

.overlay:hover {
  background: rgba(0, 0, 0, 0.0);
}
/* Media Query for smaller screens (tablets and mobile devices) */
/* Media Query for smaller screens (tablets and mobile devices) */
@media screen and (max-width: 768px) {
  .professions {
    padding: 0 !important; /* Remove all padding from the container */
  }

  .professions-cards {
    margin: 0;
    padding: 0; /* Ensure no padding around the cards container */
  }
/* Media Query for smaller screens (tablets and mobile devices) */
@media screen and (max-width: 768px) {
  .professions {
    height: auto;
    padding: 0 !important; /* Remove any padding from the professions container */
    margin: 0 !important; /* Ensure no extra margin */
  }

  .professions-header {
    margin-bottom: 20px; /* Reduce bottom margin to decrease space */
    padding: 0; /* Remove any padding from the header */
  }

  .professions-cards {
    height: auto;
    margin: 0;
    padding: 0; /* Ensure no padding around the cards container */
  }

  .card {
    width: 80%; /* Make the card width responsive */
    height: auto; /* Adjust the height of the card */
    padding: 0; /* Remove all padding for mobile */
    margin: 20px 0; /* Adjust margins for mobile */
  }

  .card h2 {
    font-size: 1rem; /* Make the heading smaller */
  }

  .card h3 {
    font-size: 2rem; /* Smaller heading for mobile */
  }

  .card p {
    font-size: 0.9rem; /* Adjust font size of the paragraph */
  }

  .overlay h2 {
    font-size: 1rem; /* Adjust overlay heading size for smaller screens */
  }

  .overlay p {
    font-size: 0.7rem; /* Adjust overlay paragraph size */
  }

  .professions-header h2 {
    font-size: 2em; /* Adjust title for smaller screens */
  }

  .professions-header h3 {
    font-size: 2em; /* Adjust subtitle size */
  }

  .professions-header p {
    font-size: 0.75em; /* Adjust paragraph text for smaller screens */
  }

  /* Ensure images use scale-down object-fit */
  .card img {
    width: 100%;
    height: 100%;
  }
}



/* Media Query for very small screens (portrait phones) */
@media screen and (max-width: 480px) {
  .professions {
    height: auto;
    padding: 0 !important; /* Ensure padding is removed for very small screens */
    margin: 0 !important; /* Remove any margin */
  }

  .professions-header {
    margin-bottom: 0px; /* Reduce bottom margin further */
    padding: 0; /* Remove padding */
  }

  .professions-cards {
    height: auto;
    margin: 0;
    padding: 0; /* Ensure no padding for the cards container */
  }

  .card {
    width: 90%; /* Full width on very small screens */
    height: auto; /* Let the card height adjust based on content */
    padding: 0; /* Remove padding on small screens */
    margin: 10px 0; /* Adjust margins for very small screens */
  }

  .card h2 {
    font-size: 0.9rem; /* Smaller heading */
  }

  .card h3 {
    font-size: 1.8rem; /* Reduce subtitle size */
  }

  .card p {
    font-size: 0.8rem; /* Adjust paragraph size */
  }

  .overlay h2 {
    font-size: 0.9rem; /* Smaller overlay heading */
  }

  .overlay p {
    font-size: 0.6rem; /* Reduce overlay paragraph size */
  }

  /* Ensure images use scale-down object-fit */
  .card img {
    width: 100%;
    height: 100%; /* Ensure image fits within the card without stretching */
  }
}
