/* ================= NAVBAR ================= */
.custom-navbar {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 3px solid #c62828;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 200px;
    width: auto;
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 60px;
    }
}

/* ================= SERVICES ================= */
.service-section {
    padding: 50px 0 110px;
    background: #f2f2f2;
}

.service-thumb img {
    width: 100%;

}

.servicesimg {
    width: 100%;
    height: 240px;
}

.service-content {
    background: url(../images/red.jpg);
    background-repeat: no-repeat;
    padding: 0 34px 20px;
    position: relative;
    z-index: 1;
    margin: -130px 23px 33px;
}

.service-content::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0%;
    background: url(../images/blue.avif);
    background-repeat: no-repeat;
    left: 0;
    bottom: 0;
    visibility: hidden;
    opacity: 0;
    transform-style: preserve-3d;
    transform: perspective(370px) rotateY(90deg) translate(0px, 50px);
    transition: all 900ms ease;
    -moz-transition: all 900ms ease;
    -webkit-transition: all 900ms ease;
    -ms-transition: all 900ms ease;
    -o-transition: all 900ms ease;
    z-index: -1;
}

.service-box:hover .service-content::before {
    opacity: 1;
    visibility: visible;
    transform: perspective(370px) rotateY(0deg) translate(0px, 0px);
    height: 100%;
}

.service-icon-thumb {
    background: #ffffff;
    width: 90px;
    height: 100px;
    line-height: 88px;
    text-align: center;
    border-radius: 0px 0px 45px 45px;
    margin-bottom: 30px;
    transition: .5s;
}

.service-box:hover .service-icon-thumb {
    background: #e63a27;
}

.service-icon-thumb img {
    width: auto;
    height: 60px;

    transition: .5s;
}

.service-box:hover .service-icon-thumb img {
    filter: brightness(0)invert(1);
}

.service-text a {
    text-decoration: none !important;
}

.service-text h4 {
    line-height: 24px;
    color: #e2e2e2;
    font-weight: 500;
}

.service-text h4 a {
    font-size: 26px;
    font-weight: 500;
}

.service-box:hover .service-text h4 {
    color: #e63a27;
}

.service-text p {
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    font-weight: 400;
    margin: 20px 0 45px;
    position: relative;
}

.service-text p::before {
    position: absolute;
    content: "";
    height: 1px;
    width: 310px;
    background: #e8e8e8;
    bottom: -28px;
    opacity: 0.600;
}

.service-text a {
    display: inline-block;
    font-size: 18px;
    line-height: 24px;
    text-decoration: underline;
    color: #ffffff;
    font-weight: 400;
    transition: .5s;
}

.service-box:hover .service-text a {
    color: #e63a27;
}

.service-text a i {
    font-size: 12px;
    margin-left: 8px;
}

/* service box style two */

.service-box {

    margin-top: 40px;
}

@media (max-width: 576px) {
    .service-box {

        margin-top: 10px;
    }
}

/* ================= MODERN FOOTER ================= */
.modern-footer {
    /* background: linear-gradient(135deg, #c62828, #8e1b1b); */
    background: linear-gradient(135deg, #0b073c, #0e065a);
    color: #fff;
    padding: 30px 0 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #fff;
    margin-top: 8px;
}

/* Contact Items Styling */
.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    /* Spacing between items */
    transition: all 0.3s ease;
}

.footer-item i {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #c62828;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}

.footer-item a,
.footer-item span {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
    transition: 0.3s;
}

.footer-item a:hover {
    color: #adadad;

}

.footer-item:hover i {
    color: #8e1b1b;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.footer-item a,
.footer-item i,
.footer-social a {
    transition: all 0.3s ease;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #c62828;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.footer-social a:hover {
    transform: translateY(-5px);
    background: #f8f9fa;
    color: #8e1b1b;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 5px 0 20px;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= MEDIA QUERIES (MOBILE FIXES) ================= */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 60px;
        /* Logo becomes smaller */
    }

    .modern-footer {
        padding: 40px 20px 20px;
        /* More breathing room */
    }

    .footer-title {
        font-size: 20px;
        /* Smaller Title */
        margin-bottom: 20px;
    }

    .footer-item i {
        width: 38px;
        /* Smaller Icons */
        height: 38px;
        font-size: 16px;
    }

    .footer-item a,
    .footer-item span {
        font-size: 15px;
        /* Smaller Text for better fit */
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }
}