/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}
/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}
.btn-square, .btn-sm-square, .btn-md-square, .btn-lg-square, .btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}
.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }
.btn-xl-square { width: 66px; height: 66px; }
.btn.btn-primary {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}
.btn.btn-primary:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}
.btn.btn-dark {
    background: var(--bs-dark) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}
.btn.btn-dark:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}
.btn.btn-light {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}
.btn.btn-light:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}
/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: #795548 !important;
}
@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
    .navbar {
        font-size: x-small;
    }
}
/*** Topbar End ***/
/*** Navbar ***/
.sticky-top,
.sticky-top .container {
    transition: 0.5s !important;
}
.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark) !important;
}
.navbar .navbar-nav .nav-item {
    position: relative;
    margin: 0 0px !important;
}
.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border: 0px solid var(--bs-primary);
    transition: 0.5s;
}
.navbar .navbar-nav .nav-item::before {
    top: 0;
    left: 0;
}
.navbar .navbar-nav .nav-item::after {
    bottom: 0;
    right: 0;
}
.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    width: 100%;
    border-width: 1px;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link:hover,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}
@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        margin-top: 20px !important;
        transition: .5s;
        opacity: 0;
        z-index: 9;
    }
}
@media (max-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        margin-top: 15px !important;
        transition: 0.5s;
    }
}
@media (max-width: 991px) {
    .navbar .navbar-nav .nav-item.nav-link {
        margin: 15px 0 !important;
    }
}
.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white);
}
.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    margin-top: 20px !important;
    transition: .5s;
    opacity: 1;
}
.navbar .navbar-toggler {
    padding: 8px 15px;
    color: var(--bs-dark);
    background: var(--bs-primary);
}
#searchModal .modal-content {
    background: rgba(250, 250, 250, .6);
}
/*** Navbar End ***/
/*** Carousel Header Start ***/
.header-carousel .header-carousel-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.owl-prev,

.owl-prev {
    left: 30px;
}

.owl-prev:hover,

.header-carousel .header-carousel-item-img-1,
.header-carousel .header-carousel-item-img-2,
.header-carousel .header-carousel-item-img-3 {
    position: relative;
    overflow: hidden;
}
.header-carousel .header-carousel-item-img-1::before,
.header-carousel .header-carousel-item-img-2::before,
.header-carousel .header-carousel-item-img-3::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
    border-radius: 300px;
    border: 100px solid rgba(68, 210, 246, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}
@keyframes RotateMoveCircle {
    0% {top: -400px;}
    50%   {right: -200px;}
    75%   {top: -200px;}
    100%  {top: -400px;}
}
.header-carousel .header-carousel-item-img-1::after,
.header-carousel .header-carousel-item-img-2::after,
.header-carousel .header-carousel-item-img-3::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 70px;
    transform: rotate(-30deg);
    background: rgba(68, 210, 246, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}
@keyframes RotateMoveRight {
    0%   {left: 0px;}
    50%   {left: 70px;}
    100%  {left: 0px;}
}
.header-carousel .header-carousel-item::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 1200px;
    top: -150px;
    left: -265px;
    transform: rotate(-30deg);
    background: var(--bs-dark);
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}
@keyframes RotateMoveLeft {
    0%   {left: -240px;}
    50%   {left: -300px;}
    100%  {left: -240px;}
}
.header-carousel .header-carousel-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2 !important;
}
.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 80%;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 9;
}
@media (max-width: 992px) {
    .header-carousel .header-carousel-item .carousel-caption {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 10px;
    }
    .header-carousel-item img {
        height: auto; /* Allow images to scale */
        object-fit: cover;
    }
    .owl-prev,
 
    .owl-prev {
        left: 65%;
    }
}
/*** Header Carousel End ***/
/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0;
}
.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
}
.bg-breadcrumb .bg-breadcrumb-single {
    position: absolute;
    width: 500px;
    height: 1200px;
    top: 0px;
    left: 0;
    margin-left: 30px;
    transform: rotate(-30deg);
    background: var(--bs-dark);
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}
.bg-breadcrumb::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    border-radius: 200px;
    border: 80px solid rgba(68, 210, 246, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}
@keyframes RotateMoveCircle {
    0% {top: -200px;}
    50%   {right: -100px;}
    75%   {top: -100px;}
    100%  {top: -200px;}
}
.bg-breadcrumb::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 0;
    margin-left: 160px;
    transform: rotate(-30deg);
    background: rgba(68, 210, 246, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}
/*** Single Page Hero Header End ***/
/*** About Start ***/
.about .text {
    position: relative;
}
.about .text::after {
    content: "";
    width: 4px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-primary);
}
/*** About End ***/
/*** Service Start ***/
.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.3);
}
.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.service .service-item .service-img img {
    transition: 0.5s;
}
.service .service-item:hover .service-img img {
    transform: scale(1.2);
}
.service .service-item .service-img::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    right: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(68, 210, 246, 0.4);
    transition: 0.5s;
}
.service .service-item:hover .service-img::after {
    width: 100% !important;
    height: 100% !important;
}
.service .service-item .service-content {
    position: relative;
}
.service .service-item .service-content::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-dark);
    transition: 0.5s;
    z-index: 1;
}
.service .service-item:hover .service-content::after {
    width: 100% !important;
    height: 100% !important;
}
.service .service-item .service-content .service-content-inner {
    transition: 0.5s;
}
.service .service-item:hover .service-content .service-content-inner {
    position: relative;
    color: var(--bs-white) !important;
    transition: 0.5s;
    z-index: 2;
}
.service .service-item:hover .service-content .service-content-inner a.h4 {
    color: var(--bs-white) !important;
    transition: 0.5s;
}
.service .service-item:hover .service-content .service-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}
/*** Service End ***/
/*** Project Start ***/
.project .project-carousel.owl-carousel {
    height: 100%;
}
.project .project-carousel .project-item {
    position: relative;
    overflow: hidden;
}
.project .project-carousel .project-item .project-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.project .project-carousel .project-item .project-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(68, 210, 246, 0.4);
    transition: 0.5s;
}
.project .project-carousel .project-item:hover .project-img::after {
    height: 100%;
}
.project .project-carousel .project-item .project-img img {
    transition: 0.5s;
}
.project .project-carousel .project-item:hover .project-img img {
    transform: scale(1.2);
}
.project .project-carousel .project-item .project-content {
    position: relative;
    width: 75%;
    height: 100%;
    bottom: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}
.project .project-carousel .project-item .project-content::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px !important;
    background: var(--bs-dark);
    transition: 0.5s;
}
.project .project-carousel .project-item .project-content .project-content-inner {
    position: relative;
    z-index: 2;
}
.project .project-carousel .project-item:hover .project-content .project-content-inner p,
.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4,
.project .project-carousel .project-item:hover .project-content .project-content-inner .project-icon i {
    color: var(--bs-white) !important;
    transition: 0.5s;
}
.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}
.project .project-carousel .project-item:hover .project-content::after {
    height: 100%;
}
.project-carousel .owl-dots {
    position: absolute;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -120px;
    transition: 0.5s;
}
.project-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin-right: 15px;
    background: var(--bs-dark);
    transition: 0.5s;
}
.project-carousel .owl-dots .owl-dot.active {
    width: 30px;
    height: 30px;
    border-radius: 40px;
    border: 8px solid var(--bs-primary);
}
/*** Project End ***/
/*** Blog Start ***/
.blog .blog-item .project-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.5s;
}
.blog .blog-item .project-img .blog-plus-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(68, 210, 246, 0.2);
    transition: 0.5s;
    opacity: 0;
}
.blog .blog-item:hover .project-img .blog-plus-icon {
    opacity: 1;
}
.blog .blog-item .project-img img {
    transition: 0.5s;
}
.blog .blog-item:hover .project-img img {
    transform: scale(1.3);
}
/*** Blog End ***/
/*** Team Start ***/
.team .team-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bs-dark);
    transition: 0.5s;
}
.team .team-item:hover {
    border: none !important;
}
.team .team-item::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    border: 1px solid;
    border-color: var(--bs-primary) transparent transparent var(--bs-primary) !important;
    z-index: 5;
    transition: 1s;
    opacity: 0;
}
.team .team-item::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 10px;
    border: 1px solid;
    border-color: transparent var(--bs-primary) var(--bs-primary) transparent !important;
    z-index: 5;
    transition: 1s;
    opacity: 0;
}
.team .team-item:hover:after,
.team .team-item:hover::before {
    width: 100% !important;
    height: 100% !important;
    opacity: 1;
}
.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}
.team .team-item .team-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(68, 210, 246, 0.2);
    transition: 0.5s;
}
.team .team-item:hover .team-img::after {
    height: 100%;
}
.team .team-item .team-img .team-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 8;
    transition: 0.5s;
}
.team .team-item .team-img .team-icon .team-icon-share {
    position: relative;
    margin-top: -200px;
    transition: 0.5s;
    z-index: 9;
}
.team .team-item:hover .team-img .team-icon .team-icon-share {
    margin-top: 0 !important;
}
.team .team-item .team-content {
    position: relative;
}
.team .team-item .team-content::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-primary) !important;
    transition: 0.5s;
}
.team .team-item .team-content::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-primary) !important;
    transition: 0.5s;
}
.team .team-item:hover .team-content::after,
.team .team-item:hover .team-content::before {
    width: 100% !important;
    height: 50% !important;
}
.team .team-item:hover .team-content .team-content-inner {
    position: relative;
    color: var(--bs-white);
    z-index: 2;
}
.team .team-item .team-content .team-content-inner h4,
.team .team-item .team-content .team-content-inner p {
    transition: 0.5s;
}
.team .team-item:hover .team-content .team-content-inner p {
    color: var(--bs-white) !important;
}
.team .team-item:hover .team-content .team-content-inner h4 {
    color: var(--bs-dark) !important;
}
/*** Team End ***/
/*** Testimonial Start ***/
.testimonial .testimonial-carousel {
    position: relative;
}
.testimonial .testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}
.testimonial .testimonial-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary);
}
/*** Testimonial End ***/
/*** FAQ'S Start ***/
.faq {
    position: relative;
    overflow: hidden;
}
.faq::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url(../img/bg.png);
    object-fit: cover;
    z-index: -1;
}
.faq .faq-img {
    position: relative;
}
.faq .faq-img .faq-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
}
/*** FAQ'S End ***/
/*** Footer Start ***/
.footer {
    background: #795548 !important;
}
.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}
.footer .footer-item p {
    line-height: 35px;
}
.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-primary);
}
.footer .footer-item-post a {
    transition: 0.5s;
}
.footer .footer-item-post a:hover {
    color: var(--bs-primary) !important;
}
.footer .footer-item-post .footer-btn a {
    transition: 0.5s;
}
.footer .footer-item-post .footer-btn a:hover {
    color: var(--bs-dark);
}
/*** Footer End ***/
/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/*** copyright end ***/
/* Responsive Styles */
@media (max-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        margin-top: 15px !important;
    }
}
@media (max-width: 992px) {
    .header-carousel .header-carousel-item .carousel-caption {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 10px;
    }
    .header-carousel-item img {
        height: auto; /* Allow images to scale */
        object-fit: cover;
    }
    .owl-prev
 {
        top: 40px !important;
/* Base Responsive Setup */
@media (max-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        margin-top: 15px !important;
    }
}

/* Tablet Responsive Styles */
@media (max-width: 992px) {
    /* Improved Navbar for mobile */
    .navbar-collapse {
        background-color: var(--bs-light);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .navbar .navbar-nav .nav-item {
        padding: 5px 0;
        margin: 0 !important;
    }
    
    /* Better header carousel for mobile */
    .header-carousel .header-carousel-item {
        min-height: 400px;
    }
    
    .header-carousel .header-carousel-item img {
        height: 400px;
        object-fit: cover;
    }
    
    .header-carousel .header-carousel-item .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    /* Simplify animations on mobile */
    .header-carousel .header-carousel-item::before,
    .header-carousel .header-carousel-item::after,
    .header-carousel .header-carousel-item-img-1::before,
    .header-carousel .header-carousel-item-img-1::after,
    .header-carousel .header-carousel-item-img-2::before,
    .header-carousel .header-carousel-item-img-2::after,
    .header-carousel .header-carousel-item-img-3::before,
    .header-carousel .header-carousel-item-img-3::after {
        animation: none;
    }
    
    /* Project section adjustments */
    .project .project-carousel .project-item .project-content {
        width: 85%;
        bottom: 40%;
    }
}

/* Mobile Landscape Styles */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.75rem !important;
    }
    h3 {
        font-size: 1.5rem !important;
    }
    h4 {
        font-size: 1.25rem !important;
    }
    p {
        font-size: 0.9rem !important;
    }
    
    /* Container spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Section adjustments */
    .section-padding {
        padding: 40px 0 !important;
    }
    
    /* Service section */
    .service .service-item {
        margin-bottom: 30px;
    }
    
    .service .service-item .service-content {
        padding: 15px !important;
    }
    
    /* Project section */
    .project .project-carousel .project-item .project-content {
        width: 85%;
        padding: 15px !important;
    }
    
    .project-carousel .owl-dots {
        margin-top: -80px;
    }
    
    /* Team section */
    .team .team-item {
        margin-bottom: 30px;
    }
    
    .team .team-item .team-content {
        padding: 15px !important;
    }
    
    .team .team-item .team-img .team-icon a {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }
    
    /* Blog section */
    .blog .blog-item {
        margin-bottom: 30px;
    }
    
    .blog .blog-item .blog-content {
        padding: 15px !important;
    }
    
    /* Testimonial section */
    .testimonial .testimonial-carousel .testimonial-item {
        padding: 20px !important;
    }
    
    /* FAQ section */
    .faq .faq-img .faq-btn {
        bottom: 10px;
        right: 10px;
    }
    
    .accordion-button {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    /* Footer improvements */
    .footer {
        padding-top: 40px !important;
    }
    
    .footer .footer-item {
        margin-bottom: 30px;
    }
    
    /* Make interactive elements touch-friendly */
    .btn {
        padding: 8px 20px;
    }
    
    .btn-sm-square {
        width: 38px;
        height: 38px;
    }
    
    .btn-md-square {
        width: 48px;
        height: 48px;
    }
    
    .form-control, .form-select {
        padding: 10px 15px;
        height: auto;
    }
    
    /* Fix carousel navigation */
    .owl-prev, .owl-next {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Mobile Portrait Styles */
@media (max-width: 576px) {
    /* Smaller typography */
    h1 {
        font-size: 1.8rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.3rem !important;
    }
    h4 {
        font-size: 1.1rem !important;
    }
    p {
        font-size: 0.85rem !important;
    }
    
    /* Navbar brand */
    .navbar-brand img {
        max-width: 150px;
    }
    
    /* Back to top button */
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Smaller header carousel */
    .header-carousel .header-carousel-item {
        min-height: 300px;
    }
    
    .header-carousel .header-carousel-item img {
        height: 300px;
    }
    
    .header-carousel .header-carousel-item .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    /* Project section */
    .project .project-carousel .project-item .project-content {
        width: 90%;
        padding: 10px !important;
        bottom: 35%;
    }
    
    .project-carousel .owl-dots {
        margin-top: -60px;
    }
    
    .project-carousel .owl-dots .owl-dot {
        width: 12px;
        height: 12px;
        margin-right: 8px;
    }
    
    .project-carousel .owl-dots .owl-dot.active {
        width: 25px;
    }
    
    /* Copyright section */
    .copyright {
        text-align: center;
    }
    
    .copyright .text-end {
        text-align: center !important;
        margin-top: 10px;
    }
    
    /* Smaller buttons */
    .btn {
        font-size: 0.85rem;
        padding: 7px 18px;
    }
    
    /* Carousel navigation */
    .owl-prev, .owl-next {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Small Mobile Styles */
@media (max-width: 400px) {
    /* Further reduce header size */
    .header-carousel .header-carousel-item {
        min-height: 250px;
    }
    
    .header-carousel .header-carousel-item img {
        height: 250px;
    }
    
    /* Adjust button text to fit */
    .btn {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    /* Optimize service items for very small screens */
    .service .service-item .service-content {
        padding: 10px !important;
    }
    
    /* Better spacing for very small screens */
    .section-padding {
        padding: 30px 0 !important;
    }
    
    /* Team social icons adjustment */
    .team .team-item .team-img .team-icon a {
        width: 28px;
        height: 28px;
    }
}

/* Fix for images on all mobile devices */
@media (max-width: 992px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Simplify complex animations for better performance */
    .animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}
/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}
.btn-square, .btn-sm-square, .btn-md-square, .btn-lg-square, .btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}
.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }
.btn-xl-square { width: 66px; height: 66px; }
.btn.btn-primary {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}
.btn.btn-primary:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}
.btn.btn-dark {
    background: var(--bs-dark) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}
.btn.btn-dark:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}
.btn.btn-light {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}
.btn.btn-light:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}
/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: #795548 !important;
}
@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
    .navbar {
        font-size: x-small;
    }
}
/*** Topbar End ***/
/*** Navbar ***/
.sticky-top,
.sticky-top .container {
    transition: 0.5s !important;
}
.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark) !important;
}
.navbar .navbar-nav .nav-item {
    position: relative;
    margin: 0 5px !important;
}
.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border: 0px solid var(--bs-primary);
    transition: 0.5s;
}
.navbar .navbar-nav .nav-item::before {
    top: 0;
    left: 0;
}
.navbar .navbar-nav .nav-item::after {
    bottom: 0;
    right: 0;
}
.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    width: 100%;
    border-width: 1px;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link:hover,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}
@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        margin-top: 20px !important;
        transition: .5s;
        opacity: 0;
        z-index: 9;
    }
}
@media (max-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        margin-top: 15px !important;
        transition: 0.5s;
    }
}
@media (max-width: 991px) {
    .navbar .navbar-nav .nav-item.nav-link {
        margin: 15px 0 !important;
    }
}
.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white);
}
.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    margin-top: 20px !important;
    transition: .5s;
    opacity: 1;
}
.navbar .navbar-toggler {
    padding: 8px 15px;
    color: var(--bs-dark);
    background: var(--bs-primary);
}
#searchModal .modal-content {
    background: rgba(250, 250, 250, .6);
}
/*** Navbar End ***/
/*** Carousel Header Start ***/
.header-carousel .header-carousel-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.owl-prev,

.owl-prev {
    left: 30px;
}

.owl-prev:hover,

.header-carousel .header-carousel-item-img-1,
.header-carousel .header-carousel-item-img-2,
.header-carousel .header-carousel-item-img-3 {
    position: relative;
    overflow: hidden;
}
.header-carousel .header-carousel-item-img-1::before,
.header-carousel .header-carousel-item-img-2::before,
.header-carousel .header-carousel-item-img-3::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
    border-radius: 300px;
    border: 100px solid rgba(68, 210, 246, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}
@keyframes RotateMoveCircle {
    0% {top: -400px;}
    50%   {right: -200px;}
    75%   {top: -200px;}
    100%  {top: -400px;}
}
.header-carousel .header-carousel-item-img-1::after,
.header-carousel .header-carousel-item-img-2::after,
.header-carousel .header-carousel-item-img-3::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 70px;
    transform: rotate(-30deg);
    background: rgba(68, 210, 246, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}
@keyframes RotateMoveRight {
    0%   {left: 0px;}
    50%   {left: 70px;}
    100%  {left: 0px;}
}
.header-carousel .header-carousel-item::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 1200px;
    top: -150px;
    left: -265px;
    transform: rotate(-30deg);
    background: var(--bs-dark);
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}
@keyframes RotateMoveLeft {
    0%   {left: -240px;}
    50%   {left: -300px;}
    100%  {left: -240px;}
}
.header-carousel .header-carousel-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2 !important;
}
.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 80%;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 9;
}
@media (max-width: 992px) {
    .header-carousel .header-carousel-item .carousel-caption {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 10px;
    }
    .header-carousel-item img {
        height: auto; /* Allow images to scale */
        object-fit: cover;
    }
    .owl-prev,
 
    .owl-prev {
        left: 65%;
    }
}
/*** Header Carousel End ***/
/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0;
}
.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
}
.bg-breadcrumb .bg-breadcrumb-single {
    position: absolute;
    width: 500px;
    height: 1200px;
    top: 0px;
    left: 0;
    margin-left: 30px;
    transform: rotate(-30deg);
    background: var(--bs-dark);
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}
.bg-breadcrumb::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    border-radius: 200px;
    border: 80px solid rgba(68, 210, 246, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}
@keyframes RotateMoveCircle {
    0% {top: -200px;}
    50%   {right: -100px;}
    75%   {top: -100px;}
    100%  {top: -200px;}
}
.bg-breadcrumb::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 0;
    margin-left: 160px;
    transform: rotate(-30deg);
    background: rgba(68, 210, 246, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}
/*** Single Page Hero Header End ***/
/*** About Start ***/
.about .text {
    position: relative;
}
.about .text::after {
    content: "";
    width: 4px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-primary);
}
/*** About End ***/
/*** Service Start ***/
.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.3);
}
.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.service .service-item .service-img img {
    transition: 0.5s;
}
.service .service-item:hover .service-img img {
    transform: scale(1.2);
}
.service .service-item .service-img::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    right: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(68, 210, 246, 0.4);
    transition: 0.5s;
}
.service .service-item:hover .service-img::after {
    width: 100% !important;
    height: 100% !important;
}
.service .service-item .service-content {
    position: relative;
}
.service .service-item .service-content::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-dark);
    transition: 0.5s;
    z-index: 1;
}
.service .service-item:hover .service-content::after {
    width: 100% !important;
    height: 100% !important;
}
.service .service-item .service-content .service-content-inner {
    transition: 0.5s;
}
.service .service-item:hover .service-content .service-content-inner {
    position: relative;
    color: var(--bs-white) !important;
    transition: 0.5s;
    z-index: 2;
}
.service .service-item:hover .service-content .service-content-inner a.h4 {
    color: var(--bs-white) !important;
    transition: 0.5s;
}
.service .service-item:hover .service-content .service-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}
/*** Service End ***/
/*** Project Start ***/
.project .project-carousel.owl-carousel {
    height: 100%;
}
.project .project-carousel .project-item {
    position: relative;
    overflow: hidden;
}
.project .project-carousel .project-item .project-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.project .project-carousel .project-item .project-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(68, 210, 246, 0.4);
    transition: 0.5s;
}
.project .project-carousel .project-item:hover .project-img::after {
    height: 100%;
}
.project .project-carousel .project-item .project-img img {
    transition: 0.5s;
}
.project .project-carousel .project-item:hover .project-img img {
    transform: scale(1.2);
}
.project .project-carousel .project-item .project-content {
    position: relative;
    width: 75%;
    height: 100%;
    bottom: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}
.project .project-carousel .project-item .project-content::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px !important;
    background: var(--bs-dark);
    transition: 0.5s;
}
.project .project-carousel .project-item .project-content .project-content-inner {
    position: relative;
    z-index: 2;
}
.project .project-carousel .project-item:hover .project-content .project-content-inner p,
.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4,
.project .project-carousel .project-item:hover .project-content .project-content-inner .project-icon i {
    color: var(--bs-white) !important;
    transition: 0.5s;
}
.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}
.project .project-carousel .project-item:hover .project-content::after {
    height: 100%;
}
.project-carousel .owl-dots {
    position: absolute;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -120px;
    transition: 0.5s;
}
.project-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin-right: 15px;
    background: var(--bs-dark);
    transition: 0.5s;
}
.project-carousel .owl-dots .owl-dot.active {
    width: 30px;
    height: 30px;
    border-radius: 40px;
    border: 8px solid var(--bs-primary);
}
/*** Project End ***/
/*** Blog Start ***/
.blog .blog-item .project-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.5s;
}
.blog .blog-item .project-img .blog-plus-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(68, 210, 246, 0.2);
    transition: 0.5s;
    opacity: 0;
}
.blog .blog-item:hover .project-img .blog-plus-icon {
    opacity: 1;
}
.blog .blog-item .project-img img {
    transition: 0.5s;
}
.blog .blog-item:hover .project-img img {
    transform: scale(1.3);
}
/*** Blog End ***/
/*** Team Start ***/
.team .team-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bs-dark);
    transition: 0.5s;
}
.team .team-item:hover {
    border: none !important;
}
.team .team-item::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    border: 1px solid;
    border-color: var(--bs-primary) transparent transparent var(--bs-primary) !important;
    z-index: 5;
    transition: 1s;
    opacity: 0;
}
.team .team-item::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 10px;
    border: 1px solid;
    border-color: transparent var(--bs-primary) var(--bs-primary) transparent !important;
    z-index: 5;
    transition: 1s;
    opacity: 0;
}
.team .team-item:hover:after,
.team .team-item:hover::before {
    width: 100% !important;
    height: 100% !important;
    opacity: 1;
}
.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}
.team .team-item .team-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(68, 210, 246, 0.2);
    transition: 0.5s;
}
.team .team-item:hover .team-img::after {
    height: 100%;
}
.team .team-item .team-img .team-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 8;
    transition: 0.5s;
}
.team .team-item .team-img .team-icon .team-icon-share {
    position: relative;
    margin-top: -200px;
    transition: 0.5s;
    z-index: 9;
}
.team .team-item:hover .team-img .team-icon .team-icon-share {
    margin-top: 0 !important;
}
.team .team-item .team-content {
    position: relative;
}
.team .team-item .team-content::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-primary) !important;
    transition: 0.5s;
}
.team .team-item .team-content::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-primary) !important;
    transition: 0.5s;
}
.team .team-item:hover .team-content::after,
.team .team-item:hover .team-content::before {
    width: 100% !important;
    height: 50% !important;
}
.team .team-item:hover .team-content .team-content-inner {
    position: relative;
    color: var(--bs-white);
    z-index: 2;
}
.team .team-item .team-content .team-content-inner h4,
.team .team-item .team-content .team-content-inner p {
    transition: 0.5s;
}
.team .team-item:hover .team-content .team-content-inner p {
    color: var(--bs-white) !important;
}
.team .team-item:hover .team-content .team-content-inner h4 {
    color: var(--bs-dark) !important;
}
/*** Team End ***/
/*** Testimonial Start ***/
.testimonial .testimonial-carousel {
    position: relative;
}
.testimonial .testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-light);
    border: 1px solid var(--bs-primary);
    border-radius: 10px;
    transition: 0.5s;
}
.testimonial .testimonial-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary);
}
/*** Testimonial End ***/
/*** FAQ'S Start ***/
.faq {
    position: relative;
    overflow: hidden;
}
.faq::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url(../img/bg.png);
    object-fit: cover;
    z-index: -1;
}
.faq .faq-img {
    position: relative;
}
.faq .faq-img .faq-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
}
/*** FAQ'S End ***/
/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}
.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}
.footer .footer-item p {
    line-height: 35px;
}
.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-primary);
}
.footer .footer-item-post a {
    transition: 0.5s;
}
.footer .footer-item-post a:hover {
    color: var(--bs-primary) !important;
}
.footer .footer-item-post .footer-btn a {
    transition: 0.5s;
}
.footer .footer-item-post .footer-btn a:hover {
    color: var(--bs-dark);
}
/*** Footer End ***/
/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
}
/*** copyright end ***/
/* Responsive Styles */
@media (max-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        margin-top: 15px !important;
    }
}
@media (max-width: 992px) {
    .header-carousel .header-carousel-item .carousel-caption {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 10px;
    }
    .header-carousel-item img {
        height: auto; /* Allow images to scale */
        object-fit: cover;
    }
    .owl-prev
 {
        top: 40px !important;
    }
    .owl-prev {
        left: 65%;
    }
    .navbar .navbar-nav .nav-item.nav-link {
        margin: 15px 0 !important;
    }
}
@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
    .navbar {
        font-size: small; /* Adjust font size */
    }
    .footer .footer-item a {
        line-height: 25px; /* Adjust line height */
    }
    .footer .footer-item p {
        line-height: 25px; /* Adjust line height */
    }
}
@media (max-width: 576px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    .btn {
        font-size: small; /* Smaller buttons on small screens */
    }
}

    }
    .owl-prev {
        left: 65%;
    }
    .navbar .navbar-nav .nav-item.nav-link {
        margin: 15px 0 !important;
    }
}
@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
    .navbar {
        font-size: small; /* Adjust font size */
    }
    .footer .footer-item a {
        line-height: 25px; /* Adjust line height */
    }
    .footer .footer-item p {
        line-height: 25px; /* Adjust line height */
    }
}
@media (max-width: 576px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    .btn {
        font-size: small; /* Smaller buttons on small screens */
    }
}

        .service-item {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }
        .service-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
        }
        .service-content-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .navbar {
            padding: 15px 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .navbar-brand {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
        }
        .navbar-brand img {
            height: 72px;
            margin-right: 10px; /* Add some space between image and text */
        }
        .navbar-brand h1 {
            font-size: 1.5rem; /* Responsive font size */
            margin: 0; /* Remove default margin */
        }
        .phone-number {
            position: absolute;
            color: white;
        }
        .phone-number.right {
            top: 20px;
            right: 20px;
        }
        .carousel-caption {
            bottom: 20%;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            padding: 15px; /* Added padding for better spacing */
            background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
            border-radius: 5px; /* Rounded corners */
        }
        .carousel-caption h5 {
            font-size: 2rem;
        }
        .carousel-caption p {
            font-size: 1.25rem;
        }
        @media (max-width: 768px) {
            .carousel-caption h5 {
                font-size: 1.5rem; /* Smaller font size for mobile */
            }
            .carousel-caption p {
                font-size: 1rem; /* Smaller paragraph font size for mobile */
            }
        }
        @media (max-width: 576px) {
            .carousel-caption h5 {
                font-size: 1.25rem; /* Even smaller font size for very small devices */
            }
            .carousel-caption p {
                font-size: 0.875rem; /* Even smaller paragraph font size for very small devices */
            }
        }
        .carousel-caption .btn {
            margin: 5px;
        }
        .sebi-reg {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.8);
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.9rem;
            color: #333;
            z-index: 10;
        }
        .text-muted {
            color: #000000 !important;
        }
        @media (max-width: 768px) {
            .navbar {
                padding: 10px;
                font-size: 12px;
            }
            .navbar-brand img {
                height: 50px;
            }
            .navbar-brand h1 {
                font-size: 1.2rem; /* Smaller font size for mobile */
            }
            .carousel-caption h5 {
                font-size: 1.5rem;
            }
            .carousel-caption p {
                font-size: 1rem;
            }
            .carousel-caption {
                bottom: 10%;
            }
            .sebi-reg {
                font-size: 0.8rem;
                padding: 3px 8px;
            }
        }
        @media (max-width: 767.98px) { /* Bootstrap's sm breakpoint */
            .hide-on-mobile {
                display: none;
            }
        }
        @media (max-width: 1024px) { /* Adjust the max-width as needed for your tablet breakpoint */
            .hide-on-mobile {
                display: none; /* Hides all images */
            }
        }
        /* Responsive Sidebar Navigation - Mobile View */
        @media (max-width: 991px) {
            /* Hide the regular navbar collapse on mobile */
            #navbarCollapse {
                position: fixed;
                top: 0;
                right: -280px; /* Start off-screen */
                width: 280px;
                height: 100%;
                padding-top: 60px;
                background-color: #ffffff;
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
                transition: right 0.3s ease;
                z-index: 1030;
                overflow-y: auto;
            }
            /* When the menu is shown */
            #navbarCollapse.show {
                right: 0;
            }
            /* Style the navbar items for sidebar */
            #navbarCollapse .navbar-nav {
                width: 100%;
            }
            #navbarCollapse .nav-item {
                width: 100%;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            }
            #navbarCollapse .nav-link {
                padding: 15px 20px;
                color: #333;
            }
            #navbarCollapse .dropdown-menu {
                position: static;
                float: none;
                width: 100%;
                padding: 0;
                margin: 0;
                border: none;
                box-shadow: none;
                background-color: rgba(0, 0, 0, 0.03);
            }
            #navbarCollapse .dropdown-item {
                padding: 10px 35px;
            }
            /* Overlay for closing sidebar when clicked outside */
            .sidebar-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 1020;
            }
            /* Close button in sidebar */
            .sidebar-close {
                position: absolute;
                top: 15px;
                right: 15px;
                font-size: 1.5rem;
                cursor: pointer;
            }
            /* Style the hamburger icon */
            .navbar-toggler {
                z-index: 1040;
                position: relative;
            }
        }
/* Ensure carousel images maintain aspect ratio and fit perfectly */
.carousel-inner img {
    width: 100%;
    height: 100vh; /* Full height for better visibility */
    object-fit: cover; /* Prevent image distortion */
}

/* SEBI Registration Badge */
.sebi-reg {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
}

/* Caption Box */
.carousel-caption {
    position: absolute;
    bottom: 15%;
    left: 25%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 650px;
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    animation: fadeInUp 0.8s ease-in-out;
}

/* Smooth Animation for Fade-In Effect */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Caption Text Styling */
.carousel-caption h5 {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1rem;
    color: #f8f8f8;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Buttons with Hover Effect */
.carousel-caption .btn {
    font-size: 1rem;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-dark {
    background-color: #333;
    border: none;
}

.btn-dark:hover {
    background-color: #000;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .carousel-inner img {
        height: 70vh; /* Adjust height for mobile screens */
    }

    .carousel-caption {
        width: 90%;
        bottom: 10%;
        padding: 15px;
    }

    .carousel-caption h5 {
        font-size: 1.6rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-caption .btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .sebi-reg {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .carousel-caption {
    position: absolute;
    bottom: 15%;
    left: 10%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 650px;
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    opacity: 1; /* Ensure it starts visible */
    transition: none !important; /* Remove delayed animations */
}


    .carousel-caption h5 {
        font-size: 1.4rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
    }

    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .sebi-reg {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

.carousel-caption {
    animation: fadeInUp 1.5s ease-in-out 0.5s both;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

   