* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif !important;
}

::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;
    font-family: 'poppins', sans-serif;
}

.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.active {
    position: relative;
    display: inline-block;
    color: rgb(226, 37, 37) !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 {
    transition: all 0.3s ease;
    color: rgb(255, 255, 255);
    font-weight: 500;
}

.nav-link:hover {
    color: red;
    scale: 1.1;
    font-weight: 500;
}

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

.navbar {
    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 {
    background: black !important;
    transition: all 0.3s ease-in-out;
}

.brand-scroll {
    animation: scrollBrands 20s linear infinite;
}

.brand-scroll:hover {
    animation-play-state: paused;
}

/* -------------- */
.navbar-toggler {
    color: red;
}

li.hover-animate {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

li.hover-animate:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: #d30505;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* ---------- */
.brand-scroll {
    animation: infinite 60s linear scrollBrands;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-440%);
    }
}

@media (max-width:768px) {
    .brand-scroll {
        animation: infinite 50s linear scrollBrands;
    }

    .brand-scroll:hover {
        animation-play-state: paused;
    }

    .digital-marketing {
        font-size: 20px;
    }

    @keyframes scrollBrands {
        0% {
            transform: translateX(100%);
        }

        100% {
            transform: translateX(-860%);
        }
    }
}

.underline-animated:hover {
    border-bottom: 5px solid red;
    transition: all 0.3s ease;
}

.brand-logo {
    width: 160px;
    height: 160px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.brand-logo-inner {
    width: 75%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-10px);
    box-shadow: 2px 2px 10px 5px;
}

.hero-section img {
    margin-bottom: 10px;
}

.hero-transparent {
    background:
        linear-gradient(217deg, rgba(0, 0, 0, 0.8), rgb(0, 0, 0) 70.71%),
        linear-gradient(127deg, rgb(0, 0, 0), rgb(0, 0, 0) 70.71%),
        linear-gradient(390deg, rgba(0, 0, 0, 0.952), rgb(0, 0, 0) 70.71%);

}

.primary-btn {
    border: 2px solid #d60a0a;
    color: white;
}

.primary-btn:hover {
    background-color: #d60a0a;
    color: white;
}

.secondry-btn {
    background-color: #d60a0a;
    color: white;
}

.secondry-btn:hover {
    border: 1px solid #d60a0a;
    color: #d60a0a;
}

.typed-text {
    color: #d60a0a;
    font-weight: bold;
    font-size: large;
    font-family: 'poppins', sans-serif;
}

/* Responsive sizes */
@media (max-width: 768px) {
    .hero-section img {
        width: 20vh;
        margin-bottom: 5vh;
    }

    .hero-section p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        width: 100px !important;
        height: 100px !important;
    }

    .gap-5 {
        gap: 1rem !important;
    }
}

.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);
}


@media screen and (max-width: 768px) {
    .image img {
        width: 30%;
        height: 2cm;
        object-fit: cover;
    }

    .carousel-item {
        margin-left: 30px;
    }
}

.count-card {
    background-color: red;
    color: white;
    transition: all 0.9s ease;
}

.count-card:hover {
    background: #000000;
}

/* review section */
.dil {
    transition: scale 0.3s;
}

.dil:hover {
    scale: 120%;
}

.client:hover {
    border-bottom: 5px solid red;
    transition: all 0.5s ease-in-out;
}

.carousel-item .text-muted {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (max-width:768px) {
    .carousel-item .text-muted {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        -webkit-box-orient: vertical;
    }
}

.review-card {
    height: 280px;
    max-width: 500px;
    margin: 0 auto;
}

.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 96px;
    /* Approximately 4 lines of text */
}

@media (max-width: 768px) {
    .review-card {
        height: 300px;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    opacity: 1;
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }
}

/* Contact form styles */
.contact:hover {
    border-bottom: 5px solid red;
    transition: all 0.3s ease;
}

.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;
    }
}

/* stats section */
.stats-section {
    background-color: #f8f9fa;
    /* Light gray background */
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    /* Blue color */
}

/* loading */
.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);
    }
}

.hidden {
    display: none;
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background-color: #ce0303;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

#scrollTopBtn:hover {
    background-color: #961717;
}

@media (max-width: 768px) {
    #scrollTopBtn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
        color: #f3f3f3;
        background-color: #961717;
    }
}

@media (max-width: 576px) {
    #scrollTopBtn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        bottom: 10px;
        right: 10px;
        color: white;
        background-color: #ce0303;
    }

    .button-icon {
        display: none;
    }
}

/* footer */

.footer-image p {
    font-size: 18px;
    width: 20vw;
    letter-spacing: 0.5px;
}

@media (max-width:768px) {
    .footer-text {
        margin: 0 auto !important;
    }
}

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

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;
}

@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;
    }
}

/* popup video  */
.video-popup {
    position: fixed;
    top: 70vh;
    right: 75vw;
    width: 320px;
    height: 180px;
    background-color: #000;
    z-index: 1000;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 10px;
}



@media (max-width:992px) {
    .video-popup {
        left: 2vh;
        top: 60vh;
        width: 250px;
        height: 150px;
    }
}

.video-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-popup video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
}

.video-popup.expanded {
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
}

/* Page Loader Styles */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    color: #ff0000;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Hide loader after page load */
.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure content is visible only after loader */
body {
    visibility: hidden;
}

body.loaded {
    visibility: visible;
}