* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #ff0000;
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

/* Track (background) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Thumb (scroll box) */
::-webkit-scrollbar-thumb {
    background: #ed0000;
    border-radius: 10px;
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
    background: #9e2000;
}

body {
    scroll-behavior: smooth;
    padding-top: 80px;
    font-family: 'poppins', sans-serif !important;
}

.nav-icon,
.navbar .nav-link i {
    transition: all 0.5s ease-in-out;
    scale: 1.1;
    color: red;
}

.nav-item .nav-icon:hover {
    scale: 2.1;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-link.active {
    position: relative;
    display: inline-block;
    color: red !important;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
}

.nav-link.active:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #f10707 !important;
    scale: 1.1;
    transition: all 0.5s ease-in-out;
}

.navbar-collapse {
    margin-right: 10px;
}

.navbar {
    background: transparent !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.navbar-blur {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(0.25turn, rgb(252, 252, 251), rgb(255, 0, 0), rgba(56, 2, 155, 0));
    border-image-slice: 1;
    width: 100%;
}

/* .container-fluid a,
img {
    object-fit: contain;
    width: 30%;
    height: 50%;
}

@media (max-width: 768px) {

    .container-fluid a,
    img {
        margin-top: 5px;
        width: 50%;
        height: 50%;
    }
} */
.contact:hover {
    border-bottom: 5px solid red;
    transition: all 0.3s ease;
}

.underline {
    position: relative;
    display: inline-block;
}

.underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: rgb(148, 4, 4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
}

.underline:hover::after {
    transform: scaleX(1);
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: #dc3545;
}

@media (max-width: 991px) {
    .contact-image {
        max-height: 300px !important;
    }
}

@media (max-width: 767px) {
    .card-body {
        padding: 1.5rem !important;
    }
}

.contact-hov {
    transition: all 0.5s ease, color 0.5s ease;
}

.contact-hov:hover {
    transform: scale(1.1);
    color: red;

}

.card-body {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease;
}

.card-body:hover {
    transform: scale(1.03);
}

.card-body::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 25px;
    background: linear-gradient(45deg, #000000, #000000, #a80000, #ffffff, #2eda03);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-body:hover::before {
    opacity: 1;
    animation: animatedGradient 4s ease-in-out infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Inner white box to cover the center */
.card-body::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: white;
    border-radius: 17px;
    z-index: -1;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form input,
.form textarea {
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #ebabab;
    font-size: 1rem;
}

.form textarea {
    resize: none;
    height: 100px;
}

.form button {
    padding: 1rem;
    border-radius: 5px;
    border: none;
    background-color: red;
    background-image: linear-gradient(to right, red, black);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.5s ease;
}

.form button:hover {
    transition: all 0.5s ease-in-out;
    background-color: red;
    background-image: linear-gradient(to right, black, red);
}

input {
    all: unset;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.5s ease-in-out;
}

input:focus {
    border-color: #b31d1d;
}

textarea {
    all: unset;
    transition: border-color 0.5s ease-in-out;

}

textarea:focus {
    border-color: #b31d1d;
}

.card {
    width: 80vh;
}

@media (max-width: 768px) {
    .map iframe {
        width: 90vw;
        height: 70vw;
        margin-left: -1vh;
    }

    .card {
        margin-top: 20px;
        margin-left: -1vh;
        width: 90vw;
    }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b31d1d;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin-top: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* footer */
.footer-image p {
    text-wrap: wrap;
    font-size: 18px;
    width: 20vw;
}

footer {
    position: relative;
    z-index: 1;
}

.social-links a {
    text-decoration: none;
}

.social-links a,
i:hover {
    color: #dd0016;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

footer .social-links a {
    transition: opacity 0.3s ease;
}

footer .social-links a:hover {
    opacity: 0.7;
}

footer ul li a {
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #f3051c !important;
}

.footer-image img {
    width: 100px;
    height: 40px;
    object-fit: contain;
}

footer {
    border-top: 3px solid rgb(255, 65, 65);
}

@media (max-width: 768px) {
    footer .row>div {
        text-align: center;
    }

    footer .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .footer-image img {
        width: 184px;
        height: 55px;
    }
}

@media (max-width:576px) {
    .footer-image img {
        max-width: 200px;
        height: 55px;
        object-fit: contain;
    }

    .footer-image p {
        width: 50vh;
        font-size: 15px;

    }
}

@media (max-width:768px) {
    .footer-image p {
        width: 40vh;
        font-size: 15px;
        margin-left: 2vh;
    }
}