:root {
    --primary: #b2c5ff;
    --primary-container: #0052cc;
    --on-primary: #002b73;
    --on-primary-container: #c4d2ff;
    
    --secondary: #b7c8e1;
    --secondary-container: #3a4a5f;
    --on-secondary: #213145;
    
    --tertiary: #00daf3;
    --on-tertiary: #00363d;
    
    --background: #0b1326;
    --on-background: #dae2fd;
    
    --surface: #0b1326;
    --on-surface: #dae2fd;
    --surface-variant: rgba(45, 52, 73, 0.6);
    --on-surface-variant: #c3c6d6;
    
    --surface-container-lowest: #060e20;
    --surface-container-low: #131b2e;
    --surface-container: #171f33;
    --surface-container-high: #222a3d;
    --surface-container-highest: #2d3449;
    
    --outline: #8d90a0;
    --outline-variant: rgba(67, 70, 84, 0.15);
    
    --font-display: 'Saira', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Bootstrap Overrides */
    --bs-primary: var(--primary);
    --bs-secondary: var(--secondary);
    --bs-dark: var(--background);
    --bs-light: var(--surface-container);
    --bs-body-bg: var(--background);
    --bs-body-color: var(--on-background);
}

.counter-value {
    color: var(--tertiary) !important;
}

.bg-secondary {
    background-color: var(--surface-container-low) !important;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-container), var(--primary)) !important;
    color: var(--on-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 204, 0.4), 0 0 15px var(--primary);
}

.btn-secondary {
    background: var(--surface-container-highest) !important;
    color: var(--on-surface) !important;
    border: 1px solid var(--outline-variant) !important;
}

.btn-secondary:hover {
    background: var(--surface-container-high) !important;
    border-color: var(--tertiary) !important;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar End ***/


/*** Navbar Start ***/
.navbar {
    background: var(--surface-variant);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline-variant);
}

.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: var(--on-surface) !important;
    font-size: 18px;
    outline: none;
    transition: color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--tertiary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
        background: var(--surface-container-high);
        border: 1px solid var(--outline-variant);
        backdrop-filter: blur(10px);
    }
}

.navbar .nav-link.active {
    position: relative;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--tertiary);
    border-radius: 2px;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/*** Navbar End ***/


/*** Carousel Start ***/

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--bs-primary);
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-prev:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--bs-primary);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--bs-primary);
    color: #ffffff;
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--bs-primary);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

#carouselId .carousel-indicators li {
    width: 30px;
    height: 10px;
    background: var(--bs-primary);
    margin: 10px;
    border-radius: 30px;
    opacity: 1;
}

#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
    opacity: 1;
}

@media (max-width: 992px) {
    .carousel-item {
        min-height: 500px;
    }
    
    .carousel-item img {
        min-height: 500px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 40px !important;
    }

    .carousel-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 400px;
    }
    
    .carousel-item img {
        min-height: 400px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 28px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/*** Carousel End ***/


/*** Services Start ***/

.services .services-item {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    padding: 30px 20px;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.services-item:hover {
    transform: scale(1.02);
    background: var(--surface-container-high);
    border-color: var(--tertiary);
}

.services-content::after {
    display: none; /* Removed the old overlay style */
}

.services-item .services-content-icon i {
    color: var(--tertiary) !important;
    font-size: 3rem;
    margin-bottom: 20px;
}

.services-item h4 {
    color: var(--on-surface);
}

.services-item p {
    color: var(--on-surface-variant);
}

/*** Services End ***/


/*** Project Start ***/

.project-img {
    position: relative;
    padding: 15px;
}

.project-img::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-img::after {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--bs-primary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-content a {
    display: inline-block;
    padding: 20px 25px;
    background: var(--bs-primary);
    border-radius: 10px;
}

.project-item:hover .project-content {
    opacity: 1;
    transition: .5s;
}

.project-item:hover .project-img::before,
.project-item:hover .project-img::after {
    opacity: 0;
}

/*** Project End ***/


/*** Blog Start ***/
.blog-item .blog-btn {
    z-index: 2;
}

.blog-btn .blog-btn-icon {
    height: 50px;
    position: relative;
    overflow: hidden;
}

.blog-btn-icon .blog-icon-2 {
    display: flex;
    position: absolute;
    top: 6px;
    left: -140px;
    
}

.blog-btn-icon:hover .blog-icon-2 {
    transition: 1s;
    left: 5px;
    top: 6px;
    padding-bottom: 5px;
}
.blog-icon-1 {
    position: relative;
    top: -4px;
}
.blog-btn-icon:hover .blog-icon-1 {
    top: 0;
    right: -140px;
    transition: 1s;
}

/*** Blog End ***/


/*** Team Start ***/

.team-item {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-top: 10px solid var(--tertiary) !important;
    border-radius: 12px;
}

.team-content::before {
    display: none; /* Removed the old clip-path overlay */
}

.team-img-icon {
    position: relative;
    padding: 30px;
}

.team-img {
    border: 5px solid var(--surface-container-high);
    border-radius: 50%;
    overflow: hidden;
}

.team-img img {
    border: 2px solid var(--outline-variant);
    transition: .5s;
}

.team-item:hover h4 {
    color: var(--tertiary);
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.1);
    border-color: var(--tertiary);
}

.team-carousel .owl-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 50px;
    display: flex;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    width: 56px;
    height: 56px;
    border-radius: 56px;
    margin-left: 15px;
    background: var(--bs-secondary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

@media (max-width: 992px) {
    .team-carousel {
        margin-top: 3rem;
    }

    .team-carousel .owl-nav {
        top: -85px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-left: -15px;
    }
}

/*** Team End ***/


/*** Testimonial Start ***/

.testimonial-item {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    padding: 30px;
    border-radius: 16px;
    color: var(--on-surface);
}

.testimonial-carousel .owl-dot {
    background: var(--surface-variant);
}

.testimonial-carousel .owl-dot.active {
    background: var(--tertiary);
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--surface-container-high) !important;
    border-color: var(--tertiary);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
}

/*** Testimonial End ***/


/*** Contact Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(11, 19, 38, 0.9), rgba(11, 19, 38, 0.7)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 12px;
    z-index: -1;
}

.contact-map {
    background: var(--surface-container-high);
    border: 1px solid var(--outline-variant);
}

.contact-form {
    background: var(--surface-container-high);
    border: 1px solid var(--outline-variant);
}

.contact-form input, .contact-form textarea {
    background: var(--surface-container-lowest) !important;
    color: var(--on-surface) !important;
    border: 1px solid var(--outline-variant) !important;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--tertiary) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2) !important;
}

/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--surface-container-lowest);
    color: var(--on-surface-variant);
    border-top: 1px solid var(--outline-variant);
}

.footer h4 {
    color: var(--primary);
}

.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    color: var(--on-surface-variant);
    transition: .3s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    color: var(--tertiary);
    padding-left: 5px;
}

/*** Footer End ***/