@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
}
main {
    font-family: "Poppins", sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding-bottom: 30px;
    height: 100%; /* Ensure the body takes full height */
    margin-bottom: 50px;
    /* height: calc(100% - 20px); */

}
.navbar{
    height: 60px;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: black;
    color: #fff;
}
.navbar .logo {
    flex: 1;
    margin-left: 20px;
}
.navbar .logo-image {
    height: 80px;   /* Adjust height as needed */
    width: 120px;
    display: block;
}
.navbar .nav-links {
    display: flex;
    margin-right: 20px;
    gap: 20px;
}
.navbar .nav-links a{
    font-size: 1.2rem;
}
.navbar .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.navbar .nav-link:hover {
    color: #ad1010; 
    text-decoration: underline;
}
.services {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
  
h1 {
    margin-bottom: 40px;
    color: #333; 
    font-size: 2.5rem; 
    font-weight: 700;
    text-align: center; /* Center align */
    position: relative; /* For positioning pseudo-elements */
    padding: 10px; /* Add some padding */
    background: linear-gradient(90deg, #dd2e17, #cfbb08); /* Gradient background */
    -webkit-background-clip: text; /* Clip background to text */
    -webkit-text-fill-color: transparent; /* Make text transparent to show background */
}
h1::after {
    content: "";
    display: block;
    width: 50%; 
    height: 5px; 
    background-color: #333; 
    margin: 10px auto;  
    border-radius: 10px; 
}

.components {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(4, 1fr); /* Three columns */
    gap: 20px; /* Space between components */
    justify-items: center;
}
.component a {
    text-decoration: none; /* Remove underline from links */
    color: #000; /* Text color */
}

 
.component {
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden; 
    text-align: center; 
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s; 
}

.component:nth-child(1) {
    background-color: #f9f2f2; /* Light red */
    box-shadow: 0 6px 10px rgba(255, 0, 0, 0.822);
}

.component:nth-child(2) {
    background-color: #f2f9f2; /* Light green */
    box-shadow: 0 6px 10px rgba(0, 255, 0, 0.822);
}

.component:nth-child(3) {
    background-color: #f2f2f9; /* Light blue */
    box-shadow: 0 6px 10px rgba(0, 0, 255, 0.822);
}

.component:nth-child(4) {
    background-color: #f9f9f2; /* Light yellow */
    box-shadow: 0 6px 10px rgba(255, 255, 0, 0.822);
}

.component:nth-child(5) {
    background-color: #f2f9f9; /* Light cyan */
    box-shadow: 0 6px 10px rgba(0, 255, 255, 0.822);
}

.component:nth-child(6) {
    background-color: #f2f2f2; /* Light gray */
    box-shadow: 0 6px 10px rgba(184, 107, 7, 0.952);
}

.component:nth-child(7) {
    background-color: #f9f2f9; /* Light pink */
    box-shadow: 0 6px 10px rgba(255, 3, 121, 0.822);
}

.component:nth-child(8) {
    background-color: #f2e6f2; /* Light lavender */
    box-shadow: 0 6px 10px rgba(201, 1, 201, 0.822);
}
.component img {
    width: 200px; 
    height: 200px; 
    border-radius: 10%;
}

.component p {
    margin: 10px 0 0 0;
    color: #000;
    font-weight: bold;
}

.component:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}


footer {
    /* position: fixed; */
    /* bottom: 0; */
    /* left: 0; */
    /* right: 0; */
    background: #333;
    color: #fff;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 10px; 
}
footer p{
    font-size: 1.2rem;
}
footer .social-links{
  margin-right: 8px;
  display: flex;
}
.social-links a {
    margin-left: 10px;
}
footer .social-links img{
  max-width: 25px;
  opacity: 0.8;
  transition: 0.3s;
}














@media (max-width: 768px) {

    .navbar {
        flex-direction: row; 
        height: auto;
        padding: 2px;
    }

    .navbar .nav-links .nav-link {
        font-size: 16px;
    }

    .navbar .nav-links {
        flex-direction: row; 
        margin-right: 5px;
        gap: 10px; 
    }
    .services h1{
        font-size: 1.4rem;
    }
    .components {
        grid-template-columns: repeat(1, 1fr); 
    }
    .component{
        padding: 35px;
    }
    .component img{
        height: 250px;
        width: 250px;
    }
    .component p{
        font-size: 1.3rem;
    }
    footer p{
        font-size: 0.9rem;
    }
}


@media (max-width: 480px) {

    .components {
        grid-template-columns: 1fr; 
    }
    footer p{
        font-size: 0.9rem;
    }
}