/* Global reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    overflow-x: hidden;    margin: 0;
    padding: 0;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.courgette-regular {
    font-family: "Courgette", cursive;
    font-weight: 400;
    font-style: normal;
}

#logo {
    width: 200px;
    max-height: fit-content;
}

.fixed-navbar {
    display: flex;
    justify-content: space-between;
    padding: 10px 50px;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
    background-color: transparent; /* Default transparent background */
}

.fixed-navbar.scrolled {
    background-color: rgba(255, 255, 255, 1.0);
}

.fixed-navbar.scrolled a {
    color: black;
}

#nav-links {
    display: flex;
    column-gap: 40px;
}

#nav-links a:hover {
    color: #FE5D37;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: white;
    font-size: 14px;
}

#home {
    background-image: url(../assets/welder-5408909_1280.jpg);
    background-size: cover;
    width: 100vw;
    height: 100vh;
    background-position: center center;
}

#hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 100vw;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 20px;
    z-index: 99;
}

header {
    display: flex;
    text-align: center;
    flex-direction: column;
}

#subtext1 {
    font-size: 50px;
}

#subtext2 {
    font-size: 70px;
}

.get-button {
    background-color: #FE5D37;
    color: white;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 20px;
    border-radius: 5px;
}

.get-button:hover {
    color: white;
    background-color: #0500FC;
}

/* Hamburger Menu styles */
#hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 110;
  }
  
  #hamburger-menu .bar {
    width: 30px;
    height: 4px;
    background-color: #333;
    border-radius: 5px;
  }
  
  /* Show the hamburger menu on mobile */
  @media (max-width: 768px) {
    #nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      text-align: center;
      padding: 20px;
      position: absolute;
      top: 60px; /* Below the navbar */
      left: 0;
      background-color: #fff;
      z-index: 100;
    }
  
    #nav-links a {
      padding: 10px 0;
      font-size: 18px;
      color: #333;
      text-transform: uppercase;
      border-bottom: 1px solid #ddd;
    }
  
    #nav-links a:hover {
      color: #FE5D37;
    }
  
    #hamburger-menu {
      display: flex;
    }
    
    .fixed-navbar.scrolled #hamburger-menu .bar {
      background-color: #333;
    }
  }
  
  /* Active state for navigation menu */
  #nav-links.active {
    display: flex;
  }

#aboutimage {
    width: 500px;
    height: 367px;
    transition: transform 0.6s ease;
}

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

#about {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px;
    background-color: #EFEFEF;
    width: 100vw;
    column-gap: 150px;
}

.sub-header {
    display: flex;
    text-align: left;
    flex-direction: column;
}

.sub-header span:nth-child(1) {
    color: #FE5D37;
    font-size: 50px;
}

.sub-header span:nth-child(2) {
    color: #222222;
    font-size: 40px;
}

.sub-header1 {
    display: flex;
    text-align: center;
    flex-direction: column;
}

.sub-header1 span:nth-child(1) {
    color: #FE5D37;
    font-size: 50px;
}

.sub-header1 span:nth-child(2) {
    color: #222222;
    font-size: 40px;
}

.aboutdescription {
    color: black;
    font-size: 18px;
    margin: 0px 0px 22px;
    max-width: 513px;
    text-align: left;
    padding: 0px;
    line-height: 22.5px;
}

#services {
    background-color: white;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px;
    z-index: 20;
}

#blogcards {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three cards per row */
    gap: 80px; /* Space between cards */
    justify-items: center; /* Center cards horizontally */
}

.cardhome {
    width: 300px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cardimg {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    transition: transform 0.6s ease;
}

.cardimg:hover {
    transform: scale(1.1);
}

.cardtext {
    color: #042242;
    font-size: 14px;
}

.phead {
    color: black;
    letter-spacing: 1px;
    padding-top: 20px;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.phead:hover {
    color: #FE5D37;
}

#sub-header h1 {
    color: #FE5D37;
    font-size: 40px;
}
#team {
    background-color: white;
    width: 100vw;
    height: 100vh;
    padding-top: 50px;
  }
  #aspects {
    background-color: #F8F8F8;
    width: 100vw;
    height: 60vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    padding-top: 50px;
  }
  .aspectdiv {
    background-color: white;
    text-align: center;
    width: 250px;
    height: 90%;
    border-radius: 5px;
  }

  .cardimge {
    width: 100%;
    height: 80%;
  }

.name{
    color: rgb(38, 50, 70);
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    height: 24px;
    text-align: center;
    margin-top: 5px;
}
.post{
    color: #FE5D37;
}
 
#sub-header img {
  width: 150px;
  margin-bottom: -25px;
}
#sub-header {
  display: flex;
  text-align: center;
  flex-direction: column;
}
#p-one1 {
  color: rgb(38, 50, 70);
  font-family: "DM Sans", sans-serif;
  font-size: 44px;
  font-weight: 400;
  padding-bottom: 15px;
}

#testimonials {
    width: 100vw;
    background-color: #F5F6FA;
}

.swiper {
    width: 100%;
    height: 500px;
}

.swiper-slide {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
}

.swiper-slide h1 {
    color: #FE5D37;
    font-size: 40px;
}

.review-text {
    color: rgb(38, 50, 70);
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 400;
    text-align: center;
    align-items: center;
    max-width: 65%;
    margin: 0 auto;
}

.magin-para {
    color: rgb(38, 50, 70);
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.swiper-button-next, .swiper-button-prev {
    color: #0500FC !important;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: #FE5D37 !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    color: #0500FC !important;
    font-weight: bold;
}

.swiper-button-next:hover::after, .swiper-button-prev:hover::after {
    color: #FE5D37 !important;
}

.swiper-pagination-bullet {
    background-color: #0500FC !important;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background-color: #FE5D37 !important;
}


#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #001F3F;
    color: #fff;
    padding: 20px;
}

#contact span {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    flex-wrap: wrap;
}

#contact i {
    font-size: 20px;
    color: #FE5D37;
    vertical-align: middle;
}

#contact p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
    display: inline-block;
    vertical-align: middle;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #001F3F;
    color: #fff;
}

#social-icons a {
    margin-left: 20px;
    color: white;
    transition: transform 0.3s ease-in-out;
}

#social-icons a:hover {
    transform: rotateY(180deg);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    body{
        overflow-x: hidden;
    }
    .fixed-navbar {
        padding: 10px 30px;
    }
    #subtext1 {
        font-size: 40px; /* Slightly smaller text size on tablets */
    }

    #subtext2 {
        font-size: 60px; /* Adjust text size for tablets */
    }

    .get-button {
        font-size: 18px; /* Slightly smaller font size for buttons */
        padding: 8px 16px; /* Adjust padding for tablets */
    }
    #nav-links {
        column-gap: 20px;
    }
   
    #home #hero-overlay {
        padding: 20px;
    }

    .sub-header span:nth-child(1), .sub-header span:nth-child(2) {
        font-size: 30px;
    }

    .aboutdescription {
        font-size: 16px;
        line-height: 20px;
    }

    .cardhome {
        width: 80%;
    }

    #blogcards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    #services {
        padding: 50px 20px;
    }

    .swiper {
        height: 400px; /* Adjust height for tablets */
    }

    .swiper-slide h1 {
        font-size: 30px; /* Smaller text size on tablets */
    }

    .review-text {
        font-size: 28px; /* Adjust font size for better readability */
        max-width: 80%; /* Increase max-width for tablets */
    }

    .magin-para {
        font-size: 18px; /* Slightly smaller font size */
    }
    #team {
        height: auto; /* Adjust the height on smaller screens */
    }

    #aspects {
        height: auto; /* Adjust the height for better flexibility */
        flex-direction: row; /* Stack items vertically on smaller screens */
        gap: 20px; /* Increase gap for better spacing */
    }

    .aspectdiv {
        width: 80%; /* Make each aspect div occupy 80% of the width */
        height: auto; /* Adjust height to content */
        padding: 20px; /* Add some padding for mobile screens */
    }

    .name {
        font-size: 18px; /* Slightly smaller text size for mobile */
    }

    .cardimge {
        height: auto; /* Adjust height to fit better on mobile */
    }
}

@media (max-width: 768px) {
    body{
        overflow-x: hidden;
    }
    .fixed-navbar {
        padding: 10px 20px;
    }

    /* #nav-links {
        display: none;
    } */
    #home {
        background-position: center center; /* Center the background on mobile */
        height: 80vh; /* Adjust height for mobile to avoid excessive scrolling */
    }

    .fixed-navbar.scrolled {
        background-color: rgba(255, 255, 255, 1);
    }

    .fixed-navbar.scrolled a {
        color: black;
    }
    #subtext1 {
        font-size: 30px; /* Smaller font size on mobile */
    }

    #subtext2 {
        font-size: 50px; /* Smaller font size on mobile */
    }

    .get-button {
        font-size: 16px; /* Adjust button font size for mobile */
        padding: 6px 12px; /* Adjust padding for mobile */
    }

    #hero-overlay {
        height: 100vh; /* Keep overlay full-height on mobile */
        padding: 0 10px; /* Add padding to prevent text from hitting edges */
    }
    .cardhome {
        width: 100%;
    }

    #about {
        flex-direction: column;
        align-items: center;
        padding: 50px;
    }

    #aboutimage {
        width: 100%;
        height: auto;
        max-width: 500px; /* Prevents image from becoming too large */
        /* transition: transform 0.6s ease; */
        padding-bottom: 5px;
    }
    #services {
        padding: 30px 10px;
    }

    #blogcards {
        grid-template-columns: 1fr;
    }

    .swiper {
        height: 350px; /* Adjust height for mobile devices */
    }

    .swiper-slide h1 {
        font-size: 24px; /* Smaller font size for mobile */
    }

    .review-text {
        font-size: 22px; /* Adjust text size for mobile */
        max-width: 90%; /* Increase width to accommodate on small screens */
    }

    .magin-para {
        font-size: 16px; /* Adjust font size for mobile */
    }

    .swiper-button-next, .swiper-button-prev {
        font-size: 18px; /* Smaller button sizes on mobile */
    }
    #team {
        height: auto; /* Ensure the team section adapts to mobile screens */
        padding-top: 30px; /* Reduce padding for smaller screens */
    }

    #aspects {
        height: auto;
        padding-top: 30px; /* Adjust padding on mobile */
        flex-direction: column; /* Stack elements vertically */
        gap: 20px; /* Adjust spacing */
    }

    .aspectdiv {
        width: 100%; /* Each aspect div takes up full width */
        height: auto;
        padding: 15px; /* Adjust padding on mobile */
    }

    .name {
        font-size: 16px; /* Further reduce text size on smaller devices */
    }

    .cardimge {
        height: auto; /* Ensure images scale properly */
    }
    #contact {
        padding: 10px; /* Reduces padding for smaller screens */
      /* Adjusts bottom margin */
      }
      #contact span {
        flex-direction: column; /* Stacks items vertically on mobile */
        gap: 10px; /* Reduces gap between items */
        text-align: center; /* Centers text */
      }
    
      #contact i {
        font-size: 18px; /* Smaller icons on mobile */
        margin-right: 5px; /* Reduces margin between icons and text */
      }
    
      #contact p {
        font-size: 16px; /* Smaller text size on mobile */
      }
    footer {
        padding: 10px;
    }
   
}
