/* Reset and general styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    word-break: break-word;
}

.hero-wrapper {
    position: relative;
    background: url('img/background-img.jpeg') no-repeat center;
    background-size: cover;
    color: white;
    padding-bottom: 100px;
    padding-top: 10px;
    /* Adjust padding for content positioning */
    overflow: hidden;
    /* Prevents overflow issues */
}


.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(87, 136, 255) 0%, rgba(11, 54, 142)100%);
    opacity: 0.88;
    mix-blend-mode: normal;

}

.hero-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #ffff;
    /* Adjust color based on next section */
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 2;
}

/* Ensuring the content stays above the overlay */
.hero-wrapper>* {
    position: relative;
    z-index: 3;
}


.find-bids,
.features,
.ready,
.contact {
    position: relative;
    padding: 80px 10%;
    text-align: center;
}


/*  */

/* Angled transition effect between sections */

.ready::after
    {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #f7fafc;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 2;
}

.find-bids::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #f7fafc;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 2;
}

.features::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #ffff;
    /* Adjust color based on next section */
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 2;
}

/* Ensure content stays above overlays */
.find-bids>*,
.features>*,
.ready>* {
    position: relative;
    z-index: 3;
    color: white;
    /* Ensuring text contrast */
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    max-width: 80%;
    margin: 0 auto;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}
header img{
    max-width: 350px;
    width: 50vw;
    height: auto;
}
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

#navMenu {
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a.active {
    border-bottom: 2px solid #ffcc00;
}


.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
}

.hero-text {
    flex-direction: column;
    border: 0 solid rgba(0, 0, 0, 0);
    position: relative;
    transition: all .3sease;
    max-width: 65%;
    min-width: none;
}
.hero h1{
    text-align: center;
    margin-bottom: 50px;
    font-size: 70px;
    line-height: 1;
}

.hero p{
    display: block;
    text-align: center;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 20px;
}

.hero button {
    padding: 15px 35px;
    border: 2px solid white;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.find-bids {
    display: flex;
    justify-content: center;
    padding-bottom: 200px;
    background-color: #fff;
  }
  
  .find-bids-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    gap: 40px;
  }
  
  /* Ensure the image scales well */
  .find-bids-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="21.24 27.31 149.59 139.17"><path fill=%22black%22 d=%22M41.9,-68.2C54.8,-65,66.1,-54.9,69.5,-42.4C73,-29.8,68.5,-14.9,68,-0.3C67.5,14.3,71,28.7,66.5,39.4C62,50,49.5,57,37,61.3C24.6,65.7,12.3,67.5,0.9,65.9C-10.5,64.3,-20.9,59.3,-34,55.3C-47.1,51.4,-62.9,48.4,-71.1,39.3C-79.3,30.3,-79.9,15.1,-77.6,1.3C-75.4,-12.6,-70.4,-25.2,-64.8,-38.7C-59.2,-52.3,-53.1,-66.9,-42.2,-71.2C-31.3,-75.4,-15.7,-69.5,-0.6,-68.4C14.5,-67.4,28.9,-71.3,41.9,-68.2Z%22 transform=%22translate(100 100)%22/></svg>');
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="21.24 27.31 149.59 139.17"><path fill=%22black%22 d=%22M41.9,-68.2C54.8,-65,66.1,-54.9,69.5,-42.4C73,-29.8,68.5,-14.9,68,-0.3C67.5,14.3,71,28.7,66.5,39.4C62,50,49.5,57,37,61.3C24.6,65.7,12.3,67.5,0.9,65.9C-10.5,64.3,-20.9,59.3,-34,55.3C-47.1,51.4,-62.9,48.4,-71.1,39.3C-79.3,30.3,-79.9,15.1,-77.6,1.3C-75.4,-12.6,-70.4,-25.2,-64.8,-38.7C-59.2,-52.3,-53.1,-66.9,-42.2,-71.2C-31.3,-75.4,-15.7,-69.5,-0.6,-68.4C14.5,-67.4,28.9,-71.3,41.9,-68.2Z%22 transform=%22translate(100 100)%22/></svg>');

    -webkit-mask-size: auto;
    mask-size: auto;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
  
  Content section
  .find-bids-content {
    width: 50%;
    min-width: 400px;
    text-align: center;
  }
  
  .find-bids-content h2 {
    color: #0033a0;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .find-bids-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
  }
  
  .find-bids button {
    padding: 15px 35px;
    border: 2px solid #0033a0;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
    color: #0033a0;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .find-bids button:hover {
    background-color: #0033a0;
    color: #fff;
  }

.features {
    position: relative;
    padding: 50px 20px;
    padding-bottom: 200px;
    text-align: center;
    background-color: #f7fafc;
    color: #003366;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feature-wrapper::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    transform: skewY(5deg);
    transform-origin: top left;
    z-index: 2;
}

.features::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Adjust slant size */
    background-color: #f4f7fa;
    /* Match background */
    transform: skewY(-5deg);
    /* Adjust slant angle */
    transform-origin: top left;
}

.features h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    font-weight: 700;
    color: #0b368e;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 20px;
    /* Space between cards */
    max-width: 1200px;
    margin: auto;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon svg {
    width: 60px;
    height: 60px;
}

.card-icon {
    font-size: 40px;
    color: #3182CE;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.card h3 {
    font-size: 1.5em;
    font-weight: 500;
    color: #3182CE;
    margin-bottom: 15px;
}

.card p {
    font-size: 1.1em;
    color: #555;
}


.ready {
    padding: 80px 20px;
    text-align: center;
    background-color: #fff;
    padding-bottom: 200px;
}
.ready button {
    padding: 15px 35px;
    border: 2px solid #0033a0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    background: #0033a0;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ready h2,
.contact h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #003366;
    margin-bottom: 40px;
}

.contact {
    padding: 60px 20px;
    text-align: center;
    background-color: #f7fafc;
}

.contact p{
    margin: 0 auto;
    text-align: center;
    max-width: 700px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;

}

.contact label {
    font-weight: 600;
    color: #003366;
    margin-bottom: 10px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    color: #333;
}

.contact button {
    min-width: 40%;
    padding: 15px;
    background-color: #0033a0;
    border: none;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}
footer {
    background-color: #27AAE1;
    color: white;
    padding: 20px 0;
    font-size: 18px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px;
    text-align: left;
}

.footer-column p {
    margin: 5px 0;
}

.footer-column a {
    color: white;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 15px;
}
#success-message { 
    display: none; 
    color: green; 
    margin-top: 10px; 
    font-weight: bold; 
}

@media (max-width: 1213px) {
    .hamburger {
        display: block;
    }

    /* Hide nav on smaller screens */
    #navMenu {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: rgba(247, 250, 252, 0.9);
        width: 250px;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    /* Show nav when active class is added */
    #navMenu.active {
        display: flex;
    }

    /* Center the links in the navigation */
    #navMenu a {
        text-align: center;
        width: 100%;
        padding: 10px 0;
        color: #0033a0;
        text-transform: uppercase;
        font-weight: 600;
    }

    #navMenu a:hover {
        background-color: #27AAE1;
        color: #003366;
    }
    .hero{
        z-index: 1;
    }
    
}

@media (max-width: 1024px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
    .find-bids-content h2 {
        font-size: 24px;
      }
      
      .find-bids-content p {
        font-size: 15px;
      }

      .find-bids-container img {
        max-width: 50%;
        height: auto;
      }
      .footer-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

        .footer-column {
            flex: 1 1 45%; /* Two columns per row */
            text-align: center;
        }
    
}


@media (max-width: 768px) {
    .find-bids-container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center; /* Ensures content is centered */
        text-align: center;
    }

    .find-bids-container img {
        display: block; /* Removes inline behavior */
        margin: auto; /* Centers horizontally */
        max-width: 50%; /* Adjust size as needed */
        height: auto;
    }
    .hero-text {
        flex-direction: column;
        border: 0 solid rgba(0, 0, 0, 0);
        position: relative;
        transition: all .3sease;
        max-width: 100%;
    }
    .hero h1{
        text-align: center;
        margin-bottom: 30px;
        font-size: 40px;
        line-height: 1;
    }
    
    .hero p{
        display: block;
        text-align: center;
        font-size: 10px;
        line-height: 2;
        margin-bottom: 10px;

    }
    .feature-cards {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .card {
        width: 100%;
        max-width: 350px;
        margin: auto;
    }
    
    .contact form {
        width: 90%;
    }
    .footer-column {
        flex: 1 1 100%; /* Stack all columns on smaller screens */
        text-align: center;
    }
}