body {
    background: linear-gradient(-80deg, #ff0000, #000000, #ff0000, #000000);
    height: 100vh;
    background-size: 400% 400%;
    animation: lavaLamp 10s infinite;
    font-family: sans-serif; /* Added semicolon at the end */
    padding: 0;
    margin: 0;
    line-height: 1.7em;
}

  
  
  @keyframes lavaLamp {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }


.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
}
.content h1 {
    color: #fff;
    font-size: 60px;
    letter-spacing: 15px;
}
.content h1 span {
    color: rgb(227, 115, 11);
}
.content a {
    background: rgb(227, 115, 11);
    padding: 10px 24px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 20px;
    color: #fff; /* This line changes the text color to white */
}
.content a:hover {
    background: #034e88;
    color: #fff; /* This ensures the text remains white on hover */
}

/* Navigation Bar Styles */
.navbar {
    overflow: hidden;
    background-color: rgb(192, 192, 192);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    height: 100px; /* Set a fixed height for your navbar */
}

.navbar-logo {
    height: auto; /* Adjust the size as needed, but keep it auto to maintain aspect ratio */
    max-height: 268%; /* Ensure the logo doesn't exceed the navbar's height */
    width: auto; /* You can set a specific width or keep it auto */
    object-fit: contain; /* This will make sure that the logo is scaled within its content box */
    margin-left: 10px; /* Space from the left side */
}

.navbar a {
    flex: 1; /* Distribute space evenly */
    display: block;
    color: #000000;
    text-align: center;
    padding: 14px 16px; /* Adjust the padding as needed to center the text vertically */
    text-decoration: none;
    font-size: 25px;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* Add these styles for the service buttons */
.services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px; /* Adjust as needed to account for the height of the navbar */
}

.service {
    opacity: 0; /* Start with opacity 0 for a fade-in effect */
    transform: translateX(-20px); /* Start slightly to the left of the final position */
    animation: fadeInAndLineUp 0.5s ease-out forwards; /* Apply keyframe animation */
}

@keyframes fadeInAndLineUp {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service:nth-child(2) {
    animation-delay: 0.2s; /* Delay for the second button */
}

.service:nth-child(3) {
    animation-delay: 0.4s; /* Delay for the third button */
}
.service:nth-child(4) {
    animation-delay: 0.6s; /* Delay for the fourth button */
}
.service:nth-child(5) {
    animation-delay: 0.8s; /* Delay for the fourth button */
}

/* Add more nth-child rules for additional buttons */




.service-row {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items horizontally */
    margin-bottom: 20px; /* Adjust as needed */
}

.service {
    margin: 0 10px;
    text-align: center;
    width: 200px; /* Set a fixed width for each service */
    margin-bottom: 20px; /* Adjust as needed */
    transition: filter 0.3s; /* Add transition for smoother effect */
}

.service a {
    text-decoration: none;
    color: #000;
    display: block;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 8px;
    box-sizing: border-box;
    transition: filter 0.3s, background-color 0.3s; /* Add transition for smoother effect */
    background-color: #fff; /* Set background color to white */
    position: relative; /* Create a positioning context for the pseudo-element */
}

.service a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px; /* Adjust the thickness of the underline */
    bottom: 0;
    left: 0;
    background-color: #000; /* Set the underline color */
    transform: scaleX(0); /* Initially set to scale 0, so it's not visible */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out; /* Add transition for the underline effect */
}

/* Hover effect */
.service a:hover {
    filter: brightness(1.2);
    background-color: #fff; /* Set hover background color to white */
}

.service a:hover::before {
    transform: scaleX(1); /* Expand the underline on hover */
}




.service img {
    max-width: 100%;
    height: 120px; /* Adjust as needed */
    object-fit: cover; /* Ensure the image covers the container while maintaining aspect ratio */
    border-radius: 8px; /* Add some border radius for a rounded look */
}

.service-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Additional styles for the description */
.service-info p {
    font-size: 14px;
    color: #fffcfc; /* Adjust as needed */
}

/* Remove the styles that dim the buttons on general hover */
.services-container:hover .service:not(:hover) a {
    filter: brightness(0.7);
}

@media (max-width: 640px) {
    .navbar {
        height: auto;
    }

    .navbar-logo {
        height: 120px;
        margin-left: 10px;
    }

    .navbar a {
        padding: 10px;
        font-size: 18px;
    }

    .service-row {
        flex-direction: column; /* Stack services vertically on smaller screens */
        align-items: center; /* Center items horizontally */
    }

    .service {
        margin: 0 0 20px 0; /* Adjust margins for spacing between services */
        width: 80%; /* Make services take up 80% of the width */
    }

    .service img {
        height: auto; /* Allow images to scale with the container */
        width: 100%; /* Ensure images take up the full width of the container */
    }
}