@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;
    box-sizing: border-box;
}
body {
    font-family: "Poppins", sans-serif; 
    /* background: linear-gradient(42deg, #3e5151, #decba4); */
    color: #333;
}
.navbar{
    height: 70px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: black;
}
.navbar .logo {
    flex: 1;
    margin-left: 20px;
}
.navbar .logo-image {
    height: 80px; 
    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;
}



.container{
    background: linear-gradient(42deg, #3e5151, #decba4);
}
.services-section {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    padding-bottom: 50px;
}

.services-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-top: 5px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: capitalize;
    position: relative;
}

.services-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ad1010;
    margin: 10px auto 0;
    border-radius: 5px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px; 
    margin-bottom: 40px;
}

.card {
    border-radius: 20px;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 350px;
    position: relative;
    overflow: hidden;
}

/* Background colors for each card */
.card-raj {
    background-color: #f9f2f2; /* Light red */
    box-shadow: 0 8px 15px rgba(255, 0, 0, 0.822);
}

.card-plumber {
    background-color: #f2f9f2; /* Light green */
    box-shadow: 0 6px 10px rgba(0, 255, 0, 0.822);
}

.card-electric {
    background-color: #f2f2f9; /* Light blue */
    box-shadow: 0 8px 10px rgba(0, 0, 255, 0.822);
}

.card-carpenter {
    background-color: #f9f9f2; /* Light yellow */
    box-shadow: 0 8px 15px rgba(235, 235, 27, 0.911);
}

.card-marbel {
    background-color: #f2f9f9; /* Light cyan */
    box-shadow: 0 8px 10px rgba(0, 255, 255, 0.822);
}

.card-false-ceiling {
    background-color: #f9f2f9; /* Light orange */
    box-shadow: 0 8px 10px rgba(230, 126, 34, 0.822);
}

.card-wall-painting {
    background-color: #f2f9f2; /* Light dark blue */
    box-shadow: 0 8px 10px rgba(52, 73, 94, 0.822);
}

.card-rcc {
    background-color: #f9f9f2;
    box-shadow: 0 8px 10px rgba(3, 199, 160, 0.822); 
}
.card-grill{
    background-color: #f9f5e3; 
    box-shadow: 0 8px 15px rgba(150, 75, 0, 0.822); 
}
.card-sliding{
    background-color: #e3f9f5; 
    box-shadow: 0 6px 12px rgba(0, 204, 204, 0.822); 
}
.card-interior{
    background-color: #f5e3f9; 
    box-shadow: 0 8px 10px rgba(255, 105, 180, 0.822);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: -1;
    transition: opacity 0.3s;
}

.card-raj::before {
    background: linear-gradient(50deg, rgba(231, 65, 47, 0.753), rgba(17, 17, 17, 0));
}

.card-plumber::before {
    background: linear-gradient(50deg, rgba(46, 204, 112, 0.753), rgba(46, 204, 113, 0));
}

.card-electric::before {
    background: linear-gradient(50deg, rgba(52, 152, 219, 0.753), rgba(52, 152, 219, 0));
}

.card-carpenter::before {
    background: linear-gradient(50deg, rgba(241, 196, 15, 0.767), rgba(241, 196, 15, 0));
}

.card-marbel::before {
    background: linear-gradient(50deg, rgba(20, 255, 255, 0.664), rgba(0, 255, 255, 0));
}

.card-false-ceiling::before {
    background: linear-gradient(50deg, rgba(230, 125, 34, 0.753), rgba(230, 126, 34, 0));
}

.card-wall-painting::before {
    background: linear-gradient(50deg, rgba(52, 73, 94, 0.801), rgba(52, 73, 94, 0));
}

.card-rcc::before {
    background: linear-gradient(50deg, rgba(22, 160, 132, 0.705), rgba(22, 160, 133, 0));
}
.card-grill::before {
    background: linear-gradient(50deg, rgba(206, 19, 19, 0.801), rgba(255, 255, 204, 0));
}

.card-sliding::before {
    background: linear-gradient(50deg, rgba(39, 231, 231, 0.733), rgba(204, 255, 255, 0));
}

.card-interior::before {
    background: linear-gradient(50deg, rgba(238, 15, 49, 0.664), rgba(255, 105, 180, 0));
} 

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}



.service-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1b1b1b;
}

.card p {
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #272626;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px 20px 0 0; 
}

/* Button styles */
.service-button {
    background-color: #ad1010;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 20px auto 0;
    transition: background-color 0.3s;
}

.service-button:hover {
    background-color: #520505;
}





footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px; 
}
footer p{
    font-size: 1.1rem;
}
footer .social-links{
  margin-right: 10px;
  display: flex;
}
.social-links a {
    margin-left: 10px;
}
footer .social-links img{
  max-width: 25px;
  opacity: 0.8;
  transition: 0.3s;
}











@media (max-width: 991px) {
    .cards {
        gap: 25px; /* Reduce gap between cards */
    }
    
    .card {
        width: 220px; /* Slightly reduce card width */
        height: auto; /* Allow height to adjust automatically */
    }
    .services-section h2{
      margin-top: auto;
    }

    .services-section h2 {
        font-size: 2.25rem; /* Adjust heading size */
    }

    .service-button {
        padding: 10px; /* Adjust button padding */
    }
}



@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; 
    }
    .cards {
        gap: 20px; 
    }
    
    .card {
        width: 90%; 
        height: auto; 
    }
    .container{
        padding-bottom: 30px;
    }

    .services-section h2 {
        font-size: 2rem;
    }

    .service-button {
        padding: 10px; 
    }

    footer {
        flex-direction: column; 
        align-items: center;
    }

    footer p {
        font-size: 0.8rem;
    }

    footer .social-links {
        margin-left: auto;
    }
}


@media (max-width: 480px) {

    .cards {
        flex-direction: column; 
        align-items: center; 
    }

    .card {
        width: 90%; 
        height: auto; 
    }

    .services-section h2 {
        font-size: 1.75rem; 
    }

    .service-button {
        width: 100%;
        padding: 12px; 
    }
    header h1 {
        font-size: 1.2rem; 
    }

    .image {
        height: 120px; 
    }

    .content h2 {
        font-size: 1.2rem; 
    }

    .item {
        margin-bottom: 20px; 
    }
}